axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Deepal Jayasinghe (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (AXIS2-3212) UnsupportedOperationException due to usage of Arrays.asList
Date Thu, 14 Feb 2008 11:27:08 GMT

     [ https://issues.apache.org/jira/browse/AXIS2-3212?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Deepal Jayasinghe resolved AXIS2-3212.
--------------------------------------

    Resolution: Fixed

applied the patch 

Thanks
Deepal

> UnsupportedOperationException due to usage of Arrays.asList
> -----------------------------------------------------------
>
>                 Key: AXIS2-3212
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3212
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: kernel
>    Affects Versions: 1.3
>         Environment: Windows XP, JDK 1.5 and also JDK 1.6
>            Reporter: Vincent Brabant
>            Assignee: Deepal Jayasinghe
>            Priority: Blocker
>         Attachments: AXIS2-3212.patch
>
>
> When I am doing a basic JMS test (request/reply on JMS), I am always obtaining the following
error:
> Exception in thread "JMSWorker-1" java.lang.UnsupportedOperationException
> at java.util.AbstractList.add(AbstractList.java:151)
> at java.util.AbstractList.add(AbstractList.java:89)
> at org.apache.axis2.client.Options.addRelatesTo(Options.java:843)
> at org.apache.axis2.handlers.addressing.AddressingInHandler.extractRelatesToInformation(AddressingInHandler.java:249)
> at org.apache.axis2.handlers.addressing.AddressingInHandler.extractAddressingInformation(AddressingInHandler.java:171)
> at org.apache.axis2.handlers.addressing.AddressingInHandler.invoke(AddressingInHandler.java:97)
> at org.apache.axis2.engine.Phase.invoke(Phase.java:292)
> at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:212)
> at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:132)
> at org.apache.axis2.transport.jms.JMSMessageReceiver$Worker.run(JMSMessageReceiver.java:252)
> at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:665)
> at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:690)
> at java.lang.Thread.run(Thread.java:595)
> The problem is caused because the org.apache.axis2.client.Options contains a method setRelationships(RelatesTo[]
list) {}
> that transform the array into a list by using the Arrays.asList()
> but the Arrays.asList() return you an unmodifiable list. So, impossible to add sotheting
nor to remove something ...

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


Mime
View raw message