Hi all, Deleting most of the spaces did the trick but I agree it is not the proper solution. Will update the thread once I get to the bottom of it.
thanks, dimuthu On Tue, Jun 19, 2012 at 5:40 PM, Thilina Buddhika <[email protected]> wrote: > This is because the inputstream is closed before it reads the child > elements in loadAppFactoryConfiguration(). > > Thanks, > Thilina > > On Tue, Jun 19, 2012 at 5:34 PM, Dimuthu Leelarathne <[email protected]>wrote: > >> Hi all, >> >> I am getting the below error while parsing the appfactory.xml [1] >> >> In this thread Shariq has reported the same problem - >> http://wso2.org/mailarchive/stratos-dev/2011-April/002484.html >> >> But there is no follow up of that thread. >> >> Any help or pointers are really appreciated. >> >> thanks, >> dimuthu >> >> >> [1] >> [2012-06-19 17:28:30,324] ERROR >> {org.wso2.carbon.appfactory.common.internal.AppFactoryCommonServiceComponent} >> - Error in creating appfactory configuration >> java.lang.RuntimeException: [was class java.io.IOException] Bad file >> descriptor >> at >> com.ctc.wstx.util.ExceptionUtil.throwRuntimeException(ExceptionUtil.java:18) >> at >> com.ctc.wstx.sr.StreamScanner.throwLazyError(StreamScanner.java:731) >> at >> com.ctc.wstx.sr.BasicStreamReader.safeFinishToken(BasicStreamReader.java:3657) >> at >> com.ctc.wstx.sr.BasicStreamReader.getText(BasicStreamReader.java:809) >> at >> org.apache.axiom.om.impl.builder.StAXBuilder.createOMText(StAXBuilder.java:289) >> at >> org.apache.axiom.om.impl.builder.StAXBuilder.createOMText(StAXBuilder.java:250) >> at >> org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:252) >> at >> org.apache.axiom.om.impl.llom.OMElementImpl.getNextOMSibling(OMElementImpl.java:336) >> at >> org.apache.axiom.om.impl.traverse.OMChildElementIterator.next(OMChildElementIterator.java:104) >> at >> org.wso2.carbon.appfactory.common.util.AppFactoryUtil.readChildElements(AppFactoryUtil.java:121) >> at >> org.wso2.carbon.appfactory.common.util.AppFactoryUtil.loadAppFactoryConfiguration(AppFactoryUtil.java:73) >> at >> org.wso2.carbon.appfactory.common.internal.AppFactoryCommonServiceComponent.activate(AppFactoryCommonServiceComponent.java:38) >> 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.eclipse.equinox.internal.ds.model.ServiceComponent.activate(ServiceComponent.java:252) >> at >> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.activate(ServiceComponentProp.java:146) >> at >> org.eclipse.equinox.internal.ds.model.ServiceComponentProp.build(ServiceComponentProp.java:346) >> at >> org.eclipse.equinox.internal.ds.InstanceProcess.buildComponent(InstanceProcess.java:588) >> at >> org.eclipse.equinox.internal.ds.InstanceProcess.buildComponents(InstanceProcess.java:196) >> at >> org.eclipse.equinox.internal.ds.Resolver.buildNewlySatisfied(Resolver.java:441) >> at >> org.eclipse.equinox.internal.ds.Resolver.enableComponents(Resolver.java:213) >> at >> org.eclipse.equinox.internal.ds.SCRManager.performWork(SCRManager.java:800) >> at >> org.eclipse.equinox.internal.ds.SCRManager$QueuedJob.dispatch(SCRManager.java:767) >> at org.eclipse.equinox.internal.ds.WorkThread.run(WorkThread.java:89) >> at java.lang.Thread.run(Thread.java:662) >> Caused by: java.io.IOException: Bad file descriptor >> at java.io.FileInputStream.readBytes(Native Method) >> at java.io.FileInputStream.read(FileInputStream.java:177) >> at com.ctc.wstx.io.UTF8Reader.loadMore(UTF8Reader.java:365) >> at com.ctc.wstx.io.UTF8Reader.read(UTF8Reader.java:110) >> at com.ctc.wstx.io.ReaderSource.readInto(ReaderSource.java:84) >> at >> com.ctc.wstx.io.BranchingReaderSource.readInto(BranchingReaderSource.java:57) >> at com.ctc.wstx.sr.StreamScanner.loadMore(StreamScanner.java:992) >> at >> com.ctc.wstx.sr.BasicStreamReader.readTextSecondary(BasicStreamReader.java:4628) >> at >> com.ctc.wstx.sr.BasicStreamReader.readCoalescedText(BasicStreamReader.java:4126) >> at >> com.ctc.wstx.sr.BasicStreamReader.finishToken(BasicStreamReader.java:3701) >> at >> com.ctc.wstx.sr.BasicStreamReader.safeFinishToken(BasicStreamReader.java:3649) >> >> >> -- >> Dimuthu Leelarathne >> Architect & Co-Chair of Platform Management Committee >> >> WSO2, Inc. (http://wso2.com) >> email: [email protected] >> >> Lean . Enterprise . Middleware >> >> >> _______________________________________________ >> Dev mailing list >> [email protected] >> http://wso2.org/cgi-bin/mailman/listinfo/dev >> >> > > > -- > Thilina Buddhika > Associate Technical Lead > WSO2 Inc. ; http://wso2.com > lean . enterprise . middleware > > phone : +94 77 44 88 727 > blog : http://blog.thilinamb.com > -- Dimuthu Leelarathne Architect & Co-Chair of Platform Management Committee WSO2, Inc. (http://wso2.com) email: [email protected] Lean . Enterprise . Middleware
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
