Why is Java giving me an IllegalArgumentException?
-
21-08-2019 - |
Question
I'm using dwr and spring and I get this error:
java.lang.IllegalArgumentException: Javascript name * is used by 2 classes
I found nothing helpful on Google, do you know why I'm getting this error?
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns:dwr="http://www.directwebremoting.org/schema/spring-dwr"
http://www.directwebremoting.org/schema/spring-dwr
http://www.directwebremoting.org/schema/spring-dwr-3.0.xsd">
<dwr:configuration />
<dwr:controller id="dwrController" debug="true" />
<bean id="ping" class="com.mycompany.Ping">
<dwr:remote javascript="rpcPing">
<dwr:include method="ping" />
</dwr:remote>
</bean>
</beans>
Solution
Found. Because the version of the DWR's jar did not match the version of DWR's schema
OTHER TIPS
In my case the reason was that the relevant snippets in dwr.xml were there twice.
<create creator="new" javascript="Tab">
<param name="class" value="org.openxava.web.dwr.Tab"/>
</create>
...
<create creator="new" javascript="Tab">
<param name="class" value="org.openxava.web.dwr.Tab"/>
</create>
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow