• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 862
  • Last Modified:

500 Servlet Exception java.lang.NoSuchMethodError: happening at Runtime on Resin 3-1-2 server.

I am getting the following exception. there is no compilation error while building and deploying the app to resin.

This application is migrated from java version 1.4 and Resin 2-1-17 to
java version - and  Resin - 3-1-2

Can Anyone help me out what could have gone wrong? Looks like some jar file conflict? I am not able to come out with any solution :(  Thanks guys

500 Servlet Exception
java.lang.NoSuchMethodError: com.dmotorworks.lib.cache.CacheSize.sizeOf(Lcom/dmotorworks/lib/GUID;)I
      at com.dmotorworks.sa.theme.Theme.sizeOf(Theme.java:214)
      at com.dmotorworks.lib.cache.CacheSize.sizeOf(CacheSize.java:276)
      at com.dmotorworks.lib.cache.Cache.put(Cache.java:89)
      at com.dmotorworks.sa.theme.ThemesSingleton.initThemes(ThemesSingleton.java:95)
      at com.dmotorworks.sa.theme.ThemesSingleton.<init>(ThemesSingleton.java:68)
      at com.dmotorworks.sa.theme.ThemesSingleton.getInstance(ThemesSingleton.java:59)
      at com.dmotorworks.sa.theme.tag.ElementTag.lookupThemeURL(ElementTag.java:172)
      at com.dmotorworks.sa.theme.tag.ElementTag.lookupThemeURL(ElementTag.java:152)
      at com.dmotorworks.sa.theme.tag.ScriptTag.setSrc(ScriptTag.java:31)
      at _jsp._jsp._error__jsp._jspService(jsp/error.jsp:47)
      at com.caucho.jsp.JavaPage.service(JavaPage.java:61)
      at com.caucho.jsp.Page.pageservice(Page.java:578)
      at com.caucho.server.dispatch.PageFilterChain.doFilter(PageFilterChain.java:192)
      at com.caucho.server.webapp.DispatchFilterChain.doFilter(DispatchFilterChain.java:97)
      at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:240)
      at com.caucho.server.webapp.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:280)
      at com.caucho.server.webapp.RequestDispatcherImpl.error(RequestDispatcherImpl.java:115)
      at com.caucho.server.webapp.ErrorPageManager.sendServletError(ErrorPageManager.java:366)
      at com.caucho.server.webapp.WebAppFilterChain.doFilter(WebAppFilterChain.java:177)
      at com.caucho.server.dispatch.ServletInvocation.service(ServletInvocation.java:240)
      at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:263)
      at com.caucho.server.port.TcpConnection.run(TcpConnection.java:481)
      at com.caucho.util.ThreadPool$Item.runTasks(ThreadPool.java:685)
      at com.caucho.util.ThreadPool$Item.run(ThreadPool.java:607)
      at java.lang.Thread.run(Thread.java:619)

  • 2
1 Solution
>> Looks like some jar file conflict?

Yes. Check that you're running and compiling against the same version of the dmotorworks classes
Errors like this are usually caused by having two different dmotorworks
jars, either in the class path (check the web apps, the servlet
container's class path and the JRE directories), or in different
web applications calling each other.
kannoseAuthor Commented:
Thanks deepak for directing me to this direction and that was it. I had another app jar file copied under Resin's lib folder, which has the similar package structure and method, hence my current app was calling this method instead of the indented one.  1000 cheers to this help :)
kannose - can you tell me why you ignored my comment?
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Microsoft Exchange Server

The MCTS: Microsoft Exchange Server 2010 certification validates your skills in supporting the maintenance and administration of the Exchange servers in an enterprise environment. Learn everything you need to know with this course.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now