Error at time of JPOS SERVER implementation

111 views
Skip to first unread message

Reeturaj Sahoo

unread,
Nov 14, 2022, 7:15:45 AM11/14/22
to jPOS Users
Hello ,

We created a JPOS server  and tested with JPOS client  in locally(Windows) and application running in embedded tomcat  we are able to connect  and transfer data in between them but when we are deploy that JPOS server application in Linux sever after when we request to send data from JPOS client we are getting below error.

14-Nov-2022 15:36:31.385 INFO [http-nio-8000-exec-1] org.apache.coyote.http11.Http11Processor.service Error parsing HTTP request header
 Note: further occurrences of HTTP request parsing errors will be logged at DEBUG level.
        java.lang.IllegalArgumentException: Invalid character found in method name [0x00'08000x82 ]. HTTP method names must be tokens
                at org.apache.coyote.http11.Http11InputBuffer.parseRequestLine(Http11InputBuffer.java:434)
                at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:511)
                at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
                at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:831)
                at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1651)
                at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
                at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
                at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
                at java.lang.Thread.run(Thread.java:748)



We are implement Jpos Q2 server.


Kindly suggest way forward.



Alejandro Revilla

unread,
Nov 14, 2022, 7:25:06 AM11/14/22
to jpos-...@googlegroups.com
You are sending a raw ISO8583 message to an HTTP server. It will never work.

Reeturaj Sahoo

unread,
Nov 14, 2022, 8:03:14 AM11/14/22
to jpos-...@googlegroups.com
Thanks for Update .

Kindly suggest how to do that we need to deploy in server any document for this.

--
--
jPOS is licensed under AGPL - free for community usage for your open-source project. Licenses are also available for commercial usage. Please support jPOS, contact: sa...@jpos.org
---
You received this message because you are subscribed to the Google Groups "jPOS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jpos-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/CAAgSK%3DkwmjftuFXB6reWs4KXqTh%2BuV3wiRdXCUdh3NF4DVcx%3DA%40mail.gmail.com.


--
Thanks & Regards
    Reeturaj

Alejandro Revilla

unread,
Nov 14, 2022, 8:09:57 AM11/14/22
to jpos-...@googlegroups.com

Reeturaj Sahoo

unread,
Nov 14, 2022, 9:11:16 AM11/14/22
to jpos-...@googlegroups.com
I have implemented as per your link by following :  http://jpos.org/doc/tutorials/jpos-gateway.pdf  
In local and getting below log in server application which is running in my system in windows.
<log realm="Q2.system" at="2022-11-14T19:27:39.452">
  <info>
    Q2 started, deployDir=C:\ProdWorkspace\cardissuerswitch\deploy, environment=default
  </info>
</log>
2022-11-14 19:27:39.835  INFO 5516 --- [           main] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat started on port(s): 8082 (http) with context path ''
2022-11-14 19:27:39.842  INFO 5516 --- [           main] c.e.demo.CardissuerswitchApplication     : Started CardissuerswitchApplication in 2.284 seconds (JVM running for 3.572)
<log realm="Q2.system" at="2022-11-14T19:27:40.132" lifespan="670ms">
  <version>
    jPOS 2.1.7 master/7079725 (2022-01-22 18:50:13 UYT)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

jPOS Community Edition, licensed under GNU AGPL v3.0.
This software is probably not suitable for commercial use.
Please see http://jpos.org/license for details.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Darwin)

iQEcBAEBAgAGBQJMolHDAAoJEOQyeO71nYtFv74H/3OgehDGEy1VXp2U3/GcAobg
HH2eZjPUz53r38ARPiU3pzm9LwDa3WZgJJaa/b9VrJwKvbPwe9+0kY3gScDE1skT
ladHt+KHHmGQArEutkzHlpZa73RbroFEIa1qmN6MaDEHGoxZqDh0Sv2cpvOaVYGO
St8ZaddLBPC17bSjAPWo9sWbvL7FgPFOHhnPmbeux8SLtnfWxXWsgo5hLBanKmO1
1z+I/w/6DL6ZYZU6bAJUk+eyVVImJqw0x3IEElI07Nh9MC6BA4iJ77ejobj8HI2r
q9ulRPEqH9NR79619lNKVUkE206dVlXo7xHmJS1QZy5v/GT66xBxyDVfTduPFXk=
=oP+v
-----END PGP SIGNATURE-----

  </version>
