• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

LinkageError on runtime  RSS feed

 
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Situation:
Encountered the problem in runtime, it was running fine in previous application build, but not on the latest one. No major change to the code have been done.

Error trace


Associated files

Line 111 of FaxAdviceDispatcher:


My guess is, it's dying when it's trying to instantiate DataHandler(dataSource).

DataHandler is a class in activation.jar if any of u are familiar with the use of activation.jar (I'm not THAT familiar with it)

Question
(1) What could this error trace possibly mean?
(2) Anyone had similar problem/solution to this?
(3) What can possibly fix it?

(my guess
There is a change in the build procedure employed in previous and current version of the application. If LinkageError relates to the generated binary not able to link to classes in the Jars, then probably performing a clean build would resolve the issue?

( I need to wait till everyone go home and NOT using the server before I can do a full build so in the meantime I'm posting here).



... Haa~~aallpp
 
Z Sugiarto
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Apparently doing a full build of the application (clean the binaries, compiling, building, spitting ears, uninstall previous ear in server, dump the new ear, restart server) doesn't help.

Hmm....
 
Z Sugiarto
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
...resolved

got the clue from here
http://forum.java.sun.com/thread.jspa?threadID=659531&tstart=90

Crap was giving me a hard time, turns out that Server already included activation.jar on runtime, and we had activation.jar in WEB-INF/lib, and the 2 jar are of different (seemingly incompatible) version!

removed the one in WEB-INF/lib and used the one set up for server runtime, and all is good.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!