Context jpos null

Skip to first unread message

Dec 14, 2022, 7:39:03 AM12/14/22
to jPOS Users
Hi everyone

I use jpos in Banking project.
Sometimes the jpos context becomes null
I register transaction in jpos contex, therfore I miss transaction

This happens sometimes and not always.
public abstract class ContextBase extends org.jpos.transaction.Context 

//region Constants
private static final long serialVersionUID = 7527289953970401520L;

protected final Request request;
protected final Response response;
//endregion Constants

//region Fields

private Direction direction;
private InteractionPoint interactionPoint;
private MessageFunctionIndicator functionIndicator;

private TransactionUniqueType transactionUniqueType;

private Object requestTransaction;

//endregion Fields

//region Constructor

public ContextBase() {
request = initialRequest();
response = initialResponse();

Alejandro Revilla

Dec 14, 2022, 8:22:40 AM12/14/22
Based on the code you shared, I don't think it's possible to provide any reasonable answer.

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:
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
To view this discussion on the web visit

murtuza chhil

Dec 14, 2022, 9:16:03 PM12/14/22
to jPOS Users

What are you doing with your "custom"  ContextBase? using it in place of the jpos Context?

The Context that jpos provides and uses has to be Serializable. The txn mgr I believe uses this to save the context when stopping and reads it when starting (I don't know if its related to your problem, but there is not much else I can determine from your post).


Reply all
Reply to author
0 new messages