[RESOLVED]login fails with org.eclipse.emf.ecore.resource.Resource$IOWrappedException: http://apache.org/xml/features/disallow-doctype-decl Unable to login to RTC via plain java api client at 4.0.01 and WAS 8.0.0.6
This was working for months until the WAS server running/hosting the RTC server was upgraded from WAS 8.0.0.4 to 8.0.0.6. Now my batch/compute Grid program fails on logon getting same error as https://jazz.net/forum/questions/116582/getting-exception-on-the-iteamrepositorylogin-method but the mentioned resolution does not work for me Trying a simple standlone login works but the my application hosted on WAS does it (repo.login) we get the error . Any help is appreciated . This has suddenly derailed months of work public Connection getConnection(ConnectionSpec spec) throws BaseException{ final String methodName = "getConnection"; final RTCConnectionSpec rtcSpec = (RTCConnectionSpec)spec; RTCConnection connection = new RTCConnection(); ITeamRepository repository = TeamPlatform.getTeamRepositoryService().getTeamRepository(rtcSpec.getRepoURL()); repository.registerLoginHandler(new ITeamRepository.ILoginHandler() { public ILoginInfo challenge(ITeamRepository repository) { return new ILoginInfo() { public String getUserId() { return rtcSpec.getUserName(); } public String getPassword() { return rtcSpec.getPassword(); } }; } }); //progressMonitor.subTask("Contacting " + repository.getRepositoryURI() + "..."); LOGGER.logp(Level.INFO, CLASSNAME, methodName, "Connecting to " + repository.getRepositoryURI() + "..."); try { repository.login(progressMonitor); //progressMonitor.subTask("Connected"); LOGGER.logp(Level.INFO, CLASSNAME, methodName, "Connected to " + repository.getRepositoryURI()); connection.setRepository(repository); } catch (TeamRepositoryException e) { throw new BaseException(ErrorConstants.RTC_LOGIN_ERROR, e); } Caused by: com.ibm.team.repository.common.TeamRepositoryException: org.eclipse.emf.ecore.resource.Resource$IOWrappedException: http://apache.org/xml/features/disallow-doctype-decl at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:56) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:39) at java.lang.reflect.Constructor.newInstance(Constructor.java:527) at com.ibm.team.repository.transport.client.RemoteTeamService.getAppropriateException(RemoteTeamService.java:704) at com.ibm.team.repository.transport.client.RemoteTeamService.executeMethod(RemoteTeamService.java:506) at com.ibm.team.repository.transport.client.RemoteTeamService.invoke(RemoteTeamService.java:194) at com.ibm.team.repository.transport.client.ServiceInvocationHandler.invoke(ServiceInvocationHandler.java:43) at com.sun.proxy.$Proxy42.describe(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37) at java.lang.reflect.Method.invoke(Method.java:611) at com.ibm.team.repository.client.internal.ServiceInterfaceProxy.invokeServiceCall(ServiceInterfaceProxy.java:164) at com.ibm.team.repository.client.internal.ServiceInterfaceProxy.invoke(ServiceInterfaceProxy.java:88) at com.sun.proxy.$Proxy42.describe(Unknown Source) at com.ibm.team.repository.client.internal.TeamRepository$4.run(TeamRepository.java:1514) at com.ibm.team.repository.client.internal.TeamRepository$4.run(TeamRepository.java:1) at com.ibm.team.repository.client.internal.TeamRepository$3.run(TeamRepository.java:1288) at com.ibm.team.repository.common.transport.CancelableCaller.call(CancelableCaller.java:79) at com.ibm.team.repository.client.internal.TeamRepository.callCancelableService(TeamRepository.java:1281) at com.ibm.team.repository.client.internal.TeamRepository.internalLogin(TeamRepository.java:1507) at com.ibm.team.repository.client.internal.TeamRepository.login(TeamRepository.java:640) at com.ibm.biztech.d4.connection.RTCConnectionFactory.getConnection(RTCConnectionFactory.java:52) ... 22 more Caused by: com.ibm.team.repository.common.internal.marshal.MarshallingException: org.eclipse.emf.ecore.resource.Resource$IOWrappedException: http://apache.org/xml/features/disallow-doctype-decl at com.ibm.team.repository.common.internal.marshal.impl.EObjectMarshaller.demarshalInputStreamToObject(EObjectMarshaller.java:558) at com.ibm.team.repository.transport.client.RemoteTeamService.demarshallEnvelope(RemoteTeamService.java:602) at com.ibm.team.repository.transport.client.RemoteTeamService.invokePost(RemoteTeamService.java:541) at com.ibm.team.repository.transport.client.RemoteTeamService.executeMethod(RemoteTeamService.java:481) ... 40 more Caused by: org.eclipse.emf.ecore.resource.Resource$IOWrappedException: http://apache.org/xml/features/disallow-doctype-decl at org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load(XMLLoadImpl.java:201) at com.ibm.team.repository.common.internal.marshal.util.WebServicesXMLLoadImpl.load(WebServicesXMLLoadImpl.java:76) at org.eclipse.emf.ecore.xmi.impl.XMLResourceImpl.doLoad(XMLResourceImpl.java:180) at com.ibm.team.repository.common.internal.marshal.impl.EObjectMarshaller.demarshalInputStreamToObject(EObjectMarshaller.java:555) ... 43 more Caused by: org.xml.sax.SAXNotRecognizedException: http://apache.org/xml/features/disallow-doctype-decl at org.apache.xerces.framework.XMLParser.setFeature(XMLParser.java:1230) at org.apache.xerces.parsers.SAXParser.setFeature(SAXParser.java:573) at org.eclipse.emf.ecore.xmi.impl.XMLParserPoolImpl.makeParser(XMLParserPoolImpl.java:144) at org.eclipse.emf.ecore.xmi.impl.XMLParserPoolImpl.get(XMLParserPoolImpl.java:106) at org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl.load(XMLLoadImpl.java:139) ... 46 more |
Accepted answer
Somehow I combined RTC Client lib with another app libraries which included xerces.jar . I removed the xerces.jar from my RTC Lib list and seems to have resolved it . Not all sure of the exact path to the error but happy it is resolved
Thanks Ralph Schoon selected this answer as the correct answer
|
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.