Issues with upgrade from 4.6.2 to 5.2.4 accessing AS400 .net

We are attempting to upgrade our application from version 4.6.2 to 5.2.4. Our application uses ApplinX to call AS400 programs from a .net c# application.

We have updated the repository to the latest version and copied all of the
new generated code into our application.

We have updated our application to use the updated interfaces for request and response.

We are able to successfully connect to the remote AS400 (rpcSession) but when we try to call (invoke) the remote program we get the following error.

An error occured while running service.\nLegacy Type returnCode: Data, ���������\0\0\0\aNEXTGEN���� \0\0\0\bAU100002����\0 \0\0\0$4B137C17-6170-BABC-8124-85B244A4393B\0\0\0\0

Hi Mark,
It seems like compatibility problems that caused by incorrect binary client generating.
Did you regenerate the binary client?
Please also check if the procedures are working through the 2380:

http://<Your_Server>:2380/applinx/services?GX_Xsl=xsl/services.xsl

Waiting for your replay,
Asaf

I have checked all the DLLs and recreated all the generated code but I get the same problem. The program fails before calling the AS400 program in the serializer/deserializer. What other information can I provide to analyse this issue.

Hi Mark,
In order to solve this problem we will need a copy of your original DB, and a copy of the DB after your upgrade.
Also can you tell me what platform Applinx is running?
Thanks in advance,
Asaf

Hi,

I have included the old and new database files as attachments

The server details from the logs are

2008-06-10 16:00:55,383 [Worker #1] INFO > :Administrator: Log file restarted
2008-06-10 16:00:55,383 [Worker #1] INFO > :Administrator: * THIS PRODUCT IS LICENSED TO: AFIG Wholesale Pty Ltd *
2008-06-10 16:00:55,383 [Worker #1] INFO > :Administrator: * Current license is valid for 2 users. *
2008-06-10 16:00:55,383 [Worker #1] INFO > :Administrator: * License expiration date: Unlimited *
2008-06-10 16:00:55,383 [Worker #1] INFO > :Administrator: ApplinX Server 5.2.4.0011 running
2008-06-10 16:00:55,383 [Worker #1] INFO > :Administrator: System info: JVM Vendor=[Sun Microsystems Inc.] Version=[1.4.2_08] Operating System=[Windows XP 5.1] Encoding=[Cp1252]

Hope this helps

Mark T

Hi Mark,
As you can see the files you attached are not here. :wink:
Try to zip them and attach the zip file - this should work.
Thanks,
Asaf

Here are the databases
leap-config_old-v46.zip (20.6 KB)

Hi Mark,
Can you tell me if there is specific procedure in which the error occurred?
Also can you send me the full server log?
Thanks,
Asaf

Hi,

I fails on our first call to procedure ProcessBroker method ProcessBrokerStateful. It seems to fail in the deserializer (see stack trace below)

I have tried to call the same procedure using the web interface and get the message
Service raised an error: /QSYS.LIB/%LIBL%.LIB/ARPAUPR.PGM: Object does not exist. However the program does exist in the library list.

With the XML


N

NEXTGEN


AU67890



0




MTHOMPSON
blahblah


Stacktrace

at com.sabratec.applinx.binary.GXService.checkForError(GXIDeserializationExecuter deserializer)
at com.sabratec.applinx.binary.GXService.executeInternal(String method, GXISelfSerializable input, GXISelfSerializable context, Class outputType)
at com.sabratec.applinx.binary.GXService.execute(String method, GXISelfSerializable input, GXISelfSerializable context, Class outputType)
at LEAP.ProcessBrokerService.ProcessBrokerStateful(ProcessBrokerRequest request, RPCSession rpcSession) in C:\Backup of myWorkspaces\LeapSolution\Leap.Common\ApplinX client\ProcessBroker.cs:line 28
at Afig.Leap.Command.BrokerCommand.Invoke(GXIProcedureRequest pRequest) in C:\Backup of myWorkspaces\LeapSolution\Leap.Common\Afig\Leap\Command\BrokerCommand.cs

Server Log
2008-06-10 16:00:55,383 [Worker #1] INFO > :Administrator: Log file restarted
2008-06-10 16:00:55,383 [Worker #1] INFO > :Administrator: * THIS PRODUCT IS LICENSED TO: AFIG Wholesale Pty Ltd *
2008-06-10 16:00:55,383 [Worker #1] INFO > :Administrator: * Current license is valid for 2 users. *
2008-06-10 16:00:55,383 [Worker #1] INFO > :Administrator: * License expiration date: Unlimited *
2008-06-10 16:00:55,383 [Worker #1] INFO > :Administrator: ApplinX Server 5.2.4.0011 running
2008-06-10 16:00:55,383 [Worker #1] INFO > :Administrator: System info: JVM Vendor=[Sun Microsystems Inc.] Version=[1.4.2_08] Operating System=[Windows XP 5.1] Encoding=[Cp1252]
2008-06-17 10:37:22,161 [Worker #4] ERROR > LEAP:Administrator: Procedure binary executer Cannot return error message to binary client: Connection reset

Hope this helps

Hi Mark,
It would be very helpful if you can send us full log (As txt file) so we can examine this problem. Please reset the log and then reproduce the problem and send us the relevant log.

Did you change something in the program definition (Input/Output, parameters properties, etc.)
Thanks,
Asaf

And also is the XML code you post here is the full XML?
If not please send us the file zipped.
Thanks,
Asaf