Hi guys! Getting following error while creating an entity Bean: <snip> [junit] *** TestCreateAusschreibung --> Ausschreibung: java.rmi.ServerException: RemoteException occurred in server thread; nested exception is: [junit] javax.transaction.TransactionRolledbackException: Load failed; nested exception is: [junit] java.lang.IllegalArgumentException: field type mismatch; nested exception is: [junit] java.rmi.ServerException: Load failed; nested exception is: [junit] java.lang.IllegalArgumentException: field type mismatch [junit] java.rmi.ServerException: RemoteException occurred in server thread; nested exception is: [junit] javax.transaction.TransactionRolledbackException: Load failed; nested exception is: [junit] java.lang.IllegalArgumentException: field type mismatch; nested exception is: [junit] java.rmi.ServerException: Load failed; nested exception is: [junit] java.lang.IllegalArgumentException: field type mismatch [junit] javax.transaction.TransactionRolledbackException: Load failed; nested exception is: [junit] java.lang.IllegalArgumentException: field type mismatch; nested exception is: [junit] java.rmi.ServerException: Load failed; nested exception is: [junit] java.lang.IllegalArgumentException: field type mismatch [junit] java.rmi.ServerException: Load failed; nested exception is: [junit] java.lang.IllegalArgumentException: field type mismatch [junit] java.lang.IllegalArgumentException: field type mismatch [junit] at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteC all.java:248) [junit] at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223) [junit] at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:126) [junit] at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker_Stub.invoke(Unknown Source) [junit] at org.jboss.ejb.plugins.jrmp.interfaces.EntityProxy.invoke(EntityProxy.java:18 2) [junit] at $Proxy3.getBeschafferData(Unknown Source) [junit] at de.oio.outpark.test.eb.TestCreateAusschreibung.testCreateAusschreibung(TestC reateAusschreibung.java:89) [junit] at java.lang.reflect.Method.invoke(Native Method) [junit] at junit.framework.TestCase.runTest(TestCase.java:156) [junit] at junit.framework.TestCase.runBare(TestCase.java:130) [junit] at junit.framework.TestResult$1.protect(TestResult.java:106) [junit] at junit.framework.TestResult.runProtected(TestResult.java:124) [junit] at junit.framework.TestResult.run(TestResult.java:109) [junit] at junit.framework.TestCase.run(TestCase.java:121) [junit] at junit.framework.TestSuite.runTest(TestSuite.java:157) [junit] at junit.framework.TestSuite.run(TestSuite.java:152) [junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRu nner.java:209) [junit] at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestR unner.java:342) </snip> I am accessing MS SQL-Server 7.0 through Sprinta-JDBC-Driver(com.inet.tds.TdsDriver) using standardjaws-SQL-Server-mapping. <mapping> <java-type>java.lang.Long</java-type> <jdbc-type>DECIMAL</jdbc-type> <sql-type>DECIMAL(20)</sql-type> </mapping> Problem occurs when loading entity Beschaffer and setting values per reflection (CMPFieldMetaData.set(Object, Object) in embedded data object (nested field hack from dirk) on a field of type java.lang.Long <snip> [Beschaffer] debugging instance de.oio.outpark.eb.pbeschaffer.BeschafferBean (1st parameter): [Beschaffer] at sun.rmi.transport.Transport$1.run(Transport.java:155) [Beschaffer] at java.security.AccessController.doPrivileged(Native Method) [Beschaffer] at sun.rmi.transport.Transport.serviceCall(Transport.java:152) [Beschaffer] java.lang.String ROLLE [Beschaffer] java.lang.Integer beschafferID [Beschaffer] de.oio.outpark.transferdata.BeschafferData data [Beschaffer] debugging value java.math.BigDecimal (2nd parameter): [Beschaffer] int ROUND_UP [Beschaffer] int ROUND_DOWN [Beschaffer] int ROUND_CEILING [Beschaffer] int ROUND_FLOOR [Beschaffer] int ROUND_HALF_UP [Beschaffer] int ROUND_HALF_DOWN [Beschaffer] int ROUND_HALF_EVEN [Beschaffer] int ROUND_UNNECESSARY [Beschaffer] *********** setting field data.bestellObligo2: [Beschaffer] at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:462) [Beschaffer] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:6 62) [Beschaffer] at java.lang.Thread.run(Thread.java:498) </snip> declaration of corresponding field in data object: <snip> public Long bestellObligo2 = new Long(0); /** * reguläre getter-Methode */ public Long getBestellObligo2() { return bestellObligo2; } /** * reguläre setter-Methode */ public void setBestellObligo2(Long v) { this.bestellObligo2 = v; } /** * gewrappede getter-Methode */ public long getWrapBestellObligo2() { return getBestellObligo2().longValue(); } /** * gewrappede setter-Methode */ public void setWrapBestellObligo2(long v) { setBestellObligo2(new Long(v)); } </snip> Any ideas? Torben PS: Someone debugging jboss with ddd under rh7? _______________________________________________ Jboss-development mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-development