Unsupported header in EJB call using remoting.
whitingjr Feb 6, 2012 9:55 AMHi,
I am seeing a ejb remoting problem. I have an ejb call to a remote machine running 7.1.0.Final-SNAPSHOT "Flux Capacitor". This is using master branch as of jboss-as on 06 Feb 2012. The ejb client properties file has this configuration.
endpoint.name=client-endpoint
remote.connectionprovider.create.options.org.xnio.Options.SSL_ENABLED=false
remote.connections=default
remote.connection.default.host=burtha02-wireless
remote.connection.default.port=4447
remote.connection.default.connect.options.org.xnio.Options.SASL_POLICY_NOANONYMOUS=false
On the client I see these messages being logged.
13:50:11 f16lite INFO JBoss EJB Client version 1.0.0.Beta11
13:50:11 f16lite INFO Storing run properties in run config file ...
13:50:11 f16lite INFO XNIO Version 3.0.0.GA
13:50:11 f16lite INFO XNIO NIO Implementation Version 3.0.0.GA
13:50:11 f16lite INFO JBoss Remoting version 3.2.0.CR8
13:50:11 f16lite INFO Received server version 1 and marshalling strategies [river]
13:50:11 f16lite INFO Successful version handshake completed for receiver context org.jboss.ejb.client.EJBReceiverContext@5006279d on channel Channel ID 917ec6c7 (outbound) of Remoting connection 5029d294 to burtha02-wireless/10.42.43.55:4447
13:50:11 f16lite WARN Unsupported message received with header 0xffffffff
On the server this is the error reported.
13:41:11,630 ERROR [stderr] (Remoting "burtha02-wireless" task-4) Exception in thread "Remoting "burtha02-wireless" task-4" java.lang.IllegalArgumentException: Can not set final org.jboss.ejb.client.Affinity field org.jboss.ejb.client.EJBLocator.affinity to java.lang.String
13:41:11,631 ERROR [stderr] (Remoting "burtha02-wireless" task-4) at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:164)
13:41:11,631 ERROR [stderr] (Remoting "burtha02-wireless" task-4) at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:168)
13:41:11,631 ERROR [stderr] (Remoting "burtha02-wireless" task-4) at sun.reflect.UnsafeQualifiedObjectFieldAccessorImpl.set(UnsafeQualifiedObjectFieldAccessorImpl.java:83)
13:41:11,631 ERROR [stderr] (Remoting "burtha02-wireless" task-4) at java.lang.reflect.Field.set(Field.java:675)
13:41:11,631 ERROR [stderr] (Remoting "burtha02-wireless" task-4) at org.jboss.marshalling.river.RiverUnmarshaller.readFields(RiverUnmarshaller.java:1673)
13:41:11,631 ERROR [stderr] (Remoting "burtha02-wireless" task-4) at org.jboss.marshalling.river.RiverObjectInputStream.defaultReadObject(RiverObjectInputStream.java:73)
13:41:11,631 ERROR [stderr] (Remoting "burtha02-wireless" task-4) at org.jboss.ejb.client.EJBLocator.readObject(EJBLocator.java:220)
13:41:11,631 ERROR [stderr] (Remoting "burtha02-wireless" task-4) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
13:41:11,631 ERROR [stderr] (Remoting "burtha02-wireless" task-4) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
13:41:11,632 ERROR [stderr] (Remoting "burtha02-wireless" task-4) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
13:41:11,632 ERROR [stderr] (Remoting "burtha02-wireless" task-4) at java.lang.reflect.Method.invoke(Method.java:616)
13:41:11,632 ERROR [stderr] (Remoting "burtha02-wireless" task-4) at org.jboss.marshalling.reflect.SerializableClass.callReadObject(SerializableClass.java:211)
13:41:11,632 ERROR [stderr] (Remoting "burtha02-wireless" task-4) at org.jboss.marshalling.river.RiverUnmarshaller.doInitSerializable(RiverUnmarshaller.java:1576)
13:41:11,632 ERROR [stderr] (Remoting "burtha02-wireless" task-4) at org.jboss.marshalling.river.RiverUnmarshaller.doInitSerializable(RiverUnmarshaller.java:1553)
13:41:11,632 ERROR [stderr] (Remoting "burtha02-wireless" task-4) at org.jboss.marshalling.river.RiverUnmarshaller.doReadNewObject(RiverUnmarshaller.java:1231)
13:41:11,632 ERROR [stderr] (Remoting "burtha02-wireless" task-4) at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:272)
13:41:11,632 ERROR [stderr] (Remoting "burtha02-wireless" task-4) at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:209)
13:41:11,632 ERROR [stderr] (Remoting "burtha02-wireless" task-4) at org.jboss.marshalling.AbstractObjectInput.readObject(AbstractObjectInput.java:37)
13:41:11,632 ERROR [stderr] (Remoting "burtha02-wireless" task-4) at org.jboss.as.ejb3.remote.protocol.versionone.MethodInvocationMessageHandler.processMessage(MethodInvocationMessageHandler.java:134)
13:41:11,632 ERROR [stderr] (Remoting "burtha02-wireless" task-4) at org.jboss.as.ejb3.remote.protocol.versionone.VersionOneProtocolChannelReceiver.handleMessage(VersionOneProtocolChannelReceiver.java:170)
13:41:11,632 ERROR [stderr] (Remoting "burtha02-wireless" task-4) at org.jboss.remoting3.remote.RemoteConnectionChannel$5.run(RemoteConnectionChannel.java:409)
13:41:11,633 ERROR [stderr] (Remoting "burtha02-wireless" task-4) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
13:41:11,633 ERROR [stderr] (Remoting "burtha02-wireless" task-4) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
13:41:11,633 ERROR [stderr] (Remoting "burtha02-wireless" task-4) at java.lang.Thread.run(Thread.java:636)
13:41:11,633 ERROR [stderr] (Remoting "burtha02-wireless" task-4) Caused by: an exception which occurred:
13:41:11,633 ERROR [stderr] (Remoting "burtha02-wireless" task-4) in field affinity
13:41:11,633 ERROR [stderr] (Remoting "burtha02-wireless" task-4) in object of type org.jboss.ejb.client.StatelessEJBLocator
I have made sure the libraries running on the server are being used for the client call
Is there something different for the client configuration introduced recently I have overlooked ?
Regards,
Jeremy