Uploaded image for project: 'Forge'
  1. Forge
  2. FORGE-1442 Scaffolding issues in Forge 2.Beta
  3. FORGE-1486

NoTransactionAssociatedException when setting up scaffolding

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Cannot Reproduce
    • Icon: Major Major
    • 2.x Future
    • 2.0.0.CR1
    • UI - Shell
    • None

      I've allowed to have track changes (transaction-track-changes), and then I setup scaffolding (scaffold-setup) and I get

      [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
      

              Unassigned Unassigned
              agoncal Antonio Goncalves (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: