Menu

Problem with CTKs SimpleApp

Help
Johan
2004-08-30
2013-04-02
  • Johan

    Johan - 2004-08-30

    Hi

    I have tried to run the sample application SimpleApp with its WPersonNamePresence2 widget and a discoverer as stated in the installation instructions on http://contexttoolkit.sourceforge.net/documentation/InstallationGuide.html. (I use the ctk-12292003 release.)
    However, after starting the widget the discoverer outputs some scary info about a NullPointerException like this:

    id=Discoverer_mr-data_6000
    LeaseKeeper <removeLease>
    LeasesKeeper <removeLease> new leases ={}
    Lease nbTimeSlots = 10000
    Lease - start date=Fri Aug 27 16:34:16 CEST 2004
    - end=Fri Sep 03 15:14:16 CEST 2004
    java.lang.NullPointerException
       at context.arch.comm.protocol.HTTPClientSocket.stripReplyProtocol(HTTPClientSocket.java:156)
       at context.arch.comm.CommunicationsObject.sendRequest(CommunicationsObject.java:523)
       at context.arch.comm.CommunicationsObject.sendRequest(CommunicationsObject.java:607)
       at context.arch.comm.CommunicationsObject.handleIncomingRequest(CommunicationsObject.java:882)
       at context.arch.comm.protocol.HTTPMulticastUDPSocket.handleIncomingRequest(HTTPMulticastUDPSocket.java:74)
       at context.arch.comm.protocol.MulticastUDPSocket.run(MulticastUDPSocket.java:188)
       at java.lang.Thread.run(Unknown Source)
    HTTPClientSocket stripReplyProtocol Exception: java.lang.NullPointerException
    CommunicationsObject handleIncomingRequest(packet) ProtocolException: context.arch.comm.protocol.ProtocolException:
    java.lang.NullPointerException
       at context.arch.comm.protocol.HTTPClientSocket.stripReplyProtocol(HTTPClientSocket.java:156)
       at context.arch.comm.CommunicationsObject.sendRequest(CommunicationsObject.java:523)

    I have tried recompiling the Context Toolkit with Java 1.4.2_05 and 1.5.0 beta 2, but the null pointer exception still occur. (Additionally, I tried java 1.3.1_12 but since the toolkit uses classes not included in that release it didn't compile.)

    Have anyone encountered this before? and do you know of any solution?

    --johan

     
    • hofmannma

      hofmannma - 2005-12-07

      hello johan,

      have a look at my new Thread in this sektion...

      Martin

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.