as_els | 1 Sep 11:57 2005
Picon

although i have a complete ISOMsg I still have a NullpointerException in the ser

Server code is like this 

package finaljposproject;
import org.jpos.iso.ISOSource;
import org.jpos.iso.ISOMsg;
import org.jpos.iso.ServerChannel;
import org.jpos.iso.ISOServer;
import org.jpos.util.Logger;
import org.jpos.util.SimpleLogListener;
import org.jpos.util.LogSource;
import org.jpos.iso.channel.*;
import org.jpos.iso.packager.XMLPackager;
import org.jpos.iso.ISOChannel;
import org.jpos.iso.packager.ISO87APackager;
import org.jpos.iso.ISOException;
import org.jpos.iso.ISORequestListener;
import org.jpos.apps.qsp.RequestDispatcher;
import java.io.*;

public class Server_test implements ISORequestListener {

  public Server_test()
  {
    super();
  }
  public boolean process (ISOSource source, ISOMsg m) {
    try {
        m.setResponseMTI ();
        m.set (39, "00");
        source.send (m);
(Continue reading)

Alejandro Revilla | 1 Sep 12:15 2005

Re: although i have a complete ISOMsg I still have a NullpointerException in the ser

Can you show us the exception ?

------------------------ Yahoo! Groups Sponsor --------------------~--> 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/saFolB/TM
--------------------------------------------------------------------~-> 

 
as_els | 1 Sep 12:53 2005
Picon

the exception I've got is like this

first when running the server

<log realm="server" at="Thu Sep 01 14:54:43 IDT 2005.866">
  <iso-server>
    listening on port 8080
  </iso-server>
</log>

then when running the channel_test class i get

<log realm="server" at="Thu Sep 01 14:55:32 IDT 2005.286">
  <connect>
    localhost:8080
  </connect>
</log>

<log realm="server" at="Thu Sep 01 14:55:32 IDT 2005.666">
  <send>
    <isomsg direction="outgoing">
      <field id="0" value="0800"/>
      <field id="11" value="000001"/>
      <field id="41" value="00000001"/>
    </isomsg>
  </send>
</log>

and in the server i get that exception 

</log>
java.lang.NullPointerException
(Continue reading)

chhil | 1 Sep 13:29 2005
Picon

Re: the exception I've got is like this

Hi,

Can you put a breakpoint on line 201 of org.jpos.iso.ISOServer class and see 
what object is null? or if you can break on nullpointer exceptions when you 
run your code you will probably get an idea of what object is null. (I am 
assuming you are using an IDE that is capabale of doing this).
What verion of jpos are you using? I ask this since your line number takes 
me to a different location.

-chhil

On 9/1/05, as_els <as_els@...> wrote:
> 
> first when running the server
> 
> <log realm="server" at="Thu Sep 01 14:54:43 IDT 2005.866">
> <iso-server>
> listening on port 8080
> </iso-server>
> </log>
> 
> then when running the channel_test class i get
> 
> <log realm="server" at="Thu Sep 01 14:55:32 IDT 2005.286">
> <connect>
> localhost:8080
> </connect>
> </log>
> 
> <log realm="server" at="Thu Sep 01 14:55:32 IDT 2005.666">
(Continue reading)

Alejandro Revilla | 1 Sep 13:44 2005

Re: the exception I've got is like this


Which jPOS version are you using?

That's a known bug in 1.4.6 (it's fixed now in CVS). 
(ISOServer 1.26 http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/jpos/jpos/src/main/org/jpos/iso/ISOServer.java)

This doesn't happen if you use either QSP or Q2 to launch your components.

The work around involves calling setConfiguration on your ISOServer
(with a dummy configuration), i.e:

   server.setConfiguration (new SimpleConfiguration ());

Anyway, you'd do better with the latest & greatest version that you
could get via CVS or by using jPOS-EE-SDK 
(http://jpos.org/ee/jPOS-EE-SDK.pdf)

--Alejandro

On Thu, Sep 01, 2005 at 10:53:19AM -0000, as_els wrote:
> first when running the server
> 
> <log realm="server" at="Thu Sep 01 14:54:43 IDT 2005.866">
>   <iso-server>
>     listening on port 8080
>   </iso-server>
> </log>
> 
> then when running the channel_test class i get
> 
(Continue reading)

fifteencigarettes | 1 Sep 14:11 2005
Picon

Re: Q2ServiceMBean

--- In jpos-dev@..., Alejandro Revilla <apr <at> j...> wrote:
> I believe that file is autogenerated by maven using xdoclet
> (Alwyn will have the final word here).
> 
> For the records, you may want to try this pre-compiled version:
> 
> http://jpos.org/download/q2mbean-1.0.sar

Many thanks Alejandro. I'm not much a Maven maven, so I was trying to
tweak it to build with Ant ;). Is JPos moving over to Maven in general
as a build tool, or is it just this project?

Also, is the typical usage pattern for the JBoss MBean to put the JPos
libraries in the server/lib directory, or bundle them into the service
archive? Just curious to hear how others do it.

Cheers
Mark

------------------------ Yahoo! Groups Sponsor --------------------~--> 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/saFolB/TM
--------------------------------------------------------------------~-> 

 
Alejandro Revilla | 1 Sep 14:35 2005

Re: Re: Q2ServiceMBean

> 
> Many thanks Alejandro. I'm not much a Maven maven, so I was trying to
> tweak it to build with Ant ;). Is JPos moving over to Maven in general
> as a build tool, or is it just this project?
> 
No... we are not moving to Maven. As a matter of fact, if you can give
us Ant build scripts we will be happy to add them to the CVS repository.

>
> Also, is the typical usage pattern for the JBoss MBean to put the JPos
> libraries in the server/lib directory, or bundle them into the service
> archive? Just curious to hear how others do it.
> 
Never used this module, but if I recall correctly, there were some
discussions in this list about this specific question, you may want to
review the archives.

------------------------ Yahoo! Groups Sponsor --------------------~--> 
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/saFolB/TM
--------------------------------------------------------------------~-> 

 
Enrick Lopez | 1 Sep 17:50 2005
Picon

VAPChannel error

Hello if some one can help me out with this exception I will apreciate it a 
lot.

We normally use our custom package for packing the data under NACChannel.

Lately we are starting to use VAPChannel and we receive the follwoing error 
below.

Any help regarding this will be highly appreciated..

Thanks

Enrick Lopez

    <exception name="null">
    java.lang.NullPointerException
        at org.jpos.iso.ISOUtil.str2bcd(ISOUtil.java:313)
        at org.jpos.iso.header.BASE1Header.setSource(BASE1Header.java:135)
        at org.jpos.iso.header.BASE1Header.<init>(BASE1Header.java:87)
        at 
org.jpos.iso.channel.VAPChannel.sendMessageHeader(VAPChannel.java:186
)
        at org.jpos.iso.BaseChannel.send(BaseChannel.java:418)
        at org.jpos.iso.channel.VAPChannel.send(VAPChannel.java:246)
        at org.jpos.iso.ISOMUX.doTransmit(ISOMUX.java:374)
        at org.jpos.iso.ISOMUX.run(ISOMUX.java:398)
        at java.lang.Thread.run(Thread.java:534)
    </exception>
  </send>
</log>
(Continue reading)

Alejandro Revilla | 1 Sep 18:00 2005

Re: VAPChannel error

>
> Hello if some one can help me out with this exception I will apreciate it a 
> lot.
> 
I think your message is carrying a non BASE1Header (this may happen if
you receive the message using NACChannel and then send it using
VAPChannel).

You may want to call m.setHeader(null) before channel.send, 
so VAPChannel would use its default.

------------------------ Yahoo! Groups Sponsor --------------------~--> 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/saFolB/TM
--------------------------------------------------------------------~-> 

 
Picon

Re: VAPChannel error

Hi all, I don't like very much the way the channels handle message
headers, in general the header format is defined by the channel, so is
frecuent (at least on my implementations) that a message comming from a
server with some header format, is routed through a channel with a
different header, like in this example.
I think we could add a new channel property that says if channel header
should be overriden by message header, this property should be false by
default for backward compatibility.

If you agree I can make this modification as soon as I have time for that.
By now I am handling this situations with a filter, but I don't like to
have to use a filter in such a common situation, that could be handled
much easier at channel level.

Best regards

Andrés

Alejandro Revilla wrote:

>>Hello if some one can help me out with this exception I will apreciate it a 
>>lot.
>>
>>    
>>
>I think your message is carrying a non BASE1Header (this may happen if
>you receive the message using NACChannel and then send it using
>VAPChannel).
>
>You may want to call m.setHeader(null) before channel.send, 
(Continue reading)


Gmane