Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[eclipselink-users] IllegalArgumentException after redeployment but argument types are ok

Hi,

do you know the following problem...
Caused by: java.lang.IllegalArgumentException: You have attempted to set a value of type class de.n4v.smt.client.i18n.I18NType for parameter type with expected type of class de.n4v.smt.client.i18n.I18NType from query string SELECT c FROM I18NData c WHERE c.type = :type AND c.language.id = :languageId.

It reports for set and expected type the I18NType! So where is the problem?

Also after fresh start of the Jetty Webcontainer everything works but after undeploying the application and deploying it again in the same Jetty JVM instance this execption occurs.


At I18NCache.java:46:
q.setParameter("type", type);


java.lang.ExceptionInInitializerError
at de.n4v.smt.server.i18n.JSGeneratorServlet.init(JSGeneratorServlet.java:78) at org.mortbay.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:431)
	at org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java:263)
	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:643)
	at org.mortbay.jetty.servlet.Context.startContext(Context.java:140)
at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1234) at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:517)
	at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:460)
	at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at org.mortbay.jetty.deployer.ContextDeployer.deploy(ContextDeployer.java:268) at org.mortbay.jetty.deployer.ContextDeployer.redeploy(ContextDeployer.java:287) at org.mortbay.jetty.deployer.ContextDeployer.access$100(ContextDeployer.java:67) at org.mortbay.jetty.deployer.ContextDeployer$ScannerListener.fileChanged(ContextDeployer.java:99)
	at org.mortbay.util.Scanner.reportChange(Scanner.java:464)
	at org.mortbay.util.Scanner.reportDifferences(Scanner.java:330)
	at org.mortbay.util.Scanner.scan(Scanner.java:280)
	at org.mortbay.util.Scanner$1.run(Scanner.java:232)
	at java.util.TimerThread.mainLoop(Timer.java:512)
	at java.util.TimerThread.run(Timer.java:462)
Caused by: java.lang.IllegalArgumentException: You have attempted to set a value of type class de.n4v.smt.client.i18n.I18NType for parameter type with expected type of class de.n4v.smt.client.i18n.I18NType from query string SELECT c FROM I18NData c WHERE c.type = :type AND c.language.id = :languageId. at org.eclipse.persistence.internal.jpa.EJBQueryImpl.setParameterInternal(EJBQueryImpl.java:897) at org.eclipse.persistence.internal.jpa.EJBQueryImpl.setParameter(EJBQueryImpl.java:793) at de.n4v.smt.server.i18n.I18NCache$I18NCacheSingleton.getAllForType(I18NCache.java:46) at de.n4v.smt.server.i18n.I18NCache$I18NCacheSingleton.access$0(I18NCache.java:30)
	at de.n4v.smt.server.i18n.I18NCache.<clinit>(I18NCache.java:21)
	... 20 more


Back to the top