Bug 295161 - org.apache.axis.attachments.AttachmentsImpl cannot be cast to org.apache.axis.attachments.Attachments
Summary: org.apache.axis.attachments.AttachmentsImpl cannot be cast to org.apache.axis...
Status: VERIFIED NOT_ECLIPSE
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.6   Edit
Hardware: PC Linux
: P3 major (vote)
Target Milestone: 3.6 M4   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2009-11-14 10:02 EST by Jose CLA
Modified: 2019-01-24 08:58 EST (History)
6 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jose CLA 2009-11-14 10:02:43 EST
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; es-ES; rv:1.9.0.15) Gecko/2009101601 Firefox/3.0.15 (.NET CLR 3.5.30729)
Build Identifier: Eclipse Galileo

I am working with a webservice, when I try to make a call (call.invoke()) to this webservice, I have the following error :
org.apache.axis.attachments.AttachmentsImpl cannot be cast to org.apache.axis.attachments.AttachmentsImpl.

I am looking if I have more than one axis jar in the proyect and I found only one axis1.2.jar.

I do not know what would be the problem.

I appreciate you would help me.

Jose

Reproducible: Always

Steps to Reproduce:
1. I use a webservice make by jax-rpc literal
2. I create a call and invoke the webservice call.invoke.
3. I have an error of org.apache.axis.attachments.AttachmentsImpl cannot be cast to org.apache.axis.attachments.AttachmentsImpl.
Comment 1 Olivier Thomann CLA 2009-11-14 14:29:53 EST
The complete stack trace would be welcome. Could be a problem with WTP.
Comment 2 Jose CLA 2009-11-16 04:12:14 EST
This is the complete stack trace:
 10:10:33,408 ERROR [STDERR] java.lang.ClassCastException: org.apache.axis.attachments.AttachmentsImpl cannot be cast to org.apache.axis.attachments.Attachments
