Hello all,
I have a couple of odd exceptions that I am trying to understand:
1.) This is printed on the client. I can get rid of this exception by
distributing the PostgreSQL JDBC driver with my application, but this
doesn't seem like the most appropriate solution. Does anyone have a better
idea?
java.rmi.UnmarshalException: Error unmarshaling return; nested exception is:
java.lang.ClassNotFoundException: org.postgresql.util.PSQLException
(no
security manager: RMI class loader disabled)
java.lang.ClassNotFoundException: org.postgresql.util.PSQLException (no
security
manager: RMI class loader disabled)
at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:318)
at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:132)
at
sun.rmi.server.MarshalInputStream.resolveClass(MarshalInputStream.java:143)
at
java.io.ObjectInputStream.inputClassDescriptor(ObjectInputStream.java:918)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:366)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:236)
at
java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1186)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:386)
at
java.io.ObjectInputStream.inputClassFields(ObjectInputStream.java:2262)
at
java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:519)
at
java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1411)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:386)
at
java.io.ObjectInputStream.inputClassFields(ObjectInputStream.java:2262)
at
java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:519)
at
java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1411)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:386)
at
java.io.ObjectInputStream.inputClassFields(ObjectInputStream.java:2262)
at
java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:519)
at
java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1411)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:386)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:236)
at
sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:212)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:122)
at
org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker_Stub.invoke(Unknown
Source)
at
org.jboss.ejb.plugins.jrmp.interfaces.EntityProxy.invoke(EntityProxy.java:16
9)
at $Proxy1.createCaseEntry(Unknown Source)
at org.jcrm.test.CaseTest.createCaseEntry(CaseTest.java)
at org.jcrm.test.CaseTest.main(CaseTest.java)
2.) This is on the server. It appears to be a problem with PostgreSQL, but
I have no idea why. Even more bizarre is that this does not occur all of
the time. I can remove the test data from the database and rerun the test
application and it will work for several rounds. Eventually though this
error occurs.
Could it have anything to do with the fact that I have mapped the
java.util.Date class to the TIMESTAMP type in Jaws? Should I be using the
java.sql.Timestamp class instead of the java.util.Date class and then
convert from the Timestamp class to the Date class via the Date.getTime()
method for date manipulation?
In case it matters, jBoss is running on a Windows 2000 machine and
PostgreSQL is running on a Linux Red Hat 6.1 box.
[Case] TRANSACTION ROLLBACK EXCEPTION:Load failed; nested exception is:
Bad Timestamp Format at 19 in 2001-03-09 09:59:46.02-05; nested
exception is:
java.rmi.ServerException: Load failed; nested exception is:
Bad Timestamp Format at 19 in 2001-03-09 09:59:46.02-05
[Case] java.rmi.ServerException: Load failed; nested exception is:
[Case] Bad Timestamp Format at 19 in 2001-03-09 09:59:46.02-05
[Case] Bad Timestamp Format at 19 in 2001-03-09 09:59:46.02-05
[Case] at org.postgresql.jdbc2.ResultSet.getTimestamp(ResultSet.java:447)
[Case] at org.postgresql.jdbc2.ResultSet.getObject(ResultSet.java:739)
[Case] at
org.jboss.minerva.jdbc.ResultSetInPool.getObject(ResultSetInPool.java:557)
[Case] at
org.jboss.ejb.plugins.jaws.jdbc.JDBCCommand.getResultObject(JDBCCommand.java
:384)
[Case] at
org.jboss.ejb.plugins.jaws.jdbc.JDBCLoadEntityCommand.handleResult(JDBCLoadE
ntityCommand.java:114)
[Case] at
org.jboss.ejb.plugins.jaws.jdbc.JDBCQueryCommand.executeStatementAndHandleRe
sult(JDBCQueryCommand.java:59)
[Case] at
org.jboss.ejb.plugins.jaws.jdbc.JDBCCommand.jdbcExecute(JDBCCommand.java:158
)
[Case] at
org.jboss.ejb.plugins.jaws.jdbc.JDBCLoadEntityCommand.execute(JDBCLoadEntity
Command.java:77)
[Case] at
org.jboss.ejb.plugins.jaws.JAWSPersistenceManager.loadEntity(JAWSPersistence
Manager.java:150)
[Case] at
org.jboss.ejb.plugins.CMPPersistenceManager.loadEntity(CMPPersistenceManager
.java:277)
[Case] at
org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invoke(EntitySynchron
izationInterceptor.java:192)
[Case] at
org.jboss.ejb.plugins.EntityInstanceInterceptor.invoke(EntityInstanceInterce
ptor.java:204)
[Case] at
org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxInterceptorCMT.java:133)
[Case] at
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.
java:263)
[Case] at
org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:99)
[Case] at
org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:14
4)
[Case] at
org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:192)
[Case] at org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:323)
[Case] at
org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(JRMPContainerI
nvoker.java:163)
[Case] at java.lang.reflect.Method.invoke(Native Method)
[Case] at sun.rmi.server.UnicastServerRef.dispatch(Unknown Source)
[Case] at sun.rmi.transport.Transport$1.run(Unknown Source)
[Case] at java.security.AccessController.doPrivileged(Native Method)
[Case] at sun.rmi.transport.Transport.serviceCall(Unknown Source)
[Case] at sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown Source)
[Case] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown
Source)
[Case] at java.lang.Thread.run(Unknown Source)
Sincerely,
Anthony Eden
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]