DrDub / text2onto

Automatically exported from code.google.com/p/text2onto
1 stars 0 forks source link

compilation error from jasper-compiler-jdt.jar #32

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?

Please provide any additional information below.

loading settings from file C:\text2onto-070917/text2onto.properties

Preprocessor.init
Using c:\GATE-4.0 as GATE home
Using c:\GATE-4.0\plugins as installed plug-ins directory.
Using c:\GATE-4.0\gate.xml as site configuration file.
Using C:\Users\user\gate.xml as user configuration file
Using C:\Users\user\gate.session as user session file
CREOLE plugin loaded: file:/c:/GATE-4.0/plugins/ANNIE/

LinguisticPreprocessor.init: file:c://text2onto-070917/3rdparty/gate/
CREOLE plugin loaded: file:c://text2onto-070917/3rdparty/gate/
CREOLE plugin loaded: file:c:/GATE-4.0/plugins/Tools/
CREOLE plugin loaded: file:c:/GATE-4.0/plugins/Stemmer/
LinguisticPreprocessor: creating application c://text2onto-070917/3rdparty/gate/
english/application.gate ...
gate.creole.annotdelete.AnnotationDeletePR
gate.creole.tokeniser.DefaultTokeniser
Compilation error
org.eclipse.jdt.internal.compiler.classfmt.ClassFormatException
        at org.eclipse.jdt.internal.compiler.classfmt.ClassFileReader.<init>(Cla
ssFileReader.java:329)
        at gate.util.compilers.Eclipse$1.findType(Eclipse.java:198)
        at gate.util.compilers.Eclipse$1.findType(Eclipse.java:138)
        at org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.askForType
(LookupEnvironment.java:96)
        at org.eclipse.jdt.internal.compiler.lookup.UnresolvedReferenceBinding.r
esolve(UnresolvedReferenceBinding.java:43)
        at org.eclipse.jdt.internal.compiler.lookup.BinaryTypeBinding.resolveTyp
e(BinaryTypeBinding.java:97)
        at org.eclipse.jdt.internal.compiler.lookup.ParameterizedTypeBinding.res
olve(ParameterizedTypeBinding.java:816)
        at org.eclipse.jdt.internal.compiler.lookup.BinaryTypeBinding.resolveTyp
e(BinaryTypeBinding.java:111)
        at org.eclipse.jdt.internal.compiler.lookup.BinaryTypeBinding.resolveTyp
esFor(BinaryTypeBinding.java:880)
        at org.eclipse.jdt.internal.compiler.lookup.BinaryTypeBinding.getExactMe
thod(BinaryTypeBinding.java:678)
        at org.eclipse.jdt.internal.compiler.lookup.Scope.findExactMethod(Scope.
java:761)
        at org.eclipse.jdt.internal.compiler.lookup.Scope.getMethod(Scope.java:2
010)
        at org.eclipse.jdt.internal.compiler.ast.MessageSend.resolveType(Message
Send.java:384)
        at org.eclipse.jdt.internal.compiler.ast.Expression.resolve(Expression.j
ava:880)
        at org.eclipse.jdt.internal.compiler.ast.Block.resolve(Block.java:101)
        at org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration.resol
veStatements(AbstractMethodDeclaration.java:432)
        at org.eclipse.jdt.internal.compiler.ast.MethodDeclaration.resolveStatem
ents(MethodDeclaration.java:179)
        at org.eclipse.jdt.internal.compiler.ast.AbstractMethodDeclaration.resol
ve(AbstractMethodDeclaration.java:403)
        at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.resolve(TypeDec
laration.java:1047)
        at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.resolve(TypeDec
laration.java:1094)
        at org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration.reso
lve(CompilationUnitDeclaration.java:353)
        at org.eclipse.jdt.internal.compiler.Compiler.process(Compiler.java:594)

        at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:411)

        at gate.util.compilers.Eclipse.compile(Eclipse.java:364)
        at gate.util.Javac.loadClasses(Javac.java:45)
        at gate.jape.SinglePhaseTransducer.finish(SinglePhaseTransducer.java:153
)
        at gate.jape.MultiPhaseTransducer.finish(MultiPhaseTransducer.java:122)
        at gate.jape.Batch.parseJape(Batch.java:212)
        at gate.jape.Batch.<init>(Batch.java:80)
        at gate.creole.Transducer.init(Transducer.java:83)
        at gate.Factory.createResource(Factory.java:302)
        at gate.Factory.createResource(Factory.java:117)
        at gate.creole.tokeniser.DefaultTokeniser.init(DefaultTokeniser.java:72)

        at gate.Factory.createResource(Factory.java:302)
        at gate.Factory.createResource(Factory.java:97)
        at org.ontoware.text2onto.linguistic.LinguisticPreprocessor.createApplic
