Hhhmm, I know I did this change, but this is a point to be documented
:-) User will get the same experience and we need to clearly document
these incompatibilities, may be the migration tool should print a
WARNING if there is a custom mediator.
Thanks,
Ruwan
On 10/25/10 1:58 PM, Supun Kamburugamuva wrote:
This is due to an API change. Now if your Serializer is extending
from AbstractMediatorSerializer, you have to override the
protected abstract OMElement serializeSpecificMediator(Mediator m);
Previously user had to override the
public OMElement serializeMediator(OMElement parent, Mediator m).
But this method is final now.
Thanks,
Supun..
On Mon, Oct 25, 2010 at 1:51 PM, Evanthika Amarasiri
<[email protected] <mailto:[email protected]>> wrote:
Hi,
When trying to deploy custom mediators in the latest packs
(wso2esb-4.0.0-SNAPSHOT) I came across the following exception.
Tried by uploading the mediator through the Management Console UI
('Home > Manage > ESB Artifacts > Add') and also by dropping the
.xar file to /repository/deployment/server/mediators/.
The particular mediator worked fine for the 3.0.1 packs. Does this
mean we cannot use the old .xar files in the latest releases?
****************************************************************************************************************************************************************************************************
[2010-10-25 13:43:55,020] INFO - ExtensionDeployer Loading the
apache.synapse.config.xml.MediatorSerializer implementation:
org.wso2.test.TestMediatorSerializer
[2010-10-25 13:43:55,020] DEBUG - ExtensionDeployer Restoring the
context class loader to the original
Exception in thread "Timer-2" java.lang.VerifyError: class
org.wso2.test.TestMediatorSerializer overrides final method
serializeMediator.(Lorg/apache/axiom/om/OMElement;Lorg/apache/synapse/Mediator;)Lorg/apache/axiom/om/OMElement;
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)
at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at
org.apache.axis2.deployment.DeploymentClassLoader.findClass(DeploymentClassLoader.java:78)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at
org.apache.axis2.deployment.DeploymentClassLoader.loadClass(DeploymentClassLoader.java:273)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
at
org.apache.synapse.deployers.ExtensionDeployer.getProviders(ExtensionDeployer.java:153)
at
org.apache.synapse.deployers.ExtensionDeployer.deploy(ExtensionDeployer.java:119)
at
org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:136)
at
org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:815)
at
org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:144)
at
org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:391)
at
org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:254)
at
org.apache.axis2.deployment.RepositoryListener.startListener(RepositoryListener.java:385)
at
org.apache.axis2.deployment.scheduler.SchedulerTask.checkRepository(SchedulerTask.java:68)
at
org.apache.axis2.deployment.scheduler.SchedulerTask.run(SchedulerTask.java:79)
at
org.apache.axis2.deployment.scheduler.Scheduler$SchedulerTimerTask.run(Scheduler.java:93)
at java.util.TimerThread.mainLoop(Timer.java:512)
at java.util.TimerThread.run(Timer.java:462)
Regards,
Evanthika
_______________________________________________
Carbon-dev mailing list
[email protected] <mailto:[email protected]>
https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev
--
Supun Kamburugamuva
Technical Lead
WSO2 Inc.; http://wso2.org
E-mail: [email protected] <mailto:[email protected]>; Mobile: +94 77 431 3585
Blog: http://supunk.blogspot.com
_______________________________________________
Carbon-dev mailing list
[email protected]
https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev
--
Ruwan Linton
Software Architect& Product Manager, WSO2 ESB; http://wso2.org/esb
WSO2 Inc.; http://wso2.com
Lean . Enterprise . Middleware
phone: +1 408 754 7388 ext 51789
email: [email protected]; cell: +94 77 341 3097
blog: http://blog.ruwan.org
linkedin: http://www.linkedin.com/in/ruwanlinton
tweet: http://twitter.com/ruwanlinton
_______________________________________________
Carbon-dev mailing list
[email protected]
https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev