11 Replies Latest reply: Mar 13, 2013 6:52 PM by francesco milesi RSS

    Cannot Build KitchenSink Sample

    Charles Odili Apprentice

      Am running JBoss Dev Studio 6.0.0.GA on ubuntu and having some hard time getting the quickstarts to work. My project suddenly started giving me errors so I switched to a new workspace and created  a KitchenSink App with the wizard. Run as Maven build produces the following errors :

       

      Compile with -strict or with -logLevel set to TRACE or DEBUG to see all errors.

      [INFO]    [ERROR] Errors in '/home/dilim/ws/jboss-as-kitchensink-errai/target/.generated/org/jboss/tools/gwt/kitchensink/client/shared/_MemberValidatorImpl.java'

      [INFO]       [ERROR] Line 430:  The method validate(GwtValidationContext<T>, Set<ConstraintViolation<T>>, Member, V, ConstraintValidator<A,? super V>, ConstraintDescriptorImpl<A>, Class<?>[]) in the type AbstractGwtSpecificValidator<Member> is not applicable for the arguments (GwtValidationContext<T>, Set<ConstraintViolation<T>>, Member, String, SizeValidatorForMap, ConstraintDescriptorImpl<Size>, Class<?>[])

      [INFO]       [ERROR] Line 456:  The method validate(GwtValidationContext<T>, Set<ConstraintViolation<T>>, Member, V, ConstraintValidator<A,? super V>, ConstraintDescriptorImpl<A>, Class<?>[]) in the type AbstractGwtSpecificValidator<Member> is not applicable for the arguments (GwtValidationContext<T>, Set<ConstraintViolation<T>>, Member, String, SizeValidatorForMap, ConstraintDescriptorImpl<Size>, Class<?>[])

      [INFO]       [ERROR] Line 480:  The method validate(GwtValidationContext<T>, Set<ConstraintViolation<T>>, Member, V, ConstraintValidator<A,? super V>, ConstraintDescriptorImpl<A>, Class<?>[]) in the type AbstractGwtSpecificValidator<Member> is not applicable for the arguments (GwtValidationContext<T>, Set<ConstraintViolation<T>>, Member, String, SizeValidatorForMap, ConstraintDescriptorImpl<Size>, Class<?>[])

      [INFO]    [ERROR] Cannot proceed due to previous errors

       

      Please kindly assist. Thanks.

        • 1. Re: Cannot Build KitchenSink Sample
          Mike Brock Master

          Does it build from the command line with: mvn install?

          • 2. Re: Cannot Build KitchenSink Sample
            francesco milesi Newbie

            Hi Mike,

             

             

            After this exchange https://community.jboss.org/message/793347#793347 with Eirk Jan de Wit I had cordova-quickstart running.

             

            Today I have the same error above with cordova-quickstart (3.0 snapshot). I found this issue https://issues.jboss.org/browse/ERRAI-383?page=com.atlassian.jirafisheyeplugin:crucible-issuepanel . I am using openjdk7: should I go for oracle-jdk? Or is just e temporary problem ?

             

            I know that using the 3.0 branch can be bumpy... but the idea of cordova+errai is very intriguing.

             

            thanks for your help

             

            ciao Francesco

            • 3. Re: Cannot Build KitchenSink Sample
              Erik Jan de Wit Novice

              Hi Francesco,

               

              According to the bug report this does not happen with the oracle jdk. Even though openjdk and the oracle jdk should be compatible there are a lot of things implemented different due to licences. Can you try installing oracle jdk and trying to build with that?

               

              Cheers,

                    Erik Jan

              • 4. Re: Cannot Build KitchenSink Sample
                francesco milesi Newbie

                Hi Erik,

                 

                I will try that and let you know

                 

                thanks a lot

                 

                ciao Francesco

                • 5. Re: Cannot Build KitchenSink Sample
                  francesco milesi Newbie

                  Hi Erik,

                   

                  I install oracle java-7-oracle on my Ubuntu 12.10 and set it as default jvm.

                  This is the output of "java -version"

                       java version "1.7.0_15"

                       Java(TM) SE Runtime Environment (build 1.7.0_15-b03)

                       Java HotSpot(TM) 64-Bit Server VM (build 23.7-b01, mixed mode)

                  then I launched

                       mvn archetype:generate -DarchetypeGroupId=org.jboss.errai.archetypes -DarchetypeArtifactId=cordova-quickstart -DarchetypeVersion=2.2.0-SNAPSHOT -DarchetypeRepository=https://repository.jboss.org/nexus/content/groups/public/

                  The project was correctly generated referencing the 3.0-SNAPSHOT jars. Then I launched

                       mvn package

                  and I got the following compilation errors.

                  DescriptionResourcePathLocationType
                  RpcErrorCallback cannot be resolved to a typeKitchenSinkApp.java/cordova-quickstart/src/main/java/ppp/ppp/client/localline 92Java Problem

                   

                  DescriptionResourcePathLocationType
                  RpcErrorCallback cannot be resolved to a typeKitchenSinkClient.java/cordova-quickstart/src/main/java/ppp/ppp/client/localline 169Java Problem

                   

                  I corrected the sources and I launched again

                       mvn package

                  and I got the following error

                   

                  [INFO]    Scanning for additional dependencies: jar:file:/home/milesif/.m2/repository/org/jboss/errai/errai-marshalling/3.0-SNAPSHOT/errai-marshalling-3.0-SNAPSHOT.jar!/org/jboss/errai/marshalling/client/api/MarshallerFramework.java

                  [INFO]       Computing all possible rebind results for 'org.jboss.errai.marshalling.client.api.MarshallerFactory'

                  [INFO]          Rebinding org.jboss.errai.marshalling.client.api.MarshallerFactory

                  [INFO]             Invoking generator org.jboss.errai.marshalling.rebind.MarshallersGenerator

                  [INFO]                Generating Marshallers Bootstrapper...

                  [ERROR] java.util.concurrent.ExecutionException: java.lang.RuntimeException: error loading marshalling extension: org.jboss.errai.enterprise.rebind.ObserversMarshallingExtension

                  [ERROR]         at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:252)

                  [ERROR]         at java.util.concurrent.FutureTask.get(FutureTask.java:111)

                  [ERROR]         at org.jboss.errai.config.rebind.AsyncGenerators$FutureWrapper.get(AsyncGenerators.java:112)

                  [ERROR]         at org.jboss.errai.config.rebind.AsyncGenerators$FutureWrapper.get(AsyncGenerators.java:86)

                  [ERROR]         at org.jboss.errai.marshalling.rebind.MarshallersGenerator.generateMarshallerBootstrapper(MarshallersGenerator.java:264)

                  [ERROR]         at org.jboss.errai.marshalling.rebind.MarshallersGenerator.generate(MarshallersGenerator.java:235)

                  [ERROR]         at com.google.gwt.core.ext.GeneratorExtWrapper.generate(GeneratorExtWrapper.java:48)

                  [ERROR]         at com.google.gwt.core.ext.GeneratorExtWrapper.generateIncrementally(GeneratorExtWrapper.java:60)

                  [ERROR]         at com.google.gwt.dev.javac.StandardGeneratorContext.runGeneratorIncrementally(StandardGeneratorContext.java:647)

                  [ERROR]         at com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java:41)

                  [ERROR]         at com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.rebind(StandardRebindOracle.java:78)

                  [ERROR]         at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:268)

                  [ERROR]         at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:257)

                  [ERROR]         at com.google.gwt.dev.DistillerRebindPermutationOracle.getAllPossibleRebindAnswers(DistillerRebindPermutationOracle.java:91)

                  [ERROR]         at com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.doFindAdditionalTypesUsingRebinds(WebModeCompilerFrontEnd.java:96)

                  [ERROR]         at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.process(AbstractCompiler.java:254)

                  [ERROR]         at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:444)

                  [ERROR]         at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.compile(AbstractCompiler.java:173)

                  [ERROR]         at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.compile(AbstractCompiler.java:288)

                  [ERROR]         at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.access$400(AbstractCompiler.java:139)

                  [ERROR]         at com.google.gwt.dev.jdt.AbstractCompiler.compile(AbstractCompiler.java:588)

                  [ERROR]         at com.google.gwt.dev.jdt.BasicWebModeCompiler.getCompilationUnitDeclarations(BasicWebModeCompiler.java:97)

                  [ERROR]         at com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.getCompilationUnitDeclarations(WebModeCompilerFrontEnd.java:52)

                  [ERROR]         at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScriptCompiler.java:569)

                  [ERROR]         at com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.java:33)

                  [ERROR]         at com.google.gwt.dev.Precompile.precompile(Precompile.java:284)

                  [ERROR]         at com.google.gwt.dev.Precompile.precompile(Precompile.java:233)

                  [ERROR]         at com.google.gwt.dev.Precompile.precompile(Precompile.java:145)

                  [ERROR]         at com.google.gwt.dev.Compiler.run(Compiler.java:232)

                  [ERROR]         at com.google.gwt.dev.Compiler.run(Compiler.java:198)

                  [ERROR]         at com.google.gwt.dev.Compiler$1.run(Compiler.java:170)

                  [ERROR]         at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:88)

                  [ERROR]         at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:82)

                  [ERROR]         at com.google.gwt.dev.Compiler.main(Compiler.java:177)

                  [ERROR] Caused by: java.lang.RuntimeException: error loading marshalling extension: org.jboss.errai.enterprise.rebind.ObserversMarshallingExtension

                  [ERROR]         at org.jboss.errai.marshalling.rebind.MarshallerGeneratorFactory._generate(MarshallerGeneratorFactory.java:213)

                  [ERROR]         at org.jboss.errai.marshalling.rebind.MarshallerGeneratorFactory.generate(MarshallerGeneratorFactory.java:142)

                  [ERROR]         at org.jboss.errai.marshalling.rebind.MarshallersGenerator._generate(MarshallersGenerator.java:297)

                  [ERROR]         at org.jboss.errai.marshalling.rebind.MarshallersGenerator.access$100(MarshallersGenerator.java:57)

                  [ERROR]         at org.jboss.errai.marshalling.rebind.MarshallersGenerator$6.call(MarshallersGenerator.java:275)

                  [ERROR]         at org.jboss.errai.marshalling.rebind.MarshallersGenerator$6.call(MarshallersGenerator.java:272)

                  [ERROR]         at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)

                  [ERROR]         at java.util.concurrent.FutureTask.run(FutureTask.java:166)

                  [ERROR]         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)

                  [ERROR]         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)

                  [ERROR]         at java.lang.Thread.run(Thread.java:722)

                  [ERROR] Caused by: java.lang.IllegalArgumentException: Unable to load class "org.jboss.errai.marshalling.server.impl.ServerMarshallingFactoryImpl"

                  [ERROR]         at org.jboss.errai.reflections.ReflectionUtils.forName(ReflectionUtils.java:148)

                  [ERROR]         at org.jboss.errai.reflections.ReflectionUtils.forNames(ReflectionUtils.java:157)

                  [ERROR]         at org.jboss.errai.reflections.Reflections.getTypesAnnotatedWith(Reflections.java:388)

                  [ERROR]         at org.jboss.errai.common.metadata.MetaDataScanner.getTypesAnnotatedWith(MetaDataScanner.java:293)

                  [ERROR]         at org.jboss.errai.enterprise.rebind.ObserversMarshallingExtension.scanForObserverPointsInClassPath(ObserversMarshallingExtension.java:88)

                  [ERROR]         at org.jboss.errai.enterprise.rebind.ObserversMarshallingExtension.configure(ObserversMarshallingExtension.java:57)

                  [ERROR]         at org.jboss.errai.marshalling.rebind.MarshallerGeneratorFactory._generate(MarshallerGeneratorFactory.java:210)

                  [ERROR]         ... 10 more

                  [INFO]                [ERROR] Error generating marshallers

                  [INFO] java.util.concurrent.ExecutionException: java.lang.RuntimeException: error loading marshalling extension: org.jboss.errai.enterprise.rebind.ObserversMarshallingExtension

                  [INFO]  at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:252)

                  [INFO]  at java.util.concurrent.FutureTask.get(FutureTask.java:111)

                  [INFO]  at org.jboss.errai.config.rebind.AsyncGenerators$FutureWrapper.get(AsyncGenerators.java:112)

                  [INFO]  at org.jboss.errai.config.rebind.AsyncGenerators$FutureWrapper.get(AsyncGenerators.java:86)

                  [INFO]  at org.jboss.errai.marshalling.rebind.MarshallersGenerator.generateMarshallerBootstrapper(MarshallersGenerator.java:264)

                  [INFO]  at org.jboss.errai.marshalling.rebind.MarshallersGenerator.generate(MarshallersGenerator.java:235)

                  [INFO]  at com.google.gwt.core.ext.GeneratorExtWrapper.generate(GeneratorExtWrapper.java:48)

                  [INFO]  at com.google.gwt.core.ext.GeneratorExtWrapper.generateIncrementally(GeneratorExtWrapper.java:60)

                  [INFO]  at com.google.gwt.dev.javac.StandardGeneratorContext.runGeneratorIncrementally(StandardGeneratorContext.java:647)

                  [INFO]  at com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java:41)

                  [INFO]  at com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.rebind(StandardRebindOracle.java:78)

                  [INFO]  at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:268)

                  [INFO]  at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:257)

                  [INFO]  at com.google.gwt.dev.DistillerRebindPermutationOracle.getAllPossibleRebindAnswers(DistillerRebindPermutationOracle.java:91)

                  [INFO]  at com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.doFindAdditionalTypesUsingRebinds(WebModeCompilerFrontEnd.java:96)

                  [INFO]  at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.process(AbstractCompiler.java:254)

                  [INFO]  at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:444)

                  [INFO]  at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.compile(AbstractCompiler.java:173)

                  [INFO]  at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.compile(AbstractCompiler.java:288)

                  [INFO]  at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.access$400(AbstractCompiler.java:139)

                  [INFO]  at com.google.gwt.dev.jdt.AbstractCompiler.compile(AbstractCompiler.java:588)

                  [INFO]  at com.google.gwt.dev.jdt.BasicWebModeCompiler.getCompilationUnitDeclarations(BasicWebModeCompiler.java:97)

                  [INFO]  at com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.getCompilationUnitDeclarations(WebModeCompilerFrontEnd.java:52)

                  [INFO]  at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScriptCompiler.java:569)

                  [INFO]  at com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.java:33)

                  [INFO]  at com.google.gwt.dev.Precompile.precompile(Precompile.java:284)

                  [INFO]  at com.google.gwt.dev.Precompile.precompile(Precompile.java:233)

                  [INFO]  at com.google.gwt.dev.Precompile.precompile(Precompile.java:145)

                  [INFO]  at com.google.gwt.dev.Compiler.run(Compiler.java:232)

                  [INFO]  at com.google.gwt.dev.Compiler.run(Compiler.java:198)

                  [INFO]  at com.google.gwt.dev.Compiler$1.run(Compiler.java:170)

                  [INFO]  at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:88)

                  [INFO]  at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:82)

                  [INFO]  at com.google.gwt.dev.Compiler.main(Compiler.java:177)

                  [INFO] Caused by: java.lang.RuntimeException: error loading marshalling extension: org.jboss.errai.enterprise.rebind.ObserversMarshallingExtension

                  [INFO]  at org.jboss.errai.marshalling.rebind.MarshallerGeneratorFactory._generate(MarshallerGeneratorFactory.java:213)

                  [INFO]  at org.jboss.errai.marshalling.rebind.MarshallerGeneratorFactory.generate(MarshallerGeneratorFactory.java:142)

                  [INFO]  at org.jboss.errai.marshalling.rebind.MarshallersGenerator._generate(MarshallersGenerator.java:297)

                  [INFO]  at org.jboss.errai.marshalling.rebind.MarshallersGenerator.access$100(MarshallersGenerator.java:57)

                  [INFO]  at org.jboss.errai.marshalling.rebind.MarshallersGenerator$6.call(MarshallersGenerator.java:275)

                  [INFO]  at org.jboss.errai.marshalling.rebind.MarshallersGenerator$6.call(MarshallersGenerator.java:272)

                  [INFO]  at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)

                  [INFO]  at java.util.concurrent.FutureTask.run(FutureTask.java:166)

                  [INFO]  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)

                  [INFO]  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)

                  [INFO]  at java.lang.Thread.run(Thread.java:722)

                  [INFO] Caused by: java.lang.IllegalArgumentException: Unable to load class "org.jboss.errai.marshalling.server.impl.ServerMarshallingFactoryImpl"

                  [INFO]  at org.jboss.errai.reflections.ReflectionUtils.forName(ReflectionUtils.java:148)

                  [INFO]  at org.jboss.errai.reflections.ReflectionUtils.forNames(ReflectionUtils.java:157)

                  [INFO]  at org.jboss.errai.reflections.Reflections.getTypesAnnotatedWith(Reflections.java:388)

                  [INFO]  at org.jboss.errai.common.metadata.MetaDataScanner.getTypesAnnotatedWith(MetaDataScanner.java:293)

                  [INFO]  at org.jboss.errai.enterprise.rebind.ObserversMarshallingExtension.scanForObserverPointsInClassPath(ObserversMarshallingExtension.java:88)

                  [INFO]  at org.jboss.errai.enterprise.rebind.ObserversMarshallingExtension.configure(ObserversMarshallingExtension.java:57)

                  [INFO]  at org.jboss.errai.marshalling.rebind.MarshallerGeneratorFactory._generate(MarshallerGeneratorFactory.java:210)

                  [INFO]  ... 10 more

                  [INFO]          Rebinding org.jboss.errai.marshalling.client.api.MarshallerFactory

                  [INFO]             Invoking generator org.jboss.errai.marshalling.rebind.MarshallersGenerator

                  [INFO]                Generating Marshallers Bootstrapper...

                  [INFO]       [WARN] For the following type(s), generated source was never committed (did you forget to call commit()?)

                  [INFO]          [WARN] org.jboss.errai.marshalling.client.api.MarshallerFactoryImpl

                  [INFO]    [ERROR] Errors in 'jar:file:/home/milesif/.m2/repository/org/jboss/errai/errai-marshalling/3.0-SNAPSHOT/errai-marshalling-3.0-SNAPSHOT.jar!/org/jboss/errai/marshalling/client/api/MarshallerFramework.java'

                  [INFO]       [ERROR] Line 42:  Rebind result 'org.jboss.errai.marshalling.client.api.MarshallerFactoryImpl' could not be found

                  [INFO]    Scanning for additional dependencies: jar:file:/home/milesif/.m2/repository/com/googlecode/gwtphonegap/gwtphonegap/1.8.1.0/gwtphonegap-1.8.1.0.jar!/com/googlecode/gwtphonegap/client/log/PhoneGapRemoteBatchLogHandler.java

                  [INFO]       Adding '17' new generated units

                  [INFO]          Validating newly compiled units

                  [INFO]             Ignored 1 unit with compilation errors in first pass.

                  [INFO] Compile with -strict or with -logLevel set to TRACE or DEBUG to see all errors.

                  [INFO]    [ERROR] Cannot proceed due to previous errors

                  [INFO] ------------------------------------------------------------------------

                  [INFO] BUILD FAILURE

                  [INFO] ------------------------------------------------------------------------

                  [INFO] Total time: 11.748s

                  [INFO] Finished at: Sat Mar 02 14:15:40 CET 2013

                  [INFO] Final Memory: 16M/205M

                  [INFO] ------------------------------------------------------------------------

                   

                   

                  sorry for the long post,

                   

                  thbnaks in advance for any help

                   

                  ciao Francesco

                   

                   


                  • 6. Re: Cannot Build KitchenSink Sample
                    Thomas Frühbeck Newbie

                    you are working with snapshot versions, did you try  mvn -U clean package to assure using recent versions?

                     

                    what changes did you perform on the KitchenSink classes?

                     

                    this is my setup, and the generated project built w/o fail immediately:

                     

                    $JAVA_HOME/bin/java -version

                    java version "1.6.0_35"

                    Java(TM) SE Runtime Environment (build 1.6.0_35-b10)

                    Java HotSpot(TM) 64-Bit Server VM (build 20.10-b01, mixed mode)

                     

                    uname -a

                    Linux storage 3.4.28-2.20-desktop #1 SMP PREEMPT Tue Jan 29 16:51:37 UTC 2013 (143156b) x86_64 x86_64 x86_64 GNU/Linux

                    • 7. Re: Cannot Build KitchenSink Sample
                      francesco milesi Newbie

                      Hi Thomas,

                       

                      thansk for your answer. Your maven command did the trick. What's more, no changes to the classes were needed.

                       

                      I'm very happy to be able to experiment with errai-cordova.

                       

                      thanks a lot,

                       

                      ciao francesco

                      • 8. Re: Cannot Build KitchenSink Sample
                        francesco milesi Newbie

                        Hi everybody,

                         

                        "mvn -U clean package" compiles and package my application (created from the errai-cordova archetype) generating e KitchenSink.war. Then I copy the compressed war under jboss-as-7.1.1/standalone/deployments/ where I also put a  KitchenSink.war.dodeploy. When I start the server I get the following error

                         

                        17:44:47,807 ERROR [org.jboss.errai.reflections.Reflections] (Thread-96) could not create Vfs.Dir from url. ignoring the exception and continuing: org.jboss.errai.reflections.ReflectionsException: could not create Vfs.Dir from url, no matching UrlType was found [vfs:/home/milesif/development/jboss/jboss-as-7.1.1/standalone/deployments/tpl.war/WEB-INF/lib/errai-bus-3.0-20130306.211729-27.jar/]

                        either use fromURL(final URL url, final List<UrlType> urlTypes) or use the static setDefaultURLTypes(final List<UrlType> urlTypes) or addDefaultURLTypes(UrlType urlType) with your specialized UrlType.

                                  at org.jboss.errai.reflections.vfs.Vfs.fromURL(Vfs.java:126) [reflections-3.0-20130306.211621-26.jar:3.0-SNAPSHOT]

                                  at org.jboss.errai.reflections.vfs.Vfs.fromURL(Vfs.java:108) [reflections-3.0-20130306.211621-26.jar:3.0-SNAPSHOT]

                                  at org.jboss.errai.reflections.Reflections.scan(Reflections.java:221) [reflections-3.0-20130306.211621-26.jar:3.0-SNAPSHOT]

                                  at org.jboss.errai.common.metadata.MetaDataScanner.<init>(MetaDataScanner.java:117) [errai-common-3.0-20130306.211631-28.jar:3.0-SNAPSHOT]

                                  at org.jboss.errai.common.metadata.MetaDataScanner.createInstance(MetaDataScanner.java:225) [errai-common-3.0-20130306.211631-28.jar:3.0-SNAPSHOT]

                                  at org.jboss.errai.common.metadata.MetaDataScanner.createInstance(MetaDataScanner.java:213) [errai-common-3.0-20130306.211631-28.jar:3.0-SNAPSHOT]

                                  at org.jboss.errai.common.metadata.ScannerSingleton$1.call(ScannerSingleton.java:38) [errai-common-3.0-20130306.211631-28.jar:3.0-SNAPSHOT]

                                  at org.jboss.errai.common.metadata.ScannerSingleton$1.call(ScannerSingleton.java:31) [errai-common-3.0-20130306.211631-28.jar:3.0-SNAPSHOT]

                                  at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) [rt.jar:1.7.0_17]

                                  at java.util.concurrent.FutureTask.run(FutureTask.java:166) [rt.jar:1.7.0_17]

                                  at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_17]


                        the same error is repeated for the other errai jars in the WEB-INF/lib directory of my .war

                        Then, when I go to the application web page I get the following error:

                         

                        18:05:20,771 INFO  [org.jboss.web] (MSC service thread 1-10) JBAS018210: Registering web context: /KitchenSink

                        18:05:20,812 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS018559: Deployed "KitchenSink.war"

                        18:06:11,349 ERROR [stderr] (http--0.0.0.0-8080-2) org.jboss.errai.bus.server.QueueUnavailableException: no queue available to send. (queue or session may have expired): (session id: d0f0f06688ee5a78932c68e5b5a43d4160bef90366463916da76064af713dd7)

                        18:06:11,350 ERROR [stderr] (http--0.0.0.0-8080-2)           at org.jboss.errai.bus.server.ServerMessageBusImpl.getQueueByMessage(ServerMessageBusImpl.java:1328)

                        18:06:11,350 ERROR [stderr] (http--0.0.0.0-8080-2)           at org.jboss.errai.bus.server.ServerMessageBusImpl.send(ServerMessageBusImpl.java:707)

                        18:06:11,350 ERROR [stderr] (http--0.0.0.0-8080-2)           at org.jboss.errai.bus.server.SimpleDispatcher.dispatch(SimpleDispatcher.java:60)

                        18:06:11,351 ERROR [stderr] (http--0.0.0.0-8080-2)           at org.jboss.errai.bus.client.api.base.DefaultMessageBuilder$1.reply(DefaultMessageBuilder.java:140)

                        18:06:11,351 ERROR [stderr] (http--0.0.0.0-8080-2)           at org.jboss.errai.cdi.server.events.EventDispatcher.callback(EventDispatcher.java:178)

                        18:06:11,351 ERROR [stderr] (http--0.0.0.0-8080-2)           at org.jboss.errai.bus.server.DeliveryPlan.deliver(DeliveryPlan.java:51)

                        18:06:11,351 ERROR [stderr] (http--0.0.0.0-8080-2)           at org.jboss.errai.bus.server.ServerMessageBusImpl.sendGlobal(ServerMessageBusImpl.java:666)

                        18:06:11,352 ERROR [stderr] (http--0.0.0.0-8080-2)           at org.jboss.errai.bus.server.SimpleDispatcher.dispatchGlobal(SimpleDispatcher.java:46)

                        18:06:11,352 ERROR [stderr] (http--0.0.0.0-8080-2)           at org.jboss.errai.bus.server.service.ErraiServiceImpl.store(ErraiServiceImpl.java:92)

                        18:06:11,352 ERROR [stderr] (http--0.0.0.0-8080-2)           at org.jboss.errai.bus.server.service.ErraiServiceImpl.store(ErraiServiceImpl.java:109)

                        18:06:11,352 ERROR [stderr] (http--0.0.0.0-8080-2)           at org.jboss.errai.bus.server.servlet.DefaultBlockingServlet.doPost(DefaultBlockingServlet.java:139)

                        18:06:11,353 ERROR [stderr] (http--0.0.0.0-8080-2)           at javax.servlet.http.HttpServlet.service(HttpServlet.java:754)

                        18:06:11,353 ERROR [stderr] (http--0.0.0.0-8080-2)           at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)

                        18:06:11,353 ERROR [stderr] (http--0.0.0.0-8080-2)           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329)

                        18:06:11,353 ERROR [stderr] (http--0.0.0.0-8080-2)           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)

                        18:06:11,354 ERROR [stderr] (http--0.0.0.0-8080-2)           at org.jboss.weld.servlet.ConversationPropagationFilter.doFilter(ConversationPropagationFilter.java:62)

                        18:06:11,354 ERROR [stderr] (http--0.0.0.0-8080-2)           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)

                        18:06:11,354 ERROR [stderr] (http--0.0.0.0-8080-2)           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)

                        18:06:11,355 ERROR [stderr] (http--0.0.0.0-8080-2)           at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)

                        18:06:11,355 ERROR [stderr] (http--0.0.0.0-8080-2)           at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)

                        18:06:11,355 ERROR [stderr] (http--0.0.0.0-8080-2)           at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50)

                        18:06:11,355 ERROR [stderr] (http--0.0.0.0-8080-2)           at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153)

                        18:06:11,356 ERROR [stderr] (http--0.0.0.0-8080-2)           at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155)

                        18:06:11,356 ERROR [stderr] (http--0.0.0.0-8080-2)           at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

                        18:06:11,356 ERROR [stderr] (http--0.0.0.0-8080-2)           at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

                        18:06:11,356 ERROR [stderr] (http--0.0.0.0-8080-2)           at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368)

                        18:06:11,357 ERROR [stderr] (http--0.0.0.0-8080-2)           at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)

                        18:06:11,357 ERROR [stderr] (http--0.0.0.0-8080-2)           at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671)

                        18:06:11,357 ERROR [stderr] (http--0.0.0.0-8080-2)           at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930)

                        18:06:11,357 ERROR [stderr] (http--0.0.0.0-8080-2)           at java.lang.Thread.run(Thread.java:722)

                        18:06:11,358 ERROR [stderr] (http--0.0.0.0-8080-2) *** Message delivery failure ***

                        18:06:11,358 ERROR [stderr] (http--0.0.0.0-8080-2) Bus: org.jboss.errai.bus.server.ServerMessageBusImpl@ce62ae5

                        18:06:11,358 ERROR [stderr] (http--0.0.0.0-8080-2) Message: org.jboss.errai.bus.client.api.base.ConversationMessageWrapper@5b0a2700

                        18:06:11,358 ERROR [stderr] (http--0.0.0.0-8080-2) errorMessage: Queue is not available

                        18:06:11,359 ERROR [stderr] (http--0.0.0.0-8080-2) exception: org.jboss.errai.bus.server.QueueUnavailableException: no queue available to send. (queue or session may have expired): (session id: d0f0f06688ee5a78932c68e5b5a43d4160bef90366463916da76064af713dd7)

                        18:06:11,359 ERROR [stderr] (http--0.0.0.0-8080-2) disconnect: true

                        18:06:11,359 ERROR [stderr] (http--0.0.0.0-8080-2) java.lang.RuntimeException: Failed to dispatch CDI Event

                        18:06:11,360 ERROR [stderr] (http--0.0.0.0-8080-2)           at org.jboss.errai.cdi.server.events.EventDispatcher.callback(EventDispatcher.java:191)

                        18:06:11,360 ERROR [stderr] (http--0.0.0.0-8080-2)           at org.jboss.errai.bus.server.DeliveryPlan.deliver(DeliveryPlan.java:51)

                        18:06:11,360 ERROR [stderr] (http--0.0.0.0-8080-2)           at org.jboss.errai.bus.server.ServerMessageBusImpl.sendGlobal(ServerMessageBusImpl.java:666)

                        18:06:11,361 ERROR [stderr] (http--0.0.0.0-8080-2)           at org.jboss.errai.bus.server.SimpleDispatcher.dispatchGlobal(SimpleDispatcher.java:46)

                        18:06:11,361 ERROR [stderr] (http--0.0.0.0-8080-2)           at org.jboss.errai.bus.server.service.ErraiServiceImpl.store(ErraiServiceImpl.java:92)

                        18:06:11,361 ERROR [stderr] (http--0.0.0.0-8080-2)           at org.jboss.errai.bus.server.service.ErraiServiceImpl.store(ErraiServiceImpl.java:109)

                        18:06:11,361 ERROR [stderr] (http--0.0.0.0-8080-2)           at org.jboss.errai.bus.server.servlet.DefaultBlockingServlet.doPost(DefaultBlockingServlet.java:139)

                        18:06:11,362 ERROR [stderr] (http--0.0.0.0-8080-2)           at javax.servlet.http.HttpServlet.service(HttpServlet.java:754)

                        18:06:11,362 ERROR [stderr] (http--0.0.0.0-8080-2)           at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)

                        18:06:11,362 ERROR [stderr] (http--0.0.0.0-8080-2)           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329)

                        18:06:11,363 ERROR [stderr] (http--0.0.0.0-8080-2)           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)

                        18:06:11,363 ERROR [stderr] (http--0.0.0.0-8080-2)           at org.jboss.weld.servlet.ConversationPropagationFilter.doFilter(ConversationPropagationFilter.java:62)

                        18:06:11,363 ERROR [stderr] (http--0.0.0.0-8080-2)           at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)

                        18:06:11,364 ERROR [stderr] (http--0.0.0.0-8080-2)           at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)

                        18:06:11,364 ERROR [stderr] (http--0.0.0.0-8080-2)           at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)

                        18:06:11,364 ERROR [stderr] (http--0.0.0.0-8080-2)           at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)

                        18:06:11,364 ERROR [stderr] (http--0.0.0.0-8080-2)           at org.jboss.as.jpa.interceptor.WebNonTxEmCloserValve.invoke(WebNonTxEmCloserValve.java:50)

                        18:06:11,365 ERROR [stderr] (http--0.0.0.0-8080-2)           at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153)

                        18:06:11,365 ERROR [stderr] (http--0.0.0.0-8080-2)           at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155)

                        18:06:11,365 ERROR [stderr] (http--0.0.0.0-8080-2)           at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

                        18:06:11,365 ERROR [stderr] (http--0.0.0.0-8080-2)           at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

                        18:06:11,366 ERROR [stderr] (http--0.0.0.0-8080-2)           at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368)

                        18:06:11,366 ERROR [stderr] (http--0.0.0.0-8080-2)           at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)

                        18:06:11,366 ERROR [stderr] (http--0.0.0.0-8080-2)           at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671)

                        18:06:11,366 ERROR [stderr] (http--0.0.0.0-8080-2)           at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930)

                        18:06:11,367 ERROR [stderr] (http--0.0.0.0-8080-2)           at java.lang.Thread.run(Thread.java:722)

                        18:06:11,367 ERROR [stderr] (http--0.0.0.0-8080-2) Caused by: org.jboss.errai.bus.client.api.base.MessageDeliveryFailure: unable to deliver message: no queue available to send. (queue or session may have expired): (session id: d0f0f06688ee5a78932c68e5b5a43d4160bef90366463916da76064af713dd7)

                        18:06:11,367 ERROR [stderr] (http--0.0.0.0-8080-2)           at org.jboss.errai.bus.client.api.base.DefaultMessageBuilder$1.reply(DefaultMessageBuilder.java:143)

                        18:06:11,368 ERROR [stderr] (http--0.0.0.0-8080-2)           at org.jboss.errai.cdi.server.events.EventDispatcher.callback(EventDispatcher.java:178)

                        18:06:11,368 ERROR [stderr] (http--0.0.0.0-8080-2)           ... 25 more

                        18:06:11,368 ERROR [stderr] (http--0.0.0.0-8080-2) Caused by: org.jboss.errai.bus.server.QueueUnavailableException: no queue available to send. (queue or session may have expired): (session id: d0f0f06688ee5a78932c68e5b5a43d4160bef90366463916da76064af713dd7)

                        18:06:11,369 ERROR [stderr] (http--0.0.0.0-8080-2)           at org.jboss.errai.bus.server.ServerMessageBusImpl.getQueueByMessage(ServerMessageBusImpl.java:1328)

                        18:06:11,369 ERROR [stderr] (http--0.0.0.0-8080-2)           at org.jboss.errai.bus.server.ServerMessageBusImpl.send(ServerMessageBusImpl.java:707)

                        18:06:11,369 ERROR [stderr] (http--0.0.0.0-8080-2)           at org.jboss.errai.bus.client.api.base.ConversationMessageWrapper.sendNowWith(ConversationMessageWrapper.java:235)

                        18:06:11,370 ERROR [stderr] (http--0.0.0.0-8080-2)           at org.jboss.errai.bus.client.api.base.DefaultMessageBuilder$1.sendNowWith(DefaultMessageBuilder.java:84)

                        18:06:11,370 ERROR [stderr] (http--0.0.0.0-8080-2)           at org.jboss.errai.bus.client.util.ErrorHelper.disconnectRemoteBus(ErrorHelper.java:163)

                        18:06:11,370 ERROR [stderr] (http--0.0.0.0-8080-2)           at org.jboss.errai.bus.client.util.ErrorHelper.handleMessageDeliveryFailure(ErrorHelper.java:208)

                        18:06:11,371 ERROR [stderr] (http--0.0.0.0-8080-2)           at org.jboss.errai.bus.server.SimpleDispatcher.dispatch(SimpleDispatcher.java:63)

                        18:06:11,371 ERROR [stderr] (http--0.0.0.0-8080-2)           at org.jboss.errai.bus.client.api.base.DefaultMessageBuilder$1.reply(DefaultMessageBuilder.java:140)

                        18:06:11,371 ERROR [stderr] (http--0.0.0.0-8080-2)           ... 26 more

                        18:06:11,371 ERROR [stderr] (http--0.0.0.0-8080-2) *** Message delivery failure ***

                        18:06:11,371 ERROR [stderr] (http--0.0.0.0-8080-2) Bus: org.jboss.errai.bus.server.ServerMessageBusImpl@ce62ae5

                        18:06:11,372 ERROR [stderr] (http--0.0.0.0-8080-2) Message: CommandType=AttachRemote, ToSubject=cdi.event:Dispatcher

                        18:06:11,372 ERROR [stderr] (http--0.0.0.0-8080-2) errorMessage: Error calling remote service: cdi.event:Dispatcher

                        18:06:11,372 ERROR [stderr] (http--0.0.0.0-8080-2) exception: java.lang.RuntimeException: Failed to dispatch CDI Event

                        18:06:11,372 ERROR [stderr] (http--0.0.0.0-8080-2) disconnect: false

                         

                         

                        I attached server.log to give all the stack traces in detail.

                         

                        thanks in advance for your help

                         

                        ciao Francesco

                        • 9. Re: Cannot Build KitchenSink Sample
                          Thomas Frühbeck Newbie

                          Hi Francesco,

                          regarding the first message I remember having seen a bug report - just couldn't dig it out :-/

                          I think it is harmless.

                           

                          The second looks as if you did not either

                               - define dependency on errai-javaee-all (which contains the web-fragment.xml for Errai bus servlet)

                               or

                               - define the Errai bus servlet in your web.xml yourself:

                             <servlet>

                                <servlet-name>ErraiServlet</servlet-name>

                                <servlet-class>org.jboss.errai.bus.server.servlet.DefaultBlockingServlet</servlet-class>

                                <init-param>

                                   <param-name>service-locator</param-name>

                                   <param-value>org.jboss.errai.cdi.server.CDIServiceLocator</param-value>

                                </init-param>

                           

                                <load-on-startup>1</load-on-startup>

                             </servlet>

                           

                             <servlet-mapping>

                                <servlet-name>ErraiServlet</servlet-name>

                                <url-pattern>*.erraiBus</url-pattern>

                             </servlet-mapping>

                          • 10. Re: Cannot Build KitchenSink Sample
                            francesco milesi Newbie

                            Hi Thomas,

                             

                            I verified the content of my web.xml and it was

                             

                            <servlet>

                                  <servlet-name>ErraiServlet</servlet-name>

                                  <servlet-class>org.jboss.errai.bus.server.servlet.DefaultBlockingServlet</servlet-class>

                             

                                  <load-on-startup>1</load-on-startup>

                               </servlet>

                             

                               <servlet-mapping>

                                  <servlet-name>ErraiServlet</servlet-name>

                                  <url-pattern>*.erraiBus</url-pattern>

                               </servlet-mapping>

                             

                            so I added

                             

                                  <init-param>

                                     <param-name>service-locator</param-name>

                                     <param-value>org.jboss.errai.cdi.server.CDIServiceLocator</param-value>

                                  </init-param>

                             

                            but I get the same error. As soon as I can I will try to debug the problem on jboss7.1.

                             

                            Thanks again for your help

                             

                            ciao Francesco

                            • 11. Re: Cannot Build KitchenSink Sample
                              francesco milesi Newbie

                              Hi everybody,

                               

                              the first error


                              17:44:47,807 ERROR [org.jboss.errai.reflections.Reflections] (Thread-96) could not create Vfs.Dir from url. ignoring the exception and continuing: org.jboss.errai.reflections.ReflectionsException: could not create Vfs.Dir from url, no matching UrlType was found [vfs:/home/milesif/development/jboss/jboss-as-7.1.1/standalone/deployments/tpl.war/WEB-INF/lib/errai-bus-3.0-20130306.211729-27.jar/]

                              either use fromURL(final URL url, final List<UrlType> urlTypes) or use the static setDefaultURLTypes(final List<UrlType> urlTypes) or addDefaultURLTypes(UrlType urlType) with your specialized UrlType.

                               

                              is really harmless and the second one was due to a stupid error of mine: the remote url returned by Config.getRemoteLocation() lacked the last /.....

                              Now I can see my app working in my laptop browser, when the returned url is "http://localhost:8080/tpl/": it shows the list of members and I can add them correctly.

                               

                              Unfortunately I still have a problem when I try to run my app in the android emulator. In that case my returned url is "http://192.168.1.150:8080/tpl/" and it works because in my browser I can see the xml returned by the REST service at http://192.168.1.150:8080/tpl/rest/members .

                              The android application do not start and I can see the following error in the LogCat window

                               

                              03-13 23:49:15.490: D/CordovaLog(530): Falling back on PROMPT mode since _cordovaNative is missing.

                              03-13 23:49:15.490: D/CordovaLog(530): file:///android_asset/www/index.html: Line 1032 : Falling back on PROMPT mode since _cordovaNative is missing.

                              03-13 23:49:15.490: I/Web Console(530): Falling back on PROMPT mode since _cordovaNative is missing. at file:///android_asset/www/index.html:1032

                              03-13 23:49:15.520: W/System.err(530): org.json.JSONException: Index 3 out of range [0..3)

                              03-13 23:49:15.520: W/System.err(530):           at org.json.JSONArray.get(JSONArray.java:263)

                              03-13 23:49:15.520: W/System.err(530):           at org.json.JSONArray.getBoolean(JSONArray.java:286)

                              03-13 23:49:15.520: W/System.err(530):           at org.apache.cordova.CordovaChromeClient.onJsPrompt(CordovaChromeClient.java:205)

                              03-13 23:49:15.520: W/System.err(530):           at android.webkit.CallbackProxy.handleMessage(CallbackProxy.java:600)

                              03-13 23:49:15.520: W/System.err(530):           at android.os.Handler.dispatchMessage(Handler.java:99)

                              03-13 23:49:15.520: W/System.err(530):           at android.os.Looper.loop(Looper.java:137)

                              03-13 23:49:15.530: W/System.err(530):           at android.app.ActivityThread.main(ActivityThread.java:4424)

                              03-13 23:49:15.530: W/System.err(530):           at java.lang.reflect.Method.invokeNative(Native Method)

                              03-13 23:49:15.530: W/System.err(530):           at java.lang.reflect.Method.invoke(Method.java:511)

                              03-13 23:49:15.530: W/System.err(530):           at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)

                              03-13 23:49:15.530: W/System.err(530):           at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)

                              03-13 23:49:15.530: W/System.err(530):           at dalvik.system.NativeStart.main(Native Method)

                               

                              Does anyone have any idea? I will keep trying.

                               

                              thanks in advance to everybody

                               

                              ciao Francesco