Jpos PCLAN and GPRS port down

30 views
Skip to first unread message

Susanta Kumar

unread,
Jun 10, 2024, 11:44:56 PMJun 10
to jPOS Users
Hi team,

I am currently facing an issue with GPRS and PCLAN port down. The symptoms are as follows:

Initially, the Q2 log writer is idle, and transactions are processed successfully. However, after a couple of minutes, the port hangs and becomes unresponsive, leading to transaction failures.

Please help and let me know if you need any additional information.

Thank you.

Mark Salter

unread,
Jun 10, 2024, 11:51:15 PMJun 10
to jpos-...@googlegroups.com

Please ask a smart question  (google how).

And then with your new detailed 'smart' question, perhaps share...

- what your system is doing/receiving/sending in those 'couple of minutes'

There are ways to get detail to be output to diagnose the condition leading up to your processing being unresponsive, but for now any detail at all would be good to share in your followup question.

-- 
Mark



-------- Original Message --------
Disclaimer: This e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended addressee, or the person responsible for delivering it to them, you may not copy, forward disclose or otherwise use it or any part of it in any way. To do so may be unlawful. If you receive this e-mail by mistake, please advise the sender immediately.


--
--
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/48e97414-7d2e-4f1d-a5ad-44d7ac5613f4n%40googlegroups.com.
signature.asc

Susanta Kumar

unread,
Jun 11, 2024, 12:09:48 AMJun 11
to jpos-...@googlegroups.com
Hi Mark ,
I am new to jpos no not able to understand ur comment.
sharing the below configurations
--------99_sysmon.xml--------
<sysmon logger="Q2">
 <attr name="sleepTime" type="java.lang.Long">3600000</attr>
 <attr name="detailRequired" type="java.lang.Boolean">true</attr>
</sysmon>

--------00_logger.xml--------

<?xml version="1.0" encoding="UTF-8"?>

<logger name="Q2" class="org.jpos.q2.qbean.LoggerAdaptor">
<log-listener class="org.jpos.util.ProtectedLogListener">
<property name="protect" value="35" />
<property name="wipe" value="52" />
</log-listener>
  <log-listener class="org.jpos.util.SimpleLogListener" />
  <log-listener class="org.jpos.util.BufferedLogListener">
    <property name="max-size" value="100" />
    <property name="name" value="logger.Q2.buffered" />
  </log-listener>
 


  <!--
  <log-listener class="org.jpos.util.SysLogListener">
     <property name="facility" value="21" />
     <property name="severity" value="5" />
     <property name="tags" value="audit, syslog" />
     <property name="prefix" value="[jPOS]" />
  </log-listener>
  -->

  <log-listener class="org.jpos.util.DailyLogListener">
    <property name="window" value="86400" /> <!-- optional, default one day -->
    <!--needed-->
    <property name="prefix" value="log/q2" />
    <property name="suffix" value=".log"/> <!-- optional -->

    <!--optional the default is "-yyyy-MM-dd" -->
    <property name="date-format" value="-yyyy-MM-dd-HH"/>
    <property name="logger-level" value="2"/>
    <!--optional the default is gzip-->
    <property name="compression-format" value="gzip"/>

    <!--optional the default is .zip for zip, .gz for gzip-->
    <!--
    <property name="compressed-suffix" value=".zip"/>
    -->
   
  </log-listener>
</logger>
---------unipay_NAC.xml-----

<?xml version="1.0" ?>
<server class="org.jpos.q2.iso.QServer" logger="Q2"  name="NACServer">
<attr name="port" type="java.lang.Integer">1920</attr>
<attr name="maxSessions" type="java.lang.Integer">3000</attr>
<channel class="org.jpos.iso.channel.NACChannel"  logger="Q2" header="6000000000" packager="org.unipay.iso.packager.ISO87BINNOPackager">
</channel>
<request-listener class="org.unipay.iso.listener.UnipayQEMIRequestListener" logger="Q2"/>
</server>
-----unipay.xml---
<?xml version="1.0" ?>
<server class="org.jpos.q2.iso.QServer" logger="Q2"  name="SSLServer">
<attr name="port" type="java.lang.Integer">1980</attr>
<attr name="socketFactory">org.jpos.iso.SunJSSESocketFactory</attr>
<property name="keystore" value="../../resources/main/keystore.ImportKey"/>
<property name="clientauth" value="false"/>
<property name="serverauth" value="false"/>
<property name="storepassword" value="quickEMI345"/>
<property name="keypassword" value="quickEMI345"/>
<attr name="maxSessions" type="java.lang.Integer">3000</attr>
<channel class="org.jpos.iso.channel.NCCChannel"  logger="Q2" header="6000000000" packager="org.unipay.iso.packager.ISO87BINNOPackager">
</channel>
<request-listener class="org.unipay.iso.listener.UnipayQEMIRequestListener" logger="Q2"/>
</server>


Regards

Susanta Kumar

+91 7008585139



Mark Salter

unread,
Jun 11, 2024, 1:52:04 AMJun 11
to jpos-...@googlegroups.com
signature.asc

Andrés Alcarraz

unread,
Jun 11, 2024, 11:02:00 AMJun 11
to jpos-...@googlegroups.com

Hi Susanta,

Without the code of your request listener, I cannot tell more than this, but probably, the request listener is not returning in some cases exhausting the server’s thread pool.

Hope this point you in the right direction. If you need or want more help, please share more info, like relevant parts of the log, how many transactions it processes before hanging, are those transactions responded?

Ideally, you would move the request listener’s logic to a transaction manager, and use an IncomingParticipant

Andrés Alcarraz
Reply all
Reply to author
Forward
0 new messages