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:
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
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
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