5 Replies Latest reply on Jul 27, 2012 2:58 AM by vinayak_kadam

    Failed to parse source: Premature end of file. @ *unknown*[-1,-1]

    vtech005

      Good Mor Friends,

       

      Please i could not start jboss this mor after i run an update on java

       

      i got this error, please any one have an idea on hw to fix this

       

       

      12:30:40,625 ERROR [AbstractKernelController] Error installing to Start: name=WebServer state=Create

      org.jboss.xb.binding.JBossXBException: Failed to parse source: Premature end of file. @ *unknown*[-1,-1]

              at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:203)

              at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:183)

              at org.jboss.xb.binding.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:133)

              at org.jboss.web.tomcat.service.deployers.TomcatService.startService(TomcatService.java:167)

              at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:376)

              at org.jboss.system.ServiceMBeanSupport.pojoStart(ServiceMBeanSupport.java:216)

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

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

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

              at java.lang.reflect.Method.invoke(Unknown Source)

              at org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:59)

       

      i read that it could be fixed with the latest VFS update (Beta15)

      ibrower this url   http://repository.jboss.org/maven2/org/jboss/jboss-vfs/2.0.0.Beta15/  to down the 1st one but i could not figure out how to apply it

       

      hope to read from u soon

      thanks

        • 1. Failed to parse source: Premature end of file. @ *unknown*[-1,-1]
          nickarls

          What version of AS are you running? I only found posts from mid-2008 regarding this...

          • 2. Failed to parse source: Premature end of file. @ *unknown*[-1,-1]
            vtech005

            I am running Jboss-5.1.0.GA Version....did you exprence this issue sometimes before?

            please advice

            • 3. Failed to parse source: Premature end of file. @ *unknown*[-1,-1]
              nickarls

              AS 5 appears to come with VFS 2.1.2.GA so that would be a downgrade. Have you tried with a clean AS so you're sure it was the java update that did something. If so, can't you just rollback the java update?

              • 4. Re: Failed to parse source: Premature end of file. @ *unknown*[-1,-1]
                patrycja

                2011-06-08 10:06:35,981 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] (main) Error installing to Start: name=WebServer state=Create org.jboss.xb.binding.JBossXBException: Failed to parse source: Premature end of file. @ *unknown*[-1,-1]

                 

                I had this error too and counld't find the solution. What had misled me was that there was such bug in the VFS:

                htt

                http://web.archiveorange.com/archive/v/4gws3I3RGmFd1EUkLSXA

                It is an issue of the new VFS impl. It seems to be working if you fall back to the old impl with -Djboss.vfs.forceVfsJar

                 

                Bu no, it wasn't my case. I'm using JBoss AS 5.1 GA and jboss-vfs ver. 2.2.0 GA.
                But finally I've managed to find solution:

                 

                http://www.pgu-support.ru/forum/index.php?topic=683.0

                Такая ошибка может возникать в случае если вы редактировали файл /server/default/deploy/jbossweb.sar/server.xml (либо другие конфигурационные файлы) и возможно при редактировании неверно выбрали кодировку. Многие редакторы по умолчанию делают WIN1251. Но все конфигурационные файлы АИС МФЦ должны быть сохранены в кодировке UTF-8.

                -> GoogleTranslation: This error can occur if you edit the file /server/default/deploy/jbossweb.sar/server.xml (or other configuration files), and possibly for editing incorrectly chosen charset. Many editors make the default WIN1251. But all the configuration files AIS MFC must be saved in UTF-8.

                 

                My problem was slightly different I've accidentally removed the whole content of /server/default/deploy/jbossweb.sar/server.xml

                RUSSIAN HACKERS RULEZ!!!

                 

                Hope it helps someone.

                It would be nice to have more verbose error message, wouldn't it?

                • 5. Re: Failed to parse source: Premature end of file. @ *unknown*[-1,-1]
                  vinayak_kadam

                  Thanks a lot guys..

                  I was facing same problem.Your trick resolved my problem..