Exception after upgrading to Axis2 1.7.3

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Exception after upgrading to Axis2 1.7.3

Bill Phillips
I was tasked out with upgrading our legacy Axis2 implemtation from 1.5.6  to 1.7.3.

I have worked through all the various library and compilation changes and it seems to be compiling and packaging as expected.

However, when I attempt to start the app, I receive the following:


2016-10-17 20:38:49.688 [localhost-startStop-1] ERROR org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/axis2] null - StandardWrapper.Throwable
java.lang.ExceptionInInitializerError
at org.apache.axis2.description.AxisDescription.<init>(AxisDescription.java:72) ~[axis2-kernel-1.7.3.jar:1.7.3]
at org.apache.axis2.engine.AxisConfiguration.<init>(AxisConfiguration.java:175) ~[axis2-kernel-1.7.3.jar:1.7.3]
at org.apache.axis2.deployment.DeploymentEngine.populateAxisConfiguration(DeploymentEngine.java:627) ~[axis2-kernel-1.7.3.jar:1.7.3]
at org.apache.axis2.deployment.WarBasedAxisConfigurator.<init>(WarBasedAxisConfigurator.java:157) ~[axis2-kernel-1.7.3.jar:1.7.3]
at org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:620) ~[axis2-transport-http-1.7.3.jar:1.7.3]
at org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:471) ~[axis2-transport-http-1.7.3.jar:1.7.3]
at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1183) [catalina.jar:8.5.5]
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1099) [catalina.jar:8.5.5]
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:989) [catalina.jar:8.5.5]
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4913) [catalina.jar:8.5.5]
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5223) [catalina.jar:8.5.5]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) [catalina.jar:8.5.5]
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:724) [catalina.jar:8.5.5]
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:700) [catalina.jar:8.5.5]
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734) [catalina.jar:8.5.5]
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:952) [catalina.jar:8.5.5]
at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1823) [catalina.jar:8.5.5]
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.8.0_102]
at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.8.0_102]
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [?:1.8.0_102]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [?:1.8.0_102]
at java.lang.Thread.run(Unknown Source) [?:1.8.0_102]
Caused by: java.lang.NullPointerException
at org.apache.crimson.tree.ElementNode.getAttributeNodeNS(ElementNode.java:415) ~[crimson.jar:1.1]
at org.apache.crimson.tree.ElementNode.getAttributeNS(ElementNode.java:392) ~[crimson.jar:1.1]
at org.apache.axiom.locator.ImplementationFactory.parseImplementation(ImplementationFactory.java:131) ~[axiom-api-1.2.19.jar:1.2.19]
at org.apache.axiom.locator.ImplementationFactory.parseDescriptor(ImplementationFactory.java:98) ~[axiom-api-1.2.19.jar:1.2.19]
at org.apache.axiom.locator.DefaultOMMetaFactoryLocator.<init>(DefaultOMMetaFactoryLocator.java:87) ~[axiom-api-1.2.19.jar:1.2.19]
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:1.8.0_102]
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) ~[?:1.8.0_102]
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) ~[?:1.8.0_102]
at java.lang.reflect.Constructor.newInstance(Unknown Source) ~[?:1.8.0_102]
at java.lang.Class.newInstance(Unknown Source) ~[?:1.8.0_102]
at org.apache.axiom.om.OMAbstractFactory.<clinit>(OMAbstractFactory.java:104) ~[axiom-api-1.2.19.jar:1.2.19]
... 22 more


I'm at a loss at to what is causing this problem.

Can anyone point me to a likely cause of this error?


Thanks,


Bill
Reply | Threaded
Open this post in threaded view
|

RE: Exception after upgrading to Axis2 1.7.3

Dinshaw, Afshad

Use apache-cxf. It is more widely used and has better and legitimate documentation.

AXIS2 says you can use XmlBeans for databinding. When you goto the XmlBeans website they say the project is retired!

 

From: Bill Phillips [mailto:[hidden email]]
Sent: Monday, October 17, 2016 3:58 PM
To: [hidden email]
Subject: Exception after upgrading to Axis2 1.7.3

 

