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)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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?)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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)
This exception only occurs on FreeBSD and Linux (CentOS), but works fine on Windows.
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?)
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.
Apologies, it was caused by a classloading issue, and is work fine now.
Whew. =) Thanks for letting me know!