</log>
<log realm="Q2.system" at="2022-11-14T19:27:40.258" lifespan="121ms">
  <info>
    deploy: C:\ProdWorkspace\cardissuerswitch\deploy\50_xml_server.xml
  </info>
</log>
<log realm="Q2.system" at="2022-11-14T19:27:40.281" lifespan="23ms">
  <info>
    deploy: C:\ProdWorkspace\cardissuerswitch\deploy\txnmanager.xml
  </info>
</log>
<log realm="xml-server-8000.server" at="2022-11-14T19:27:40.301">
  <iso-server>
    listening on port 8000
  </iso-server>
</log>
<log realm="org.jpos.transaction.TransactionManager" at="2022-11-14T19:27:40.302">
  <info>
    start Thread[Thread-7,5,main]
  </info>
</log>
<log realm="org.jpos.transaction.TransactionManager" at="2022-11-14T19:27:40.302">
  <info>
    start Thread[Thread-8,5,main]
  </info>
</log>
<log realm="xml-server-8000.server.session/127.0.0.1:29201" at="2022-11-14T19:28:09.711">
  <session-start/>
</log>
<log realm="xml-server-8000/127.0.0.1:29201" at="2022-11-14T19:28:09.713" lifespan="1ms">
  <receive>
    <isomsg direction="incoming">
      <!-- org.jpos.iso.packager.EuroPackager -->
      <field id="0" value="0800"/>
      <field id="7" value="2023444444"/>
      <field id="11" value="679977"/>
      <field id="70" value="001"/>
    </isomsg>
  </receive>
</log>
Space name listenertransient:default
Data received
sourceorg.jpos.iso.channel.PostChannel@5ccc8e15
select method of groupselector
mti0800
Data receive in prepare
Space nametransient:default
Testing
Data receive in prepare
 <isomsg direction="incoming">
   <!-- org.jpos.iso.packager.EuroPackager -->
   <field id="0" value="0800"/>
   <field id="7" value="2023444444"/>
   <field id="11" value="679977"/>
   <field id="70" value="001"/>
 </isomsg>
send message
sourceorg.jpos.iso.channel.PostChannel@5ccc8e15
<log realm="xml-server-8000/127.0.0.1:29201" at="2022-11-14T19:28:09.719" lifespan="1ms">
  <send>
    <isomsg direction="outgoing">
      <!-- org.jpos.iso.packager.EuroPackager -->
      <field id="0" value="0810"/>
      <field id="7" value="2023444444"/>
      <field id="11" value="679977"/>
      <field id="38" value="003831"/>
      <field id="39" value="00"/>
      <field id="49" value="978"/>
      <field id="70" value="001"/>
    </isomsg>
  </send>
</log>
Data receive in server for commit
<log realm="xml-server-8000/127.0.0.1:29201" at="2022-11-14T19:28:09.720" lifespan="5ms">
  <receive>
    <peer-disconnect/>
  </receive>
</log>
<log realm="xml-server-8000.server.session/127.0.0.1:29201" at="2022-11-14T19:28:09.721">
  <session-end/>
</log>
<log realm="org.jpos.transaction.TransactionManager" at="2022-11-14T19:28:09.721" lifespan="5ms">
  <commit>
    SimpleTransactionManager-1:idle:1
    <context>
      c.e.d.Constants.REQUEST_KEY:
       <isomsg direction="incoming">
         <!-- org.jpos.iso.packager.EuroPackager -->
         <field id="0" value="0800"/>
         <field id="7" value="2023444444"/>
         <field id="11" value="679977"/>
         <field id="70" value="001"/>
       </isomsg>
     
      c.e.d.Constants.RESOURCE_KEY: org.jpos.iso.channel.PostChannel@5ccc8e15
      c.e.d.Constants.RESPONSE_KEY:
       <isomsg direction="outgoing">
         <!-- org.jpos.iso.packager.EuroPackager -->
         <field id="0" value="0810"/>
         <field id="7" value="2023444444"/>
         <field id="11" value="679977"/>
         <field id="38" value="003831"/>
         <field id="39" value="00"/>
         <field id="49" value="978"/>
         <field id="70" value="001"/>
       </isomsg>
     
    </context>
            prepare: c.e.d.Switch:Switch PREPARED READONLY NO_JOIN
           selector: 'null'
            prepare: c.e.d.IsoServerQ2 PREPARED
             commit: c.e.d.IsoServerQ2
     in-transit=0/0, head=2, tail=2, paused=0, outstanding=0, active-sessions=2/2, tps=0, peak=0, avg=0.00, elapsed=5ms
    <profiler>
      prepare: c.e.d.Switch:Switch [0.9/0.9]
      prepare: c.e.d.IsoServerQ2 [1.8/2.8]
       commit: c.e.d.IsoServerQ2 [0.2/3.0]
      end [3.8/6.8]
    </profiler>
  </commit>