I was tasked out with upgrading our legacy Axis2 implemtation from 1.5.6  to 1.7.3.

 

I have worked through all the various library and compilation changes and it seems to be compiling and packaging as expected.

 

However, when I attempt to start the app, I receive the following:

 

 

2016-10-17 20:38:49.688 [localhost-startStop-1] ERROR org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/axis2] null - StandardWrapper.Throwable
java.lang.ExceptionInInitializerError
        at org.apache.axis2.description.AxisDescription.<init>(AxisDescription.java:72) ~[axis2-kernel-1.7.3.jar:1.7.3]
        at org.apache.axis2.engine.AxisConfiguration.<init>(AxisConfiguration.java:175) ~[axis2-kernel-1.7.3.jar:1.7.3]
        at org.apache.axis2.deployment.DeploymentEngine.populateAxisConfiguration(DeploymentEngine.java:627) ~[axis2-kernel-1.7.3.jar:1.7.3]
        at org.apache.axis2.deployment.WarBasedAxisConfigurator.<init>(WarBasedAxisConfigurator.java:157) ~[axis2-kernel-1.7.3.jar:1.7.3]
        at org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:620) ~[axis2-transport-http-1.7.3.jar:1.7.3]
        at org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:471) ~[axis2-transport-http-1.7.3.jar:1.7.3]
        at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1183) [catalina.jar:8.5.5]
        at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1099) [catalina.jar:8.5.5]
        at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:989) [catalina.jar:8.5.5]
        at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4913) [catalina.jar:8.5.5]
        at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5223) [catalina.jar:8.5.5]
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) [catalina.jar:8.5.5]
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:724) [catalina.jar:8.5.5]
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:700) [catalina.jar:8.5.5]
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734) [catalina.jar:8.5.5]
        at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:952) [catalina.jar:8.5.5]
        at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1823) [catalina.jar:8.5.5]
        at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.8.0_102]
        at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.8.0_102]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [?:1.8.0_102]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [?:1.8.0_102]
        at java.lang.Thread.run(Unknown Source) [?:1.8.0_102]
Caused by: java.lang.NullPointerException
        at org.apache.crimson.tree.ElementNode.getAttributeNodeNS(ElementNode.java:415) ~[crimson.jar:1.1]
        at org.apache.crimson.tree.ElementNode.getAttributeNS(ElementNode.java:392) ~[crimson.jar:1.1]
        at org.apache.axiom.locator.ImplementationFactory.parseImplementation(ImplementationFactory.java:131) ~[axiom-api-1.2.19.jar:1.2.19]
        at org.apache.axiom.locator.ImplementationFactory.parseDescriptor(ImplementationFactory.java:98) ~[axiom-api-1.2.19.jar:1.2.19]
        at org.apache.axiom.locator.DefaultOMMetaFactoryLocator.<init>(DefaultOMMetaFactoryLocator.java:87) ~[axiom-api-1.2.19.jar:1.2.19]
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[?:1.8.0_102]
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) ~[?:1.8.0_102]
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) ~[?:1.8.0_102]
        at java.lang.reflect.Constructor.newInstance(Unknown Source) ~[?:1.8.0_102]
        at java.lang.Class.newInstance(Unknown Source) ~[?:1.8.0_102]
        at org.apache.axiom.om.OMAbstractFactory.<clinit>(OMAbstractFactory.java:104) ~[axiom-api-1.2.19.jar:1.2.19]
        ... 22 more

 


I'm at a loss at to what is causing this problem.

 

Can anyone point me to a likely cause of this error?

 

 

Thanks,

 

 

Bill

Reply | Threaded
Open this post in threaded view
|

Re: Exception after upgrading to Axis2 1.7.3

Andreas Veithen-2
In reply to this post by Bill Phillips
Looking at the stack trace, this is likely an interoperability issue
with Crimson. That is an old DOM implementation and should no longer
be used.

Andreas

On Mon, Oct 17, 2016 at 9:58 PM, Bill Phillips
<[hidden email]> wrote:

