# DWR 3.0.2 throws java.lang.IllegalArgumentException

**URL:** <https://discourse.dojo.io/t/dwr-3-0-2-throws-java-lang-illegalargumentexception/482>\
**Category:** DWR users\
**Created:** [April 17, 2020, 10:58pm UTC](https://discourse.dojo.io/t/dwr-3-0-2-throws-java-lang-illegalargumentexception/482 "2020-04-17T22:58:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ballem](https://avatars.discourse-cdn.com/v4/letter/b/aca169/32.png) [@ballem](https://discourse.dojo.io/u/ballem)\
**Post date:** [April 17, 2020, 10:58pm UTC](https://discourse.dojo.io/t/dwr-3-0-2-throws-java-lang-illegalargumentexception/482/1 "2020-04-17T22:58:13Z")

</div>

Hello there!

I’m using Spring Boot 2.1.8 + Java 1.8 + DWR 3.0.2 and I am facing this error below:

```auto
INFO 4 --- [main] org.directwebremoting.log.startup : Starting: DwrController v3.0.3-dev on Apache Tomcat/9.0.24 / JDK 1.8.0_242-heroku from Oracle Corporation at
ERROR 4 --- [main] o.d.spring.DwrController : init failed

java.lang.IllegalArgumentException: name
 at sun.misc.URLClassPath$Loader.getResource(URLClassPath.java:739) ~[na:1.8.0_242-heroku]
 at sun.misc.URLClassPath.getResource(URLClassPath.java:249) ~[na:1.8.0_242-heroku]
 at java.net.URLClassLoader$1.run(URLClassLoader.java:366) ~[na:1.8.0_242-heroku]
 at java.net.URLClassLoader$1.run(URLClassLoader.java:363) ~[na:1.8.0_242-heroku]
 at java.security.AccessController.doPrivileged(Native Method) ~[na:1.8.0_242-heroku]
 at java.net.URLClassLoader.findClass(URLClassLoader.java:362) ~[na:1.8.0_242-heroku]
 at java.lang.ClassLoader.loadClass(ClassLoader.java:419) ~[na:1.8.0_242-heroku]
 at org.springframework.boot.loader.LaunchedURLClassLoader.loadClass(LaunchedURLClassLoader.java:93) ~[demo-ajax-0.0.1-SNAPSHOT.jar:0.0.1-SNAPSHOT]
 at java.lang.ClassLoader.loadClass(ClassLoader.java:352) ~[na:1.8.0_242-heroku]
 at java.lang.Class.forName0(Native Method) ~[na:1.8.0_242-heroku]
 at java.lang.Class.forName(Class.java:348) ~[na:1.8.0_242-heroku]
 at org.springframework.util.ClassUtils.forName(ClassUtils.java:275) ~[spring-core-5.1.9.RELEASE.jar!/:5.1.9.RELEASE]
 at org.directwebremoting.spring.SpringContainer.addParameter(SpringContainer.java:63) ~[dwr-3.0.2-RELEASE.jar!/:na]
 at org.directwebremoting.impl.StartupUtil.setupDefaults(StartupUtil.java:565) ~[dwr-3.0.2-RELEASE.jar!/:na]
 at org.directwebremoting.impl.StartupUtil.setupDefaultContainer(StartupUtil.java:246) ~[dwr-3.0.2-RELEASE.jar!/:na]
 at org.directwebremoting.spring.DwrController.afterPropertiesSet(DwrController.java:191) ~[dwr-3.0.2-RELEASE.jar!/:na]
```

In the development environment works well, without any error, but when I send to the Heroku the error appears.I have been testing previous versions of Spring Boot 2 and the same error remains.

---

<div class="post-metadata">

**Author:** ![mikewse](https://avatars.discourse-cdn.com/v4/letter/m/58956e/32.png) [@mikewse](https://discourse.dojo.io/u/mikewse)\
**Post date:** [April 18, 2020, 8:28am UTC](https://discourse.dojo.io/t/dwr-3-0-2-throws-java-lang-illegalargumentexception/482/2 "2020-04-18T08:28:30Z")

</div>

It was fixed here [https://github.com/directwebremoting/dwr/issues/2](https://github.com/directwebremoting/dwr/issues/2).

Not in any release yet so you need to build your own dwr.jar from source.
