openRDF.org Welcome Guest   | Login   
  Search  
  Index  | Recent Threads  | Who's Online  | User List  | Search  | Help  | RSS feeds

Forum has been closed down
This forum has been closed down due to extensive spamming activities. Please use the mailing list instead.


Quick Go »
Thread Status: Normal
Total posts in this thread: 3
[Add To My Favorites] [Watch this Thread]
Author
Previous Thread This topic has been viewed 1661 times and has 2 replies Next Thread
Jun 30, 2006 11:01:13 AM

terraces
Member



Joined: Dec 12, 2005
Posts: 12
Status: Offline

Cannot compile Sesame CVS

Hi,

I've got a strange error when trying to compile Sesame CVS

compile:
[javac] Compiling 25 source files to /home/alex/rdf/openrdf2/build/classes
[javac] An exception has occurred in the compiler (1.5.0_07). Please file a bug at the Java Developer Connection (http://java.sun.com/webapps/bugreport) after checking the Bug Parade for duplicates. Include your program and the following diagnostic in your report. Thank you.
[javac] java.lang.AssertionError: {unused}
[javac] at com.sun.tools.javac.tree.TreeMaker$AnnotationBuilder.visitArray(TreeMaker.java:634)
[javac] at com.sun.tools.javac.code.Attribute$Array.accept(Attribute.java:124)
[javac] at com.sun.tools.javac.tree.TreeMaker$AnnotationBuilder.translate(TreeMaker.java:637)
[javac] at com.sun.tools.javac.tree.TreeMaker$AnnotationBuilder.visitCompoundInternal(TreeMaker.java:628)
[javac] at com.sun.tools.javac.tree.TreeMaker$AnnotationBuilder.translate(TreeMaker.java:641)
[javac] at com.sun.tools.javac.tree.TreeMaker.Annotation(TreeMaker.java:649)
[javac] at com.sun.tools.javac.tree.TreeMaker.Annotations(TreeMaker.java:570)
[javac] at com.sun.tools.javac.tree.TreeMaker.VarDef(TreeMaker.java:554)
[javac] at com.sun.tools.javac.comp.Lower.visitIterableForeachLoop(Lower.java:2892)
[javac] at com.sun.tools.javac.comp.Lower.visitForeachLoop(Lower.java:2755)
[javac] at com.sun.tools.javac.tree.Tree$ForeachLoop.accept(Tree.java:597)
[javac] at com.sun.tools.javac.comp.Lower.translate(Lower.java:1881)
[javac] at com.sun.tools.javac.tree.TreeTranslator.translate(TreeTranslator.java:54)
[javac] at com.sun.tools.javac.tree.TreeTranslator.visitBlock(TreeTranslator.java:145)
[javac] at com.sun.tools.javac.comp.Lower.visitBlock(Lower.java:2927)
[javac] at com.sun.tools.javac.tree.Tree$Block.accept(Tree.java:535)
[javac] at com.sun.tools.javac.comp.Lower.translate(Lower.java:1881)
[javac] at com.sun.tools.javac.comp.Lower.visitIf(Lower.java:2382)
[javac] at com.sun.tools.javac.tree.Tree$If.accept(Tree.java:715)
[javac] at com.sun.tools.javac.comp.Lower.translate(Lower.java:1881)
[javac] at com.sun.tools.javac.tree.TreeTranslator.translate(TreeTranslator.java:54)
[javac] at com.sun.tools.javac.tree.TreeTranslator.visitBlock(TreeTranslator.java:145)
[javac] at com.sun.tools.javac.comp.Lower.visitBlock(Lower.java:2927)
[javac] at com.sun.tools.javac.tree.Tree$Block.accept(Tree.java:535)
[javac] at com.sun.tools.javac.comp.Lower.translate(Lower.java:1881)
[javac] at com.sun.tools.javac.tree.TreeTranslator.visitTry(TreeTranslator.java:200)
[javac] at com.sun.tools.javac.tree.Tree$Try.accept(Tree.java:669)
[javac] at com.sun.tools.javac.comp.Lower.translate(Lower.java:1881)
[javac] at com.sun.tools.javac.tree.TreeTranslator.translate(TreeTranslator.java:54)
[javac] at com.sun.tools.javac.tree.TreeTranslator.visitBlock(TreeTranslator.java:145)
[javac] at com.sun.tools.javac.comp.Lower.visitBlock(Lower.java:2927)
[javac] at com.sun.tools.javac.tree.Tree$Block.accept(Tree.java:535)
[javac] at com.sun.tools.javac.comp.Lower.translate(Lower.java:1881)
[javac] at com.sun.tools.javac.tree.TreeTranslator.visitTry(TreeTranslator.java:200)
[javac] at com.sun.tools.javac.tree.Tree$Try.accept(Tree.java:669)
[javac] at com.sun.tools.javac.comp.Lower.translate(Lower.java:1881)
[javac] at com.sun.tools.javac.tree.TreeTranslator.translate(TreeTranslator.java:54)
[javac] at com.sun.tools.javac.tree.TreeTranslator.visitBlock(TreeTranslator.java:145)
[javac] at com.sun.tools.javac.comp.Lower.visitBlock(Lower.java:2927)
[javac] at com.sun.tools.javac.tree.Tree$Block.accept(Tree.java:535)
[javac] at com.sun.tools.javac.comp.Lower.translate(Lower.java:1881)
[javac] at com.sun.tools.javac.tree.TreeTranslator.visitMethodDef(TreeTranslator.java:129)
[javac] at com.sun.tools.javac.comp.Lower.visitMethodDefInternal(Lower.java:2267)
[javac] at com.sun.tools.javac.comp.Lower.visitMethodDef(Lower.java:2186)
[javac] at com.sun.tools.javac.tree.Tree$MethodDef.accept(Tree.java:478)
[javac] at com.sun.tools.javac.comp.Lower.translate(Lower.java:1881)
[javac] at com.sun.tools.javac.comp.Lower.visitClassDef(Lower.java:1989)
[javac] at com.sun.tools.javac.tree.Tree$ClassDef.accept(Tree.java:434)
[javac] at com.sun.tools.javac.comp.Lower.translate(Lower.java:1881)
[javac] at com.sun.tools.javac.comp.Lower.translate(Lower.java:1901)
[javac] at com.sun.tools.javac.comp.Lower.translateTopLevelClass(Lower.java:3064)
[javac] at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:486)
[javac] at com.sun.tools.javac.main.Main.compile(Main.java:592)
[javac] at com.sun.tools.javac.main.Main.compile(Main.java:544)
[javac] at com.sun.tools.javac.Main.compile(Main.java:67)
[javac] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[javac] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[javac] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[javac] at java.lang.reflect.Method.invoke(Method.java:585)
[javac] at org.apache.tools.ant.taskdefs.compilers.Javac13.execute(Javac13.java:55)
[javac] at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:931)
[javac] at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:757)
[javac] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
[javac] at org.apache.tools.ant.Task.perform(Task.java:364)
[javac] at org.apache.tools.ant.Target.execute(Target.java:341)
[javac] at org.apache.tools.ant.Target.performTasks(Target.java:369)
[javac] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
[javac] at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
[javac] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
[javac] at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
[javac] at org.apache.tools.ant.Main.runBuild(Main.java:668)
[javac] at org.apache.tools.ant.Main.startAnt(Main.java:187)
[javac] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
[javac] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)