> I was tasked out with upgrading our legacy Axis2 implemtation from 1.5.6  to
> 1.7.3.
>
> I have worked through all the various library and compilation changes and it
> seems to be compiling and packaging as expected.
>
> However, when I attempt to start the app, I receive the following:
>
>
>> 2016-10-17 20:38:49.688 [localhost-startStop-1] ERROR
>> org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/axis2] null
>> - StandardWrapper.Throwable
>> java.lang.ExceptionInInitializerError
>> at
>> org.apache.axis2.description.AxisDescription.<init>(AxisDescription.java:72)
>> ~[axis2-kernel-1.7.3.jar:1.7.3]
>> at
>> org.apache.axis2.engine.AxisConfiguration.<init>(AxisConfiguration.java:175)
>> ~[axis2-kernel-1.7.3.jar:1.7.3]
>> at
>> org.apache.axis2.deployment.DeploymentEngine.populateAxisConfiguration(DeploymentEngine.java:627)
>> ~[axis2-kernel-1.7.3.jar:1.7.3]
>> at
>> org.apache.axis2.deployment.WarBasedAxisConfigurator.<init>(WarBasedAxisConfigurator.java:157)
>> ~[axis2-kernel-1.7.3.jar:1.7.3]
>> at
>> org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:620)
>> ~[axis2-transport-http-1.7.3.jar:1.7.3]
>> at org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:471)
>> ~[axis2-transport-http-1.7.3.jar:1.7.3]
>> at
>> org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1183)
>> [catalina.jar:8.5.5]
>> at
>> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1099)
>> [catalina.jar:8.5.5]
>> at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:989)
>> [catalina.jar:8.5.5]
>> at
>> org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4913)
>> [catalina.jar:8.5.5]
>> at
>> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5223)
>> [catalina.jar:8.5.5]
>> at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
>> [catalina.jar:8.5.5]
>> at
>> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:724)
>> [catalina.jar:8.5.5]
>> at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:700)
>> [catalina.jar:8.5.5]
>> at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734)
>> [catalina.jar:8.5.5]
>> at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:952)
>> [catalina.jar:8.5.5]
>> at
>> org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1823)
>> [catalina.jar:8.5.5]
>> at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
>> [?:1.8.0_102]
>> at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.8.0_102]
>> at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
>> [?:1.8.0_102]
>> at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
>> [?:1.8.0_102]
>> at java.lang.Thread.run(Unknown Source) [?:1.8.0_102]
>> Caused by: java.lang.NullPointerException
>> at
>> org.apache.crimson.tree.ElementNode.getAttributeNodeNS(ElementNode.java:415)
>> ~[crimson.jar:1.1]
>> at
>> org.apache.crimson.tree.ElementNode.getAttributeNS(ElementNode.java:392)
>> ~[crimson.jar:1.1]
>> at
>> org.apache.axiom.locator.ImplementationFactory.parseImplementation(ImplementationFactory.java:131)
>> ~[axiom-api-1.2.19.jar:1.2.19]
>> at
>> org.apache.axiom.locator.ImplementationFactory.parseDescriptor(ImplementationFactory.java:98)
>> ~[axiom-api-1.2.19.jar:1.2.19]
>> at
>> org.apache.axiom.locator.DefaultOMMetaFactoryLocator.<init>(DefaultOMMetaFactoryLocator.java:87)
>> ~[axiom-api-1.2.19.jar:1.2.19]
>> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
>> ~[?:1.8.0_102]
>> at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
>> ~[?:1.8.0_102]
>> at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
>> Source) ~[?:1.8.0_102]
>> at java.lang.reflect.Constructor.newInstance(Unknown Source)
>> ~[?:1.8.0_102]
>> at java.lang.Class.newInstance(Unknown Source) ~[?:1.8.0_102]
>> at
>> org.apache.axiom.om.OMAbstractFactory.<clinit>(OMAbstractFactory.java:104)
>> ~[axiom-api-1.2.19.jar:1.2.19]
>> ... 22 more
>
>
>
> I'm at a loss at to what is causing this problem.
>
> Can anyone point me to a likely cause of this error?
>
>
> Thanks,
>
>
> Bill

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]