Menu

NPE

Help
2006-11-06
2013-04-29
  • Dawie Malan

    Dawie Malan - 2006-11-06

    since updating from SVN this morning (2006/11/06) I'm getting the following exception:

    Exception in thread "Thread-11" java.lang.NullPointerException
            at java.util.regex.Matcher.getTextLength(Matcher.java:1127)
            at java.util.regex.Matcher.reset(Matcher.java:284)
            at java.util.regex.Matcher.<init>(Matcher.java:205)
            at java.util.regex.Pattern.matcher(Pattern.java:879)
            at net.sf.jml.protocol.incoming.IncomingUSR$1.getPassportUrlSlow(IncomingUSR.java:136)
            at net.sf.jml.protocol.incoming.IncomingUSR$1.getPassportUrl(IncomingUSR.java:151)
            at net.sf.jml.protocol.incoming.IncomingUSR$1.run(IncomingUSR.java:195)

     
    • Dawie Malan

      Dawie Malan - 2006-11-06

      This exception only occurs on FreeBSD and Linux (CentOS), but works fine on Windows.

       
      • Daniel Henninger

        That's extremely bizarre!  I did nothing to anything that would have affected that!  I've been doing most my testing on Mac OS X, but also a little on Linux.  What did you update from?  (like had you been keeping up with SVN daily?)

         
    • Dawie Malan

      Dawie Malan - 2006-11-06

      Yes, I update daily, but I don't think it's something that you changed recently, I just haven't tried it on Linux until today.

      I've done some more debugging, and it seems related to SSL. Have a look at this discussion: http://forum.java.sun.com/thread.jspa?threadID=567433&start=0.

      I modified IncomingUSR.java a bit:

                              conn.setUseCaches(false);
                              Matcher matcher = passportUrlPattern.matcher(conn
                                      .getHeaderField("PassportURLs"));

      to

                              conn.setUseCaches(false);
                              conn.connect();
                              Matcher matcher = passportUrlPattern.matcher(conn
                                      .getHeaderField("PassportURLs"));

      Now I get this exception:

      javax.net.ssl.SSLKeyException: RSA premaster secret error
              at com.sun.net.ssl.internal.ssl.PreMasterSecret.<init>(PreMasterSecret.java:86)
      ....
      Caused by: java.security.NoSuchAlgorithmException: Cannot find any provider supporting RSA/ECB/PKCS1Padding
              at javax.crypto.Cipher.getInstance(DashoA12275)
      ....

      I've installed the JCE Unlimited Strenght policy files, but it did not help.

      What VM are you using?

      I'm on Sun's JDK 1.5.0_06, but will try JRockit later tonight, maybe that solves the problem.

       
    • Dawie Malan

      Dawie Malan - 2006-11-07

      Apologies, it was caused by a classloading issue, and is work fine now.

       
      • Daniel Henninger

        Whew.  =)  Thanks for letting me know!

         

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.