Thursday, May 26, 2011

Re: Validation-api-1.0.0, Doesn't work

Maybe it can help you
revise, maybe that this exception can not serialize. 

Also revise the configuration of the server.
2011/5/26 MaximeMularz <maxime@mularz.fr>
Hi,

I have a new error :

[ERROR] javax.servlet.ServletContext log: Exception while dispatching
incoming RPC call
java.lang.ExceptionInInitializerError
       at com.google.gwt.rpc.server.RPC.decodeRequest(RPC.java:160)
       at com.google.gwt.rpc.server.RpcServlet.processCall(RpcServlet.java:
169)
       at com.google.gwt.rpc.server.RpcServlet.processPost(RpcServlet.java:
233)
       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.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
511)
       at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1166)
       at
com.google.appengine.tools.development.HeaderVerificationFilter.doFilter(HeaderVerificationFilter.java:
35)
       at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1157)
       at
com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java:
58)
       at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1157)
       at
com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:
43)
       at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1157)
       at
com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java:
122)
       at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1157)
       at
com.google.appengine.tools.development.BackendServersFilter.doFilter(BackendServersFilter.java:
94)
       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
com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java:
70)
       at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
152)
       at com.google.appengine.tools.development.JettyContainerService
$ApiProxyHandler.handle(JettyContainerService.java:351)
       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:
542)
       at org.mortbay.jetty.HttpConnection
$RequestHandler.content(HttpConnection.java:938)
       at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:755)
       at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)
       at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
       at
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:
409)
       at org.mortbay.thread.QueuedThreadPool
$PoolThread.run(QueuedThreadPool.java:582)
Caused by: java.lang.RuntimeException: Unable to get Unsafe instance
       at
com.google.gwt.rpc.server.CommandSerializationUtil.<clinit>(CommandSerializationUtil.java:
457)
       ... 35 more
Caused by: java.security.AccessControlException: access denied
(java.lang.RuntimePermission accessClassInPackage.sun.misc)
       at java.security.AccessControlContext.checkPermission(Unknown Source)
       at java.security.AccessController.checkPermission(Unknown Source)
       at java.lang.SecurityManager.checkPermission(Unknown Source)
       at com.google.appengine.tools.development.DevAppServerFactory
$CustomSecurityManager.checkPermission(DevAppServerFactory.java:166)
       at java.lang.SecurityManager.checkPackageAccess(Unknown Source)
       at java.lang.ClassLoader$1.run(Unknown Source)
       at java.security.AccessController.doPrivileged(Native Method)
       at java.lang.ClassLoader.checkPackageAccess(Unknown Source)
       at
com.google.gwt.rpc.server.CommandSerializationUtil.<clinit>(CommandSerializationUtil.java:
444)
       ... 35 more
???? What's wrong ?


On 25 mai, 22:14, MaximeMularz <max...@mularz.fr> wrote:
> Sorry, I don't understand your implementation could you please give me
> more details ?
>
> On 25 mai, 21:31, Nick Chalko <ncha...@google.com> wrote:
>
> > You will need to do something like this.
>
> > public class ExposeImpl implements IsSerializable {
>
> >   @SuppressWarnings("unused")
> >   private ConstraintViolationImpl<?> constraintViolationImpl;
>
> >   @SuppressWarnings("unused")
> >   private PathImpl pathIpml;
>
> >   @SuppressWarnings("unused")
> >   private HashSet<?> hashSet;
>
> > }
>
> > And then Create a dummy method like the following in your RemoteService
>
> >  ExposeImpl dummy();
>
> > I am working on a simpler solution.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.




--
El precio es lo que pagas. El valor es lo que recibes.
Warren Buffet

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment