#274 Jane broken with log4j

open
nobody
None
7
2004-02-18
2004-02-18
stuart barlow
No

Code completion never works when there are log4j
classes used in a class. i.e. nearly all classes. Looks
like BCEL is having trouble finding the log4j classes.
Could be some strange classloading issue. This is
really annoying as code completion is broken.

[debug] BCELClassParser: Looking up class:
org.apache.log4j.Logger
[message] BufferHistory: Saving C:\Documents and
Settings\sbarlow\.jedit\#recent.xml#save#
[message] KillRing: Saving killring.xml
[error] WorkThread: Exception in work thread:
[error] WorkThread: java.lang.ClassNotFoundException:
Exception while looking for class
org.apache.log4j.Logger: java.io.IOException: Couldn't
find: org.apache.log4j.Logger.class
[error] WorkThread: at
org.apache.bcel.util.SyntheticRepository.loadClass(SyntheticRepository.java:160)
[error] WorkThread: at
org.apache.bcel.Repository.lookupClass(Repository.java:98)
[error] WorkThread: at
jane.parser.BCELClassParser.parse(BCELClassParser.java:83)
[error] WorkThread: at
jane.DynamicClassInfoFinder$LazyClassInfo.loadDelegate(DynamicClassInfoFinder.java:147)
[error] WorkThread: at
jane.DynamicClassInfoFinder$LazyClassInfo.getDelegate(DynamicClassInfoFinder.java:122)
[error] WorkThread: at
jane.lang.ClassInfoProxy.getMethods(ClassInfoProxy.java:134)
[error] WorkThread: at
jane.lang.Methods.<init>(Methods.java:47)
[error] WorkThread: at
jane.parser.ccparser.ParserDelegate.findDereferencedMember(ParserDelegate.java:690)
[error] WorkThread: at
jane.parser.ccparser.ParserDelegate.findResultMember(ParserDelegate.java:618)
[error] WorkThread: at
jane.parser.ccparser.JavaParser.PrimaryPrefix(JavaParser.java:2502)
[error] WorkThread: at
jane.parser.ccparser.JavaParser.PrimaryExpression(JavaParser.java:2412)
[error] WorkThread: at
jane.parser.ccparser.JavaParser.PostfixExpression(JavaParser.java:2348)
[error] WorkThread: at
jane.parser.ccparser.JavaParser.UnaryExpressionNotPlusMinus(JavaParser.java:2326)
[error] WorkThread: at
jane.parser.ccparser.JavaParser.UnaryExpression(JavaParser.java:2239)
[error] WorkThread: at
jane.parser.ccparser.JavaParser.MultiplicativeExpression(JavaParser.java:2150)
[error] WorkThread: at
jane.parser.ccparser.JavaParser.AdditiveExpression(JavaParser.java:2111)
[error] WorkThread: at
jane.parser.ccparser.JavaParser.ShiftExpression(JavaParser.java:2069)
[error] WorkThread: at
jane.parser.ccparser.JavaParser.RelationalExpression(JavaParser.java:2024)
[error] WorkThread: at
jane.parser.ccparser.JavaParser.InstanceOfExpression(JavaParser.java:2005)
[error] WorkThread: at
jane.parser.ccparser.JavaParser.EqualityExpression(JavaParser.java:1970)
[error] WorkThread: at
jane.parser.ccparser.JavaParser.AndExpression(JavaParser.java:1945)
[error] WorkThread: at
jane.parser.ccparser.JavaParser.ExclusiveOrExpression(JavaParser.java:1920)
[error] WorkThread: at
jane.parser.ccparser.JavaParser.InclusiveOrExpression(JavaParser.java:1895)
[error] WorkThread: at
jane.parser.ccparser.JavaParser.ConditionalAndExpression(JavaParser.java:1870)
[error] WorkThread: at
jane.parser.ccparser.JavaParser.ConditionalOrExpression(JavaParser.java:1845)
[error] WorkThread: at
jane.parser.ccparser.JavaParser.ConditionalExpression(JavaParser.java:1820)
[error] WorkThread: at
jane.parser.ccparser.JavaParser.Expression(JavaParser.java:1733)
[error] WorkThread: at
jane.parser.ccparser.JavaParser.VariableInitializer(JavaParser.java:1154)
[error] WorkThread: at
jane.parser.ccparser.JavaParser.VariableDeclarator(JavaParser.java:1088)
[error] WorkThread: at
jane.parser.ccparser.JavaParser.FieldDeclaration(JavaParser.java:1062)
[error] WorkThread: at
jane.parser.ccparser.JavaParser.ClassBodyDeclaration(JavaParser.java:818)
[error] WorkThread: at
jane.parser.ccparser.JavaParser.ClassBody(JavaParser.java:717)
[error] WorkThread: at
jane.parser.ccparser.JavaParser.UnmodifiedClassDeclaration(JavaParser.java:678)
[error] WorkThread: at
jane.parser.ccparser.JavaParser.ClassDeclaration(JavaParser.java:649)
[error] WorkThread: at
jane.parser.ccparser.JavaParser.TypeDeclaration(JavaParser.java:580)
[error] WorkThread: at
jane.parser.ccparser.JavaParser.CompilationUnit(JavaParser.java:546)
[error] WorkThread: at
jane.parser.ccparser.JavaParser.parse(JavaParser.java:97)
[error] WorkThread: at
jane.parser.SourceParser.parse(SourceParser.java:95)
[error] WorkThread: at
jane.Analyzer.analyze(Analyzer.java:105)
[error] WorkThread: at
jane.sidekick.JaneSideKickParser.parse(JaneSideKickParser.java:62)
[error] WorkThread: at
sidekick.SideKick$ParseRequest.run(Unknown Source)
[error] WorkThread: at
org.gjt.sp.util.WorkThread.doRequest(WorkThread.java:194)
[error] WorkThread: at
org.gjt.sp.util.WorkThread.doRequests(WorkThread.java:161)
[error] WorkThread: at
org.gjt.sp.util.WorkThread.run(WorkThread.java:135)

Discussion