9 Replies Latest reply on Mar 11, 2012 4:03 PM by jcsesar

    Utf codification deploying an esb service

    jcsesar

      Hello,

       

      When i deploy an esb service with an webservice endpoint i get the error below.

       

       

      DEPLOYMENTS IN ERROR:

      Deployment "jboss.esb.vfsfile:/C:/jboss-soa-p-standalone-5/jboss-esb/server/default/deploy/ajtesbproxy/esbcontent/META-INF/jboss-esb.xml" is in error due to the following reason(s):

      java.io.IOException: org.apache.xerces.impl.io.MalformedByteSequenceException   : Invalid byte 2 of 4-byte UTF-8 sequence.

       

      The problem is because one of the webservices in the url have one  ' - '       http://localhost:8080/name.....-system-ws/

       

      Any idea  for a posible solution

       

      Thanks in advance

        • 1. Re: Utf codification deploying an esb service
          tomeicher

          Hello, are you sure the dash is a regular "minus sign" (0x2d) and not some windows/winword "long dash" ?

          http://csswizardry.com/2010/01/the-three-types-of-dash/

          Maybe you should post you whole jboss-esb.xml (as file attachment, not copy-paste)

           

          Cheers, Tom.

          • 2. Re: Utf codification deploying an esb service
            jcsesar

            I'm sure is the minus sign.

             

            J.Carlos

            • 3. Re: Utf codification deploying an esb service
              tomeicher

              This doesn't sound like it has to do anything with JBoss or ESB at all.

              So we'd still need to see the file (as attachment, not copy-paste, if that's possible) and the full stack trace, to be able to tell anything...

              Cheers, Tom.

              • 4. Re: Utf codification deploying an esb service
                jcsesar

                Hi. This is the stack trace of jboss

                 

                11:39:54,908 ERROR [STDERR] [Fatal Error] :131:37: Invalid byte 2 of 4-byte UTF-8 sequence.

                11:39:54,908 ERROR [AbstractKernelController] Error installing to Start: name=jboss.esb.vfsfile:/C:/jboss-soa-p-standalone-5/jboss-esb/server/default/deploy/ajtesbproxy/esbcontent/META-INF/jboss-esb.xml state=Create

                 

                 

                 

                 

                 

                 

                 

                 

                 

                 

                 

                 

                 

                 

                 

                 

                 

                 

                 

                 

                 

                 

                 

                 

                 

                 

                 

                 

                 

                 

                 

                 

                 

                 

                 

                 

                 

                 

                 

                 

                 

                 

                 

                 

                 

                 

                 

                 

                 

                 

                 

                 

                 

                 

                 

                 

                 

                 

                 

                 

                 

                 

                 

                 

                 

                 

                 

                 

                 

                 

                 

                 

                 

                 

                 

                 

                 

                 

                 

                 

                 

                 

                 

                 

                 

                 

                 

                 

                 

                 

                 

                 

                 

                 

                 

                 

                 

                 

                 

                 

                 

                 

                org.jboss.soa.esb.listeners.lifecycle.ManagedLifecycleException

                 

                 

                : Error configuring action processing pipeline

                at org.jboss.soa.esb.listeners.message.MessageAwareListener.doInitialise(

                MessageAwareListener.java:192

                )

                at org.jboss.soa.esb.listeners.lifecycle.AbstractManagedLifecycle.initialise(

                AbstractManagedLifecycle.java:133

                )

                at org.jboss.soa.esb.listeners.lifecycle.ManagedLifecycleController.initialiseInstances(

                ManagedLifecycleController.java:109

                )

                at org.jboss.soa.esb.listeners.lifecycle.ManagedLifecycleController.start(

                ManagedLifecycleController.java:66

                )

                at org.jboss.soa.esb.listeners.deployers.mc.EsbDeployment.start(

                EsbDeployment.java:232

                )

                at sun.reflect.NativeMethodAccessorImpl.invoke0(

                Native Method

                )

                at sun.reflect.NativeMethodAccessorImpl.invoke(

                NativeMethodAccessorImpl.java:39

                )

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(

                DelegatingMethodAccessorImpl.java:25

                )

                at java.lang.reflect.Method.invoke(

                Method.java:597

                )

                at org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(

                ReflectionUtils.java:59

                )

                at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(

                ReflectMethodInfoImpl.java:150

                )

                at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(

                BasicMethodJoinPoint.java:66

                )

                at org.jboss.kernel.plugins.dependency.KernelControllerContextAction$JoinpointDispatchWrapper.execute(

                KernelControllerContextAction.java:243

                )

                at org.jboss.kernel.plugins.dependency.ExecutionWrapper.execute(

                ExecutionWrapper.java:47

                )

                at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchExecutionWrapper(

                KernelControllerContextAction.java:111

                )

                at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchJoinPoint(

                KernelControllerContextAction.java:72

                )

                at org.jboss.kernel.plugins.dependency.LifecycleAction.installActionInternal(

                LifecycleAction.java:221

                )

                at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(

                InstallsAwareAction.java:54

                )

                at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(

                InstallsAwareAction.java:42

                )

                at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(

                SimpleControllerContextAction.java:62

                )

                at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(

                AccessControllerContextAction.java:71

                )

                at org.jboss.dependency.plugins.AbstractControllerContextActions.install(

                AbstractControllerContextActions.java:51

                )

                at org.jboss.dependency.plugins.AbstractControllerContext.install(

                AbstractControllerContext.java:348

                )

                at org.jboss.dependency.plugins.AbstractController.install(

                AbstractController.java:1652

                )

                at org.jboss.dependency.plugins.AbstractController.incrementState(

                AbstractController.java:938

                )

                at org.jboss.dependency.plugins.AbstractController.resolveContexts(

                AbstractController.java:1082

                )

                at org.jboss.dependency.plugins.AbstractController.resolveContexts(

                AbstractController.java:988

                )

                at org.jboss.dependency.plugins.AbstractController.change(

                AbstractController.java:826

                )

                at org.jboss.dependency.plugins.AbstractController.change(

                AbstractController.java:556

                )

                at org.jboss.system.ServiceController.doChange(

                ServiceController.java:688

                )

                at org.jboss.system.ServiceController.start(

                ServiceController.java:460

                )

                at org.jboss.system.microcontainer.jmx.ServiceControllerStartStopLifecycleCallback.install(

                ServiceControllerStartStopLifecycleCallback.java:44

                )

                at sun.reflect.GeneratedMethodAccessor201.invoke(Unknown Source)

                at sun.reflect.DelegatingMethodAccessorImpl.invoke(

                DelegatingMethodAccessorImpl.java:25

                )

                at java.lang.reflect.Method.invoke(

                Method.java:597

                )

                at org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(

                ReflectionUtils.java:59

                )

                at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(

                ReflectMethodInfoImpl.java:150

                )

                at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(

                BasicMethodJoinPoint.java:66

                )

                at org.jboss.beans.info.plugins.AbstractBeanInfo.invoke(

                AbstractBeanInfo.java:300

                )

                at org.jboss.kernel.plugins.dependency.AbstractKernelControllerContext.invoke(

                AbstractKernelControllerContext.java:291

                )

                at org.jboss.dependency.plugins.AbstractLifecycleCallbackItem.install(

                AbstractLifecycleCallbackItem.java:87

                )

                at org.jboss.dependency.plugins.AbstractController.handleLifecycleCallbacks(

                AbstractController.java:1589

                )

                at org.jboss.dependency.plugins.AbstractController.handleInstallLifecycleCallbacks(

                AbstractController.java:1554

                )

                at org.jboss.dependency.plugins.AbstractController.incrementState(

                AbstractController.java:947

                )

                at org.jboss.dependency.plugins.AbstractController.resolveContexts(

                AbstractController.java:1082

                )

                at org.jboss.dependency.plugins.AbstractController.resolveContexts(

                AbstractController.java:988

                )

                at org.jboss.dependency.plugins.AbstractController.install(

                AbstractController.java:778

                )

                at org.jboss.dependency.plugins.AbstractController.install(

                AbstractController.java:543

                )

                at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(

                BeanMetaDataDeployer.java:125

                )

                at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(

                BeanMetaDataDeployer.java:52

                )

                at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(

                AbstractSimpleRealDeployer.java:62

                )

                at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(

                AbstractRealDeployer.java:55

                )

                at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(

                DeployerWrapper.java:179

                )

                at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(

                DeployersImpl.java:1454

                )

                at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(

                DeployersImpl.java:1172

                )

                at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(

                DeployersImpl.java:1193

                )

                at org.jboss.deployers.plugins.deployers.DeployersImpl.install(

                DeployersImpl.java:1113

                )

                at org.jboss.dependency.plugins.AbstractControllerContext.install(

                AbstractControllerContext.java:348

                )

                at org.jboss.dependency.plugins.AbstractController.install(

                AbstractController.java:1652

                )

                at org.jboss.dependency.plugins.AbstractController.incrementState(

                AbstractController.java:938

                )

                at org.jboss.dependency.plugins.AbstractController.resolveContexts(

                AbstractController.java:1082

                )

                at org.jboss.dependency.plugins.AbstractController.resolveContexts(

                AbstractController.java:988

                )

                at org.jboss.dependency.plugins.AbstractController.change(

                AbstractController.java:826

                )

                at org.jboss.dependency.plugins.AbstractController.change(

                AbstractController.java:556

                )

                at org.jboss.deployers.plugins.deployers.DeployersImpl.process(

                DeployersImpl.java:789

                )

                at org.jboss.deployers.plugins.main.MainDeployerImpl.process(

                MainDeployerImpl.java:699

                )

                at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(

                MainDeployerAdapter.java:117

                )

                at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(

                ProfileDeployAction.java:70

                )

                at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(

                AbstractProfileAction.java:53

                )

                at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(

                AbstractProfileService.java:403

                )

                at org.jboss.dependency.plugins.AbstractControllerContext.install(

                AbstractControllerContext.java:348

                )

                at org.jboss.dependency.plugins.AbstractController.install(

                AbstractController.java:1652

                )

                at org.jboss.dependency.plugins.AbstractController.incrementState(

                AbstractController.java:938

                )

                at org.jboss.dependency.plugins.AbstractController.resolveContexts(

                AbstractController.java:1082

                )

                at org.jboss.dependency.plugins.AbstractController.resolveContexts(

                AbstractController.java:988

                )

                at org.jboss.dependency.plugins.AbstractController.install(

                AbstractController.java:778

                )

                at org.jboss.dependency.plugins.AbstractController.install(

                AbstractController.java:543

                )

                at org.jboss.system.server.profileservice.repository.AbstractProfileService.registerProfile(

                AbstractProfileService.java:308

                )

                at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(

                ProfileServiceBootstrap.java:256

                )

                at org.jboss.bootstrap.AbstractServerImpl.start(

                AbstractServerImpl.java:461

                )

                at org.jboss.Main.boot(

                Main.java:221

                )

                at org.jboss.Main$1.run(

                Main.java:556

                )

                at java.lang.Thread.run(

                Thread.java:619

                )

                Caused by:

                org.jboss.soa.esb.ConfigurationException

                : Unexpected exception while instantiating action instance

                at org.jboss.soa.esb.listeners.message.ActionProcessorMethodInfo.getActionClassInstance(

                ActionProcessorMethodInfo.java:359

                )

                at org.jboss.soa.esb.listeners.message.ActionProcessorMethodInfo.getActionClassInstance(

                ActionProcessorMethodInfo.java:340

                )

                at org.jboss.soa.esb.listeners.message.ActionProcessingPipeline.<init>(

                ActionProcessingPipeline.java:275

                )

                at org.jboss.soa.esb.listeners.message.MessageAwareListener.doInitialise(

                MessageAwareListener.java:186

                )

                ... 82 more

                Caused by:

                java.lang.reflect.InvocationTargetException

                at sun.reflect.NativeConstructorAccessorImpl.newInstance0(

                Native Method

                )

                at sun.reflect.NativeConstructorAccessorImpl.newInstance(

                NativeConstructorAccessorImpl.java:39

                )

                at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(

                DelegatingConstructorAccessorImpl.java:27

                )

                at java.lang.reflect.Constructor.newInstance(

                Constructor.java:513

                )

                at org.jboss.soa.esb.listeners.message.ActionProcessorMethodInfo.getActionClassInstance(

                ActionProcessorMethodInfo.java:355

                )

                ... 85 more

                Caused by:

                org.jboss.soa.esb.ConfigurationException: java.io.IOException: org.apache.xerces.impl.io.MalformedByteSequenceException

                : Invalid byte 2 of 4-byte UTF-8 sequence.

                at org.jboss.soa.esb.actions.soap.proxy.SOAPProxy.<init>(

                SOAPProxy.java:193

                )

                ... 90 more

                Caused by:

                java.io.IOException: org.apache.xerces.impl.io.MalformedByteSequenceException

                : Invalid byte 2 of 4-byte UTF-8 sequence.

                at org.jboss.util.xml.DOMUtils.parse(

                DOMUtils.java:126

                )

                at org.jboss.soa.esb.actions.soap.proxy.SOAPProxyWsdlLoader.pullLocations(

                SOAPProxyWsdlLoader.java:195

                )

                at org.jboss.soa.esb.actions.soap.proxy.SOAPProxyWsdlLoader.load(

                SOAPProxyWsdlLoader.java:161

                )

                at org.jboss.soa.esb.actions.soap.proxy.SOAPProxy.<init>(

                SOAPProxy.java:188

                )

                ... 90 more

                 

                Sorry I can`t atach   jboss-esb.xml  file but ,  here are te lines of the declaration of de service

                <service category="SIG" description="services SIG" invmScope="GLOBAL" name="ReportReceiverSoap">
                   <listeners>
                    <http-gateway busidref="public" name="ReportReceiverSoap" urlPattern="ReportReceiverSoap/*"/>
                   </listeners>
                   <actions>
                    <action class="org.jboss.soa.esb.actions.soap.proxy.SOAPProxy" name="ReportReceiverSoap">
                     <property name="wsdl" value="http://vmsi:8080/city-notum-ws/services/ReportReceiverSoap?wsdl"/>
                     <property name="endpointUrl" value="http://vmsi:8080/city-notum-ws/services/ReportReceiverSoap"/>
                    </action>
                   </actions>
                </service>

                and this is the declaration of de busid

                - <http-provider name="proxy">
                - <http-bus busid="public">
                <property name="serverName" value=http://vmsi:8080/>
                </http-bus>
                .....
                If  I comment this service  the jboss start with any problem, for this reason I know the problem is this service and in concret in  the url
                Tanks in advance  for yor help
                J. Carlos
                • 5. Re: Utf codification deploying an esb service
                  tomeicher

                  Yep, failure in DOMUtils.parse still look like something is wrong with your file...

                   

                  Does the xml file start with  <?xml version='1.0' encoding='UTF-8' ?> ?

                   

                  Is the file guaranteed in UTF8 encoding ? (better double check, using different tools)

                   

                  Tried starting the JVM with -Dfile.encoding=utf8 ?

                   

                  There is some bugs like https://issues.jboss.org/browse/JBWS-812

                  but those all have problems with "special characters" / ("umlauts"), not with a regular "-", thus me asking about the "kind of dash"...

                   

                  Cheers, Tom.

                  1 of 1 people found this helpful
                  • 6. Re: Utf codification deploying an esb service
                    jcsesar

                    It was a problem with de JVM encoding.   In development envirioment with jboss development studio, I have changed the property in the launch configuration and It works.

                     

                    But in production, where I have to change the paramenter? I tried to put in run.bat file and run.conf but it not works.

                     

                    Tanks in advance , it seems I begin to see the light at the in end of the tunnel.

                     

                    J Carlos

                    • 7. Re: Utf codification deploying an esb service
                      tomeicher

                      well, depends how your server is installed/started,

                      but usually it's added to JAVA_OPTS in bin/run.conf

                      Cheers, Tom.

                      • 8. Re: Utf codification deploying an esb service
                        tomeicher

                        Any news here ?

                        If solved, please mark the thread as "answered".

                        Cheers, Tom.

                        • 9. Re: Utf codification deploying an esb service
                          jcsesar

                          So sorry tankyou very much for your help