× 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.



I have a java method that I am calling from RPG, which seems not to be
receiving the tns parameter. When I debug the method the variable tns is not
available (CPF7E12), and errors out deep inside the soap process. When the
method is called from a java program, the method works.

I think that the problem is that the string array is not being passed
correctly but I can't determine why.

Any suggestions?

The Java method definition is:
public com.verisign.soa.soap.objects.TnList
getSpecificTnList(java.lang.String[] tns)

The RPG prototype is:
D getSpecificTnList...                                                    
D                 PR              O   ExtProc(*JAVA :                     
D                                       'LocalTransactionAdapter_pkg.+    
D                                        LocalTransactionAdapter+         
D                                        SoapBindingStub' :               
D                                       'getSpecificTnList')              
D                                     Class(*JAVA :                       
D                                       'com.verisign.soa.soap.objects.+  
D                                        TnList')                         
D                                 O   Class(*JAVA : 'java.lang.String')   
D                                     Dim(32767)                          

The array being passed is:
D jANIs           S               O   Class(*JAVA : 'java.lang.String')  
D                                     Dim(32767)                         


The RPG code is:

For x = 1 to aniList.Elements;              
   jANIs(x) = constructJString(             
     %Trim(%EditC(aniList.ani(x) : 'Z')));  
EndFor;                                     


jTnList = getSpecificTnList(jLTAConnection(spidIndex) : jANIs); 

The error is:
Message . . . . :   Java exception received when calling Java method.

Cause . . . . . :   RPG procedure LTAGETSPEC in program DJCHRIS/PDS4410

  received Java exception "org.apache.axis.AxisFault:

  java.lang.NullPointerException" when calling method "getSpecificTnList"
with 
  signature "([Ljava.lang.String;)Lcom.verisign.soa.soap.objects.TnList;" in

  class
"LocalTransactionAdapter_pkg.LocalTransactionAdapterSoapBindingStub".  


Duane



NOTICE: This electronic mail transmission may contain confidential
information and is intended only for the person(s) named.  Any use, copying
or disclosure by any other person is strictly prohibited. If you have
received this transmission in error, please notify the sender via e-mail.




As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.