</log>

I want to deploy that server application(which I create in spring boot application maven war file )in linux server when I deploy  after any request send to that server that time getting an error  for method not allowed.

Note: further occurrences of HTTP request parsing errors will be logged at DEBUG level.
        java.lang.IllegalArgumentException: Invalid character found in method name [0x00'08000x82 ]. HTTP method names must be tokens
                at org.apache.coyote.http11.Http11InputBuffer.parseRequestLine(Http11InputBuffer.java:434)
                at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:511)
                at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)


Any guidance how can i deploy my server application in linux server




Mark Salter

unread,
Nov 14, 2022, 9:42:05 AM11/14/22
to jpos-...@googlegroups.com
That output - if I am reading your verbose email cleanly - is the old issue, so I would suspect that you deployed the previous attempt (or still had it running) instead of this new example .

Time for a smart question (please search) I suggest, pehaps also include what you are trying to achieve.


-- 
Mark


Sent from Proton Mail mobile



-------- Original Message --------
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/CAGyTqrmy6aBgv-G%2BED268z_6v3kJfvGDJ3nrqEw5N13exzf%2B8w%40mail.gmail.com.
signature.asc

Reeturaj Sahoo

unread,
Nov 15, 2022, 1:38:17 AM11/15/22
to jpos-...@googlegroups.com
I m trying deploy my jpos server application in any server so that any client can access and send message

Mark Salter

unread,
Nov 15, 2022, 4:10:50 PM11/15/22
to jpos-...@googlegroups.com
Google "ask a smart question" and have a go at following that guidance.



-- 
Mark


Sent from Proton Mail mobile



-------- Original Message --------
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/CAGyTqrkSWphW9Eqb4kMkHB7o6dSvUY72aX8-k2ntEM%2BRQ9kdBg%40mail.gmail.com.
signature.asc

Reeturaj Sahoo

unread,
Dec 5, 2022, 5:22:27 AM12/5/22
to jPOS Users
Hello ,

As per document we have implement and still not able to get ISOMSG data in server getting parsing error.

Mark Salter

unread,
Dec 5, 2022, 7:14:06 AM12/5/22
to jpos-...@googlegroups.com
Hello.

I think we still need a "smart question" from one of you to get you further along.


-- 
Mark


Sent from Proton Mail mobile



-------- Original Message --------
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/2b1d16e6-22ff-4a8c-a155-fdd001296373n%40googlegroups.com.
signature.asc

murtuza chhil

unread,
Dec 5, 2022, 7:09:29 PM12/5/22
to jPOS Users
Parsing error will point to 1. You have not picked the right channel and/or 2. Your packager is not correct.

Always share errors/exceptions in the jpos q2 log or whatever you use for logging.
Always imagine yourself in our shoes and decide if this information were given to you would you be able to troubleshoot it.

-chhil

Reeturaj Sahoo

unread,
Dec 6, 2022, 1:10:12 AM12/6/22
to jpos-...@googlegroups.com
Hello Chill,

Thanks for the update.

For information I am using POSTChannel on the client side to send data to the server.
and using Europackager .

and note in my local system i am able to send ISOMsg data from client , also receive in server JPOS and do operation on that data and able to send back to client with success or failure response in DE39.

The issue is when I deploy that application in a linux server I get an error which I mentioned above .


If anything more information is needed . Please let me know.














You received this message because you are subscribed to a topic in the Google Groups "jPOS Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jpos-users/Oq5pO3Y19vY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jpos-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/a496b9d9-35d0-4fea-87ca-293268e298efn%40googlegroups.com.

Mark Salter

unread,
Dec 6, 2022, 1:40:48 AM12/6/22
to jpos-...@googlegroups.com
What is different between your setups?

Why is the Http entry point being used in the deployed instance?



-- 
Mark


Sent from Proton Mail mobile



-------- Original Message --------
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/CAGyTqrmCWGkNt0ty-v%2Bfa8u4vibwDLqs3%2BKEGbF9tXDA%3D0c50g%40mail.gmail.com.
signature.asc

Reeturaj Sahoo

unread,
Dec 6, 2022, 2:22:37 AM12/6/22
to jpos-...@googlegroups.com
Difference is when i am trying deploy .war file in tomcat server  at that time i m getting issue 

