Return-Path: Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: (qmail 57491 invoked from network); 4 Jul 2008 16:02:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Jul 2008 16:02:08 -0000 Received: (qmail 70341 invoked by uid 500); 4 Jul 2008 16:02:09 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 70330 invoked by uid 500); 4 Jul 2008 16:02:09 -0000 Mailing-List: contact issues-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list issues@cxf.apache.org Received: (qmail 70319 invoked by uid 99); 4 Jul 2008 16:02:08 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Jul 2008 09:02:08 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Jul 2008 16:01:26 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 66A76234C14F for ; Fri, 4 Jul 2008 09:01:42 -0700 (PDT) Message-ID: <1121543495.1215187302417.JavaMail.jira@brutus> Date: Fri, 4 Jul 2008 09:01:42 -0700 (PDT) From: "Guillaume Nodet (JIRA)" To: issues@cxf.apache.org Subject: [jira] Created: (CXF-1687) Lots of NPE when parsing documents at start time MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Lots of NPE when parsing documents at start time ------------------------------------------------ Key: CXF-1687 URL: https://issues.apache.org/jira/browse/CXF-1687 Project: CXF Issue Type: Bug Reporter: Guillaume Nodet Priority: Trivial Fix For: 2.1.2 I've noticed lots of NPE with the following stack trace: Signal Dispatcher@475 daemon, priority=9, in group 'system', status: 'RUNNING' Finalizer@476 daemon, priority=8, in group 'system', status: 'WAIT' at java.lang.Object.wait(Object.java:-1) at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:116) at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:132) at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:159) Reference Handler@477 daemon, priority=10, in group 'system', status: 'WAIT' at java.lang.Object.wait(Object.java:-1) at java.lang.Object.wait(Object.java:474) at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:116) main@2, priority=5, in group 'main', status: 'RUNNING' at org.apache.cxf.staxutils.W3CDOMStreamWriter.writeComment(W3CDOMStreamWriter.java:162) at org.apache.cxf.staxutils.StaxUtils.copy(StaxUtils.java:338) at org.apache.cxf.staxutils.StaxUtils.copy(StaxUtils.java:313) at org.apache.cxf.bus.spring.TunedDocumentLoader.loadFastinfosetDocument(TunedDocumentLoader.java:146) at org.apache.cxf.bus.spring.ControlledValidationXmlBeanDefinitionReader.fastInfosetLoadBeanDefinitions(ControlledValidationXmlBeanDefinitionReader.java:164) at org.apache.cxf.bus.spring.ControlledValidationXmlBeanDefinitionReader.loadBeanDefinitions(ControlledValidationXmlBeanDefinitionReader.java:126) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:280) at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:131) at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:108) at org.apache.cxf.bus.spring.BusApplicationContext.loadBeanDefinitions(BusApplicationContext.java:256) at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:101) at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:389) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:324) at org.apache.cxf.bus.spring.BusApplicationContext.(BusApplicationContext.java:87) at org.apache.cxf.bus.spring.SpringBusFactory.createApplicationContext(SpringBusFactory.java:103) at org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:94) at org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:69) at org.apache.servicemix.cxfse.CxfSeComponent.doInit(CxfSeComponent.java:73) at org.apache.servicemix.common.AsyncBaseLifeCycle.init(AsyncBaseLifeCycle.java:193) at org.apache.servicemix.common.SyncLifeCycleWrapper.init(SyncLifeCycleWrapper.java:44) at org.apache.servicemix.jbi.framework.ComponentMBeanImpl.init(ComponentMBeanImpl.java:201) at org.apache.servicemix.jbi.container.JBIContainer.activateComponent(JBIContainer.java:1,150) at org.apache.servicemix.jbi.container.JBIContainer.activateComponent(JBIContainer.java:1,112) at org.apache.servicemix.jbi.container.JBIContainer.activateComponent(JBIContainer.java:1,071) at org.apache.servicemix.jbi.container.JBIContainer.activateComponent(JBIContainer.java:1,059) at org.apache.servicemix.jbi.container.SpringJBIContainer.getComponentForEndpoint(SpringJBIContainer.java:175) at org.apache.servicemix.jbi.container.SpringJBIContainer.initEndpoints(SpringJBIContainer.java:151) at org.apache.servicemix.jbi.container.SpringJBIContainer.afterPropertiesSet(SpringJBIContainer.java:106) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1,201) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1,171) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:425) at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:156) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160) at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:287) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352) at org.apache.xbean.spring.context.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:161) at org.apache.xbean.spring.context.ClassPathXmlApplicationContext.(ClassPathXmlApplicationContext.java:51) at org.apache.servicemix.cxfse.CxfSeContextInjectionTest.createBeanFactory(CxfSeContextInjectionTest.java:71) at org.apache.servicemix.tck.SpringTestSupport.setUp(SpringTestSupport.java:65) at org.apache.servicemix.cxfse.CxfSeContextInjectionTest.setUp(CxfSeContextInjectionTest.java:39) at junit.framework.TestCase.runBare(TestCase.java:125) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:118) at junit.framework.TestSuite.runTest(TestSuite.java:208) at junit.framework.TestSuite.run(TestSuite.java:203) at junit.framework.TestSuite.runTest(TestSuite.java:208) at junit.framework.TestSuite.run(TestSuite.java:203) at junit.textui.TestRunner.doRun(TestRunner.java:116) at com.intellij.rt.execution.junit.IdeaTestRunner.doRun(IdeaTestRunner.java:65) at junit.textui.TestRunner.doRun(TestRunner.java:109) at com.intellij.rt.execution.junit.IdeaTestRunner.startRunnerWithArgs(IdeaTestRunner.java:24) at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:118) at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:40) The NPE is thrown because the currentNode is null in the writer, which seems to be the case when the xml document starts with a comment. Not sure why, but I suppose it should be quite easy to fix and could improve performance at start time. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.