logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 49265] New: log4j - java.io.OptionalDataException
Date Fri, 07 May 2010 19:19:32 GMT

           Summary: log4j - java.io.OptionalDataException
           Product: Log4j
           Version: 1.2
          Platform: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Appender
        AssignedTo: log4j-dev@logging.apache.org
        ReportedBy: tumultuousCT@yahoo.com

I'm running 10.6.3 w/ the latest Java install. I'm trying to get a genomics
program to work - I didn't use to have problems with it, but now I keep getting
this message. I've spent hours messing with the CLASSPATH and other random
things, but none of it helps. If I do a simple hello world program - it works.
I downloaded the latest log4j - when I use the installation manual's suggested
test program, the compiler lists 6 errors just trying to compile it. Does
anyone know what is going on? Of course, when I look at sun.com, they state the
following for java.io.OptionalDataException:
"public class OptionalDataException. extends ObjectStreamException
Exception indicating the failure of an object read operation due to unread
primitive data, or the end of data belonging to a serialized object in the
stream. This exception may be thrown in two cases:
An attempt was made to read an object when the next element in the stream is
primitive data. In this case, the OptionalDataException's length field is set
to the number of bytes of primitive data immediately readable from the stream,
and the eof field is set to false.
An attempt was made to read past the end of data consumable by a class-defined
readObject or readExternal method. In this case, the OptionalDataException's
eof field is set to true, and the length field is set to 0. "

Well that's not very helpful to a total java newbie like myself. It seems like
there are many things screwed up on my system since even though I downloaded
log4j, and then also installed the jakarta-log4j port through macports, neither
of these things resolved the issue. 

Please help!
at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1340)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
at util.gen.IO.fetchObject(IO.java:953)
at trans.main.LoadIntervalOligoInfo.run(LoadIntervalOligoInfo.java:44)
at trans.main.LoadIntervalOligoInfo.main(LoadIntervalOligoInfo.java:192)
log4j:WARN No appenders could be found for logger (util.gen.IO).
log4j:WARN Please initialize the log4j system properly.
Indexing intervals by chromosome and start position
Exception in thread "main" java.lang.NullPointerException
at trans.main.LoadIntervalOligoInfo.run(LoadIntervalOligoInfo.java:49)
at trans.main.LoadIntervalOligoInfo.main(LoadIntervalOligoInfo.java:192) 

When I try to install log4j w/ maven, I get the following:
Test org.apache.log4j.CoreTestSuite failed
and a bunch of other crap.

Please help!

Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org

View raw message