× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



On Thu, 22 Mar 2007, Matt.Haas@xxxxxxxxxxx wrote:

Did you try looking at the job on the remote system? My first guess is
that there is a problem there and it's waiting for a message to be
answered.

Ah! It turned out to be a library list problem with the user profile we were using to connect with. Now it runs, but gets a NPE. Here's the spot tomcat reports as going wrong:

        AS400PackedDecimal priceresult = new AS400PackedDecimal(9, 4);
        price = priceresult.toDouble(parameterList[5].getOutputData());
Here price is a Double. getOutputData() returns a byte[] so I can't see where the NPE is coming from. Here again is how this parameter is constructed before the call:

     // Sixth parameter is price (9,4)
     AS400PackedDecimal pricepd = new AS400PackedDecimal(9, 4);
     parameterList[5] = new ProgramParameter(pricepd.toBytes(0.0));

This sixth parameter returns the result I'm interested in. Is there something I need to do differently for parameters that return results?

James Rich

It's not the software that's free; it's you.
        - billyskank on Groklaw

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.