Re: TypeNotPresentException
Look more like a REST deserialization problem then a wicket. Could it be that se.**.core.domain.KmsUser only is available in your back end server? We use an environment very much like yours, with a back end which we send REST request to from our wicket layer, and we don't use the same classes at both ends. //Swanthe On 2010-03-19 13:05, Svante Reutland wrote: Hi! Im working on a project and I'm getting a weird exception in which I don't understand how to resolve. My application resides in two modules. One server side module where all business logic are. On the server side I user spring and restful webservices. Than I have a web module which interact with the server side. The web tier is written in Wicket framework. Now to the problem. When I try to access my restful webservices everything works great until I try to access a webservice that handles more than one entity. For example trying to access a users roles by entering userID. this is the exception being thrown: Code: ERROR - RequestCycle.logRuntimeException(1521) | Method onFormSubmitted of interface org.apache.wicket.markup.html.form.IFormSubmitListener targeted at component [MarkupContainer [Component id = form]] threw an exception org.apache.wicket.WicketRuntimeException: Method onFormSubmitted of interface org.apache.wicket.markup.html.form.IFormSubmitListener targeted at component [MarkupContainer [Component id = form]] threw an exception at org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:193) at org.apache.wicket.request.target.component.listener.ListenerInterfaceRequestTarget.processEvents(ListenerInterfaceRequestTarget.java:73) at org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:92) at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1250) at org.apache.wicket.RequestCycle.step(RequestCycle.java:1329) at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1428) at org.apache.wicket.RequestCycle.request(RequestCycle.java:545) at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:468) at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:301) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418) at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230) at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) at org.mortbay.jetty.Server.handle(Server.java:326) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:536) at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:930) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:747) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:405) at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:228) at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582) Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:182) ... 25 more Caused by: org.jboss.resteasy.spi.ReaderException: java.lang.TypeNotPresentException: Type se.**.core.domain.KmsUser not present at org.jboss.resteasy.core.messagebody.ReaderUtility.doRead(ReaderUtility.java:123) at org.jboss.resteasy.client.core.BaseClientResponse.readFrom(BaseClientResponse.java:246) at org.jboss.resteasy.client.core.BaseClientResponse.getEntity(BaseClientResponse.java:210) at org.jboss.resteasy.client.core.BaseClientResponse.getEntity(BaseClientResponse.java:171) at org.jboss.resteasy.client.core.ClientInvoker.extractEntity(ClientInvoker.java:170) at org.jboss.resteasy.client.core.ClientInvoker.invoke(ClientInvoker.java:112) at org.jbos
Re: TypeNotPresentException
Anyone have any idea of what can cause my problem? -- View this message in context: http://old.nabble.com/TypeNotPresentException-tp27957971p27985887.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: TypeNotPresentException
>From the JavaDoc from TypeNotFoundException: * Thrown when an application tries to access a type using a string * representing the type's name, but no definition for the type with * the specified name can be found. This exception differs from * {...@link ClassNotFoundException} in that ClassNotFoundException is a * checked exception, whereas this exception is unchecked. Treat it as a ClassNotFoundException. You have missing classes on your classpath. Martijn On Mon, Mar 22, 2010 at 12:29 PM, Svante Reutland wrote: > > Hi! > > Im working on a project and I'm getting a weird exception in which I don't > understand how to resolve. My application resides in two modules. > > One server side module where all business logic are. On the server side I > user spring and restful webservices. Than I have a web module which interact > with the server side. The web tier is written in Wicket framework. > > Now to the problem. When I try to access my restful webservices everything > works great until I try to access a webservice that handles more than one > entity. For example trying to access a users roles by entering userID. > > this is the exception being thrown: > Code: > ERROR -Caused by: org.jboss.resteasy.spi.ReaderException: > java.lang.TypeNotPresentException: Type se.**.core.domain.KmsUser not present > at > org.jboss.resteasy.core.messagebody.ReaderUtility.doRead(ReaderUtility.java:123) > at > org.jboss.resteasy.client.core.BaseClientResponse.readFrom(BaseClientResponse.java:246) > at > org.jboss.resteasy.client.core.BaseClientResponse.getEntity(BaseClientResponse.java:210) > at > org.jboss.resteasy.client.core.BaseClientResponse.getEntity(BaseClientResponse.java:171) > at > org.jboss.resteasy.client.core.ClientInvoker.extractEntity(ClientInvoker.java:170) > at > org.jboss.resteasy.client.core.ClientInvoker.invoke(ClientInvoker.java:112) > at > org.jboss.resteasy.client.core.ClientProxy.invoke(ClientProxy.java:59) > at $Proxy353.getRoles(Unknown Source) > at > org.apache.wicket.markup.html.form.Form.delegateSubmit(Form.java:1514) > at org.apache.wicket.markup.html.form.Form.process(Form.java:914) > at > org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:876) > > Anyone have an idea of whats wrong? > appreciate your help. > > Best Regards Svante > Kolla din Hotmail i mobilen! Ta med dig Hotmail i mobilen! > Läs och svara på mejl direkt i mobilen! Klicka här! > _ > Mejla på krogen! Hotmail i mobilen. > http://new.windowslivemobile.msn.com/SE-SE/windows-live-hotmail/default.aspx -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.4 increases type safety for web applications Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.4.4 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
TypeNotPresentException
Hi! Im working on a project and I'm getting a weird exception in which I don't understand how to resolve. My application resides in two modules. One server side module where all business logic are. On the server side I user spring and restful webservices. Than I have a web module which interact with the server side. The web tier is written in Wicket framework. Now to the problem. When I try to access my restful webservices everything works great until I try to access a webservice that handles more than one entity. For example trying to access a users roles by entering userID. this is the exception being thrown: Code: ERROR -Caused by: org.jboss.resteasy.spi.ReaderException: java.lang.TypeNotPresentException: Type se.**.core.domain.KmsUser not present at org.jboss.resteasy.core.messagebody.ReaderUtility.doRead(ReaderUtility.java:123) at org.jboss.resteasy.client.core.BaseClientResponse.readFrom(BaseClientResponse.java:246) at org.jboss.resteasy.client.core.BaseClientResponse.getEntity(BaseClientResponse.java:210) at org.jboss.resteasy.client.core.BaseClientResponse.getEntity(BaseClientResponse.java:171) at org.jboss.resteasy.client.core.ClientInvoker.extractEntity(ClientInvoker.java:170) at org.jboss.resteasy.client.core.ClientInvoker.invoke(ClientInvoker.java:112) at org.jboss.resteasy.client.core.ClientProxy.invoke(ClientProxy.java:59) at $Proxy353.getRoles(Unknown Source) at org.apache.wicket.markup.html.form.Form.delegateSubmit(Form.java:1514) at org.apache.wicket.markup.html.form.Form.process(Form.java:914) at org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:876) Anyone have an idea of whats wrong? appreciate your help. Best Regards Svante Kolla din Hotmail i mobilen! Ta med dig Hotmail i mobilen! Läs och svara på mejl direkt i mobilen! Klicka här! _ Mejla på krogen! Hotmail i mobilen. http://new.windowslivemobile.msn.com/SE-SE/windows-live-hotmail/default.aspx
TypeNotPresentException
Hi! Im working on a project and I'm getting a weird exception in which I don't understand how to resolve. My application resides in two modules. One server side module where all business logic are. On the server side I user spring and restful webservices. Than I have a web module which interact with the server side. The web tier is written in Wicket framework. Now to the problem. When I try to access my restful webservices everything works great until I try to access a webservice that handles more than one entity. For example trying to access a users roles by entering userID. this is the exception being thrown: Code: ERROR - RequestCycle.logRuntimeException(1521) | Method onFormSubmitted of interface org.apache.wicket.markup.html.form.IFormSubmitListener targeted at component [MarkupContainer [Component id = form]] threw an exception org.apache.wicket.WicketRuntimeException: Method onFormSubmitted of interface org.apache.wicket.markup.html.form.IFormSubmitListener targeted at component [MarkupContainer [Component id = form]] threw an exception at org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:193) at org.apache.wicket.request.target.component.listener.ListenerInterfaceRequestTarget.processEvents(ListenerInterfaceRequestTarget.java:73) at org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:92) at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1250) at org.apache.wicket.RequestCycle.step(RequestCycle.java:1329) at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1428) at org.apache.wicket.RequestCycle.request(RequestCycle.java:545) at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:468) at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:301) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418) at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230) at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) at org.mortbay.jetty.Server.handle(Server.java:326) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:536) at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:930) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:747) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:405) at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:228) at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582) Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:182) ... 25 more Caused by: org.jboss.resteasy.spi.ReaderException: java.lang.TypeNotPresentException: Type se.**.core.domain.KmsUser not present at org.jboss.resteasy.core.messagebody.ReaderUtility.doRead(ReaderUtility.java:123) at org.jboss.resteasy.client.core.BaseClientResponse.readFrom(BaseClientResponse.java:246) at org.jboss.resteasy.client.core.BaseClientResponse.getEntity(BaseClientResponse.java:210) at org.jboss.resteasy.client.core.BaseClientResponse.getEntity(BaseClientResponse.java:171) at org.jboss.resteasy.client.core.ClientInvoker.extractEntity(ClientInvoker.java:170) at org.jboss.resteasy.client.core.ClientInvoker.invoke(ClientInvoker.java:112) at org.jboss.resteasy.client.core.ClientProxy.invoke(ClientProxy.java:59) at $Proxy353.getRoles(Unknown Source) at se.**.core.client.impl.KmsUserClientImpl.getRoles(KmsUserClientImpl.java:89) at se.**.ui.pages.Index$2.onSubmit(Index.java:83) at org.apache.wicket.markup.html.form.Form.delegateSubmit(Form.java:1514)