-
Bug
-
Resolution: Done
-
Major
-
EJB 3.0 RC1
-
None
-
None
When there is an exception when Hibernate fails to parse a EJB query the exception can not be propagated to a standalone client. This is probably because some of the fields in a Hibernate exception are not serializable. The whole information about where the original exception occurred is so lost. Makes debugging a pain i. t. a.
[exec] 2005-09-07 14:24:18,921 [SocketServerInvokerThread-10.11.1.211-5] ERROR org.hibernate.hql.PARSER - line 1:19: unexpected token: FETCH
[exec] 2005-09-07 14:24:18,921 [SocketServerInvokerThread-10.11.1.211-5] WARN org.hibernate.hql.ast.HqlParser - processEqualityExpression() : No expression to process!
[exec] 2005-09-07 14:24:18,921 [SocketServerInvokerThread-10.11.1.211-5] ERROR org.hibernate.hql.PARSER - line 1:25: unexpected token: JOIN
[exec] 2005-09-07 14:24:18,937 [SocketServerInvokerThread-10.11.1.211-5] ERROR org.jboss.remoting.transport.socket.ServerThread - failed
[exec] java.io.NotSerializableException: org.hibernate.hql.ast.HqlToken
[exec] at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1075)
[exec] at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1369)
[exec] at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1341)
[exec] at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1284)
[exec] at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073)
[exec] at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1369)
[exec] at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1341)
[exec] at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1284)
[exec] at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073)
[exec] at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1369)
[exec] at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1341)
[exec] at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1284)
[exec] at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073)
[exec] at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1369)
[exec] at java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStream.java:380)
[exec] at java.lang.Throwable.writeObject(Throwable.java:649)
[exec] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[exec] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[exec] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[exec] at java.lang.reflect.Method.invoke(Method.java:585)
[exec] at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:890)
[exec] at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1333)
[exec] at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1284)
[exec] at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073)
[exec] at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1369)
[exec] at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1341)
[exec] at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1284)
[exec] at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073)
[exec] at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:291)
[exec] at org.jboss.remoting.marshal.serializable.SerializableMarshaller.write(SerializableMarshaller.java:45)
[exec] at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:268)
[exec] at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:299)
[exec] at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:169)