[JBoss JIRA] (FORGE-873) Scaffold doesn't shows the correct referenced entities in edit views, while in details views shows something like "org.forgetest.model.Entity@5f9ba38e"
by Vineet Reynolds (JIRA)
[ https://issues.jboss.org/browse/FORGE-873?page=com.atlassian.jira.plugin.... ]
Vineet Reynolds closed FORGE-873.
---------------------------------
Fix Version/s: 1.3.3.Final
(was: 1.x Future)
Resolution: Done
Pushed upstream: https://github.com/forge/core/commit/065e3161858eb804174dfcb525e313eb02c7...
The selectOneMenu widgets are generated with labels whenever these happen to be lookups on other entities. The behavior of depending on toString() is done away with, since this is not dependable as demonstrated here.
Additionally, due to Metawidget limitations, it is not possible to determine whether a toString() method is defined on an entity, and then adjust the generated widget. Hence, we now generate labels containing the primary keys of the other side of the relationship.
This is also done for the search results when a reference to another entity is displayed, and also when a link is displayed to another entity in the view screen.
> Scaffold doesn't shows the correct referenced entities in edit views, while in details views shows something like "org.forgetest.model.Entity@5f9ba38e"
> -------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: FORGE-873
> URL: https://issues.jboss.org/browse/FORGE-873
> Project: Forge
> Issue Type: Bug
> Components: Scaffold
> Affects Versions: 1.2.3.Final
> Environment: JBoss 7.1.1 final , Hibernate 4.2.0.final,
> Reporter: claudio perrotta
> Assignee: Vineet Reynolds
> Fix For: 1.3.3.Final
>
>
> For a table with a foreign key the UI permits to select the possible values, but this values are listed in a dropdown menu in a form like "org.forgetest.model.Entity@5f9ba38e" (would be preferable that the string present be relative to the PK referenced)
> Anyway, after setting this field and submitting the form, the data are inserted in the table correctly but when i want to modify the record, the UI doesn't show the setted value for the foreign key and i must set it again before saving.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 9 months
[JBoss JIRA] (FORGE-994) Eclipse is not runnign newly created forge web project
by Nick Boldt (JIRA)
[ https://issues.jboss.org/browse/FORGE-994?page=com.atlassian.jira.plugin.... ]
Nick Boldt commented on FORGE-994:
----------------------------------
Can you list what JBoss Tools features you have installed? Help > About > Install Details > Features > click Provider column to sort > ...
> Eclipse is not runnign newly created forge web project
> ------------------------------------------------------
>
> Key: FORGE-994
> URL: https://issues.jboss.org/browse/FORGE-994
> Project: Forge
> Issue Type: Bug
> Components: UI - Eclipse
> Affects Versions: 1.3.2.Final
> Environment: Windows XP, Eclipse Kepler, Forge 1.3.2, Maven 3
> Reporter: Rajmahendra Hegde
>
> I created a new forge project in Eclipse forge plugin
> run scaffold to create a JSF project and when i right click the project i don't see Run as Server. I see a option of make as deplorable . its also not working.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 9 months
[JBoss JIRA] (FORGE-994) Eclipse is not runnign newly created forge web project
by George Gastaldi (JIRA)
[ https://issues.jboss.org/browse/FORGE-994?page=com.atlassian.jira.plugin.... ]
George Gastaldi commented on FORGE-994:
---------------------------------------
Hi Rajmahendra,
According to the [~nickboldt]:
{quote}
<nickboldt> AFAIU "make deployable" and "run on server" requires a) that you've installed the Server Tools (org.jboss.ide.eclipse.as.feature, etc.) and that you have a server config'd on which to run it
{quote}
> Eclipse is not runnign newly created forge web project
> ------------------------------------------------------
>
> Key: FORGE-994
> URL: https://issues.jboss.org/browse/FORGE-994
> Project: Forge
> Issue Type: Bug
> Components: UI - Eclipse
> Affects Versions: 1.3.2.Final
> Environment: Windows XP, Eclipse Kepler, Forge 1.3.2, Maven 3
> Reporter: Rajmahendra Hegde
>
> I created a new forge project in Eclipse forge plugin
> run scaffold to create a JSF project and when i right click the project i don't see Run as Server. I see a option of make as deplorable . its also not working.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 9 months
[JBoss JIRA] (FORGE-986) java.net.ConnectException when ProjectFactory.findProject() for a web module
by Vincent Sevel (JIRA)
[ https://issues.jboss.org/browse/FORGE-986?page=com.atlassian.jira.plugin.... ]
Vincent Sevel closed FORGE-986.
-------------------------------
Resolution: Duplicate Issue
> java.net.ConnectException when ProjectFactory.findProject() for a web module
> ----------------------------------------------------------------------------
>
> Key: FORGE-986
> URL: https://issues.jboss.org/browse/FORGE-986
> Project: Forge
> Issue Type: Bug
> Affects Versions: 1.3.2.Final
> Environment: windows, jdk6
> Reporter: Vincent Sevel
>
> my web module contains a web.xml as follow:
> {code}
> <!DOCTYPE web-app PUBLIC
> "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
> "http://java.sun.com/dtd/web-app_2_3.dtd" >
> <web-app>
> <display-name>${project.groupId}</display-name>
> <servlet>
> <servlet-name>MyWS</servlet-name>
> <servlet-class>com.lodh.dummy.MyWS</servlet-class>
> <load-on-startup>1</load-on-startup>
> </servlet>
> <!-- Add a servlet entry point per WebService -->
> <servlet-mapping>
> <servlet-name>MyWS</servlet-name>
> <url-pattern>/MyWS</url-pattern>
> </servlet-mapping>
> <error-page>
> <error-code>401</error-code>
> <location>/error-blank.html</location>
> </error-page>
> </web-app>
> {code}
> my forge command looks like this:
> {code}
> MavenCoreFacet mvn = project.getFacet(MavenCoreFacet.class);
> DirectoryResource projectRoot = project.getProjectRoot();
> Model pom = mvn.getPOM();
> out.println(indent1 + "project pom parent: " + pom.getId());
> List<String> modules = pom.getModules();
> if (modules != null) {
> for (String module : modules) {
> Project subProject = factory.findProject(projectRoot.getChildDirectory(module));
> MavenCoreFacet mvnModule = subProject.getFacet(MavenCoreFacet.class);
> out.println(indent1 + "project Module: " + mvnModule.getPOM().getId());
> }
> }
> {code}
> launching the command fails with the following stacktrace:
> {code}
> java.net.ConnectException: Connection timed out: connect
> at java.net.PlainSocketImpl.socketConnect(Native Method)
> at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
> at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
> at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
> at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
> at java.net.Socket.connect(Socket.java:529)
> at java.net.Socket.connect(Socket.java:478)
> at sun.net.NetworkClient.doConnect(NetworkClient.java:163)
> at sun.net.www.http.HttpClient.openServer(HttpClient.java:395)
> at sun.net.www.http.HttpClient.openServer(HttpClient.java:530)
> at sun.net.www.http.HttpClient.<init>(HttpClient.java:234)
> at sun.net.www.http.HttpClient.New(HttpClient.java:307)
> at sun.net.www.http.HttpClient.New(HttpClient.java:324)
> at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:970)
> at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:911)
> at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:836)
> at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1172)
> at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(XMLEntityManager.java:677)
> at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startEntity(XMLEntityManager.java:1315)
> at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startDTDEntity(XMLEntityManager.java:1282)
> at com.sun.org.apache.xerces.internal.impl.XMLDTDScannerImpl.setInputSource(XMLDTDScannerImpl.java:283)
> at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDriver.dispatch(XMLDocumentScannerImpl.java:1194)
> at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDriver.next(XMLDocumentScannerImpl.java:1090)
> at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:1003)
> at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:648)
> at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:140)
> at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.j
> at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:808)
> at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:737)
> at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:119)
> at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:235)
> at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:284)
> at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:124)
> at org.jboss.shrinkwrap.descriptor.spi.node.dom.XmlDomNodeImporterImpl.importAsNode(XmlDomNodeImporterImpl.java:67)
> at org.jboss.shrinkwrap.descriptor.spi.node.dom.XmlDomNodeImporter.importAsNode(XmlDomNodeImporter.java:46)
> at org.jboss.shrinkwrap.descriptor.spi.node.NodeDescriptorImporterBase.from(NodeDescriptorImporterBase.java:72)
> at org.jboss.shrinkwrap.descriptor.spi.DescriptorImporterBase.from(DescriptorImporterBase.java:142)
> at org.jboss.forge.spec.javaee.servlet.ServletFacetImpl.getConfig(ServletFacetImpl.java:95)
> at org.jboss.forge.spec.javaee.jsf.FacesFacetImpl.isInstalled(FacesFacetImpl.java:71)
> at org.jboss.forge.project.BaseProject.registerFacet(BaseProject.java:153)
> at org.jboss.forge.project.services.ProjectFactory.registerSingleFacet(ProjectFactory.java:208)
> at org.jboss.forge.project.services.ProjectFactory.registerSingleFacet(ProjectFactory.java:186)
> at org.jboss.forge.project.services.ProjectFactory.registerFacets(ProjectFactory.java:178)
> at org.jboss.forge.project.services.ProjectFactory.findProject(ProjectFactory.java:237)
> at com.lodh.arte.tools.MigrateToStdlib4Plugin.removeOldInfo(MigrateToStdlib4Plugin.java:268)
> at com.lodh.arte.tools.MigrateToStdlib4Plugin.runAll(MigrateToStdlib4Plugin.java:133)
> 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.forge.shell.command.Execution.perform(Execution.java:160)
> at org.jboss.forge.shell.command.fshparser.FSHRuntime.run(FSHRuntime.java:109)
> at org.jboss.forge.shell.command.fshparser.FSHRuntime.run(FSHRuntime.java:47)
> at org.jboss.forge.shell.ShellImpl$ExecutorThread.run(ShellImpl.java:795)
> at org.jboss.forge.shell.ShellImpl.execute(ShellImpl.java:818)
> at org.jboss.forge.shell.ShellImpl.doShell(ShellImpl.java:608)
> 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.forge.shell.ShellImpl$Proxy$_$$_WeldClientProxy.doShell(ShellImpl$Proxy$_$$_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:282)
> at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:265)
> at org.jboss.weld.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:234)
> at org.jboss.weld.manager.BeanManagerImpl.notifyObservers(BeanManagerImpl.java:635)
> at org.jboss.weld.manager.BeanManagerImpl.fireEvent(BeanManagerImpl.java:622)
> at org.jboss.weld.manager.BeanManagerImpl.fireEvent(BeanManagerImpl.java:616)
> at org.jboss.forge.shell.Bootstrap$1.run(Bootstrap.java:186)
> at java.lang.Thread.run(Thread.java:662)
> {code}
> this used to work in 1.2.4-SNAPSHOT
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 9 months
[JBoss JIRA] (FORGE-994) Eclipse is not runnign newly created forge web project
by Rajmahendra Hegde (JIRA)
Rajmahendra Hegde created FORGE-994:
---------------------------------------
Summary: Eclipse is not runnign newly created forge web project
Key: FORGE-994
URL: https://issues.jboss.org/browse/FORGE-994
Project: Forge
Issue Type: Bug
Components: UI - Eclipse
Affects Versions: 1.3.2.Final
Environment: Windows XP, Eclipse Kepler, Forge 1.3.2, Maven 3
Reporter: Rajmahendra Hegde
I created a new forge project in Eclipse forge plugin
run scaffold to create a JSF project and when i right click the project i don't see Run as Server. I see a option of make as deplorable . its also not working.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 9 months
[JBoss JIRA] (FORGE-889) Cannot parse package-info.java
by Yann Albou (JIRA)
[ https://issues.jboss.org/browse/FORGE-889?page=com.atlassian.jira.plugin.... ]
Yann Albou commented on FORGE-889:
----------------------------------
Hi,
This issue become a blocker because since Forge 1.3.x a project that contains a file "package-info.java" cannot be load by forge:
{code}
JBoss Forge, version [ 1.3.2.Final ] - JBoss, by Red Hat, Inc. [ http://forge.jboss.org ]
Error during Startup event
org.jboss.forge.parser.ParserException: Could not find type declaration in Java source - is this actually code?
at org.jboss.forge.parser.spi.JavaParserImpl.parse(JavaParserImpl.java:115)
at org.jboss.forge.parser.spi.JavaParserImpl.parse(JavaParserImpl.java:85)
at org.jboss.forge.parser.spi.JavaParserImpl.parse(JavaParserImpl.java:70)
at org.jboss.forge.parser.spi.JavaParserImpl.parse(JavaParserImpl.java:56)
at org.jboss.forge.parser.JavaParser.parse(JavaParser.java:54)
at org.jboss.forge.resources.java.JavaResource.getJavaSource(JavaResource.java:143)
at org.jboss.forge.spec.javaee.rest.RestApplicationFacetImpl$1.visit(RestApplicationFacetImpl.java:121)
at org.jboss.forge.maven.facets.MavenJavaSourceFacet$1.accept(MavenJavaSourceFacet.java:308)
at org.jboss.forge.resources.AbstractResource.listResources(AbstractResource.java:123)
at org.jboss.forge.maven.facets.MavenJavaSourceFacet.visitSources(MavenJavaSourceFacet.java:297)
at org.jboss.forge.maven.facets.MavenJavaSourceFacet.access$000(MavenJavaSourceFacet.java:45)
at org.jboss.forge.maven.facets.MavenJavaSourceFacet$1.accept(MavenJavaSourceFacet.java:304)
at org.jboss.forge.resources.AbstractResource.listResources(AbstractResource.java:123)
at org.jboss.forge.maven.facets.MavenJavaSourceFacet.visitSources(MavenJavaSourceFacet.java:297)
at org.jboss.forge.maven.facets.MavenJavaSourceFacet.access$000(MavenJavaSourceFacet.java:45)
at org.jboss.forge.maven.facets.MavenJavaSourceFacet$1.accept(MavenJavaSourceFacet.java:304)
at org.jboss.forge.resources.AbstractResource.listResources(AbstractResource.java:123)
at org.jboss.forge.maven.facets.MavenJavaSourceFacet.visitSources(MavenJavaSourceFacet.java:297)
at org.jboss.forge.maven.facets.MavenJavaSourceFacet.access$000(MavenJavaSourceFacet.java:45)
at org.jboss.forge.maven.facets.MavenJavaSourceFacet$1.accept(MavenJavaSourceFacet.java:304)
at org.jboss.forge.resources.AbstractResource.listResources(AbstractResource.java:123)
at org.jboss.forge.maven.facets.MavenJavaSourceFacet.visitSources(MavenJavaSourceFacet.java:297)
at org.jboss.forge.maven.facets.MavenJavaSourceFacet.access$000(MavenJavaSourceFacet.java:45)
at org.jboss.forge.maven.facets.MavenJavaSourceFacet$1.accept(MavenJavaSourceFacet.java:304)
at org.jboss.forge.resources.AbstractResource.listResources(AbstractResource.java:123)
at org.jboss.forge.maven.facets.MavenJavaSourceFacet.visitSources(MavenJavaSourceFacet.java:297)
at org.jboss.forge.maven.facets.MavenJavaSourceFacet.visitJavaSources(MavenJavaSourceFacet.java:283)
at org.jboss.forge.spec.javaee.rest.RestApplicationFacetImpl.findApplicationClass(RestApplicationFacetImpl.java:110)
at org.jboss.forge.spec.javaee.rest.RestApplicationFacetImpl.isInstalled(RestApplicationFacetImpl.java:81)
at org.jboss.forge.project.BaseProject.registerFacet(BaseProject.java:153)
at org.jboss.forge.project.services.ProjectFactory.registerSingleFacet(ProjectFactory.java:208)
at org.jboss.forge.project.services.ProjectFactory.registerSingleFacet(ProjectFactory.java:186)
at org.jboss.forge.project.services.ProjectFactory.registerFacets(ProjectFactory.java:178)
at org.jboss.forge.project.services.ProjectFactory.findProjectRecursively(ProjectFactory.java:117)
at org.jboss.forge.shell.project.ProjectInitializer.doInit(ProjectInitializer.java:64)
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:282)
at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:265)
at org.jboss.weld.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:234)
at org.jboss.weld.manager.BeanManagerImpl.notifyObservers(BeanManagerImpl.java:635)
at org.jboss.weld.manager.BeanManagerImpl.fireEvent(BeanManagerImpl.java:628)
at org.jboss.weld.event.EventImpl.fire(EventImpl.java:75)
at org.jboss.forge.shell.project.CurrentProject.setCurrentResource(CurrentProject.java:79)
at org.jboss.forge.shell.ShellImpl.init(ShellImpl.java:376)
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.forge.shell.ShellImpl$Proxy$_$$_WeldClientProxy.init(ShellImpl$Proxy$_$$_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:282)
at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:265)
at org.jboss.weld.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:234)
at org.jboss.weld.manager.BeanManagerImpl.notifyObservers(BeanManagerImpl.java:635)
at org.jboss.weld.manager.BeanManagerImpl.fireEvent(BeanManagerImpl.java:622)
at org.jboss.weld.manager.BeanManagerImpl.fireEvent(BeanManagerImpl.java:616)
at org.jboss.forge.shell.Bootstrap$1.run(Bootstrap.java:167)
at java.lang.Thread.run(Thread.java:662)
{code}
So I tried to work on this issue and I did a pull request (https://github.com/forge/java-parser/pull/1).
But, eventhough it works with this patch, it was more difficult than I expected.
I had to duplicate some part of code (see class AbstractJavaPackageSource) otherwise a big refactoring would be necessary.
What do you think ?
> Cannot parse package-info.java
> ------------------------------
>
> Key: FORGE-889
> URL: https://issues.jboss.org/browse/FORGE-889
> Project: Forge
> Issue Type: Bug
> Components: Parsers / File Manipulation
> Affects Versions: 1.2.3.Final, 2.0.0.Alpha3
> Reporter: Yann Albou
> Fix For: 1.x Future
>
>
> The parsing of package-info.java file (see http://docs.oracle.com/javase/6/docs/technotes/tools/solaris/javadoc.html...) raises the following exeption:
> "org.jboss.forge.parser.ParserException: Could not find type declaration in Java source - is this actually code?"
>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 9 months