[seam-issues] [JBoss JIRA] Commented: (SEAM-38) new-entity command throws java.lang.NoSuchMethodError: org.eclipse.jdt.internal.compiler.impl.CompilerOptions.getSeverity(J)I

Martin Gencur (JIRA) jira-events at lists.jboss.org
Fri Mar 11 04:59:45 EST 2011


    [ https://issues.jboss.org/browse/SEAM-38?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12587369#comment-12587369 ] 

Martin Gencur commented on SEAM-38:
-----------------------------------

The only difference in dependencies I found between Seam3 and standalone Forge was the jansi library. In Seam 3 there is a jansi.jar (version 1.2.1) while in Forge distribution there is a jansi-1.5.jar. But I don't think this is related.

> new-entity command throws java.lang.NoSuchMethodError: org.eclipse.jdt.internal.compiler.impl.CompilerOptions.getSeverity(J)I
> -----------------------------------------------------------------------------------------------------------------------------
>
>                 Key: SEAM-38
>                 URL: https://issues.jboss.org/browse/SEAM-38
>             Project: Seam 3
>          Issue Type: Bug
>          Components: Build Infrastructure
>         Environment: Affects CR2 version.
>            Reporter: Martin Gencur
>             Fix For: 3.0.0.Final
>
>
> When I run the new-entity command from within Forge's console I'm getting the following exception. This works fine with standalone Forge 1.0.0.Alpha2 but in the Seam distribution is fails which implies some packaging defect. 
> [test] test $ new-entity --named Martin
> In which package you'd like to create this @Entity, or enter for default: [com.mgencur.domain] 
> ***ERROR*** [new-entity] org.eclipse.jdt.internal.compiler.impl.CompilerOptions.getSeverity(J)I
> org.jboss.seam.forge.shell.exceptions.CommandExecutionException: org.eclipse.jdt.internal.compiler.impl.CompilerOptions.getSeverity(J)I
> 	at org.jboss.seam.forge.shell.command.Execution.perform(Execution.java:144)
> 	at org.jboss.seam.forge.shell.command.fshparser.FSHRuntime.run(FSHRuntime.java:125)
> 	at org.jboss.seam.forge.shell.command.fshparser.FSHRuntime.run(FSHRuntime.java:63)
> 	at org.jboss.seam.forge.shell.ShellImpl.execute(ShellImpl.java:659)
> 	at org.jboss.seam.forge.shell.ShellImpl.doShell(ShellImpl.java:552)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	at org.jboss.weld.bean.proxy.AbstractBeanInstance.invoke(AbstractBeanInstance.java:48)
> 	at org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:125)
> 	at org.jboss.seam.forge.shell.org$jboss$weld$bean-classpath-ManagedBean-class_org$jboss$seam$forge$shell$ShellImpl_$$_WeldClientProxy.doShell(org$jboss$weld$bean-classpath-ManagedBean-class_org$jboss$seam$forge$shell$ShellImpl_$$_WeldClientProxy.java)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	at org.jboss.weld.util.reflection.SecureReflections$13.work(SecureReflections.java:305)
> 	at org.jboss.weld.util.reflection.SecureReflectionAccess.run(SecureReflectionAccess.java:54)
> 	at org.jboss.weld.util.reflection.SecureReflectionAccess.runAsInvocation(SecureReflectionAccess.java:163)
> 	at org.jboss.weld.util.reflection.SecureReflections.invoke(SecureReflections.java:299)
> 	at org.jboss.weld.introspector.jlr.WeldMethodImpl.invokeOnInstance(WeldMethodImpl.java:188)
> 	at org.jboss.weld.introspector.ForwardingWeldMethod.invokeOnInstance(ForwardingWeldMethod.java:59)
> 	at org.jboss.weld.injection.MethodInjectionPoint.invokeOnInstanceWithSpecialValue(MethodInjectionPoint.java:198)
> 	at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:270)
> 	at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:253)
> 	at org.jboss.weld.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:222)
> 	at org.jboss.weld.manager.BeanManagerImpl.notifyObservers(BeanManagerImpl.java:632)
> 	at org.jboss.weld.manager.BeanManagerImpl.fireEvent(BeanManagerImpl.java:619)
> 	at org.jboss.weld.manager.BeanManagerImpl.fireEvent(BeanManagerImpl.java:613)
> 	at org.jboss.seam.forge.shell.Bootstrap.init(Bootstrap.java:75)
> 	at org.jboss.seam.forge.shell.Bootstrap.main(Bootstrap.java:63)
> Caused by: java.lang.reflect.InvocationTargetException
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	at org.jboss.seam.forge.shell.command.Execution.perform(Execution.java:140)
> 	... 30 more
> Caused by: java.lang.NoSuchMethodError: org.eclipse.jdt.internal.compiler.impl.CompilerOptions.getSeverity(J)I
> 	at org.eclipse.jdt.internal.core.util.CommentRecorderParser.initializeScanner(CommentRecorderParser.java:241)
> 	at org.eclipse.jdt.internal.compiler.parser.Parser.<init>(Parser.java:877)
> 	at org.eclipse.jdt.internal.core.util.CommentRecorderParser.<init>(CommentRecorderParser.java:38)
> 	at org.eclipse.jdt.core.dom.CompilationUnitResolver.parse(CompilationUnitResolver.java:391)
> 	at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:885)
> 	at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:651)
> 	at org.jboss.seam.forge.parser.JavaParser.parse(JavaParser.java:125)
> 	at org.jboss.seam.forge.parser.JavaParser.create(JavaParser.java:164)
> 	at org.jboss.seam.forge.spec.jpa.NewEntityPlugin.newEntity(NewEntityPlugin.java:86)
> 	... 35 more
> To reproduce the bug:
> 1) unpack the Seam 3 CR2 distribution 
> 2) run ${SEAM_HOME}/forge/forge  (currently you need to do also chmod +x forge)
> 3) run "new-project --named test --topLevelPackage com.mgencur --projectFolder /tmp/test"
> 4) run "persistence setup --provider HIBERNATE --container JBOSS_6"
> 5) run "set VERBOSE true" (to see the whole exception)
> 6) run "new-entity --named Martin"

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the seam-issues mailing list