2 Replies Latest reply on Jun 22, 2004 12:20 PM by dannyyates

    jboss-4.0.0DR4 produces  Invalid byte 1 of 1-byte UTF-8 sequ

    Julien Martin Expert

      Hello,

      I use Jboss 4.0.0 DR4 and I cannot deploy my ejbs. Here is what I get:

      17:54:13,859 ERROR [MainDeployer] Could not initialise deployment: file:/D:/system/jboss-4.0.0/server/default/deploy/test_guide.ear
      org.jboss.deployment.DeploymentException: Invalid byte 1 of 1-byte UTF-8 sequence.; - nested throwable: (java.io.UTFDataFormatException: Invalid byte
      1 of 1-byte UTF-8 sequence.)
       at org.jboss.metadata.XmlFileLoader.getDocument(XmlFileLoader.java:336)
       at org.jboss.metadata.XmlFileLoader.getDocument(XmlFileLoader.java:257)
       at org.jboss.ejb.EJBDeployer.init(EJBDeployer.java:389)
       at org.jboss.deployment.MainDeployer.init(MainDeployer.java:727)
       at org.jboss.deployment.MainDeployer.init(MainDeployer.java:747)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:664)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:637)
       at sun.reflect.GeneratedMethodAccessor13.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:324)
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:232)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:643)
       at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:174)
       at $Proxy7.deploy(Unknown Source)
       at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:304)
       at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:478)
       at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:201)
       at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:274)
       at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:271)
       at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:221)
       at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:324)
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:232)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:643)
       at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:844)
       at $Proxy0.start(Unknown Source)
       at org.jboss.system.ServiceController.start(ServiceController.java:369)
       at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:324)
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:232)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:643)
       at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:174)
       at $Proxy4.start(Unknown Source)
       at org.jboss.deployment.SARDeployer.start(SARDeployer.java:260)
       at org.jboss.deployment.MainDeployer.start(MainDeployer.java:863)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:674)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:637)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:621)
       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:324)
       at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:232)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:643)
       at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:174)
       at $Proxy5.deploy(Unknown Source)
       at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:386)
       at org.jboss.system.server.ServerImpl.start(ServerImpl.java:291)
       at org.jboss.Main.boot(Main.java:150)
       at org.jboss.Main$1.run(Main.java:395)
       at java.lang.Thread.run(Thread.java:534)
      Caused by: java.io.UTFDataFormatException: Invalid byte 1 of 1-byte UTF-8 sequence.
       at org.apache.xerces.impl.io.UTF8Reader.invalidByte(Unknown Source)
       at org.apache.xerces.impl.io.UTF8Reader.read(Unknown Source)
       at org.apache.xerces.impl.XMLEntityScanner.load(Unknown Source)
       at org.apache.xerces.impl.XMLEntityScanner.peekChar(Unknown Source)
       at org.apache.xerces.impl.XMLScanner.scanComment(Unknown Source)
       at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanComment(Unknown Source)
       at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
       at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
       at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
       at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
       at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
       at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
       at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
       at org.jboss.metadata.XmlFileLoader.getDocument(XmlFileLoader.java:313)
       ... 64 more
      17:54:13,859 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
      Incompletely deployed packages:
      org.jboss.deployment.DeploymentInfo@4d43b663 { url=file:/D:/system/jboss-4.0.0/server/default/deploy/test_guide.ear }
       deployer: org.jboss.deployment.EARDeployer@6ed322
       status: null
       state: FAILED
       watch: file:/D:/system/jboss-4.0.0/server/default/deploy/test_guide.ear
       altDD: null
       lastDeployed: 1087919653859
       lastModified: 1087919653609
       mbeans:
      
      
      17:54:14,046 INFO [Server] JBoss (MX MicroKernel) [4.0.0DR4 (build: CVSTag=HEAD date=200405190212)] Started in 29s:531ms
      


      I am sure there are no accented characters in my sources' comments and I don't understand why I get this error which is not very descriptive and doesn't tell me where the problem is.

      Can anyone help?

      Thanks in advance,

      Julien Martin.