but locally I'm running in STS(Spring tool suite).

Andrés Alcarraz

unread,
Dec 6, 2022, 6:17:44 AM12/6/22
to jPOS Users
Can you tell us in which port is your server application listening?

Are you sure it is starting ok and there is no conflict with a web server listening on the same port?

Can you send both logs, of server and client?

Enviado desde mi móvil, disculpas por la brevedad

Reeturaj Sahoo

unread,
Dec 7, 2022, 2:57:32 AM12/7/22
to jpos-...@googlegroups.com
Hello ,

I am using 8000 for the server listening port.

and PFA for log file for both client and server(local and server) and in its log its showing server started.








locallogfileforjposclient.txt
serverlogfileforjposclient.txt
locallogfileforjposserver.txt
serverlogfileforjposserver.txt

Mark Salter

unread,
Dec 7, 2022, 8:54:27 AM12/7/22
to jpos-...@googlegroups.com
For http or for the jpos server, no clash.

I will let those with more paitience than I can spare to try to help, a smart question would have saved us all a lot of time.

M



-- 
Mark


Sent from Proton Mail mobile



-------- Original Message --------
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/CAGyTqr%3DbF9ROUaOgaVyfDPtUUdz6MKWgjZ5bbGDEiZ2%3D9Gudqg%40mail.gmail.com.
signature.asc

Mark Salter

unread,
Dec 7, 2022, 9:07:22 AM12/7/22
to jpos-...@googlegroups.com
And this sentence should have been a question...

"For http or for the jpos server, no clash?"

You are in control of the Client and the server so you have all the details.

Apache is processing a message - perhaps the binary bytes of the request it is not clear.
Make certain the ports of http versus jpos server are not clashing or otherwise being intercepted.

More checks of your setup are needed and for that to happen here more detail will need to be shared - as would be included in a smart question...

.. http://www.catb.org/~esr/faqs/smart-questions.html

Since the url has not been shared by me for a while and the OP perhaps could not locate my intent and ask.


-- 
Mark


Sent from Proton Mail mobile



-------- Original Message --------
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/wQ4qWcQWYrCKVt7r78wMdhVDq6ZlJIyVDDC4gBCwvQVkqtXqSR4HqK495EkDZam71ADlX1ieu6qd1T-ti3EZUVeMlwnYz4WcaPLqRrhat6U%3D%40pm.me.
signature.asc

murtuza chhil

unread,
Dec 7, 2022, 7:56:01 PM12/7/22
to jPOS Users
locallogfileforjposclient.txt

standalone client from your client-server (no apache)
Client sends a 0100 and receives a 0110
locallogfileforjposserver.txt
standalone server from your client-server (no apache)
This is a log file for client server talking and a everything works, the logging is from the server.
serverlogfileforjposserver.txt
The client sent a ISO Message to the HTTP server on port 8000 and you can see that the http server complaining that it needs a message in the HTTP protocol format. 

07-Dec-2022 13:19:37.615 INFO [http-nio-8000-exec-1] org.apache.coyote.http11.Http11Processor.service Error parsing HTTP request header
 Note: further occurrences of HTTP request parsing errors will be logged at DEBUG level.
        java.lang.IllegalArgumentException: Invalid character found in method name [0x000xce01000xf68 ]. HTTP method names must be tokens
                at org.apache.coyote.http11.Http11InputBuffer.parseRequestLine(Http11InputBuffer.java:434)
                at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:511)
                at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
                at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:831)
                at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1651)
                at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
                at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
                at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
                at java.lang.Thread.run(Thread.java:748)
serverlogfileforjposclient.txt
After the http parsing error above I have no idea what your JPOS server is getting and its basically complaining that the postchannel header in the message has X bytes and there a less than X bytes in the message following the header.

java.io.EOFException
    at java.base/java.io.DataInputStream.readFully(DataInputStream.java:202)
    at org.jpos.iso.BaseChannel.getMessage(BaseChannel.java:554)
    at org.jpos.iso.BaseChannel.receive(BaseChannel.java:738)
    at org.isu.main.JpossClientApp.main(JpossClientApp.java:72)

-chhil

Reeturaj Sahoo

unread,
Dec 8, 2022, 2:00:56 AM12/8/22
to jpos-...@googlegroups.com
Thanks chill,mark
for understanding and explaining exactly where the issue is.

Now it's solved.

In Linux server deploy folder xml file is missing after adding its work










Reply all
Reply to author
Forward
0 new messages