ation(Unknown Source)
        at org.ontoware.text2onto.linguistic.LinguisticPreprocessor.initApplicat
ion(Unknown Source)
        at org.ontoware.text2onto.linguistic.LinguisticPreprocessor.init(Unknown
 Source)
        at org.ontoware.text2onto.linguistic.LinguisticAnalyser.<init>(Unknown S
ource)
        at org.ontoware.text2onto.algorithm.AlgorithmController.<init>(Unknown S
ource)
        at org.ontoware.text2onto.algorithm.AlgorithmController.<init>(Unknown S
ource)
        at org.ontoware.text2onto.gui.Text2Onto.reset(Unknown Source)
        at org.ontoware.text2onto.gui.Text2Onto.<init>(Unknown Source)
        at org.ontoware.text2onto.gui.Text2Onto.createAndShowGUI(Unknown Source)

        at org.ontoware.text2onto.gui.Text2Onto.access$000(Unknown Source)
        at org.ontoware.text2onto.gui.Text2Onto$1.run(Unknown Source)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
        at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:744)
        at java.awt.EventQueue.access$400(EventQueue.java:97)
        at java.awt.EventQueue$3.run(EventQueue.java:697)
        at java.awt.EventQueue$3.run(EventQueue.java:691)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDo
main.java:75)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:714)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThre
ad.java:201)
        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.
java:116)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
ad.java:105)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)

        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
Error: The type java.util.Comparator cannot be resolved. It is indirectly refere
nced from required .class files at line 20 in japeactionclasses.postprocesssimpl
eJoinActionClass0

The offending input was:

 1  // postprocesssimpleJoinActionClass0
 2  package japeactionclasses;
 3  import java.io.*;
 4  import java.util.*;
 5  import gate.*;
 6  import gate.jape.*;
 7  import gate.creole.ontology.Ontology;
 8  import gate.annotation.*;
 9  import gate.util.*;
10
11  public class postprocesssimpleJoinActionClass0
12  implements java.io.Serializable, RhsAction {
13    public void doit(Document doc, java.util.Map bindings,
14                     AnnotationSet annotations,
15                     AnnotationSet inputAS, AnnotationSet outputAS,
16                     Ontology ontology) {
17
18  {
19    gate.AnnotationSet toRemove = (gate.AnnotationSet)bindings.get("left");
20    annotations.removeAll(toRemove);  java.util.ArrayList tokens = new java.ut
il.ArrayList(toRemove);  Collections.sort(tokens, new gate.util.OffsetComparator
());
21    String text = "";
22    Iterator tokIter = tokens.iterator();
23    while(tokIter.hasNext())
24      text += (String)((Annotation)tokIter.next()).getFeatures().get("string")
;
25
26    gate.FeatureMap features = Factory.newFeatureMap();
27    features.put("kind", "word");
28    features.put("string", text);
29    features.put("length", Integer.toString(text.length()));
30    features.put("orth", "apostrophe");
31    annotations.add(toRemove.firstNode(), toRemove.lastNode(), "Token", featur
es);
32
33  }
34    }
35  }

Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
        at org.ontoware.text2onto.gui.Text2Onto.reset(Unknown Source)
        at org.ontoware.text2onto.gui.Text2Onto.<init>(Unknown Source)
        at org.ontoware.text2onto.gui.Text2Onto.createAndShowGUI(Unknown Source)

        at org.ontoware.text2onto.gui.Text2Onto.access$000(Unknown Source)
        at org.ontoware.text2onto.gui.Text2Onto$1.run(Unknown Source)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
        at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:744)
        at java.awt.EventQueue.access$400(EventQueue.java:97)
        at java.awt.EventQueue$3.run(EventQueue.java:697)
        at java.awt.EventQueue$3.run(EventQueue.java:691)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDo
main.java:75)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:714)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThre
ad.java:201)
        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.
java:116)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
ad.java:105)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)

        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

Original issue reported on code.google.com by sriram.ksb@gmail.com on 27 May 2014 at 8:46

GoogleCodeExporter commented 9 years ago
I fixed the problem myself by using Java 7 because jasper.jdt-compiler.jar 
doesn't work with java 8 (1.8 version). 

Original comment by sriram.ksb@gmail.com on 27 May 2014 at 10:28