I don't know, I think I might be crazy by the time I solve this. I have 
pinpointed the problem, but I do not yet understand it.

I did a code comparison on my local copy and the remote copy of 
XStreamSerializer.java (first with diff, then by reading every line with 
my own two eyes). They are identical in every way. 

When I build the muse-util-xstream module using our build system, Maven 
compiles the code with JDK 1.4.2_05 and creates a JAR file from it. 
Maven's verbose mode and the manifest file in the JAR confirm that it used 
JDK 1.4.2_05. This JAR does not work - it causes the error you've all seen 
on the client side. I also notice that the line that the stack trace 
points to is line 211, which is not capable of producing an NPE (it says 
'return getSerializableType();'). Odd.

When I build the muse-util-xstream module with javac and jar - no Maven 
involved - it also does not work. Again, JDK 1.4.2_05 versions of javac 
and jar. Client fails.

HOWEVER, when I go into Eclipse and select XStreamSerializer.java, 
right-click, and select Export -> JAR file, the JAR that I get DOES work. 
It's also much smaller than the other JARs. My Eclipse project settings 
show that I am using JDK 1.4.2_05 for build tasks.

So, the XStream module, when built with Maven or manually with javac/jar, 
does not deserialize XML properly. When I allow Eclipse to do the work 
(presumably with javac/jar...), everything is fine. I am continuing to 
look for differences so that we can solve this. In the meantime, the JAR 
file I've attached should work for you if you place it in your *client's* 
classpath.

Dan





"David Medinets" <[EMAIL PROTECTED]> wrote on 11/03/2006 01:18:32 
PM:

> Dan, thanks for responding so quickly to all of our questions! You
> might not be crazy. There are a lot of moving parts to this kind of
> software.
> 
> On 11/3/06, Daniel Jemiolo <[EMAIL PROTECTED]> wrote:
> > Okay, I have some good news (sort of). Andrew was able to reproduce 
this,
> > which means that I'm the one who's crazy.  ;)
> 
> -- 
> David Medinets
> Affy Agile Advice & Coding
> http://www.affy.com/
> http://www.linkedin.com/in/affyadvice
> 
> Writing tested complex code, so you don't have to!
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to