Even if I can't find the origin of the bug, it seems to be related with Java, and regarding sun's bugtracking system and the answer they gave me, it have been fixed in Java6, but not in Java5:
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6294589

As I don't know if that's related to my config:
- Are Sesame developers aware of this, and is that related with the current state of code in the CVS ?
- If not, which configuration are you using to compile Sesame2CVS ?

Thanks for your help

(nb: I'm running Java5 / ant 1.6.5 on Debian unstable)
Show Printable Version of Post        Hidden to Guest    http://apassant.net [Link] Report threatening or abusive post: please login first  Go to top 
Jun 30, 2006 11:31:10 AM

jeen
Sesame Addict
Member's Avatar

The Netherlands
Joined: Jan 23, 2004
Posts: 1091
Status: Offline
Re: Cannot compile Sesame CVS

Peculiar, I've never encountered this before, it compiles fine here, both from Eclipse and just running Ant on the command line (using Java 1.5.0_06 on Windows XP myself).

In any case, the culprit is most likely line 558 in org.openrdf.sesame.tools.Console which contains a suppressWarnings annotation inside a for-loop. It could also be line 750 in org.openrdf.sesame.sailimpl.nativerdf.BTree, but I'm putting my money on the first one. Can you try if removing the annotation fixes the problem?
----------------------------------------
Researcher at AFSG - Wageningen UR
Show Printable Version of Post     [Link] Report threatening or abusive post: please login first  Go to top 
Jun 30, 2006 12:03:39 PM

terraces
Member



Joined: Dec 12, 2005
Posts: 12
Status: Offline

Re: Cannot compile Sesame CVS

release-sesame:
BUILD SUCCESSFUL

*you win*

I removed the first lines and it works fine, thanks a lot.
Show Printable Version of Post        Hidden to Guest    http://apassant.net [Link] Report threatening or abusive post: please login first  Go to top 
[Show Printable Version of Thread]