On 12/7/07 4:08 PM, "Brian Panulla" <[EMAIL PROTECTED]> wrote:
>
> On 12/7/07 11:32 AM, "Brian Panulla" <[EMAIL PROTECTED]> wrote:
>
>> Should I be able to return a multidimensional array of doubles from a Web
>> Service method? I can send back a simple Strings and even arrays of doubles
>> but trying to return a 2D array of doubles, or even a 3D (my ultimate goal)
>> returns the stack trace listed below.
>>
>
> The previous stack trace was indeed from the client. I figured out how to turn
> on full stack traces by setting sendStacktraceDetailsWithFaults = true in
> axis2.xml.
>
> I hooked up tcpmon into the mix and was able to grab this enhanced stack
> trace:
>
>
Sorry about that... Hit return too soon. Here's lowest part of the stack
trace:
Caused by: java.lang.NullPointerException
at
org.apache.axis2.databinding.utils.BeanUtil.getPullParser(BeanUtil.java:94)
at
org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl.processProp
erties(ADBXMLStreamReaderImpl.java:988)
at
org.apache.axis2.databinding.utils.reader.ADBXMLStreamReaderImpl.next(ADBXML
StreamReaderImpl.java:835)
at org.apache.axis2.util.StreamWrapper.next(StreamWrapper.java:71)
at
org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:153)
... 19 more
That corresponds to this line in BeanUtil:
qNamefortheType = typeTable.getQNamefortheType(
beanObject.getClass().getPackage().getName());
So it's trying to look something up... Maybe the type of the class it's
trying to return? The same exception is triggered on double[][] and
double[][][] return types, but not double[].
I'll dig into this more later.
-B
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]