1 2 Previous Next 19 Replies Latest reply on Feb 9, 2006 1:47 AM by d3nn1503

    java.rmi.MarshalException thrown under RC4

    Okanovi? Du?an Newbie

      This happens whenever ther is query executed in RC4 PFD.
      This is stacktrace on the client side:

      Exception in thread "main" java.lang.reflect.UndeclaredThrowableException
       at $Proxy1.createEditionAnnotation(Unknown Source)
       at com.test.TestClient.main(TestClient.java:54)
      Caused by: java.rmi.MarshalException: Failed to communicate. Problem during marshalling/unmarshalling; nested exception is:
       java.io.InvalidClassException: javax.ejb.EJBException; local class incompatible: stream classdesc serialVersionUID = 2512003687642492863, local class serialVersionUID = 796770993296843510
       at org.jboss.remoting.transport.socket.SocketClientInvoker.transport(SocketClientInvoker.java:287)
       at org.jboss.remoting.RemoteClientInvoker.invoke(RemoteClientInvoker.java:131)
       at org.jboss.remoting.Client.invoke(Client.java:258)
       at org.jboss.remoting.Client.invoke(Client.java:221)
       at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:41)
       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:88)
       at org.jboss.aspects.tx.ClientTxPropagationInterceptor.invoke(ClientTxPropagationInterceptor.java:46)
       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:88)
       at org.jboss.aspects.security.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:40)
       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:88)
       at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:65)
       at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:88)
       at org.jboss.ejb3.stateless.StatelessRemoteProxy.invoke(StatelessRemoteProxy.java:102)
       ... 2 more
      Caused by: java.io.InvalidClassException: javax.ejb.EJBException; local class incompatible: stream classdesc serialVersionUID = 2512003687642492863, local class serialVersionUID = 796770993296843510
       at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:519)
       at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1546)
       at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1460)
       at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1693)
       at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
       at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1912)
       at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1836)
       at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1713)
       at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
       at java.io.ObjectInputStream.readObject(ObjectInputStream.java:339)
       at org.jboss.remoting.serialization.impl.java.JavaSerializationManager.receiveObject(JavaSerializationManager.java:128)
       at org.jboss.remoting.marshal.serializable.SerializableUnMarshaller.read(SerializableUnMarshaller.java:66)
       at org.jboss.remoting.transport.socket.SocketClientInvoker.transport(SocketClientInvoker.java:260)
       ... 14 more
      


      On the server side nothing is thrown.
      This never happened in RC3.

        • 1. Re: java.rmi.MarshalException thrown under RC4
          John Blackmore Newbie

          I read somewhere that your client/jboss-j2ee.jar won't work any more. Use jboss/{server.config}/lib/jboss-j2ee.jar.

          Best,

          • 2. Re: java.rmi.MarshalException thrown under RC4
            Bill Burke Master

            Yes. Which is why the install directions say don't use the client libs! Remeber this is a PATCH to 4.0.3SP1. You can use the client libs when 4.0.4 comes out.

            • 3. Re: java.rmi.MarshalException thrown under RC4
              Okanovi? Du?an Newbie

              What is interesting to me is that I have 7 entities in my project. All of them work fine, except that one. Here is the source for all the beans:

              1. Application and Organisation have long for primary key

              @Entity
              @Local
              @Table(name = "application")
              public class Application implements Serializable{
               private long id;
              
               private String name;
              
               private Collection<Version> versions;
              
               public Application() {
               }
              
               public Application(String name) {
               this.name = name;
               }
              
               @Id
               @GeneratedValue(strategy = GenerationType.AUTO)
               public long getId() {
               return id;
               }
              
               public void setId(long id) {
               this.id = id;
               }
              
               @Column(name="name")
               public String getName() {
               return name;
               }
              
               public void setName(String name) {
               this.name = name;
               }
              
               @OneToMany
               public Collection<Version> getVersions() {
               return versions;
               }
              
               public void setVersions(Collection<Version> versions) {
               this.versions = versions;
               }
              }
              

              @Entity
              @Local
              @Table(name = "organisation")
              public class Organisation implements Serializable {
               long id;
              
               String name;
              
               public Organisation() {
               }
              
               public Organisation(String name, long cityId) {
               this.name = name;
               }
              
               @Id
               @GeneratedValue(strategy = GenerationType.AUTO)
               public long getId() {
               return id;
               }
              
               public void setId(long id) {
               this.id = id;
               }
              
               @Column(name = "name")
               public String getName() {
               return name;
               }
              
               public void setName(String name) {
               this.name = name;
               }
              
              }
              


              2. Version entity has a PK class with two fields: versionMark and foreign key from Application
              @Entity
              @Local
              @Table(name = "version")
              public class Version implements Serializable {
              
               String versionMark;
              
               Application application;
              
               VersionPK versionPK;
              
               Collection<Edition> editions;
              
               @EmbeddedId
               @AttributeOverrides( {
               @AttributeOverride(name = "versionMark", column = @Column(name = "versionMark")),
               @AttributeOverride(name = "applicationId", column = @Column(name = "applicationId")) })
               public VersionPK getVersionPK() {
               return versionPK;
               }
              
               public void setVersionPK(VersionPK versionPK) {
               this.versionPK = versionPK;
               }
              
               @Column(name = "versionMark", updatable = false, insertable = false)
               public String getVersionMark() {
               return versionMark;
               }
              
               public void setVersionMark(String versionMark) {
               this.versionMark = versionMark;
               }
              
               @ManyToOne
               @JoinColumn(name = "applicationId", insertable = false, updatable = false)
               public Application getApplication() {
               return application;
               }
              
               public void setApplication(Application application) {
               this.application = application;
               }
              
               @OneToMany(cascade = CascadeType.ALL, mappedBy = "version")
               public Collection<Edition> getEditions() {
               return editions;
               }
              
               public void setEditions(Collection<Edition> editions) {
               this.editions = editions;
               }
              }
              

              and PK:
              @Embeddable
              public class VersionPK implements Serializable {
              
               private String versionMark;
              
               private long applicationId;
              
               public VersionPK() {
               }
              
               public VersionPK(String versionMark, long applicationId) {
               this.versionMark = versionMark;
               this.applicationId = applicationId;
               }
              
               public long getApplicationId() {
               return applicationId;
               }
              
               public void setApplicationId(long applicationId) {
               this.applicationId = applicationId;
               }
              
               public String getVersionMark() {
               return versionMark;
               }
              
               public void setVersionMark(String versionMark) {
               this.versionMark = versionMark;
               }
              
               public int hashCode() {
               return (int) versionMark.hashCode()
               + (int) (new Long(applicationId)).hashCode();
               }
              
               public boolean equals(Object obj) {
               if (obj == this)
               return true;
               if (!(obj instanceof VersionPK))
               return false;
               if (obj == null)
               return false;
               VersionPK pk = (VersionPK) obj;
               return pk.versionMark.equals(versionMark)
               && pk.applicationId == applicationId;
               }
              
              }
              


              3. Finally, there is Edition entity with primary key of foreign keys from the Version and from the Organisation:
              @Entity
              @Local
              @Table(name = "edition")
              public class Edition implements Serializable {
               private EditionPK editionPK;
              
               private Organisation organisation;
              
               private Version version;
              
               @EmbeddedId
               @AttributeOverrides( {
               @AttributeOverride(name = "organisationId", column = @Column(name = "organisationId")),
               @AttributeOverride(name = "versionMark", column = @Column(name = "versionMark")),
               @AttributeOverride(name = "applicationId", column = @Column(name = "applicationId")) })
               public EditionPK getEditionPK() {
               return editionPK;
               }
              
               public void setEditionPK(EditionPK editionPK) {
               this.editionPK = editionPK;
               }
              
               @ManyToOne(targetEntity = Organisation.class, cascade = CascadeType.ALL, fetch = FetchType.EAGER, optional = false)
               @JoinColumn(name = "organisationId", insertable = false, updatable = false)
               public Organisation getOrganisation() {
               return organisation;
               }
              
               public void setOrganisation(Organisation organisation) {
               this.organisation = organisation;
               }
              
               @ManyToOne
               @JoinColumns( {
               @JoinColumn(name = "versionMark", insertable = false, updatable = false),
               @JoinColumn(name = "applicationId", insertable = false, updatable = false) })
               public Version getVersion() {
               return version;
               }
              
               public void setVersion(Version version) {
               this.version = version;
               }
              
               public Edition(Organisation organisation, Version version) {
               this.organisation = organisation;
               this.version = version;
               }
              
               public Edition() {
               }
              
              
              }
              

              and PK:
              @Embeddable
              public class EditionPK implements Serializable {
              
               String versionMark;
              
               long applicationId;
              
               long organisationId;
              
               public EditionPK() {
               }
              
               public EditionPK(String versionMark, long applicationId, long organisationId) {
               this.versionMark = versionMark;
               this.applicationId = applicationId;
               this.organisationId = organisationId;
               }
              
               public long getApplicationId() {
               return applicationId;
               }
              
               public void setApplicationId(long applicationId) {
               this.applicationId = applicationId;
               }
              
               public String getVersionMark() {
               return versionMark;
               }
              
               public void setVersionMark(String versionMark) {
               this.versionMark = versionMark;
               }
              
               public long getOrganisationId() {
               return organisationId;
               }
              
               public void setOrganisationId(long organisationId) {
               this.organisationId = organisationId;
               }
              
               public int hashCode() {
               return (int) versionMark.hashCode()
               + (int) (new Long(applicationId)).hashCode()
               + (int) (new Long(organisationId)).hashCode();
               }
              
               public boolean equals(Object obj) {
               if (obj == this)
               return true;
               if (!(obj instanceof VersionPK))
               return false;
               if (obj == null)
               return false;
               EditionPK pk = (EditionPK) obj;
               return pk.getVersionMark().equals(versionMark)
               && pk.getApplicationId()== applicationId
               && pk.getOrganisationId() == organisationId;
               }
              }
              


              Everything works fine, until I try to work with Edition. Every query works fine for every other bean. I'm using facade pattern. I get other entities (as POJOs,of course) on the client side, but Edition breaks, even if I don't send it. I have another bean that is @ManyToOne with Edition and when I try to do query within facade and to set it to that other bean it breaks within facade (without anything sent to client).

              Can anyone tell me what's wrong?

              • 4. Re: java.rmi.MarshalException thrown under RC4
                Okanovi? Du?an Newbie

                Here is the example of the findAll() query:

                public List<Edition> findAll() {
                 return (List<Edition>) em
                 .createQuery(
                 "SELECT edition FROM Edition edition").getResultList();

                It is in the facade. I tried to print result list from within facade, but it failed, so it is not about client (I guess).
                I added
                <property name="hibernate.show_sql" value="true" />
                in persistence.xml and this is what came up on the console:
                09:31:03,125 INFO [STDOUT] Hibernate: select edition0_.applicationId as applicat1_72_, edition0_.versionMark as versionM2_72_, edition0_.organisationId as organisa3_72_ from edition edition0_
                09:31:03,140 WARN [JDBCExceptionReporter] SQL Error: 0, SQLState: S1009
                09:31:03,140 ERROR [JDBCExceptionReporter] Invalid value for getLong() - '4.0.3'
                

                I have one row in that table: applicationId=1, versionMark=4.0.3 and organisationId=1 (referenced tables contain these values - there are no constraints violated).

                • 5. Re: java.rmi.MarshalException thrown under RC4
                  John Blackmore Newbie

                  Try making the attributes in the constructor of your EditionPK class appear in the same order as your @EmbeddedId.

                  • 6. Re: java.rmi.MarshalException thrown under RC4
                    Okanovi? Du?an Newbie

                    Thanks,but it didn't help.
                    Here is the log of the deployment:

                    00:53:44,421 INFO [Ejb3AnnotationHandler] found EJB3: ejbName=ApplicationFacadeBean, class=com.gint.scm.ejb.facade.ApplicationFacadeBean, type=STATELESS
                    00:53:44,453 INFO [Ejb3AnnotationHandler] found EJB3: ejbName=CityFacadeBean, class=com.gint.scm.ejb.facade.CityFacadeBean, type=STATELESS
                    00:53:44,484 INFO [Ejb3AnnotationHandler] found EJB3: ejbName=EditionFacadeBean, class=com.gint.scm.ejb.facade.EditionFacadeBean, type=STATELESS
                    00:53:44,515 INFO [Ejb3AnnotationHandler] found EJB3: ejbName=OrganisationFacadeBean, class=com.gint.scm.ejb.facade.OrganisationFacadeBean, type=STATELESS
                    00:53:44,546 INFO [Ejb3AnnotationHandler] found EJB3: ejbName=VersionFacadeBean, class=com.gint.scm.ejb.facade.VersionFacadeBean, type=STATELESS
                    00:53:44,546 FATAL [PersistenceXmlLoader] apptracker JTA
                    00:53:44,546 INFO [Ejb3Deployment] EJB3 deployment time took: 203
                    00:53:44,562 INFO [JmxKernelAbstraction] installing MBean: persistence.units:jar=SCMEJB.ejb3.jar,unitName=apptracker with dependencies:
                    00:53:44,562 INFO [JmxKernelAbstraction] jboss.jca:name=MySqlDS,service=DataSourceBinding
                    00:53:44,609 INFO [Ejb3Configuration] found EJB3 Entity bean: com.gint.scm.ejb.entity.Application
                    00:53:44,609 INFO [Ejb3Configuration] found EJB3 Entity bean: com.gint.scm.ejb.entity.City
                    00:53:44,609 INFO [Ejb3Configuration] found EJB3 Entity bean: com.gint.scm.ejb.entity.Edition
                    00:53:44,609 INFO [Ejb3Configuration] found EJB3 @Embeddable: com.gint.scm.ejb.entity.EditionPK
                    00:53:44,625 INFO [Ejb3Configuration] found EJB3 Entity bean: com.gint.scm.ejb.entity.Organisation
                    00:53:44,625 INFO [Ejb3Configuration] found EJB3 Entity bean: com.gint.scm.ejb.entity.Version
                    00:53:44,625 INFO [Ejb3Configuration] found EJB3 @Embeddable: com.gint.scm.ejb.entity.VersionPK
                    00:53:44,687 INFO [AnnotationBinder] Binding entity from annotated class: com.gint.scm.ejb.entity.Application
                    00:53:44,687 INFO [EntityBinder] Bind entity com.gint.scm.ejb.entity.Application on table application
                    00:53:44,687 INFO [AnnotationBinder] Binding entity from annotated class: com.gint.scm.ejb.entity.City
                    00:53:44,687 INFO [EntityBinder] Bind entity com.gint.scm.ejb.entity.City on table city
                    00:53:44,734 INFO [AnnotationBinder] Binding entity from annotated class: com.gint.scm.ejb.entity.Edition
                    00:53:44,734 INFO [EntityBinder] Bind entity com.gint.scm.ejb.entity.Edition on table edition
                    00:53:44,750 INFO [AnnotationBinder] Binding entity from annotated class: com.gint.scm.ejb.entity.Organisation
                    00:53:44,750 INFO [EntityBinder] Bind entity com.gint.scm.ejb.entity.Organisation on table organisation
                    00:53:44,750 INFO [AnnotationBinder] Binding entity from annotated class: com.gint.scm.ejb.entity.Version
                    00:53:44,750 INFO [EntityBinder] Bind entity com.gint.scm.ejb.entity.Version on table version
                    00:53:44,765 INFO [CollectionBinder] Mapping collection: com.gint.scm.ejb.entity.Version.editions -> edition
                    00:53:44,921 INFO [ConnectionProviderFactory] Initializing connection provider: org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider
                    00:53:44,921 INFO [InjectedDataSourceConnectionProvider] Using provided datasource
                    00:53:44,937 INFO [SettingsFactory] RDBMS: MySQL, version: 5.0.17-nt
                    00:53:44,937 INFO [SettingsFactory] JDBC driver: MySQL-AB JDBC Driver, version: mysql-connector-java-3.0.14-production ( $Date: 2004/04/24 15:49:43 $, $Revision: 1.27.2.39 $ )
                    00:53:44,937 INFO [Dialect] Using dialect: org.hibernate.dialect.MySQLInnoDBDialect
                    00:53:44,937 INFO [TransactionFactoryFactory] Using default transaction strategy (direct JDBC transactions)
                    00:53:44,937 INFO [TransactionManagerLookupFactory] instantiating TransactionManagerLookup: org.hibernate.transaction.JBossTransactionManagerLookup
                    00:53:44,937 INFO [TransactionManagerLookupFactory] instantiated TransactionManagerLookup
                    00:53:44,937 INFO [SettingsFactory] Automatic flush during beforeCompletion(): enabled
                    00:53:44,937 INFO [SettingsFactory] Automatic session close at end of transaction: disabled
                    00:53:44,937 INFO [SettingsFactory] JDBC batch size: 15
                    00:53:44,937 INFO [SettingsFactory] JDBC batch updates for versioned data: disabled
                    00:53:44,937 INFO [SettingsFactory] Scrollable result sets: enabled
                    00:53:44,937 INFO [SettingsFactory] JDBC3 getGeneratedKeys(): enabled
                    00:53:44,937 INFO [SettingsFactory] Connection release mode: after_statement
                    00:53:44,937 INFO [SettingsFactory] Maximum outer join fetch depth: 2
                    00:53:44,937 INFO [SettingsFactory] Default batch fetch size: 1
                    00:53:44,937 INFO [SettingsFactory] Generate SQL with comments: disabled
                    00:53:44,937 INFO [SettingsFactory] Order SQL updates by primary key: disabled
                    00:53:44,937 INFO [SettingsFactory] Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
                    00:53:44,937 INFO [ASTQueryTranslatorFactory] Using ASTQueryTranslatorFactory
                    00:53:44,937 INFO [SettingsFactory] Query language substitutions: {}
                    00:53:44,937 INFO [SettingsFactory] Second-level cache: enabled
                    00:53:44,937 INFO [SettingsFactory] Query cache: disabled
                    00:53:44,937 INFO [SettingsFactory] Cache provider: org.hibernate.cache.HashtableCacheProvider
                    00:53:44,937 INFO [SettingsFactory] Optimize cache for minimal puts: disabled
                    00:53:44,937 INFO [SettingsFactory] Structured second-level cache entries: disabled
                    00:53:44,937 INFO [SettingsFactory] Echoing all SQL to stdout
                    00:53:44,937 INFO [SettingsFactory] Statistics: disabled
                    00:53:44,937 INFO [SettingsFactory] Deleted entity synthetic identifier rollback: disabled
                    00:53:44,937 INFO [SettingsFactory] Default entity-mode: pojo
                    00:53:44,968 INFO [SessionFactoryImpl] building session factory
                    00:53:45,234 INFO [SessionFactoryObjectFactory] Not binding factory to JNDI, no JNDI name configured
                    00:53:45,234 INFO [SchemaUpdate] Running hbm2ddl schema update
                    00:53:45,234 INFO [SchemaUpdate] fetching database metadata
                    00:53:45,234 INFO [SchemaUpdate] updating schema
                    00:53:45,234 INFO [DatabaseMetadata] table not found: application
                    00:53:45,234 INFO [DatabaseMetadata] table not found: application_version
                    00:53:45,234 INFO [DatabaseMetadata] table not found: city
                    00:53:45,234 INFO [DatabaseMetadata] table not found: city_organisation
                    00:53:45,234 INFO [DatabaseMetadata] table not found: edition
                    00:53:45,234 INFO [DatabaseMetadata] table not found: organisation
                    00:53:45,234 INFO [DatabaseMetadata] table not found: version
                    00:53:45,250 INFO [DatabaseMetadata] table not found: application
                    00:53:45,250 INFO [DatabaseMetadata] table not found: application_version
                    00:53:45,250 INFO [DatabaseMetadata] table not found: city
                    00:53:45,250 INFO [DatabaseMetadata] table not found: city_organisation
                    00:53:45,250 INFO [DatabaseMetadata] table not found: edition
                    00:53:45,250 INFO [DatabaseMetadata] table not found: organisation
                    00:53:45,250 INFO [DatabaseMetadata] table not found: version
                    00:53:45,468 WARN [TxConnectionManager] Connection error occured: org.jboss.resource.connectionmanager.TxConnectionManager$TxConnectionEventListener@79ae24[state=NORMAL mc=org.jboss.resource.adapter.jdbc.local.LocalManagedConnection@11a9732 handles=1 lastUse=1138924424937 permit=true trackByTx=false mcp=org.jboss.resource.connectionmanager.JBossManagedConnectionPool$OnePool@1b1ebe5 context=org.jboss.resource.connectionmanager.InternalManagedConnectionPool@1f61490 xaResource=org.jboss.resource.connectionmanager.TxConnectionManager$LocalXAResource@bc7a23 txSync=null]
                    java.sql.SQLException: General error, message from server: "Can't create table '.\apptracker\#sql-118_3.frm' (errno: 150)"
                     at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:1977)
                     at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1163)
                     at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1272)
                     at com.mysql.jdbc.MysqlIO.sqlQuery(MysqlIO.java:1218)
                     at com.mysql.jdbc.Connection.execSQL(Connection.java:2233)
                     at com.mysql.jdbc.Connection.execSQL(Connection.java:2181)
                     at com.mysql.jdbc.Statement.executeUpdate(Statement.java:1254)
                     at com.mysql.jdbc.Statement.executeUpdate(Statement.java:1200)
                     at org.jboss.resource.adapter.jdbc.WrappedStatement.executeUpdate(WrappedStatement.java:161)
                     at org.hibernate.tool.hbm2ddl.SchemaUpdate.execute(SchemaUpdate.java:152)
                     at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:295)
                     at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1176)
                     at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:414)
                     at org.hibernate.ejb.Ejb3Configuration.createEntityManagerFactory(Ejb3Configuration.java:575)
                     at org.hibernate.ejb.Ejb3Configuration.createContainerEntityManagerFactory(Ejb3Configuration.java:245)
                     at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:108)
                     at org.jboss.ejb3.entity.PersistenceUnitDeployment.start(PersistenceUnitDeployment.java:231)
                     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                     at java.lang.reflect.Method.invoke(Method.java:585)
                     at org.jboss.ejb3.ServiceDelegateWrapper.startService(ServiceDelegateWrapper.java:97)
                     at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:274)
                     at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:230)
                     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                     at java.lang.reflect.Method.invoke(Method.java:585)
                     at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
                     at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
                     at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
                     at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
                     at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
                     at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:943)
                     at $Proxy0.start(Unknown Source)
                     at org.jboss.system.ServiceController.start(ServiceController.java:428)
                     at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
                     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                     at java.lang.reflect.Method.invoke(Method.java:585)
                     at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
                     at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
                     at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
                     at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
                     at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
                     at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
                     at $Proxy94.start(Unknown Source)
                     at org.jboss.ejb3.JmxKernelAbstraction.install(JmxKernelAbstraction.java:76)
                     at org.jboss.ejb3.Ejb3Deployment.startPersistenceUnits(Ejb3Deployment.java:608)
                     at org.jboss.ejb3.Ejb3Deployment.start(Ejb3Deployment.java:452)
                     at org.jboss.ejb3.Ejb3Module.startService(Ejb3Module.java:139)
                     at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:274)
                     at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:230)
                     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                     at java.lang.reflect.Method.invoke(Method.java:585)
                     at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
                     at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
                     at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
                     at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
                     at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
                     at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:943)
                     at $Proxy0.start(Unknown Source)
                     at org.jboss.system.ServiceController.start(ServiceController.java:428)
                     at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
                     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                     at java.lang.reflect.Method.invoke(Method.java:585)
                     at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
                     at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
                     at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
                     at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
                     at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
                     at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
                     at $Proxy35.start(Unknown Source)
                     at org.jboss.ejb3.EJB3Deployer.start(EJB3Deployer.java:365)
                     at org.jboss.deployment.MainDeployer.start(MainDeployer.java:989)
                     at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:790)
                     at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:753)
                     at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
                     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                     at java.lang.reflect.Method.invoke(Method.java:585)
                     at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
                     at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
                     at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)
                     at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
                     at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
                     at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
                     at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
                     at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
                     at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
                     at $Proxy6.deploy(Unknown Source)
                     at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:319)
                     at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:489)
                     at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:192)
                     at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:203)
                     at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:182)
                    00:53:45,484 ERROR [SchemaUpdate] Unsuccessful: alter table edition add index FK8F77F5BEB2B27E78 (versionMark, applicationId), add constraint FK8F77F5BEB2B27E78 foreign key (versionMark, applicationId) references version (applicationId, versionMark)
                    00:53:45,484 ERROR [SchemaUpdate] General error, message from server: "Can't create table '.\apptracker\#sql-118_3.frm' (errno: 150)"
                    00:53:45,484 ERROR [SchemaUpdate] Unsuccessful: alter table organisation add index FK3A5300DAE46A344A (city_id), add constraint FK3A5300DAE46A344A foreign key (city_id) references city (id)
                    00:53:45,484 ERROR [SchemaUpdate] Connection handle is not currently associated with a ManagedConnection
                    00:53:45,484 ERROR [SchemaUpdate] Unsuccessful: alter table version add index FK14F51CD8F183274B (applicationId), add constraint FK14F51CD8F183274B foreign key (applicationId) references application (id)
                    00:53:45,484 ERROR [SchemaUpdate] Connection handle is not currently associated with a ManagedConnection
                    00:53:45,484 INFO [SchemaUpdate] schema update complete
                    00:53:45,484 INFO [NamingHelper] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
                    00:53:45,531 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:service=EJB3,jar=SCMEJB.ejb3,name=ApplicationFacadeBean with dependencies:
                    00:53:45,531 INFO [JmxKernelAbstraction] persistence.units:jar=SCMEJB.ejb3.jar,unitName=apptracker
                    00:53:45,875 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:service=EJB3,jar=SCMEJB.ejb3,name=CityFacadeBean with dependencies:
                    00:53:45,875 INFO [JmxKernelAbstraction] persistence.units:jar=SCMEJB.ejb3.jar,unitName=apptracker
                    00:53:46,046 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:service=EJB3,jar=SCMEJB.ejb3,name=EditionFacadeBean with dependencies:
                    00:53:46,046 INFO [JmxKernelAbstraction] persistence.units:jar=SCMEJB.ejb3.jar,unitName=apptracker
                    00:53:46,265 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:service=EJB3,jar=SCMEJB.ejb3,name=OrganisationFacadeBean with dependencies:
                    00:53:46,265 INFO [JmxKernelAbstraction] persistence.units:jar=SCMEJB.ejb3.jar,unitName=apptracker
                    00:53:46,468 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:service=EJB3,jar=SCMEJB.ejb3,name=VersionFacadeBean with dependencies:
                    00:53:46,468 INFO [JmxKernelAbstraction] persistence.units:jar=SCMEJB.ejb3.jar,unitName=apptracker
                    00:53:46,734 INFO [EJB3Deployer] Deployed: file:/E:/JBoss/jboss-4.0.3SP1/server/default/deploy/SCMEJB.ejb3
                    

                    As you can see there is "alter table" error. I thought it was MySQL issue, but then I got it on SAP (MaxDB),too. Any ideas.

                    • 7. Re: java.rmi.MarshalException thrown under RC4
                      Okanovi? Du?an Newbie

                      If no one knows why is this happening, can anyone tell me is there a real tutorial on composite primary keys.
                      In this application I am trying to create primary key from foreign key and a string field (in Version entity), and then I'm using that key as a part of primary key in Edition entity.

                      There are tutorials showing how to make PK class,but none shows how to solve this kind of problem.

                      • 8. Re: java.rmi.MarshalException thrown under RC4
                        Bill Burke Master

                        If you are using RC5 then use @PrimaryKeyJoinColumn:

                        @ManyToOne
                         @PrimaryKeyJoinColumn(name = "applicationId")
                         public Application getApplication() {
                         return application;
                         }
                        


                        or

                        @ManyToOne
                         @PrimaryKeyJoinColumn(referencedColumnName= "applicationId")
                         public Application getApplication() {
                         return application;
                         }
                        


                        I forget which one works

                        • 9. Re: java.rmi.MarshalException thrown under RC4
                          Okanovi? Du?an Newbie

                          Neither. At least for me.

                          JBossIDE says:

                          The annotation @PrimaryKeyJoinColumns is disallowed for this location


                          Also, Bill, do you know anything about the error in deployment,considering MySQL?

                          Thanks for quick response.

                          • 10. Re: java.rmi.MarshalException thrown under RC4
                            Okanovi? Du?an Newbie

                             

                            Neither. At least for me.

                            JBossIDE says:
                            Code:

                            The annotation @PrimaryKeyJoinColumns is disallowed for this location

                            Maybe it's because it is composite key (@EmbeddedId).

                            • 11. Re: java.rmi.MarshalException thrown under RC4
                              Bill Burke Master

                              JBoss IDE is out-of-date with respect to RC5. Use RC5

                              • 12. Re: java.rmi.MarshalException thrown under RC4
                                Okanovi? Du?an Newbie

                                I've tried it,and still nothing.
                                I've replaced @JoinColumn with @PrimaryKeyJoinColumn (JBossIDE shows the error, but I do the packaging anyway). Now Edition entity looks like this:

                                package com.gint.scm.ejb.entity;
                                
                                import java.io.Serializable;
                                import java.util.Collection;
                                
                                import javax.persistence.AttributeOverride;
                                import javax.persistence.AttributeOverrides;
                                import javax.persistence.CascadeType;
                                import javax.persistence.Column;
                                import javax.persistence.EmbeddedId;
                                import javax.persistence.Entity;
                                import javax.persistence.FetchType;
                                import javax.persistence.ManyToOne;
                                import javax.persistence.OneToMany;
                                import javax.persistence.PrimaryKeyJoinColumn;
                                import javax.persistence.PrimaryKeyJoinColumns;
                                import javax.persistence.Table;
                                
                                import org.jboss.annotation.ejb.Local;
                                
                                @SuppressWarnings("serial")
                                @Entity
                                @Local
                                @Table(name = "edition")
                                public class Edition implements Serializable {
                                 private EditionPK editionPK;
                                
                                 private Organisation organisation;
                                
                                 private Version version;
                                
                                 private Collection<EditionAnnotation> editionAnnotations;
                                
                                 @EmbeddedId
                                 @AttributeOverrides( {
                                 @AttributeOverride(name = "versionMark", column = @Column(name = "versionMark")),
                                 @AttributeOverride(name = "applicationId", column = @Column(name = "applicationId")),
                                 @AttributeOverride(name = "organisationId", column = @Column(name = "organisationId")) })
                                 public EditionPK getEditionPK() {
                                 return editionPK;
                                 }
                                
                                 public void setEditionPK(EditionPK editionPK) {
                                 this.editionPK = editionPK;
                                 }
                                
                                 @ManyToOne
                                 @PrimaryKeyJoinColumn(referencedColumnName="id", name = "organisationId")
                                 public Organisation getOrganisation() {
                                 return organisation;
                                 }
                                
                                 public void setOrganisation(Organisation organisation) {
                                 this.organisation = organisation;
                                 }
                                
                                 @ManyToOne
                                 @PrimaryKeyJoinColumns( {
                                 @PrimaryKeyJoinColumn(referencedColumnName = "versionMark", name = "versionMark"),
                                 @PrimaryKeyJoinColumn(referencedColumnName = "applicationId", name = "applicationId") })
                                 public Version getVersion() {
                                 return version;
                                 }
                                
                                 public void setVersion(Version version) {
                                 this.version = version;
                                 }
                                
                                 public Edition(Organisation organisation, Version version) {
                                 this.organisation = organisation;
                                 this.version = version;
                                 }
                                
                                 public Edition() {
                                 }
                                }
                                

                                This is what gets thrown during deployment on RC5 (the same was on RC4):
                                java.lang.reflect.InvocationTargetException
                                 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                                 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                                 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                                 at java.lang.reflect.Method.invoke(Method.java:585)
                                 at org.jboss.ejb3.ServiceDelegateWrapper.startService(ServiceDelegateWrapper.java:97)
                                 at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:274)
                                 at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:230)
                                 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                                 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                                 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                                 at java.lang.reflect.Method.invoke(Method.java:585)
                                 at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
                                 at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
                                 at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
                                 at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
                                 at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
                                 at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:943)
                                 at $Proxy0.start(Unknown Source)
                                 at org.jboss.system.ServiceController.start(ServiceController.java:428)
                                 at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
                                 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                                 at java.lang.reflect.Method.invoke(Method.java:585)
                                 at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
                                 at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
                                 at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
                                 at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
                                 at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
                                 at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
                                 at $Proxy86.start(Unknown Source)
                                 at org.jboss.ejb3.JmxKernelAbstraction.install(JmxKernelAbstraction.java:76)
                                 at org.jboss.ejb3.Ejb3Deployment.startPersistenceUnits(Ejb3Deployment.java:599)
                                 at org.jboss.ejb3.Ejb3Deployment.start(Ejb3Deployment.java:452)
                                 at org.jboss.ejb3.Ejb3Module.startService(Ejb3Module.java:139)
                                 at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:274)
                                 at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:230)
                                 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                                 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                                 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                                 at java.lang.reflect.Method.invoke(Method.java:585)
                                 at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
                                 at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
                                 at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
                                 at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
                                 at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
                                 at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:943)
                                 at $Proxy0.start(Unknown Source)
                                 at org.jboss.system.ServiceController.start(ServiceController.java:428)
                                 at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
                                 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                                 at java.lang.reflect.Method.invoke(Method.java:585)
                                 at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
                                 at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
                                 at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
                                 at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
                                 at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
                                 at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
                                 at $Proxy35.start(Unknown Source)
                                 at org.jboss.ejb3.EJB3Deployer.start(EJB3Deployer.java:365)
                                 at org.jboss.deployment.MainDeployer.start(MainDeployer.java:989)
                                 at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:790)
                                 at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:753)
                                 at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
                                 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                                 at java.lang.reflect.Method.invoke(Method.java:585)
                                 at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
                                 at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
                                 at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)
                                 at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
                                 at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
                                 at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
                                 at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
                                 at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
                                 at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
                                 at $Proxy6.deploy(Unknown Source)
                                 at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:319)
                                 at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:489)
                                 at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:192)
                                 at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:203)
                                 at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:182)
                                Caused by: org.hibernate.MappingException: Foreign key (FK8F77F5BEDAD1A540:edition [version])) must have same number of columns as the referenced primary key (version [applicationId,versionMark])
                                 at org.hibernate.mapping.ForeignKey.alignColumns(ForeignKey.java:90)
                                 at org.hibernate.mapping.ForeignKey.alignColumns(ForeignKey.java:73)
                                 at org.hibernate.cfg.Configuration.secondPassCompileForeignKeys(Configuration.java:1145)
                                 at org.hibernate.cfg.Configuration.secondPassCompile(Configuration.java:1052)
                                 at org.hibernate.cfg.AnnotationConfiguration.secondPassCompile(AnnotationConfiguration.java:238)
                                 at org.hibernate.cfg.Configuration.buildMappings(Configuration.java:997)
                                 at org.hibernate.ejb.Ejb3Configuration.buildMappings(Ejb3Configuration.java:722)
                                 at org.hibernate.ejb.EventListenerConfigurator.configure(EventListenerConfigurator.java:161)
                                 at org.hibernate.ejb.Ejb3Configuration.createEntityManagerFactory(Ejb3Configuration.java:567)
                                 at org.hibernate.ejb.Ejb3Configuration.createContainerEntityManagerFactory(Ejb3Configuration.java:245)
                                 at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:108)
                                 at org.jboss.ejb3.entity.PersistenceUnitDeployment.start(PersistenceUnitDeployment.java:260)
                                 ... 79 more
                                


                                And this causes whole deployement of the .ejb3 to fail.

                                • 13. Re: java.rmi.MarshalException thrown under RC4
                                  Okanovi? Du?an Newbie

                                  Got it to work. @PrimaryKeyJoinColumn didn't do the job here. I've put @JoinColumn back. Someone may laugh, but I forgot to remove referencedColumnName, and that actually did the trick. It looks like that was the problem all along. Now there are no exceptions on deployment. If only I can make finders work... But that's another story, and probably I'll manage to do it today.

                                  Bill and Mooktarus, thank you for all the replies. This is new technology and it requires probably more polishing and even more documenting, but keep up the good work.

                                  If you ever come to Novi Sad, Serbia, you'll get a bottle of finest Serbian ?ljivovica (plum brandy) :-)

                                  Thank you again.

                                  • 14. Re: java.rmi.MarshalException thrown under RC4
                                    Bill Burke Master

                                    Read the error message. It is telling you the join does not have enough parameters. Expand your PKjoincolumsn

                                    1 2 Previous Next