[jboss-jira] [JBoss JIRA] Commented: (JBAOP-591) Metadata tutorial example is broken

Kabir Khan (JIRA) jira-events at lists.jboss.org
Tue Jun 10 05:37:15 EDT 2008


    [ http://jira.jboss.com/jira/browse/JBAOP-591?page=comments#action_12416220 ] 
            
Kabir Khan commented on JBAOP-591:
----------------------------------

Once upon a time the metadata-aop.xml file was generated?
https://svn.jboss.org/repos/jbossas/tags/JBoss_AOP_1_5_6_GA/aop/docs/examples/metadata/build.xml

This was an alternative output from the annotation compiler. The "normal" behaviour is to compile the annotations into the class bytecode. Try running the older example and adding the metadata-aop.xml to svn or add the contents to the main jboss-aop.xml? 

> Metadata tutorial example is broken
> -----------------------------------
>
>                 Key: JBAOP-591
>                 URL: http://jira.jboss.com/jira/browse/JBAOP-591
>             Project: JBoss AOP
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>    Affects Versions: 2.0.0.CR11
>            Reporter: Flavia Rainone
>         Assigned To: Flavia Rainone
>             Fix For: 2.0.0.GA
>
>
> The metadata.xml file cannot be found:
> run.loadtime.50:
>      [java] java.io.FileNotFoundException: /home/fla/Development/workspace/jbossSubversion/JBossAOP/build/output/jboss-aop-2.0.0.CR11/docs/aspect-framework/examples/metadata/metadata-aop.xml (No such file or directory)
>      [java]     at java.io.FileInputStream.open(Native Method)
>      [java]     at java.io.FileInputStream.<init>(FileInputStream.java:106)
>      [java]     at java.io.FileInputStream.<init>(FileInputStream.java:66)
>      [java]     at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:70)
>      [java]     at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:161)
>      [java]     at java.net.URL.openStream(URL.java:1007)
>      [java]     at org.jboss.aop.AspectXmlLoader.loadURL(AspectXmlLoader.java:1440)
>      [java]     at org.jboss.aop.AspectXmlLoader.deploy(AspectXmlLoader.java:1335)
>      [java]     at org.jboss.aop.AspectXmlLoader.deployXML(AspectXmlLoader.java:1380)
>      [java]     at org.jboss.aop.AspectXmlLoader.deployXML(AspectXmlLoader.java:1346)
>      [java]     at org.jboss.aop.Deployment.deployXmlFile(Deployment.java:185)
>      [java]     at org.jboss.aop.Deployment.preconfigThroughSystemProperty(Deployment.java:166)
>      [java]     at org.jboss.aop.Deployment.deploy(Deployment.java:56)
>      [java]     at org.jboss.aop.AspectManager$1.run(AspectManager.java:349)
>      [java]     at org.jboss.aop.AspectManager$1.run(AspectManager.java:272)
>      [java]     at java.security.AccessController.doPrivileged(Native Method)
>      [java]     at org.jboss.aop.AspectManager.initManager(AspectManager.java:270)
>      [java]     at org.jboss.aop.AspectManager.instance(AspectManager.java:249)
>      [java]     at org.jboss.aop.AspectManager.instance(AspectManager.java:238)
>      [java]     at org.jboss.aop.standalone.Agent.premain(Agent.java:44)
>      [java]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>      [java]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>      [java]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>      [java]     at java.lang.reflect.Method.invoke(Method.java:585)
>      [java]     at sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:141)
>      [java] java.lang.RuntimeException: [error] failed to load aop path: metadata-aop.xml
>      [java]     at org.jboss.aop.Deployment.preconfigThroughSystemProperty(Deployment.java:175)
>      [java]     at org.jboss.aop.Deployment.deploy(Deployment.java:56)
>      [java]     at org.jboss.aop.AspectManager$1.run(AspectManager.java:349)
>      [java]     at org.jboss.aop.AspectManager$1.run(AspectManager.java:272)
>      [java]     at java.security.AccessController.doPrivileged(Native Method)
>      [java]     at org.jboss.aop.AspectManager.initManager(AspectManager.java:270)
>      [java]     at org.jboss.aop.AspectManager.instance(AspectManager.java:249)
>      [java]     at org.jboss.aop.AspectManager.instance(AspectManager.java:238)
>      [java]     at org.jboss.aop.standalone.Agent.premain(Agent.java:44)
>      [java]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>      [java]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>      [java]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>      [java]     at java.lang.reflect.Method.invoke(Method.java:585)
>      [java]     at sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:141)
>      [java] Caused by: java.io.FileNotFoundException: /home/fla/Development/workspace/jbossSubversion/JBossAOP/build/output/jboss-aop-2.0.0.CR11/docs/aspect-framework/examples/metadata/metadata-aop.xml (No such file or directory)
>      [java]     at java.io.FileInputStream.open(Native Method)
>      [java]     at java.io.FileInputStream.<init>(FileInputStream.java:106)
>      [java]     at java.io.FileInputStream.<init>(FileInputStream.java:66)
>      [java]     at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:70)
>      [java]     at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:161)
>      [java]     at java.net.URL.openStream(URL.java:1007)
>      [java]     at org.jboss.aop.AspectXmlLoader.loadURL(AspectXmlLoader.java:1440)
>      [java]     at org.jboss.aop.AspectXmlLoader.deploy(AspectXmlLoader.java:1335)
>      [java]     at org.jboss.aop.AspectXmlLoader.deployXML(AspectXmlLoader.java:1380)
>      [java]     at org.jboss.aop.AspectXmlLoader.deployXML(AspectXmlLoader.java:1346)
>      [java]     at org.jboss.aop.Deployment.deployXmlFile(Deployment.java:185)
>      [java]     at org.jboss.aop.Deployment.preconfigThroughSystemProperty(Deployment.java:166)
>      [java]     ... 13 more
>      [java] --- new POJO(); ---
>      [java] empty constructor
>      [java] --- new POJO(int); ---
>      [java] int constructor
>      [java] --- pojo.someMethod(); ---
>      [java] someMethod
>      [java] --- pojo.field = 55;  ---

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list