Hi HDayi,

I met the same problem. I have no idea what went wrong and I could not
find the log file. Do you have any idea what went wrong now?

Thanks!

Leon

On Nov 16, 8:34 am, HDayi <[email protected]> wrote:
> hi there, iam getting the following exception while trying to run the
> rpc procedure.
> running code is following the stack trace:
>
> The server is running athttp://localhost:8080/
> 16.Kas.2009 13:29:51
> com.google.appengine.tools.development.ApiProxyLocalImpllog
> SEVERE: [1258378191128000] javax.servlet.ServletContextlog: Exception
> while dispatching incoming RPC call
> com.google.gwt.user.server.rpc.UnexpectedException: Service method
> 'public abstract java.lang.String
> tr.bel.kocasinan.client.KocasinanSrv.benString(java.lang.String)'
> threw an unexpected exception: java.lang.ExceptionInInitializerError
>         at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure
> (RPC.java:360)
>         at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse
> (RPC.java:546)
>         at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall
> (RemoteServiceServlet.java:166)
>         at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost
> (RemoteServiceServlet.java:86)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:713)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
>         at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
> 487)
>         at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
> (ServletHandler.java:1093)
>         at
> com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter
> (TransactionCleanupFilter.java:43)
>         at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
> (ServletHandler.java:1084)
>         at com.google.appengine.tools.development.StaticFileFilter.doFilter
> (StaticFileFilter.java:121)
>         at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
> (ServletHandler.java:1084)
>         at org.mortbay.jetty.servlet.ServletHandler.handle
> (ServletHandler.java:360)
>         at org.mortbay.jetty.security.SecurityHandler.handle
> (SecurityHandler.java:216)
>         at org.mortbay.jetty.servlet.SessionHandler.handle
> (SessionHandler.java:181)
>         at org.mortbay.jetty.handler.ContextHandler.handle
> (ContextHandler.java:712)
>         at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
> 405)
>         at com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle
> (DevAppEngineWebAppContext.java:54)
>         at org.mortbay.jetty.handler.HandlerWrapper.handle
> (HandlerWrapper.java:139)
>         at com.google.appengine.tools.development.JettyContainerService
> $ApiProxyHandler.handle(JettyContainerService.java:313)
>         at org.mortbay.jetty.handler.HandlerWrapper.handle
> (HandlerWrapper.java:139)
>         at org.mortbay.jetty.Server.handle(Server.java:313)
>         at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:
> 506)
>         at org.mortbay.jetty.HttpConnection$RequestHandler.content
> (HttpConnection.java:844)
>         at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:644)
>         at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
>         at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381)
>         at org.mortbay.io.nio.SelectChannelEndPoint.run
> (SelectChannelEndPoint.java:396)
>         at org.mortbay.thread.BoundedThreadPool$PoolThread.run
> (BoundedThreadPool.java:442)
> Caused by: java.lang.ExceptionInInitializerError
>         at com.mysql.jdbc.NonRegisteringDriver.connect
> (NonRegisteringDriver.java:282)
>         at java.sql.DriverManager.getConnection(Unknown Source)
>         at java.sql.DriverManager.getConnection(Unknown Source)
>         at tr.bel.kocasinan.server.KocasinanSrvImpl.benString
> (KocasinanSrvImpl.java:39)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>         at java.lang.reflect.Method.invoke(Unknown Source)
>         at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse
> (RPC.java:527)
>         ... 27 more
> Caused by: java.security.AccessControlException: access denied
> (java.lang.RuntimePermission modifyThreadGroup)
>         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:139)
>         at com.google.appengine.tools.development.DevAppServerFactory
> $CustomSecurityManager.checkAccess(DevAppServerFactory.java:166)
>         at java.lang.ThreadGroup.checkAccess(Unknown Source)
>         at java.lang.Thread.init(Unknown Source)
>         at java.lang.Thread.<init>(Unknown Source)
>         at java.util.TimerThread.<init>(Unknown Source)
>         at java.util.Timer.<init>(Unknown Source)
>         at java.util.Timer.<init>(Unknown Source)
>         at com.mysql.jdbc.ConnectionImpl.<clinit>(ConnectionImpl.java:208)
>         ... 36 more
>
> the code i am trying to run
>
> public String benString(String s) {
>                 // TODO Auto-generated method stub
>                 Connection conn     = null;
>         String url          = "jdbc:mysql://127.0.0.1:3306/";
>         String db           = "KOCASINAN";
>         String driver       = "com.mysql.jdbc.Driver";
>         String user         = "root";
>         String pass         = "root";
>         String query = "select * from USER WHERE NO=345678" ;
>                 String sonuc = "nah";
>
>             try {
>             Class.forName(driver).newInstance();
>             conn = DriverManager.getConnection(url+db, user, pass);
>                 } catch (SQLException e) {
>                             System.err.println("Mysql Connection Error: ");
>                     e.printStackTrace();
>                 }
>           catch (InstantiationException e) {
>                     e.printStackTrace();
>             } catch (IllegalAccessException e) {
>                     e.printStackTrace();
>             } catch (ClassNotFoundException e) {
>                     e.printStackTrace();
>             }
>                 Statement select;
>                 try {
>                         select = conn.createStatement();
>                     ResultSet rset = select.executeQuery(query);
>                     while (rset.next()) {
>                                 sonuc = rset.getString(2) + " " + 
> rset.getString(3);
>                         }
>                     rset.close();
>                         select.close();
>                         conn.close();
>                 } catch (SQLException e) {
>                         e.printStackTrace();
>                 }
>
>                 return "Muhatab: " + sonuc;
>         }
>
> thx

--

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


Reply via email to