1 Reply Latest reply on Jun 18, 2005 11:11 PM by Thomas Diesler

    Can not return byte[][] in complex bean

    Clarnace Howatt Newbie

      First, I am using Jboss 4.0.2 and rpc literal web services (soon to
      be document literal)

      I am trying to return a two dimensional array within a complex bean and getting the following exception:

      13:18:34,136 ERROR [BeanPropertyTarget] Could not convert [B to bean field 'byte
      ArrayArray', type [[B
      13:18:34,136 ERROR [RPCInvocation] java.lang.ArrayStoreException
      java.lang.ArrayStoreException
      at org.jboss.axis.encoding.ser.BeanPropertyTarget.set(BeanPropertyTarget.java:243)
      at org.jboss.axis.encoding.DeserializerImpl.valueComplete(DeserializerImpl.java:305)
      at org.jboss.axis.encoding.DeserializerImpl.endElement(DeserializerImpl.java:590)
      at org.jboss.axis.encoding.DeserializationContextImpl.endElement(DeserializationContextImpl.java:1249)
      at org.jboss.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:252)
      at org.jboss.axis.message.SOAPElementAxisImpl.publishToHandler(SOAPElementAxisImpl.java:1390)
      at org.jboss.axis.message.RPCElement.deserialize(RPCElement.java:262)
      at org.jboss.axis.message.RPCElement.getParams(RPCElement.java:396)
      at org.jboss.axis.providers.java.RPCInvocation.prepareFromRequestEnvelope(RPCInvocation.java:234)
      at org.jboss.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:103)
      at org.jboss.axis.providers.java.JavaProvider.invoke(JavaProvider.java:358)
      at org.jboss.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:73)
      at org.jboss.axis.SimpleChain.doVisiting(SimpleChain.java:160)
      at org.jboss.axis.SimpleChain.invoke(SimpleChain.java:123)
      at org.jboss.axis.handlers.soap.SOAPService.invoke(SOAPService.java:560)

      The Complex bean contains only one element (the two dimensional array) with the appropriate gettes and setters.

      Are multi-dimensional arrays supported within a complex bean?