1 Reply Latest reply on Feb 22, 2008 2:52 PM by Tim Fox

    java.lang.RuntimeException: Failed to convert payload to byt

    6767 6767 Newbie

      client code:

      MBeanServerConnection mBeanServer =
      MBeanServerConnection)_main._ctx.lookup("jmx/invoker/RMIAdaptor");
      ObjectName serverObjectName = new ObjectName("jboss." + this.getMessagingSubSystem() + ".destination:service=Queue,name=" + _args);
      List o = (List)mBeanServer.invoke(serverObjectName, "listMessages", new Object[] { null }, new String[] { "java.lang.String" });
      if (o!=null) {
      log.debug("queueCount : " + o.size());
      }
      _taskResult = RESULT_OK;

      throws under load sporadical on client:

      2008-02-21 12:15:19,042 ERROR [ActionTaskMessaging] java.lang.RuntimeException: Failed to convert payload to byte[]

      on server:

      2008-02-21 12:15:18,929 FATAL [org.jboss.serial.persister.RegularObjectPersister] error
      2008-02-21 12:15:18,932 ERROR [STDERR] java.lang.reflect.InvocationTargetException
      2008-02-21 12:15:18,932 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor506.invoke(Unknown Source)
      2008-02-21 12:15:18,933 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      2008-02-21 12:15:18,933 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
      2008-02-21 12:15:18,933 ERROR [STDERR] at org.jboss.serial.persister.RegularObjectPersister.writeSlotWithMethod(RegularObjectPersister.java:120)
      2008-02-21 12:15:18,933 ERROR [STDERR] at org.jboss.serial.persister.RegularObjectPersister.defaultWrite(RegularObjectPersister.java:86)
      2008-02-21 12:15:18,933 ERROR [STDERR] at org.jboss.serial.persister.RegularObjectPersister.writeData(RegularObjectPersister.java:62)
      2008-02-21 12:15:18,933 ERROR [STDERR] at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.describeObject(ObjectDescriptorFactory.java:276)
      2008-02-21 12:15:18,933 ERROR [STDERR] at org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectOutput.writeObject(DataContainer.java:206)
      2008-02-21 12:15:18,933 ERROR [STDERR] at org.jboss.serial.persister.RegularObjectPersister.writeSlotWithFields(RegularObjectPersister.java:182)
      2008-02-21 12:15:18,933 ERROR [STDERR] at org.jboss.serial.persister.RegularObjectPersister.defaultWrite(RegularObjectPersister.java:90)
      2008-02-21 12:15:18,934 ERROR [STDERR] at org.jboss.serial.persister.RegularObjectPersister.writeData(RegularObjectPersister.java:62)
      2008-02-21 12:15:18,934 ERROR [STDERR] at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.describeObject(ObjectDescriptorFactory.java:276)
      2008-02-21 12:15:18,934 ERROR [STDERR] at org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectOutput.writeObject(DataContainer.java:206)
      2008-02-21 12:15:18,934 ERROR [STDERR] at org.jboss.serial.io.JBossObjectOutputStream.writeObjectOverride(JBossObjectOutputStream.java:181)
      2008-02-21 12:15:18,934 ERROR [STDERR] at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:298)
      2008-02-21 12:15:18,934 ERROR [STDERR] at org.jboss.messaging.core.message.RoutableSupport.internalWriteObject(RoutableSupport.java:266)
      2008-02-21 12:15:18,934 ERROR [STDERR] at org.jboss.messaging.core.message.MessageSupport.writePayloadExternal(MessageSupport.java:341)
      2008-02-21 12:15:18,934 ERROR [STDERR] at org.jboss.messaging.core.message.MessageSupport.getPayloadAsByteArray(MessageSupport.java:170)
      2008-02-21 12:15:18,934 ERROR [STDERR] at org.jboss.messaging.core.message.MessageSupport.writeExternal(MessageSupport.java:301)
      2008-02-21 12:15:18,934 ERROR [STDERR] at org.jboss.jms.message.JBossMessage.writeExternal(JBossMessage.java:939)
      2008-02-21 12:15:18,934 ERROR [STDERR] at java.io.ObjectOutputStream.writeExternalData(ObjectOutputStream.java:1310)
      2008-02-21 12:15:18,934 ERROR [STDERR] at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1288)
      2008-02-21 12:15:18,935 ERROR [STDERR] at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
      2008-02-21 12:15:18,935 ERROR [STDERR] at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:302)
      2008-02-21 12:15:18,935 ERROR [STDERR] at java.util.ArrayList.writeObject(ArrayList.java:569)
      2008-02-21 12:15:18,935 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor598.invoke(Unknown Source)
      2008-02-21 12:15:18,935 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      2008-02-21 12:15:18,935 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
      2008-02-21 12:15:18,935 ERROR [STDERR] at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:917)
      2008-02-21 12:15:18,935 ERROR [STDERR] at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1339)
      2008-02-21 12:15:18,935 ERROR [STDERR] at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
      2008-02-21 12:15:18,935 ERROR [STDERR] at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
      2008-02-21 12:15:18,935 ERROR [STDERR] at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:302)
      2008-02-21 12:15:18,936 ERROR [STDERR] at java.rmi.MarshalledObject.(MarshalledObject.java:92)
      2008-02-21 12:15:18,936 ERROR [STDERR] at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:424)
      2008-02-21 12:15:18,936 ERROR [STDERR] at sun.reflect.GeneratedMethodAccessor273.invoke(Unknown Source)
      2008-02-21 12:15:18,936 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      2008-02-21 12:15:18,936 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
      2008-02-21 12:15:18,936 ERROR [STDERR] at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)
      2008-02-21 12:15:18,936 ERROR [STDERR] at sun.rmi.transport.Transport$1.run(Transport.java:153)
      2008-02-21 12:15:18,936 ERROR [STDERR] at java.security.AccessController.doPrivileged(Native Method)
      2008-02-21 12:15:18,936 ERROR [STDERR] at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
      2008-02-21 12:15:18,936 ERROR [STDERR] at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:466)
      2008-02-21 12:15:18,936 ERROR [STDERR] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:707)
      2008-02-21 12:15:18,936 ERROR [STDERR] at java.lang.Thread.run(Thread.java:595)
      2008-02-21 12:15:18,937 ERROR [STDERR] Caused by: java.util.ConcurrentModificationException
      2008-02-21 12:15:18,937 ERROR [STDERR] at java.util.HashMap$HashIterator.nextEntry(HashMap.java:841)
      2008-02-21 12:15:18,937 ERROR [STDERR] at java.util.HashMap$EntryIterator.next(HashMap.java:883)
      2008-02-21 12:15:18,937 ERROR [STDERR] at java.util.HashMap$EntryIterator.next(HashMap.java:881)
      2008-02-21 12:15:18,937 ERROR [STDERR] at java.util.HashMap.writeObject(HashMap.java:1037)
      2008-02-21 12:15:18,937 ERROR [STDERR] ... 45 more


      Jboss 4.0.5 GA and JBoss Messaging 1.0.1.SP2

      any ideas ?