10:10:33,408 ERROR [STDERR] 	at org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
10:10:33,408 ERROR [STDERR] 	at org.apache.axis.client.Call.invoke(Call.java:1919)
10:10:33,409 ERROR [STDERR] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
10:10:33,409 ERROR [STDERR] 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
10:10:33,409 ERROR [STDERR] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
10:10:33,409 ERROR [STDERR] 	at java.lang.reflect.Method.invoke(Method.java:597)
10:10:33,409 ERROR [STDERR] 	at org.jboss.seam.util.Reflections.invoke(Reflections.java:22)
10:10:33,409 ERROR [STDERR] 	at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:31)
10:10:33,409 ERROR [STDERR] 	at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
10:10:33,410 ERROR [STDERR] 	at org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:77)
10:10:33,410 ERROR [STDERR] 	at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
10:10:33,410 ERROR [STDERR] 	at org.granite.tide.seam.TideInterceptor.aroundInvoke(TideInterceptor.java:165)
10:10:33,410 ERROR [STDERR] 	at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
10:10:33,410 ERROR [STDERR] 	at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:28)
10:10:33,410 ERROR [STDERR] 	at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
10:10:33,410 ERROR [STDERR] 	at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:44)
10:10:33,410 ERROR [STDERR] 	at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
10:10:33,410 ERROR [STDERR] 	at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107)
10:10:33,410 ERROR [STDERR] 	at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:185)
10:10:33,411 ERROR [STDERR] 	at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:103)
10:10:33,411 ERROR [STDERR] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
10:10:33,411 ERROR [STDERR] 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
10:10:33,411 ERROR [STDERR] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
10:10:33,411 ERROR [STDERR] 	at java.lang.reflect.Method.invoke(Method.java:597)
10:10:33,411 ERROR [STDERR] 	at org.jboss.seam.util.Reflections.invoke(Reflections.java:22)
10:10:33,412 ERROR [STDERR] 	at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:31)
10:10:33,412 ERROR [STDERR] 	at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
10:10:33,412 ERROR [STDERR] 	at org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:77)
10:10:33,412 ERROR [STDERR] 	at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
10:10:33,412 ERROR [STDERR] 	at org.granite.tide.seam.TideInterceptor.aroundInvoke(TideInterceptor.java:165)
10:10:33,412 ERROR [STDERR] 	at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
10:10:33,412 ERROR [STDERR] 	at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:28)
10:10:33,412 ERROR [STDERR] 	at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
10:10:33,412 ERROR [STDERR] 	at org.jboss.seam.transaction.TransactionInterceptor$1.work(TransactionInterceptor.java:95)
10:10:33,412 ERROR [STDERR] 	at org.jboss.seam.util.Work.workInTransaction(Work.java:47)
10:10:33,413 ERROR [STDERR] 	at org.jboss.seam.transaction.TransactionInterceptor.aroundInvoke(TransactionInterceptor.java:89)
10:10:33,413 ERROR [STDERR] 	at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
10:10:33,413 ERROR [STDERR] 	at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:44)
10:10:33,413 ERROR [STDERR] 	at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
10:10:33,413 ERROR [STDERR] 	at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107)
10:10:33,413 ERROR [STDERR] 	at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:185)
10:10:33,413 ERROR [STDERR] 	at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:103)
10:10:33,413 ERROR [STDERR] 	at es.insht.site.delegate.EvaluationTimeoutDelegate_$$_javassist_3.process(EvaluationTimeoutDelegate_$$_javassist_3.java)
10:10:33,413 ERROR [STDERR] 	at es.insht.site.component.impl.ScheduleProcessor.startEvaluationTimeoutJob(ScheduleProcessor.java:53)
10:10:33,413 ERROR [STDERR] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
10:10:33,414 ERROR [STDERR] 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
10:10:33,414 ERROR [STDERR] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
10:10:33,414 ERROR [STDERR] 	at java.lang.reflect.Method.invoke(Method.java:597)
10:10:33,414 ERROR [STDERR] 	at org.jboss.seam.util.Reflections.invoke(Reflections.java:22)
10:10:33,414 ERROR [STDERR] 	at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:31)
10:10:33,414 ERROR [STDERR] 	at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
10:10:33,414 ERROR [STDERR] 	at org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:28)
10:10:33,414 ERROR [STDERR] 	at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
10:10:33,414 ERROR [STDERR] 	at org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:77)
10:10:33,414 ERROR [STDERR] 	at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
10:10:33,415 ERROR [STDERR] 	at org.jboss.seam.transaction.TransactionInterceptor$1.work(TransactionInterceptor.java:95)
10:10:33,415 ERROR [STDERR] 	at org.jboss.seam.util.Work.workInTransaction(Work.java:47)
10:10:33,415 ERROR [STDERR] 	at org.jboss.seam.transaction.TransactionInterceptor.aroundInvoke(TransactionInterceptor.java:89)
10:10:33,415 ERROR [STDERR] 	at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
10:10:33,415 ERROR [STDERR] 	at org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:44)
10:10:33,415 ERROR [STDERR] 	at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
10:10:33,415 ERROR [STDERR] 	at org.jboss.seam.async.AsynchronousInterceptor.aroundInvoke(AsynchronousInterceptor.java:52)
10:10:33,415 ERROR [STDERR] 	at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
10:10:33,415 ERROR [STDERR] 	at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107)
10:10:33,415 ERROR [STDERR] 	at org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:185)
10:10:33,415 ERROR [STDERR] 	at org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:103)
10:10:33,416 ERROR [STDERR] 	at es.insht.site.component.impl.ScheduleProcessor_$$_javassist_1.startEvaluationTimeoutJob(ScheduleProcessor_$$_javassist_1.java)
10:10:33,416 ERROR [STDERR] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
10:10:33,416 ERROR [STDERR] 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
10:10:33,416 ERROR [STDERR] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
10:10:33,416 ERROR [STDERR] 	at java.lang.reflect.Method.invoke(Method.java:597)
10:10:33,416 ERROR [STDERR] 	at org.jboss.seam.util.Reflections.invoke(Reflections.java:22)
10:10:33,416 ERROR [STDERR] 	at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:144)
10:10:33,416 ERROR [STDERR] 	at org.jboss.seam.async.AsynchronousInvocation$1.process(AsynchronousInvocation.java:62)
10:10:33,416 ERROR [STDERR] 	at org.jboss.seam.async.Asynchronous$ContextualAsynchronousRequest.run(Asynchronous.java:80)
10:10:33,417 ERROR [STDERR] 	at org.jboss.seam.async.AsynchronousInvocation.execute(AsynchronousInvocation.java:44)
10:10:33,417 ERROR [STDERR] 	at org.jboss.seam.async.QuartzDispatcher$QuartzJob.execute(QuartzDispatcher.java:243)
10:10:33,417 ERROR [STDERR] 	at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
10:10:33,417 ERROR [STDERR] 	at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:525)
10:10:33,417 ERROR [STDERR] Caused by: java.lang.ClassCastException: org.apache.axis.attachments.AttachmentsImpl cannot be cast to org.apache.axis.attachments.Attachments
10:10:33,417 ERROR [STDERR] 	at org.apache.axis.Message.setup(Message.java:341)
10:10:33,417 ERROR [STDERR] 	at org.apache.axis.Message.<init>(Message.java:243)
10:10:33,417 ERROR [STDERR] 	at org.apache.axis.client.Call.invoke(Call.java:1895)
Comment 3 Stephan Herrmann CLA 2009-11-16 07:39:17 EST
Doesn't this sound like a class loader issue?
Recall that the same class loaded in two different class loaders
yields two incompatible classes at runtime.

Seeing in the stack trace what looks like JBoss AOP I wouldn't be 
surprised at all to hear that some heavy class loader trickery is involved.

Anyway, I don't see how the JDT would be to blame for such runtime issues?
Comment 4 Olivier Thomann CLA 2009-11-16 10:06:28 EST
(In reply to comment #3)
> Anyway, I don't see how the JDT would be to blame for such runtime issues?
I agree with this. This looks like a class loading issue.
Closing as NOT_ECLIPSE.
Comment 5 Ayushman Jain CLA 2009-12-08 03:26:08 EST
Verified for 3.6M4.
Comment 6 Rahul Vyas CLA 2019-01-24 08:01:13 EST
same exception i am getting what can i do for solution.
Comment 7 Stephan Herrmann CLA 2019-01-24 08:58:22 EST
(In reply to Rahul Vyas from comment #6)
> same exception i am getting what can i do for solution.

If you see stack frames starting with org.jboss (like in comment 3) then you should consult the JBoss people.