-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: Error when ecexuting a query
PostPosted: Wed Apr 23, 2008 3:51 pm 
Beginner
Beginner

Joined: Wed Apr 23, 2008 2:00 pm
Posts: 20
Hi all !
I'm new using hibernate 3.2 and i'm having a problem...
When i try to execute a sentence, doen't matter if is createcriteria or get or load..., i get this error :

java.sql.SQLException: ORA-12801: error signaled in parallel query server P001, instance rudamon2:anubi2 (2)
ORA-12705: invalid or unknown NLS parameter value specified

oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:289)
oracle.jdbc.ttc7.Oall7.receive(Oall7.java:590)
oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1973)
oracle.jdbc.ttc7.TTC7Protocol.parseExecuteDescribe(TTC7Protocol.java:850)
oracle.jdbc.driver.OracleStatement.doExecuteQuery(OracleStatement.java:2599)
oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2963)
oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:658)
oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:584)
org.hibernate.jdbc.AbstractBatcher.getResultSet(AbstractBatcher.java:186)
org.hibernate.loader.Loader.getResultSet(Loader.java:1787)
org.hibernate.loader.Loader.doQuery(Loader.java:674)
org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:236)
org.hibernate.loader.Loader.loadEntity(Loader.java:1860)
org.hibernate.loader.entity.AbstractEntityLoader.load(AbstractEntityLoader.java:48)
org.hibernate.loader.entity.AbstractEntityLoader.load(AbstractEntityLoader.java:42)
org.hibernate.persister.entity.AbstractEntityPersister.load(AbstractEntityPersister.java:3049)
org.hibernate.event.def.DefaultLoadEventListener.loadFromDatasource(DefaultLoadEventListener.java:399)
org.hibernate.event.def.DefaultLoadEventListener.doLoad(DefaultLoadEventListener.java:375)
org.hibernate.event.def.DefaultLoadEventListener.load(DefaultLoadEventListener.java:139)
org.hibernate.event.def.DefaultLoadEventListener.proxyOrLoad(DefaultLoadEventListener.java:195)
org.hibernate.event.def.DefaultLoadEventListener.onLoad(DefaultLoadEventListener.java:103)
org.hibernate.impl.SessionImpl.fireLoad(SessionImpl.java:878)
.....................

The way i'm executing my sentence is:

Session session = HibernateUtil.getSessionFactory().openSession();
session.beginTransaction();

MyClass c = (MyClass)session.get(Myclass.class, id);

session.close();

I'm completly lost.. can anybdy help me please ?
Thank you all !


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 23, 2008 4:45 pm 
Beginner
Beginner

Joined: Wed Apr 23, 2008 2:00 pm
Posts: 20
i've continued searching about this problem and i found that the problem is with MyClass, i've tried with other classes i have and i have no problem...

MyClass. java is :
public class MyClass{
private Long _id;
private String _container;
private String _gkey;
private String _username;
private String _state;
private Date _createdDate;



public SealsWebRequestDB(){

}


public Long get_id() {
return _id;
}
public void set_id(Long _id) {
this._id = _id;
}
public String get_container() {
return _container;
}
public void set_container(String _container) {
this._container = _container;
}
public String get_gkey() {
return _gkey;
}
public void set_gkey(String _gkey) {
this._gkey = _gkey;
}
public String get_username() {
return _username;
}
public void set_username(String _username) {
this._username = _username;
}
public String get_state() {
return _state;
}
public void set_state(String _state) {
this._state = _state;
}
public Date get_createdDate() {
return _createdDate;
}
public void set_createdDate(Date date) {
_createdDate = date;
}

}

And the descriptor file is :

<hibernate-mapping package="packageMyClass">
<class name="MyClass" table="MyTable" >
<id name="_id" column="REQUEST_ID" type="java.lang.Long">
<generator class="sequence">
<param name="sequence">MySequence</param>
</generator>
</id>
<property name="_container" column="CONTAINER" />
<property name="_gkey" column="EQUSE_GKEY" />
<property name="_username" column="USERNAME" />
<property name="_state" column="STATE" />
<property name="_createdDate" column="CREATED" />
</class>
</hibernate-mapping>


If somebody has an idea it would be great.. i quite blocked...
Thanks !!


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 24, 2008 10:42 am 
Beginner
Beginner

Joined: Wed Apr 23, 2008 2:00 pm
Posts: 20
problem solved.. this morning i've found that it was a problem with the database...
sorry.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.