Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
  • Piet Souris
  • Himai Minh

Cannot create a secure XMLInputFactory

Posts: 29
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello all,
My application is based on PTV xServer modules and it is used to calculate best route and trip plan.
It is a web application and I am using tomcat for it.
So while running my application with tomcat it works fine but when I executes this application with "main" method while junit testing then I am getting error while calling xServer modules services/methods.
error is as follows-
suggest some solution for it

`com.ptvag.jabba.core.exception.UnexpectedException: Cannot create a secure XMLInputFactory
at com.ptvag.jabba.core.exception.ExceptionAnalyzer.mapExternalException(
at com.ptvag.xserver.xlocate.XLocateCXFClient.findLocation(Unknown Source)
at com.ilume.ptv.adapter.xmodule.XLocateAdapter.findLocations(
at com.ilume.ptv.adapter.xmodule.XLocateAdapter.findLocations(
at com.ilume.jti.logic.controller.models.rerouting.DepotsBO.isDepotValid(
at com.ilume.jti.logic.controller.models.rerouting.DepotsBO.<init>(
at com.ilume.jti.service.mapper.ReRouteMapper.mapJaxbJavaToBO(
at com.ilume.jti.service.mapper.ReRouteMapper.mapJaxbJavaToBO(
at com.ilume.jti.test.controller.russia.RussiaReRoutingControllerTest.getCycle(
at com.ilume.jti.test.controller.russia.RussiaReRoutingControllerTest.testTestReRouting(
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
at java.lang.reflect.Method.invoke(
at junit.framework.TestCase.runTest(
at junit.framework.TestCase.runBare(
at junit.framework.TestResult$1.protect(
at junit.framework.TestResult.runProtected(
at junit.framework.TestSuite.runTest(
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(
Caused by: java.lang.RuntimeException: Cannot create a secure XMLInputFactory
at org.apache.cxf.staxutils.StaxUtils.createXMLInputFactory(
at org.apache.cxf.staxutils.StaxUtils.getXMLInputFactory(
at org.apache.cxf.staxutils.StaxUtils.createXMLStreamReader(
at org.apache.cxf.staxutils.StaxUtils.createXMLStreamReader(
at org.apache.cxf.wsdl11.WSDLManagerImpl.loadDefinition(
at org.apache.cxf.wsdl11.WSDLManagerImpl.getDefinition(
at org.apache.cxf.wsdl11.WSDLServiceFactory.<init>(
at org.apache.cxf.jaxws.ServiceImpl.initializePorts(
at org.apache.cxf.jaxws.ServiceImpl.<init>(
at org.apache.cxf.jaxws.spi.ProviderImpl.createServiceDelegate(
at com.ptvag.xserver.xlocate.jwsdp.XLocateWSService.<init>(Unknown Source)
at com.ptvag.xserver.xlocate.XLocateCXFClient.getWebService(Unknown Source)`

Proudly marching to the beat of a different kettle of fish... while reading this tiny ad
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
    Bookmark Topic Watch Topic
  • New Topic