Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

signer information errors in org.eclipse.jdt classes #3325

Closed
joelmoniz opened this issue May 27, 2015 · 4 comments
Closed

signer information errors in org.eclipse.jdt classes #3325

joelmoniz opened this issue May 27, 2015 · 4 comments

Comments

@joelmoniz
Copy link
Member

A sketch with only a setup() method in it does not seem to be displaying properly. The sketch used is:

void setup() {
  size(320, 240);
  rect(20,20,50,50);
}

The sketch throws the following error stack trace repeatedly:

java.lang.SecurityException: class "org.eclipse.jdt.core.compiler.IScanner"'s signer information does not match signer information of other classes in the same package
    at java.lang.ClassLoader.checkCerts(ClassLoader.java:895)
    at java.lang.ClassLoader.preDefineClass(ClassLoader.java:665)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:758)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:467)
    at java.net.URLClassLoader.access$100(URLClassLoader.java:73)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:368)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:362)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:361)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
    at org.eclipse.jdt.internal.core.dom.rewrite.ASTRewriteFormatter.formatString(ASTRewriteFormatter.java:246)
    at org.eclipse.jdt.internal.core.dom.rewrite.ASTRewriteFormatter.formatNode(ASTRewriteFormatter.java:376)
    at org.eclipse.jdt.internal.core.dom.rewrite.ASTRewriteFormatter.getFormattedResult(ASTRewriteFormatter.java:187)
    at org.eclipse.jdt.internal.core.dom.rewrite.ASTRewriteAnalyzer.doTextInsert(ASTRewriteAnalyzer.java:1339)
    at org.eclipse.jdt.internal.core.dom.rewrite.ASTRewriteAnalyzer$ListRewriter.rewriteList(ASTRewriteAnalyzer.java:631)
    at org.eclipse.jdt.internal.core.dom.rewrite.ASTRewriteAnalyzer$ListRewriter.rewriteList(ASTRewriteAnalyzer.java:550)
    at org.eclipse.jdt.internal.core.dom.rewrite.ASTRewriteAnalyzer.rewriteModifiers2(ASTRewriteAnalyzer.java:1539)
    at org.eclipse.jdt.internal.core.dom.rewrite.ASTRewriteAnalyzer.visit(ASTRewriteAnalyzer.java:1992)
    at org.eclipse.jdt.core.dom.MethodDeclaration.accept0(MethodDeclaration.java:611)
    at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2711)
    at org.eclipse.jdt.internal.core.dom.rewrite.ASTRewriteAnalyzer.doVisit(ASTRewriteAnalyzer.java:405)
    at org.eclipse.jdt.internal.core.dom.rewrite.ASTRewriteAnalyzer.voidVisitList(ASTRewriteAnalyzer.java:443)
    at org.eclipse.jdt.internal.core.dom.rewrite.ASTRewriteAnalyzer.voidVisit(ASTRewriteAnalyzer.java:437)
    at org.eclipse.jdt.internal.core.dom.rewrite.ASTRewriteAnalyzer.doVisitUnchangedChildren(ASTRewriteAnalyzer.java:450)
    at org.eclipse.jdt.internal.core.dom.rewrite.ASTRewriteAnalyzer.visit(ASTRewriteAnalyzer.java:1675)
    at org.eclipse.jdt.core.dom.TypeDeclaration.accept0(TypeDeclaration.java:453)
    at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2711)
    at org.eclipse.jdt.internal.core.dom.rewrite.ASTRewriteAnalyzer.doVisit(ASTRewriteAnalyzer.java:405)
    at org.eclipse.jdt.internal.core.dom.rewrite.ASTRewriteAnalyzer.voidVisitList(ASTRewriteAnalyzer.java:443)
    at org.eclipse.jdt.internal.core.dom.rewrite.ASTRewriteAnalyzer.voidVisit(ASTRewriteAnalyzer.java:437)
    at org.eclipse.jdt.internal.core.dom.rewrite.ASTRewriteAnalyzer.doVisitUnchangedChildren(ASTRewriteAnalyzer.java:450)
    at org.eclipse.jdt.internal.core.dom.rewrite.ASTRewriteAnalyzer.visit(ASTRewriteAnalyzer.java:1655)
    at org.eclipse.jdt.core.dom.CompilationUnit.accept0(CompilationUnit.java:207)
    at org.eclipse.jdt.core.dom.ASTNode.accept(ASTNode.java:2711)
    at org.eclipse.jdt.core.dom.InternalASTRewrite.rewriteAST(InternalASTRewrite.java:101)
    at org.eclipse.jdt.core.dom.AST.rewrite(AST.java:3077)
    at org.eclipse.jdt.core.dom.CompilationUnit.rewrite(CompilationUnit.java:929)
    at processing.mode.java.pdex.XQPreprocessor.doYourThing(XQPreprocessor.java:96)
    at processing.mode.java.pdex.ErrorCheckerService.checkCode(ErrorCheckerService.java:513)
    at processing.mode.java.pdex.ErrorCheckerService.run(ErrorCheckerService.java:369)
    at java.lang.Thread.run(Thread.java:745)
java.lang.SecurityException: class "org.eclipse.jdt.core.compiler.IScanner"'s signer information does not match signer information of other classes in the same package
(etc.)

The present output with the sketch is as follows:

image

However, the following sketch works fine, but still throws the above mentioned error stack trace continuously, :

void setup() {
  size(320, 240);
}

void draw() {
  rect(20,20,50,50);
}

And its output is as expected:

image

@aengelke
Copy link
Contributor

I think that the AST exception is another issue. The setup issue is likely the same as #3315.

@benfry
Copy link
Contributor

benfry commented Jun 1, 2015

@joelmoniz That looks like you have Eclipse JARs somewhere in your CLASSPATH (or you're using a bad mode) that are conflicting.

The other part is indeed #3315.

@benfry benfry changed the title Sketch with only setup() does not display properly signer information errors in org.eclipse.jdt classes Jun 1, 2015
@benfry benfry changed the title signer information errors in org.eclipse.jdt classes signer information errors in org.eclipse.jdt classes Jun 1, 2015
@joelmoniz
Copy link
Member Author

Thank you. Indeed, there was something wrong with the JAR files somewhere, and an ant clean followed by a fresh build fixed the java.lang.SecurityException. I've added the rest of the information to #3315 in this comment before closing this issue.

@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants