[forge-issues] [JBoss JIRA] (FORGE-1486) NoTransactionAssociatedException when setting up scaffolding

Antonio Goncalves (JIRA) issues at jboss.org
Wed Jan 22 12:38:29 EST 2014


     [ https://issues.jboss.org/browse/FORGE-1486?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Antonio Goncalves closed FORGE-1486.
------------------------------------

    Resolution: Cannot Reproduce Bug


I cannot reproduce it (using the latest SNAPSHOT, but I wonder if it's because of that)
                
> NoTransactionAssociatedException when setting up scaffolding
> ------------------------------------------------------------
>
>                 Key: FORGE-1486
>                 URL: https://issues.jboss.org/browse/FORGE-1486
>             Project: Forge
>          Issue Type: Sub-task
>          Components: UI - Shell
>    Affects Versions: 2.0.0.CR1
>            Reporter: Antonio Goncalves
>             Fix For: 2.x Future
>
>
> I've allowed to have track changes ({{transaction-track-changes}}), and then I setup scaffolding ({{scaffold-setup}}) and I get
> {code}
> [Book.java]$ scaffold-setup
> Wrote /Users/antoniombp/Documents/Code/temp/Forge/pluralsight-persistence/pom.xml
> Wrote /Users/antoniombp/Documents/Code/temp/Forge/pluralsight-persistence/src/main/webapp
> Wrote /Users/antoniombp/Documents/Code/temp/Forge/pluralsight-persistence/src/main/webapp/WEB-INF
> Wrote /Users/antoniombp/Documents/Code/temp/Forge/pluralsight-persistence/src/main/webapp/WEB-INF
> Wrote /Users/antoniombp/Documents/Code/temp/Forge/pluralsight-persistence/src/main/webapp/WEB-INF/beans.xml
> Wrote /Users/antoniombp/Documents/Code/temp/Forge/pluralsight-persistence/src/main/webapp/WEB-INF/beans.xml
> Wrote /Users/antoniombp/Documents/Code/temp/Forge/pluralsight-persistence/pom.xml
> Wrote /Users/antoniombp/Documents/Code/temp/Forge/pluralsight-persistence/src/main/webapp/WEB-INF
> Wrote /Users/antoniombp/Documents/Code/temp/Forge/pluralsight-persistence/src/main/webapp/WEB-INF/faces-config.xml
> Wrote /Users/antoniombp/Documents/Code/temp/Forge/pluralsight-persistence/src/main/webapp/WEB-INF/faces-config.xml
> Wrote /Users/antoniombp/Documents/Code/temp/Forge/pluralsight-persistence/src/main/webapp
> Wrote /Users/antoniombp/Documents/Code/temp/Forge/pluralsight-persistence/src/main/webapp/WEB-INF
> Wrote /Users/antoniombp/Documents/Code/temp/Forge/pluralsight-persistence/src/main/webapp/WEB-INF/web.xml
> Wrote /Users/antoniombp/Documents/Code/temp/Forge/pluralsight-persistence/src/main/webapp/WEB-INF/web.xml
> Exception in thread "Resource File Monitor" Wrote /Users/antoniombp/Documents/Code/temp/Forge/pluralsight-persistence/src/main/webapp/error.xhtml
> Wrote /Users/antoniombp/Documents/Code/temp/Forge/pluralsight-persistence/src/main/webapp/error.xhtml
> Wrote /Users/antoniombp/Documents/Code/temp/Forge/pluralsight-persistence/src/main/webapp/index.html
> Wrote /Users/antoniombp/Documents/Code/temp/Forge/pluralsight-persistence/src/main/webapp/index.html
> Wrote /Users/antoniombp/Documents/Code/temp/Forge/pluralsight-persistence/src/main/webapp/index.xhtml
> Wrote /Users/antoniombp/Documents/Code/temp/Forge/pluralsight-persistence/src/main/webapp/index.xhtml
> Wrote /Users/antoniombp/Documents/Code/temp/Forge/pluralsight-persistence/src/main/webapp/resources
> Wrote /Users/antoniombp/Documents/Code/temp/Forge/pluralsight-persistence/src/main/webapp/resources
> Wrote /Users/antoniombp/Documents/Code/temp/Forge/pluralsight-persistence/src/main/webapp/resources/add.png
> Wrote /Users/antoniombp/Documents/Code/temp/Forge/pluralsight-persistence/src/main/webapp/resources/add.png
> Wrote /Users/antoniombp/Documents/Code/temp/Forge/pluralsight-persistence/src/main/webapp/resources/bootstrap.css
> Wrote /Users/antoniombp/Documents/Code/temp/Forge/pluralsight-persistence/src/main/webapp/resources/bootstrap.css
> Wrote /Users/antoniombp/Documents/Code/temp/Forge/pluralsight-persistence/src/main/webapp/resources/false.png
> Wrote /Users/antoniombp/Documents/Code/temp/Forge/pluralsight-persistence/src/main/webapp/resources/false.png
> Wrote /Users/antoniombp/Documents/Code/temp/Forge/pluralsight-persistence/src/main/webapp/resources/favicon.ico
> Wrote /Users/antoniombp/Documents/Code/temp/Forge/pluralsight-persistence/src/main/webapp/resources/favicon.ico
> Wrote /Users/antoniombp/Documents/Code/temp/Forge/pluralsight-persistence/src/main/webapp/resources/forge-logo.png
> Wrote /Users/antoniombp/Documents/Code/temp/Forge/pluralsight-persistence/src/main/webapp/resources/forge-logo.png
> Wrote /Users/antoniombp/Documents/Code/temp/Forge/pluralsight-persistence/src/main/webapp/resources/forge-style.css
> Wrote /Users/antoniombp/Documents/Code/temp/Forge/pluralsight-persistence/src/main/webapp/resources/forge-style.css
> Wrote /Users/antoniombp/Documents/Code/temp/Forge/pluralsight-persistence/src/main/webapp/resources/jboss-community.png
> Wrote /Users/antoniombp/Documents/Code/temp/Forge/pluralsight-persistence/src/main/webapp/resources/jboss-community.png
> Wrote /Users/antoniombp/Documents/Code/temp/Forge/pluralsight-persistence/src/main/webapp/resources/remove.png
> Wrote /Users/antoniombp/Documents/Code/temp/Forge/pluralsight-persistence/src/main/webapp/resources/remove.png
> Wrote /Users/antoniombp/Documents/Code/temp/Forge/pluralsight-persistence/src/main/webapp/resources/scaffold
> org.jboss.forge.addon.resource.transaction.ResourceTransactionException: org.xadisk.filesystem.exceptions.NoTransactionAssociatedException: The method that was called can only be called with a transaction associated, butthere is no such transaction present.Wrote /Users/antoniombp/Documents/Code/temp/Forge/pluralsight-persistence/src/main/webapp/resources/scaffold
> Wrote /Users/antoniombp/Documents/Code/temp/Forge/pluralsight-persistence/src/main/webapp/resources/scaffold/pageTemplate.xhtml
> Wrote /Users/antoniombp/Documents/Code/temp/Forge/pluralsight-persistence/src/main/webapp/resources/scaffold/pageTemplate.xhtml
> Wrote /Users/antoniombp/Documents/Code/temp/Forge/pluralsight-persistence/src/main/webapp/resources/scaffold/paginator.xhtml
> Wrote /Users/antoniombp/Documents/Code/temp/Forge/pluralsight-persistence/src/main/webapp/resources/scaffold/paginator.xhtml
> 	at org.jboss.forge.addon.resource.transaction.file.FileResourceTransactionImpl.fileExistsAndIsDirectory(FileResourceTransactionImpl.java:245)W
> rote /Users/antoniombp/Documents/Code/temp/Forge/pluralsight-persistence/src/main/webapp/resources/search.png
> 	at org.jboss.forge.addon.resource.FileResourceGenerator.getResourceType(FileResourceGenerator.java:29)
> Wrote /Users/antoniombp/Documents/Code/temp/Forge/pluralsight-persistence/src/main/webapp/resources/search.png	at sun.reflect.GeneratedMethodAccessor44.invoke(Unknown Source)
> Wrote /Users/antoniombp/Documents/Code/temp/Forge/pluralsight-persistence/src/main/webapp/resources/true.png
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)Wrote /Users/antoniombp/Documents/Code/temp/Forge/pluralsight-persistence/src/main/webapp/resources/true.png
> 	at java.lang.reflect.Method.invoke(Method.java:606)
> 	at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor$1.call(ClassLoaderInterceptor.java:59)
> 	at org.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:34)
> ***SUCCESS*** CDI has been installed.	at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor.invoke(ClassLoaderInterceptor.java:75)
> 	at org.jboss.forge.addon.resource.FileResourceGenerator_$$_javassist_bdd19dce-9677-4c5e-b872-98bfee50bfed.getResourceType(FileResourceGenerator_$$_javassist_bdd19dce-9677-4c5e-b872-98bfee50bfed.java)***SUCCESS***
> JavaServer Faces has been installed.
> 	at org.jboss.forge.addon.resource.FileResourceGenerator.getResourceType(FileResourceGenerator.java:5)
> ***SUCCESS*** 	at org.jboss.forge.addon.resource.ResourceFactoryImpl.create(ResourceFactoryImpl.java:64)Scaffold was setup successfully.
> 	at org.jboss.forge.addon.resource.monitor.FileAlterationListenerAdapter.onFileChange(FileAlterationListenerAdapter.java:64)
> 	at org.apache.commons.io.monitor.FileAlterationObserver.doMatch(FileAlterationObserver.java:400)
> 	at org.apache.commons.io.monitor.FileAlterationObserver.checkAndNotify(FileAlterationObserver.java:334)
> 	at org.apache.commons.io.monitor.FileAlterationObserver.checkAndNotify(FileAlterationObserver.java:304)
> 	at org.apache.commons.io.monitor.FileAlterationMonitor.run(FileAlterationMonitor.java:182)
> 	at java.lang.Thread.run(Thread.java:744)
> Caused by: org.xadisk.filesystem.exceptions.NoTransactionAssociatedException: The method that was called can only be called with a transaction associated, butthere is no such transaction present.
> 	at org.xadisk.filesystem.NativeSession.checkIfCanContinue(NativeSession.java:1231)
> 	at org.xadisk.filesystem.NativeSession.fileExistsAndIsDirectory(NativeSession.java:445)
> 	at org.xadisk.filesystem.NativeSession.fileExistsAndIsDirectory(NativeSession.java:434)
> 	at org.jboss.forge.addon.resource.transaction.file.FileResourceTransactionImpl.fileExistsAndIsDirectory(FileResourceTransactionImpl.java:232)
> 	... 16 more
> {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


More information about the forge-issues mailing list