1 2 Previous Next 16 Replies Latest reply on Dec 18, 2014 11:07 AM by ozizka

    Error, 'javaclass' element must have a non-empty 'type' attribute

    eabrand

      I'm getting the following error when running my custom rule.

       

      ***ERROR*** Failed to parse XML configuration at: file:/Users/emily/Downloads/windup-distribution-2.0.0.Beta4/rules/extrarules.windup.xml due to: Error, 'javaclass' element must have a non-empty 'type' attribute

       

      <?xml version="1.0"?>

      <ruleset xmlns="http://windup.jboss.org/v1/xml"

        id="customruleprovider">

        <!-- This defaults to MIGRATION_RULES -->

        <phase>

          DISCOVERY

        </phase>

        <rules>

          <rule>

            <when>

              <javaclass references="weblogic.servlet">

                <location>IMPORT</location>

              </javaclass>

            </when>

            <perform>

              <hint>

            <message>Message from XML Rule</message>

                <link href="http://example.com" description="Description from XML Hint Link" />

              </hint>

              <log message="test log message"/>

            </perform>

            <otherwise>

              <!--  -->

            </otherwise>

          </rule>

        </rules>

      </ruleset>

        • 1. Re: Error, 'javaclass' element must have a non-empty 'type' attribute
          ozizka

          Hi Emily,

           

          looking at JavaClassHander.java,

          the error message should be "Error, 'javaclass' element must have a non-empty 'references' attribute".

           

          However in your case it is appearantly non-empty.

          Could you perhaps try debugging?  ./windup --debug, see https://github.com/windup/windup/wiki/Dev:-Debugging-and-Profiling

          • 3. Re: Error, 'javaclass' element must have a non-empty 'type' attribute
            eabrand

            ***ERROR*** Error while executing 'Windup Migrate App'

            org.jboss.windup.util.exception.WindupException: Failed to parse XML configuration at: file:/Users/emily/Downloads/windup-distribution-2.0.0.Beta4/rules/extrarules.windup.xml due to: Error, 'javaclass' element must have a non-empty 'type' attribute

              at org.jboss.windup.config.parser.XMLRuleProviderLoader.getProviders(XMLRuleProviderLoader.java:123)

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

              at java.lang.reflect.Method.invoke(Method.java:606)

              at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor$1.call(ClassLoaderInterceptor.java:87)

              at org.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:42)

              at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor.invoke(ClassLoaderInterceptor.java:103)

              at org.jboss.windup.config.parser.XMLRuleProviderLoader_$$_javassist_17d7acc2-8631-4b6d-b318-b4938be75486.getProviders(XMLRuleProviderLoader_$$_javassist_17d7acc2-8631-4b6d-b318-b4938be75486.java)

              at org.jboss.windup.config.loader.WindupConfigurationLoaderImpl.getProviders(WindupConfigurationLoaderImpl.java:61)

              at org.jboss.windup.config.loader.WindupConfigurationLoaderImpl.build(WindupConfigurationLoaderImpl.java:74)

              at org.jboss.windup.config.loader.WindupConfigurationLoaderImpl.loadConfiguration(WindupConfigurationLoaderImpl.java:53)

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

              at java.lang.reflect.Method.invoke(Method.java:606)

              at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor$1.call(ClassLoaderInterceptor.java:87)

              at org.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:42)

              at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor.invoke(ClassLoaderInterceptor.java:103)

              at org.jboss.windup.config.loader.WindupConfigurationLoaderImpl_$$_javassist_c8620211-d113-4010-bd2f-8932499c718f.loadConfiguration(WindupConfigurationLoaderImpl_$$_javassist_c8620211-d113-4010-bd2f-8932499c718f.java)

              at org.jboss.windup.exec.WindupProcessorImpl.execute(WindupProcessorImpl.java:65)

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

              at java.lang.reflect.Method.invoke(Method.java:606)

              at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor$1.call(ClassLoaderInterceptor.java:87)

              at org.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:42)

              at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor.invoke(ClassLoaderInterceptor.java:103)

              at org.jboss.windup.exec.WindupProcessorImpl_$$_javassist_a0c0be0f-bc2a-4dd3-8da4-c74273c68d19.execute(WindupProcessorImpl_$$_javassist_a0c0be0f-bc2a-4dd3-8da4-c74273c68d19.java)

              at org.jboss.windup.ui.WindupCommand.execute(WindupCommand.java:204)

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

              at java.lang.reflect.Method.invoke(Method.java:606)

              at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor$1.call(ClassLoaderInterceptor.java:87)

              at org.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:42)

              at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor.invoke(ClassLoaderInterceptor.java:103)

              at org.jboss.windup.ui.WindupCommand_$$_javassist_83218323-6d7d-4b8c-a01a-9b36a92ad0d3.execute(WindupCommand_$$_javassist_83218323-6d7d-4b8c-a01a-9b36a92ad0d3.java)

              at org.jboss.forge.addon.ui.impl.controller.SingleCommandControllerImpl.execute(SingleCommandControllerImpl.java:90)

              at org.jboss.forge.addon.shell.aesh.CommandAdapter.execute(CommandAdapter.java:74)

              at org.jboss.aesh.console.AeshConsoleImpl$AeshConsoleCallbackImpl.execute(AeshConsoleImpl.java:325)

              at org.jboss.aesh.console.AeshProcess.run(AeshProcess.java:40)

              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)

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

              at java.lang.Thread.run(Thread.java:745)

            Caused by: org.jboss.windup.util.exception.WindupException: Error, 'javaclass' element must have a non-empty 'type' attribute

              at org.jboss.windup.rules.apps.java.xml.JavaClassHandler.processElement(JavaClassHandler.java:46)

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

              at java.lang.reflect.Method.invoke(Method.java:606)

              at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor$1.call(ClassLoaderInterceptor.java:87)

              at org.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:42)

              at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor.invoke(ClassLoaderInterceptor.java:103)

              at org.jboss.windup.rules.apps.java.xml.JavaClassHandler_$$_javassist_69931e94-c92e-4115-a1c3-2dfbee0a9f0d.processElement(JavaClassHandler_$$_javassist_69931e94-c92e-4115-a1c3-2dfbee0a9f0d.java)

              at org.jboss.windup.rules.apps.java.xml.JavaClassHandler.processElement(JavaClassHandler.java:35)

              at org.jboss.windup.config.parser.ParserContext.processElement(ParserContext.java:85)

              at org.jboss.windup.config.parser.xml.when.WhenHandler.processElement(WhenHandler.java:28)

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

              at java.lang.reflect.Method.invoke(Method.java:606)

              at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor$1.call(ClassLoaderInterceptor.java:87)

              at org.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:42)

              at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor.invoke(ClassLoaderInterceptor.java:103)

              at org.jboss.windup.config.parser.xml.when.WhenHandler_$$_javassist_0cb3d0a4-76b6-4394-900c-8934c2d2db53.processElement(WhenHandler_$$_javassist_0cb3d0a4-76b6-4394-900c-8934c2d2db53.java)

              at org.jboss.windup.config.parser.xml.when.WhenHandler.processElement(WhenHandler.java:18)

              at org.jboss.windup.config.parser.ParserContext.processElement(ParserContext.java:85)

              at org.jboss.windup.config.parser.xml.RuleHandler.processElement(RuleHandler.java:30)

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

              at java.lang.reflect.Method.invoke(Method.java:606)

              at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor$1.call(ClassLoaderInterceptor.java:87)

              at org.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:42)

              at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor.invoke(ClassLoaderInterceptor.java:103)

              at org.jboss.windup.config.parser.xml.RuleHandler_$$_javassist_998a509a-1d5a-4252-9a92-23592791bd5f.processElement(RuleHandler_$$_javassist_998a509a-1d5a-4252-9a92-23592791bd5f.java)

              at org.jboss.windup.config.parser.xml.RuleHandler.processElement(RuleHandler.java:19)

              at org.jboss.windup.config.parser.ParserContext.processElement(ParserContext.java:85)

              at org.jboss.windup.config.parser.xml.RulesHandler.processElement(RulesHandler.java:21)

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

              at java.lang.reflect.Method.invoke(Method.java:606)

              at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor$1.call(ClassLoaderInterceptor.java:87)

              at org.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:42)

              at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor.invoke(ClassLoaderInterceptor.java:103)

              at org.jboss.windup.config.parser.xml.RulesHandler_$$_javassist_d2881b22-b805-4b41-93db-e8095993e863.processElement(RulesHandler_$$_javassist_d2881b22-b805-4b41-93db-e8095993e863.java)

              at org.jboss.windup.config.parser.xml.RulesHandler.processElement(RulesHandler.java:12)

              at org.jboss.windup.config.parser.ParserContext.processElement(ParserContext.java:85)

              at org.jboss.windup.config.parser.xml.RuleProviderHandler.processElement(RuleProviderHandler.java:43)

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

              at java.lang.reflect.Method.invoke(Method.java:606)

              at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor$1.call(ClassLoaderInterceptor.java:87)

              at org.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:42)

              at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor.invoke(ClassLoaderInterceptor.java:103)

              at org.jboss.windup.config.parser.xml.RuleProviderHandler_$$_javassist_732b8bd3-681e-49c4-81e1-a184bb7a16ea.processElement(RuleProviderHandler_$$_javassist_732b8bd3-681e-49c4-81e1-a184bb7a16ea.java)

              at org.jboss.windup.config.parser.xml.RuleProviderHandler.processElement(RuleProviderHandler.java:23)

              at org.jboss.windup.config.parser.ParserContext.processElement(ParserContext.java:85)

              at org.jboss.windup.config.parser.XMLRuleProviderLoader.getProviders(XMLRuleProviderLoader.java:118)

              ... 44 more

            ***ERROR*** Failed to parse XML configuration at: file:/Users/emily/Downloads/windup-distribution-2.0.0.Beta4/rules/extrarules.windup.xml due to: Error, 'javaclass' element must have a non-empty 'type' attribute

            [bin]$

            • 5. Re: Error, 'javaclass' element must have a non-empty 'type' attribute
              jsightler

              I just noticed that this is with beta 4. I would suggest retrying with beta 6.

              • 6. Re: Error, 'javaclass' element must have a non-empty 'type' attribute
                eabrand

                Which version in Forge is it? Right now the wiki says --version 2.0.0.Alpha1 I tried putting in --version 2.0.0.Beta6 but it didn't work.

                • 7. Re: Error, 'javaclass' element must have a non-empty 'type' attribute
                  lincolnthree

                  No sure what you are referring to. Where is this forge version used/described?

                  • 8. Re: Error, 'javaclass' element must have a non-empty 'type' attribute
                    eabrand

                    Front page under installation and usage: windup/windup · GitHub

                     

                    1. Run "addon-install" with the following parameters:

                      [bin]$ addon-install --groupId org.jboss.windup.legacy.application --name legacy-windup --version 2.0.0.Alpha1

                    • 9. Re: Error, 'javaclass' element must have a non-empty 'type' attribute
                      ozizka

                      Emily, that README is obsolete. Please follow the User Guide at User Guide · windup/windup Wiki · GitHub (or single HTML at http://windup.github.io/windup/docs/2.0.0.Beta6/html/WindupUserGuide.html ).

                       

                      Thanks for finding out!

                      • 10. Re: Error, 'javaclass' element must have a non-empty 'type' attribute
                        ozizka

                        I've updated the readme.

                        • 11. Re: Error, 'javaclass' element must have a non-empty 'type' attribute
                          eabrand

                          I'm using Beta6 now. I'm getting the following error with the above extrarules.windup.xml

                           

                          ***ERROR*** Error while executing 'Windup Migrate App'

                          org.jboss.windup.util.exception.WindupException: Failed to parse XML configuration at: file:/Users/emily/Downloads/windup-distribution-2.0.0.Beta6/rules/extrarules.windup.xml due to: No Handler registered for element named [otherwise] in namespace: [http://windup.jboss.org/v1/xml]

                            at org.jboss.windup.config.parser.XMLRuleProviderLoader.getProviders(XMLRuleProviderLoader.java:123)

                            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

                            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                            at java.lang.reflect.Method.invoke(Method.java:606)

                            at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor$1.call(ClassLoaderInterceptor.java:87)

                            at org.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:42)

                            at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor.invoke(ClassLoaderInterceptor.java:103)

                            at org.jboss.windup.config.parser.XMLRuleProviderLoader_$$_javassist_dd8ea720-c281-476c-abaa-e67502408f4c.getProviders(XMLRuleProviderLoader_$$_javassist_dd8ea720-c281-476c-abaa-e67502408f4c.java)

                            at org.jboss.windup.config.loader.WindupConfigurationLoaderImpl.getProviders(WindupConfigurationLoaderImpl.java:61)

                            at org.jboss.windup.config.loader.WindupConfigurationLoaderImpl.build(WindupConfigurationLoaderImpl.java:74)

                            at org.jboss.windup.config.loader.WindupConfigurationLoaderImpl.loadConfiguration(WindupConfigurationLoaderImpl.java:53)

                            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

                            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                            at java.lang.reflect.Method.invoke(Method.java:606)

                            at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor$1.call(ClassLoaderInterceptor.java:87)

                            at org.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:42)

                            at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor.invoke(ClassLoaderInterceptor.java:103)

                            at org.jboss.windup.config.loader.WindupConfigurationLoaderImpl_$$_javassist_7c228a5f-1db4-418a-9d89-c98e94cf1327.loadConfiguration(WindupConfigurationLoaderImpl_$$_javassist_7c228a5f-1db4-418a-9d89-c98e94cf1327.java)

                            at org.jboss.windup.exec.WindupProcessorImpl.execute(WindupProcessorImpl.java:77)

                            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

                            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                            at java.lang.reflect.Method.invoke(Method.java:606)

                            at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor$1.call(ClassLoaderInterceptor.java:87)

                            at org.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:42)

                            at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor.invoke(ClassLoaderInterceptor.java:103)

                            at org.jboss.windup.exec.WindupProcessorImpl_$$_javassist_a0f81d1d-376f-4672-857f-a3c40543fee0.execute(WindupProcessorImpl_$$_javassist_a0f81d1d-376f-4672-857f-a3c40543fee0.java)

                            at org.jboss.windup.ui.WindupCommand.execute(WindupCommand.java:264)

                            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

                            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                            at java.lang.reflect.Method.invoke(Method.java:606)

                            at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor$1.call(ClassLoaderInterceptor.java:87)

                            at org.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:42)

                            at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor.invoke(ClassLoaderInterceptor.java:103)

                            at org.jboss.windup.ui.WindupCommand_$$_javassist_181f8b09-824f-460f-a30d-4e5a4910419d.execute(WindupCommand_$$_javassist_181f8b09-824f-460f-a30d-4e5a4910419d.java)

                            at org.jboss.forge.addon.ui.impl.controller.SingleCommandControllerImpl.execute(SingleCommandControllerImpl.java:90)

                            at org.jboss.forge.addon.shell.aesh.CommandAdapter.execute(CommandAdapter.java:74)

                            at org.jboss.aesh.console.AeshConsoleImpl$AeshConsoleCallbackImpl.execute(AeshConsoleImpl.java:325)

                            at org.jboss.aesh.console.AeshProcess.run(AeshProcess.java:40)

                            at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)

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

                            at java.lang.Thread.run(Thread.java:745)

                          Caused by: org.jboss.windup.config.exception.ConfigurationException: No Handler registered for element named [otherwise] in namespace: [http://windup.jboss.org/v1/xml]

                            at org.jboss.windup.config.parser.ParserContext.processElement(ParserContext.java:88)

                            at org.jboss.windup.config.parser.xml.RuleHandler.processElement(RuleHandler.java:30)

                            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

                            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                            at java.lang.reflect.Method.invoke(Method.java:606)

                            at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor$1.call(ClassLoaderInterceptor.java:87)

                            at org.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:42)

                            at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor.invoke(ClassLoaderInterceptor.java:103)

                            at org.jboss.windup.config.parser.xml.RuleHandler_$$_javassist_68fccd68-0919-41a6-83a8-0920a7e71bbf.processElement(RuleHandler_$$_javassist_68fccd68-0919-41a6-83a8-0920a7e71bbf.java)

                            at org.jboss.windup.config.parser.xml.RuleHandler.processElement(RuleHandler.java:19)

                            at org.jboss.windup.config.parser.ParserContext.processElement(ParserContext.java:85)

                            at org.jboss.windup.config.parser.xml.RulesHandler.processElement(RulesHandler.java:21)

                            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

                            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                            at java.lang.reflect.Method.invoke(Method.java:606)

                            at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor$1.call(ClassLoaderInterceptor.java:87)

                            at org.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:42)

                            at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor.invoke(ClassLoaderInterceptor.java:103)

                            at org.jboss.windup.config.parser.xml.RulesHandler_$$_javassist_cf0654d2-6bd3-4d57-b998-48853f5277cc.processElement(RulesHandler_$$_javassist_cf0654d2-6bd3-4d57-b998-48853f5277cc.java)

                            at org.jboss.windup.config.parser.xml.RulesHandler.processElement(RulesHandler.java:12)

                            at org.jboss.windup.config.parser.ParserContext.processElement(ParserContext.java:85)

                            at org.jboss.windup.config.parser.xml.RuleProviderHandler.processElement(RuleProviderHandler.java:43)

                            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

                            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                            at java.lang.reflect.Method.invoke(Method.java:606)

                            at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor$1.call(ClassLoaderInterceptor.java:87)

                            at org.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:42)

                            at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor.invoke(ClassLoaderInterceptor.java:103)

                            at org.jboss.windup.config.parser.xml.RuleProviderHandler_$$_javassist_335bda2a-8d06-4d32-8cbe-8e798b1b66ca.processElement(RuleProviderHandler_$$_javassist_335bda2a-8d06-4d32-8cbe-8e798b1b66ca.java)

                            at org.jboss.windup.config.parser.xml.RuleProviderHandler.processElement(RuleProviderHandler.java:23)

                            at org.jboss.windup.config.parser.ParserContext.processElement(ParserContext.java:85)

                            at org.jboss.windup.config.parser.XMLRuleProviderLoader.getProviders(XMLRuleProviderLoader.java:118)

                            ... 44 more

                          ***ERROR*** Failed to parse XML configuration at: file:/Users/emily/Downloads/windup-distribution-2.0.0.Beta6/rules/extrarules.windup.xml due to: No Handler registered for element named [otherwise] in namespace: [http://windup.jboss.org/v1/xml]

                          [bin]$ windup-migrate-app --input /Users/emily/Downloads/InstallerVu.ear.ear --output /Users/emily/Downloads/installervu-bell4 --packages com.expressvu global inquiry jsp_servlet locale reports ticket

                          Overwrite all contents of "/Users/emily/Downloads/installervu-bell4" (anything already in the directory will be deleted)? [y/N]  y

                          Properties: {index.search.directory=/Users/emily/Downloads/installervu-bell4/graph/graphsearch, cache.db-cache-time=0, cache.db-cache=true, index.search.backend=lucene, cache.db-cache-size=0.05, cache.db-cache-clean-wait=0, storage.backend=berkeleyje, storage.directory=/Users/emily/Downloads/installervu-bell4/graph/titangraph, storage.berkeleydb.cache-percentage=1}

                          ***ERROR*** Error while executing 'Windup Migrate App'

                          org.jboss.windup.util.exception.WindupException: Failed to parse XML configuration at: file:/Users/emily/Downloads/windup-distribution-2.0.0.Beta6/rules/extrarules.windup.xml due to: No Handler registered for element named [otherwise] in namespace: [http://windup.jboss.org/v1/xml]

                            at org.jboss.windup.config.parser.XMLRuleProviderLoader.getProviders(XMLRuleProviderLoader.java:123)

                            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

                            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                            at java.lang.reflect.Method.invoke(Method.java:606)

                            at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor$1.call(ClassLoaderInterceptor.java:87)

                            at org.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:42)

                            at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor.invoke(ClassLoaderInterceptor.java:103)

                            at org.jboss.windup.config.parser.XMLRuleProviderLoader_$$_javassist_dd8ea720-c281-476c-abaa-e67502408f4c.getProviders(XMLRuleProviderLoader_$$_javassist_dd8ea720-c281-476c-abaa-e67502408f4c.java)

                            at org.jboss.windup.config.loader.WindupConfigurationLoaderImpl.getProviders(WindupConfigurationLoaderImpl.java:61)

                            at org.jboss.windup.config.loader.WindupConfigurationLoaderImpl.build(WindupConfigurationLoaderImpl.java:74)

                            at org.jboss.windup.config.loader.WindupConfigurationLoaderImpl.loadConfiguration(WindupConfigurationLoaderImpl.java:53)

                            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

                            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                            at java.lang.reflect.Method.invoke(Method.java:606)

                            at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor$1.call(ClassLoaderInterceptor.java:87)

                            at org.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:42)

                            at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor.invoke(ClassLoaderInterceptor.java:103)

                            at org.jboss.windup.config.loader.WindupConfigurationLoaderImpl_$$_javassist_7c228a5f-1db4-418a-9d89-c98e94cf1327.loadConfiguration(WindupConfigurationLoaderImpl_$$_javassist_7c228a5f-1db4-418a-9d89-c98e94cf1327.java)

                            at org.jboss.windup.exec.WindupProcessorImpl.execute(WindupProcessorImpl.java:77)

                            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

                            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                            at java.lang.reflect.Method.invoke(Method.java:606)

                            at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor$1.call(ClassLoaderInterceptor.java:87)

                            at org.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:42)

                            at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor.invoke(ClassLoaderInterceptor.java:103)

                            at org.jboss.windup.exec.WindupProcessorImpl_$$_javassist_a0f81d1d-376f-4672-857f-a3c40543fee0.execute(WindupProcessorImpl_$$_javassist_a0f81d1d-376f-4672-857f-a3c40543fee0.java)

                            at org.jboss.windup.ui.WindupCommand.execute(WindupCommand.java:264)

                            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

                            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                            at java.lang.reflect.Method.invoke(Method.java:606)

                            at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor$1.call(ClassLoaderInterceptor.java:87)

                            at org.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:42)

                            at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor.invoke(ClassLoaderInterceptor.java:103)

                            at org.jboss.windup.ui.WindupCommand_$$_javassist_181f8b09-824f-460f-a30d-4e5a4910419d.execute(WindupCommand_$$_javassist_181f8b09-824f-460f-a30d-4e5a4910419d.java)

                            at org.jboss.forge.addon.ui.impl.controller.SingleCommandControllerImpl.execute(SingleCommandControllerImpl.java:90)

                            at org.jboss.forge.addon.shell.aesh.CommandAdapter.execute(CommandAdapter.java:74)

                            at org.jboss.aesh.console.AeshConsoleImpl$AeshConsoleCallbackImpl.execute(AeshConsoleImpl.java:325)

                            at org.jboss.aesh.console.AeshProcess.run(AeshProcess.java:40)

                            at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)

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

                            at java.lang.Thread.run(Thread.java:745)

                          Caused by: org.jboss.windup.config.exception.ConfigurationException: No Handler registered for element named [otherwise] in namespace: [http://windup.jboss.org/v1/xml]

                            at org.jboss.windup.config.parser.ParserContext.processElement(ParserContext.java:88)

                            at org.jboss.windup.config.parser.xml.RuleHandler.processElement(RuleHandler.java:30)

                            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

                            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                            at java.lang.reflect.Method.invoke(Method.java:606)

                            at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor$1.call(ClassLoaderInterceptor.java:87)

                            at org.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:42)

                            at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor.invoke(ClassLoaderInterceptor.java:103)

                            at org.jboss.windup.config.parser.xml.RuleHandler_$$_javassist_68fccd68-0919-41a6-83a8-0920a7e71bbf.processElement(RuleHandler_$$_javassist_68fccd68-0919-41a6-83a8-0920a7e71bbf.java)

                            at org.jboss.windup.config.parser.xml.RuleHandler.processElement(RuleHandler.java:19)

                            at org.jboss.windup.config.parser.ParserContext.processElement(ParserContext.java:85)

                            at org.jboss.windup.config.parser.xml.RulesHandler.processElement(RulesHandler.java:21)

                            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

                            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                            at java.lang.reflect.Method.invoke(Method.java:606)

                            at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor$1.call(ClassLoaderInterceptor.java:87)

                            at org.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:42)

                            at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor.invoke(ClassLoaderInterceptor.java:103)

                            at org.jboss.windup.config.parser.xml.RulesHandler_$$_javassist_cf0654d2-6bd3-4d57-b998-48853f5277cc.processElement(RulesHandler_$$_javassist_cf0654d2-6bd3-4d57-b998-48853f5277cc.java)

                            at org.jboss.windup.config.parser.xml.RulesHandler.processElement(RulesHandler.java:12)

                            at org.jboss.windup.config.parser.ParserContext.processElement(ParserContext.java:85)

                            at org.jboss.windup.config.parser.xml.RuleProviderHandler.processElement(RuleProviderHandler.java:43)

                            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

                            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

                            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

                            at java.lang.reflect.Method.invoke(Method.java:606)

                            at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor$1.call(ClassLoaderInterceptor.java:87)

                            at org.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:42)

                            at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor.invoke(ClassLoaderInterceptor.java:103)

                            at org.jboss.windup.config.parser.xml.RuleProviderHandler_$$_javassist_335bda2a-8d06-4d32-8cbe-8e798b1b66ca.processElement(RuleProviderHandler_$$_javassist_335bda2a-8d06-4d32-8cbe-8e798b1b66ca.java)

                            at org.jboss.windup.config.parser.xml.RuleProviderHandler.processElement(RuleProviderHandler.java:23)

                            at org.jboss.windup.config.parser.ParserContext.processElement(ParserContext.java:85)

                            at org.jboss.windup.config.parser.XMLRuleProviderLoader.getProviders(XMLRuleProviderLoader.java:118)

                            ... 44 more

                          ***ERROR*** Failed to parse XML configuration at: file:/Users/emily/Downloads/windup-distribution-2.0.0.Beta6/rules/extrarules.windup.xml due to: No Handler registered for element named [otherwise] in namespace: [http://windup.jboss.org/v1/xml]

                          • 12. Re: Error, 'javaclass' element must have a non-empty 'type' attribute
                            ozizka

                            Looks like a bug in RuleHandler and/or ParserContext, which assume there

                            is a handler for every element, but I can't see any for  -

                            that is handled in RuleHandler's code.

                            • 13. Re: Error, 'javaclass' element must have a non-empty 'type' attribute
                              eabrand

                              What do you recommend I do for a workaround? Do I keep all of the items in the test file and just change what's needed?

                              • 14. Re: Error, 'javaclass' element must have a non-empty 'type' attribute
                                jsightler

                                Yes, I think we are missing a handler for "otherwise". Ondrej, did you file a JIRA?

                                1 2 Previous Next