org.xml.sax.SAXParseException: Premature end of file.

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • JMS Binding: in/out message
    via by 843830,
  • NetBeans IDE nicht zu starten -
    via by Unknown author,
  • How to configure JspTest?
    via by Unknown author,
  • After I copied the artifactory.war into <TOMCAT_INSTALLATION_FOLDER>/webapps, Tomcat starts up with the following error: [Fatal Error] workspace.xml:1:1: Premature end of file. 2008-07-11 16:10:11,147 [ERROR] (CentralConfigFactoryBean.java:93) - Failed to load configuration from 'C:\Documents and Settings\y aoj\.artifactory\etc\artifactory.config.xml'. org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jcrSessionHelper' defined in class path resourc e [META-INF/spring/applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.RuntimeException: Failed to config jcr repo. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFacto ry.java:1336) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory .java:471) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:4 09) at java.security.AccessController.doPrivileged(Native Method) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.j ava:380) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:220) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:308) at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeansOfType(DefaultListableBeanFactory.java:297) at org.springframework.context.support.AbstractApplicationContext.getBeansOfType(AbstractApplicationContext.java:942) at org.artifactory.spring.ArtifactoryApplicationContext.beanForType(ArtifactoryApplicationContext.java:83) at org.artifactory.spring.ArtifactoryApplicationContext.getJcr(ArtifactoryApplicationContext.java:92) at org.artifactory.config.CentralConfig.init(CentralConfig.java:155) at org.artifactory.config.CentralConfigFactoryBean.afterPropertiesSet(CentralConfigFactoryBean.java:81) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFa ctory.java:1367) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFacto ry.java:1333) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory .java:471) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:4 09) at java.security.AccessController.doPrivileged(Native Method) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.j ava:380) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:220) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.jav a:423) at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.ja va:729) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:381) at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139) at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:83) at org.artifactory.spring.ArtifactoryApplicationContext.<init>(ArtifactoryApplicationContext.java:51) at org.artifactory.webapp.servlet.ArtifactoryContextConfigurer.contextInitialized(ArtifactoryContextConfigurer.java:44) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4350) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525) at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:829) at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:718) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1147) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053) at org.apache.catalina.core.StandardHost.start(StandardHost.java:719) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at org.apache.catalina.core.StandardService.start(StandardService.java:516) at org.apache.catalina.core.StandardServer.start(StandardServer.java:710) at org.apache.catalina.startup.Catalina.start(Catalina.java:578) 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.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413) Caused by: java.lang.RuntimeException: Failed to config jcr repo. at org.artifactory.jcr.InitJcrRepoStrategy.createJcrRepository(InitJcrRepoStrategy.java:84) at org.artifactory.jcr.JackrabbitJcrWrapper.init(JackrabbitJcrWrapper.java:165) at org.artifactory.jcr.JackrabbitJcrWrapper.afterPropertiesSet(JackrabbitJcrWrapper.java:129) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFa ctory.java:1367) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFacto ry.java:1333) ... 58 more Caused by: org.apache.jackrabbit.core.config.ConfigurationException: Configuration file syntax error.: Premature end of file.: Prematur e end of file. at org.apache.jackrabbit.core.config.ConfigurationParser.parseXML(ConfigurationParser.java:199) at org.apache.jackrabbit.core.config.RepositoryConfigurationParser.parseWorkspaceConfig(RepositoryConfigurationParser.java:343) at org.apache.jackrabbit.core.config.RepositoryConfig.loadWorkspaceConfig(RepositoryConfig.java:368) at org.apache.jackrabbit.core.config.RepositoryConfig.init(RepositoryConfig.java:323) at org.apache.jackrabbit.core.config.RepositoryConfig.create(RepositoryConfig.java:142) at org.apache.jackrabbit.core.config.RepositoryConfig.create(RepositoryConfig.java:115) at org.artifactory.jcr.InitJcrRepoStrategy.createJcrRepository(InitJcrRepoStrategy.java:64) ... 62 more Caused by: org.xml.sax.SAXParseException: Premature end of file. at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:239) at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:283) at org.apache.jackrabbit.core.config.ConfigurationParser.parseXML(ConfigurationParser.java:193) ... 68 more Jul 11, 2008 4:10:11 PM org.apache.catalina.core.StandardContext start
    via by Jie Yao,
    • org.xml.sax.SAXParseException: Premature end of file. at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:239) at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:283) at com.sun.jbi.jmsbc.XmlUtil.createDocumentFromInputSource(XmlUtil.java:74) at com.sun.jbi.jmsbc.XmlUtil.createDocumentFromXML(XmlUtil.java:90) at com.sun.jbi.jmsbc.JMSNormalizer.addPart(JMSNormalizer.java:587) at com.sun.jbi.jmsbc.JMSNormalizer.buildMessagePayloadFromMapMessage(JMSNormalizer.java:339) at com.sun.jbi.jmsbc.JMSNormalizer.buildMessagePayload(JMSNormalizer.java:232) at com.sun.jbi.jmsbc.JMSNormalizer.normalize(JMSNormalizer.java:178) at com.sun.jbi.jmsbc.InboundMessageProcessorListenerEndpoint.normalizeMessage(InboundMessageProcessorListenerEndpoint.java:691) at com.sun.jbi.jmsbc.InboundMessageProcessorListenerEndpoint.processInboundRequest(InboundMessageProcessorListenerEndpoint.java:423) at com.sun.jbi.jmsbc.InboundMessageProcessorListenerEndpoint.onMessage(InboundMessageProcessorListenerEndpoint.java:225) at com.stc.jmsjca.core.Delivery.deliverToEndpoint(Delivery.java:1105) at com.stc.jmsjca.core.SyncDelivery$SyncWorker.runOnceStdNoXA(SyncDelivery.java:700) at com.stc.jmsjca.core.SyncDelivery$SyncWorker.run(SyncDelivery.java:757)

    Users with the same issue

    tvrmsmith
    tvrmsmith4 times, last one,
    jpvee
    jpvee1 times, last one,
    Andreas Häber
    Andreas Häber19 times, last one,
    chenjunjun
    chenjunjun1 times, last one,
    Unknown visitor1 times, last one,
    11 more bugmates