• Welcome to KonaKart Community Forum. Please login or sign up.
 

RPC call Error

Started by ByDcc, April 17, 2013, 01:06:07 am

Previous topic - Next topic

ByDcc

   Hi all,
   I'm getting this exception when I try to access to admin konakart application:

Exception while dispatching incoming RPC call
com.google.gwt.user.server.rpc.UnexpectedException: Service method 'public abstract com.konakartadmin.client.app.GWT_AdminCustomValidatorSet com.konakartadmin.client.KKAdminGWTServiceIf.getCustomValidatorSet(java.lang.String) throws com.konakartadmin.app.KKAdminException' threw an unexpected exception: java.lang.NoClassDefFoundError: com/konakartadmin/client/util/GWT_StringBuffer
at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:385)
at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:588)
at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:208)
at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:248)
at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:563)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190)
at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:311)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:776)
at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:705)
at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:898)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.NoClassDefFoundError: com/konakartadmin/client/util/GWT_StringBuffer
at com.konakartadmin.client.app.GWT_AdminCustomValidatorSet.toString(Unknown Source)
at com.konakartadmin.server.KKAdminGWTServiceImpl.getCustomValidatorSet(Unknown Source)
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 com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:569)
... 21 more
Caused by: java.lang.ClassNotFoundException: com.konakartadmin.client.util.GWT_StringBuffer
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1680)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1526)
... 28 more


   When konakartadmin is deployed the last log it writes is:

16-Apr 18:28:45 DEBUG (?:getStores:?) 1) Store:
Store Id          = store1
Store Name        = Store 1
Store Description = null
Admin Email       =
Maximum Products  = -1
Store Url         = null
Custom1           = null
Custom2           = null
Custom3           = null
Custom4           = null
Custom5           = null
Deleted?          = false
Enabled?          = true
Maintenance?      = false
Template?         = false

16-Apr 18:28:45 DEBUG (?:getCustomValidatorSet:?) getCustomValidatorSet()
16-Apr 18:28:45 DEBUG (?:getEng:?) getEng() for storeId = store1
16-Apr 18:28:45 INFO  (?:getCustomValidators:?) Returning cached CustomValidationSet containing 0 items
16-Apr 18:31:15 INFO  (?:<init>:?) KKAdminGWTServiceImpl (6.5.0.0) starting....


   Could you give me a clue about what kind of problem could be happening?
   Thanks in advance.

ByDcc

   The problem is related with log4j.
   When I use the property log4j.appender.KonaKartAppender.file=../logs/KonaKart.log works.
   But if I use an absolute path like
log4j.appender.KonaKartAppender.file=/home/user/konakart/a_folder/logs/nameadmin.log doesn't work.
Even if I don't include the appender in the root logger.

   Is this behaviour normal?. The store works fine even changing the path of the appender.

   Thanks.

ming

You need to disable the DEBUG logging on log4j.logger.com.konakartadmin.server  to avoid that error.   It's an error in the diagnostics when the logging level is DEBUG.

Set it as WARN and you should not get that error.

In the next version (probably 6.6.0.0) this has been fixed.