java.net.InetAddress is a restricted class Issue
Hi, I am a GWT novice / newbie. I have written a GWT app that connects to MySQL. While I am trying to get DB connection. I have got the error in the subject java.net.InetAddress is a restricted class'. I tried to find solution for this issue. The only solution right now is to disable the Google App Engine. A lot of people get alright after they follow the suggested solution. For my case, I tried to disable by unchecking the Use Google App Engine check box in project properties window but after that i am not able to run the app from browser anymore. For that reason, I tried to create a war file of my work and deploy it to TOMCAT6 but still I am not able to get it solved. Is there any body who can help me out there? I do need a help to solve thing asap as I am gonna use this GWT for my project. Thanks in advance. FYI, I am using : OS - ubuntu 9.10 Eclipse version - 3.5 GWT version : 2.0 jdk version : 1.6 -- 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: java.net.InetAddress is a restricted class Issue
Can you paste logs or error messages or stack traces after you disabled GAE? --Sri On 25 April 2010 01:23, A.K alexanderfut...@gmail.com wrote: Hi, I am a GWT novice / newbie. I have written a GWT app that connects to MySQL. While I am trying to get DB connection. I have got the error in the subject java.net.InetAddress is a restricted class'. I tried to find solution for this issue. The only solution right now is to disable the Google App Engine. A lot of people get alright after they follow the suggested solution. For my case, I tried to disable by unchecking the Use Google App Engine check box in project properties window but after that i am not able to run the app from browser anymore. For that reason, I tried to create a war file of my work and deploy it to TOMCAT6 but still I am not able to get it solved. Is there any body who can help me out there? I do need a help to solve thing asap as I am gonna use this GWT for my project. Thanks in advance. FYI, I am using : OS - ubuntu 9.10 Eclipse version - 3.5 GWT version : 2.0 jdk version : 1.6 -- 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: java.net.InetAddress is a restricted class Issue
are you sure that whatever java code (except for the java.util package) you're using is not listed under .client package? On Mon, Apr 26, 2010 at 5:11 PM, Sripathi Krishnan sripathikrish...@gmail.com wrote: Can you paste logs or error messages or stack traces after you disabled GAE? --Sri On 25 April 2010 01:23, A.K alexanderfut...@gmail.com wrote: Hi, I am a GWT novice / newbie. I have written a GWT app that connects to MySQL. While I am trying to get DB connection. I have got the error in the subject java.net.InetAddress is a restricted class'. I tried to find solution for this issue. The only solution right now is to disable the Google App Engine. A lot of people get alright after they follow the suggested solution. For my case, I tried to disable by unchecking the Use Google App Engine check box in project properties window but after that i am not able to run the app from browser anymore. For that reason, I tried to create a war file of my work and deploy it to TOMCAT6 but still I am not able to get it solved. Is there any body who can help me out there? I do need a help to solve thing asap as I am gonna use this GWT for my project. Thanks in advance. FYI, I am using : OS - ubuntu 9.10 Eclipse version - 3.5 GWT version : 2.0 jdk version : 1.6 -- 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT Mysql Error - java.net.InetAddress is a restricted class.
Thanks for the reply chris. The code for accessing the database is running on the server-side of the RPC[servlet]. Moreover, if mysql-jdbc-driver cant use these inetaddress class, then we cannot access the database even @ server side? is there anyother way or my configuration is wrong? thanks and regards, Muthu On Nov 18, 2:08 am, Chris Ramsdale cramsd...@google.com wrote: You may want to post this on the general App Engine forum, but the net net is that certain APIs and classes are white listed (and subsequently black listed) within App Engine. List of white listed JRE classes:http://code.google.com/appengine/docs/java/jrewhitelist.html App Engine Group:http://groups.google.com/group/google-appengine On Tue, Nov 17, 2009 at 4:01 AM, Muthukumaran Balan nbmku...@gmail.comwrote: Hi All, I am getting java.net.InetAddress is a restricted class. error when trying to get a Hibernate Session for MySQL DB as below. I seached the internet for help and couldn't find any such error. GWT Version - 1.7.1 AppEngine Version - 1.2.6 Anyone is facing the same error? WARNING: Nested in java.lang.ExceptionInInitializerError: java.lang.NoClassDefFoundError: java.net.InetAddress is a restricted class. Please see the Google App Engine developer's guide for more details. at com.google.appengine.tools.development.agent.runtime.Runtime.reject (Runtime.java:51) at com.mysql.jdbc.StandardSocketFactory.connect (StandardSocketFactory.java:137) at com.mysql.jdbc.MysqlIO.init(MysqlIO.java:284) at com.mysql.jdbc.Connection.createNewIO(Connection.java:2555) at com.mysql.jdbc.Connection.init(Connection.java:1485) at com.mysql.jdbc.NonRegisteringDriver.connect (NonRegisteringDriver.java:266) at java.sql.DriverManager.getConnection(DriverManager.java:525) at java.sql.DriverManager.getConnection(DriverManager.java:140) at org.hibernate.connection.DriverManagerConnectionProvider.getConnection (DriverManagerConnectionProvider.java:110) at org.hibernate.cfg.SettingsFactory.buildSettings (SettingsFactory.java:84) at org.hibernate.cfg.Configuration.buildSettings(Configuration.java: 2009) at org.hibernate.cfg.Configuration.buildSessionFactory (Configuration.java:1292) at com.gt.billing.dao.ManagerFactory.clinit(ManagerFactory.java:13) at com.gt.billing.web.service.WarehouseServiceImpl.init (WarehouseServiceImpl.java:22) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance (NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance (DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:494) at java.lang.Class.newInstance0(Class.java:350) at java.lang.Class.newInstance(Class.java:303) at org.mortbay.jetty.servlet.Holder.newInstance(Holder.java:153) at org.mortbay.jetty.servlet.ServletHolder.getServlet (ServletHolder.java:339) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java: 463) 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:342) 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
Re: GWT Mysql Error - java.net.InetAddress is a restricted class.
If you are using Google App Engine, you cannot access databases even @ server side. You are tied to the persistence approach that GAE provides. --Sri 2009/11/18 Muthukumaran Balan nbmku...@gmail.com Thanks for the reply chris. The code for accessing the database is running on the server-side of the RPC[servlet]. Moreover, if mysql-jdbc-driver cant use these inetaddress class, then we cannot access the database even @ server side? is there anyother way or my configuration is wrong? thanks and regards, Muthu On Nov 18, 2:08 am, Chris Ramsdale cramsd...@google.com wrote: You may want to post this on the general App Engine forum, but the net net is that certain APIs and classes are white listed (and subsequently black listed) within App Engine. List of white listed JRE classes: http://code.google.com/appengine/docs/java/jrewhitelist.html App Engine Group:http://groups.google.com/group/google-appengine On Tue, Nov 17, 2009 at 4:01 AM, Muthukumaran Balan nbmku...@gmail.com wrote: Hi All, I am getting java.net.InetAddress is a restricted class. error when trying to get a Hibernate Session for MySQL DB as below. I seached the internet for help and couldn't find any such error. GWT Version - 1.7.1 AppEngine Version - 1.2.6 Anyone is facing the same error? WARNING: Nested in java.lang.ExceptionInInitializerError: java.lang.NoClassDefFoundError: java.net.InetAddress is a restricted class. Please see the Google App Engine developer's guide for more details. at com.google.appengine.tools.development.agent.runtime.Runtime.reject (Runtime.java:51) at com.mysql.jdbc.StandardSocketFactory.connect (StandardSocketFactory.java:137) at com.mysql.jdbc.MysqlIO.init(MysqlIO.java:284) at com.mysql.jdbc.Connection.createNewIO(Connection.java:2555) at com.mysql.jdbc.Connection.init(Connection.java:1485) at com.mysql.jdbc.NonRegisteringDriver.connect (NonRegisteringDriver.java:266) at java.sql.DriverManager.getConnection(DriverManager.java:525) at java.sql.DriverManager.getConnection(DriverManager.java:140) at org.hibernate.connection.DriverManagerConnectionProvider.getConnection (DriverManagerConnectionProvider.java:110) at org.hibernate.cfg.SettingsFactory.buildSettings (SettingsFactory.java:84) at org.hibernate.cfg.Configuration.buildSettings(Configuration.java: 2009) at org.hibernate.cfg.Configuration.buildSessionFactory (Configuration.java:1292) at com.gt.billing.dao.ManagerFactory.clinit(ManagerFactory.java:13) at com.gt.billing.web.service.WarehouseServiceImpl.init (WarehouseServiceImpl.java:22) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance (NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance (DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:494) at java.lang.Class.newInstance0(Class.java:350) at java.lang.Class.newInstance(Class.java:303) at org.mortbay.jetty.servlet.Holder.newInstance(Holder.java:153) at org.mortbay.jetty.servlet.ServletHolder.getServlet (ServletHolder.java:339) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java: 463) 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:342) at org.mortbay.jetty.handler.HandlerWrapper.handle (HandlerWrapper.java:139
Re: GWT Mysql Error - java.net.InetAddress is a restricted class.
Hi Sri, I am using Hibernate to access the database and used the example from http://code.google.com/webtoolkit/articles/using_gwt_with_hibernate.html. When i create a hibernate session from rpc servlet, it throws error INetAddress is a restricted class. :( Even i tried GiLead library, even in that when i tried to create a hibernate session and set it to persistance manager it throws the same error. :( regards, Muthu On Nov 18, 12:25 pm, Sripathi Krishnan sripathi.krish...@gmail.com wrote: If you are using Google App Engine, you cannot access databases even @ server side. You are tied to the persistence approach that GAE provides. --Sri 2009/11/18 Muthukumaran Balan nbmku...@gmail.com Thanks for the reply chris. The code for accessing the database is running on the server-side of the RPC[servlet]. Moreover, if mysql-jdbc-driver cant use these inetaddress class, then we cannot access the database even @ server side? is there anyother way or my configuration is wrong? thanks and regards, Muthu On Nov 18, 2:08 am, Chris Ramsdale cramsd...@google.com wrote: You may want to post this on the general App Engine forum, but the net net is that certain APIs and classes are white listed (and subsequently black listed) within App Engine. List of white listed JRE classes: http://code.google.com/appengine/docs/java/jrewhitelist.html App Engine Group:http://groups.google.com/group/google-appengine On Tue, Nov 17, 2009 at 4:01 AM, Muthukumaran Balan nbmku...@gmail.com wrote: Hi All, I am getting java.net.InetAddress is a restricted class. error when trying to get a Hibernate Session for MySQL DB as below. I seached the internet for help and couldn't find any such error. GWT Version - 1.7.1 AppEngine Version - 1.2.6 Anyone is facing the same error? WARNING: Nested in java.lang.ExceptionInInitializerError: java.lang.NoClassDefFoundError: java.net.InetAddress is a restricted class. Please see the Google App Engine developer's guide for more details. at com.google.appengine.tools.development.agent.runtime.Runtime.reject (Runtime.java:51) at com.mysql.jdbc.StandardSocketFactory.connect (StandardSocketFactory.java:137) at com.mysql.jdbc.MysqlIO.init(MysqlIO.java:284) at com.mysql.jdbc.Connection.createNewIO(Connection.java:2555) at com.mysql.jdbc.Connection.init(Connection.java:1485) at com.mysql.jdbc.NonRegisteringDriver.connect (NonRegisteringDriver.java:266) at java.sql.DriverManager.getConnection(DriverManager.java:525) at java.sql.DriverManager.getConnection(DriverManager.java:140) at org.hibernate.connection.DriverManagerConnectionProvider.getConnection (DriverManagerConnectionProvider.java:110) at org.hibernate.cfg.SettingsFactory.buildSettings (SettingsFactory.java:84) at org.hibernate.cfg.Configuration.buildSettings(Configuration.java: 2009) at org.hibernate.cfg.Configuration.buildSessionFactory (Configuration.java:1292) at com.gt.billing.dao.ManagerFactory.clinit(ManagerFactory.java:13) at com.gt.billing.web.service.WarehouseServiceImpl.init (WarehouseServiceImpl.java:22) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance (NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance (DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:494) at java.lang.Class.newInstance0(Class.java:350) at java.lang.Class.newInstance(Class.java:303) at org.mortbay.jetty.servlet.Holder.newInstance(Holder.java:153) at org.mortbay.jetty.servlet.ServletHolder.getServlet (ServletHolder.java:339) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java: 463) 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
Re: GWT Mysql Error - java.net.InetAddress is a restricted class.
Short Answer : Just disable Google App Engine for your project, and things should start working. Its a setting in the Google Eclipse Plugin. Long Answer : GWT and Google App Engine (GAE) are two separate projects, and you don't have to use them together. If you enable GAE - you cannot use any other database. If you disable GAE and only use GWT - you can use whatever you want on the server side. Client side restrictions still apply. Many, many users have accidentally enabled GAE (or is it enabled by default?) and have faced this issue, so this isn't new. --Sri 2009/11/18 Muthukumaran Balan nbmku...@gmail.com Hi Sri, I am using Hibernate to access the database and used the example from http://code.google.com/webtoolkit/articles/using_gwt_with_hibernate.html. When i create a hibernate session from rpc servlet, it throws error INetAddress is a restricted class. :( Even i tried GiLead library, even in that when i tried to create a hibernate session and set it to persistance manager it throws the same error. :( regards, Muthu On Nov 18, 12:25 pm, Sripathi Krishnan sripathi.krish...@gmail.com wrote: If you are using Google App Engine, you cannot access databases even @ server side. You are tied to the persistence approach that GAE provides. --Sri 2009/11/18 Muthukumaran Balan nbmku...@gmail.com Thanks for the reply chris. The code for accessing the database is running on the server-side of the RPC[servlet]. Moreover, if mysql-jdbc-driver cant use these inetaddress class, then we cannot access the database even @ server side? is there anyother way or my configuration is wrong? thanks and regards, Muthu On Nov 18, 2:08 am, Chris Ramsdale cramsd...@google.com wrote: You may want to post this on the general App Engine forum, but the net net is that certain APIs and classes are white listed (and subsequently black listed) within App Engine. List of white listed JRE classes: http://code.google.com/appengine/docs/java/jrewhitelist.html App Engine Group:http://groups.google.com/group/google-appengine On Tue, Nov 17, 2009 at 4:01 AM, Muthukumaran Balan nbmku...@gmail.com wrote: Hi All, I am getting java.net.InetAddress is a restricted class. error when trying to get a Hibernate Session for MySQL DB as below. I seached the internet for help and couldn't find any such error. GWT Version - 1.7.1 AppEngine Version - 1.2.6 Anyone is facing the same error? WARNING: Nested in java.lang.ExceptionInInitializerError: java.lang.NoClassDefFoundError: java.net.InetAddress is a restricted class. Please see the Google App Engine developer's guide for more details. at com.google.appengine.tools.development.agent.runtime.Runtime.reject (Runtime.java:51) at com.mysql.jdbc.StandardSocketFactory.connect (StandardSocketFactory.java:137) at com.mysql.jdbc.MysqlIO.init(MysqlIO.java:284) at com.mysql.jdbc.Connection.createNewIO(Connection.java:2555) at com.mysql.jdbc.Connection.init(Connection.java:1485) at com.mysql.jdbc.NonRegisteringDriver.connect (NonRegisteringDriver.java:266) at java.sql.DriverManager.getConnection(DriverManager.java:525) at java.sql.DriverManager.getConnection(DriverManager.java:140) at org.hibernate.connection.DriverManagerConnectionProvider.getConnection (DriverManagerConnectionProvider.java:110) at org.hibernate.cfg.SettingsFactory.buildSettings (SettingsFactory.java:84) at org.hibernate.cfg.Configuration.buildSettings(Configuration.java: 2009) at org.hibernate.cfg.Configuration.buildSessionFactory (Configuration.java:1292) at com.gt.billing.dao.ManagerFactory.clinit(ManagerFactory.java:13) at com.gt.billing.web.service.WarehouseServiceImpl.init (WarehouseServiceImpl.java:22) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance (NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance (DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:494) at java.lang.Class.newInstance0(Class.java:350) at java.lang.Class.newInstance(Class.java:303) at org.mortbay.jetty.servlet.Holder.newInstance(Holder.java:153) at org.mortbay.jetty.servlet.ServletHolder.getServlet (ServletHolder.java:339) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java: 463) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter (ServletHandler.java:1093
Re: GWT Mysql Error - java.net.InetAddress is a restricted class.
Hi Sri, Its working fine after disabling the appengine. Thanks sri. regards, Muthu On Nov 18, 3:44 pm, Sripathi Krishnan sripathi.krish...@gmail.com wrote: Short Answer : Just disable Google App Engine for your project, and things should start working. Its a setting in the Google Eclipse Plugin. Long Answer : GWT and Google App Engine (GAE) are two separate projects, and you don't have to use them together. If you enable GAE - you cannot use any other database. If you disable GAE and only use GWT - you can use whatever you want on the server side. Client side restrictions still apply. Many, many users have accidentally enabled GAE (or is it enabled by default?) and have faced this issue, so this isn't new. --Sri 2009/11/18 Muthukumaran Balan nbmku...@gmail.com Hi Sri, I am using Hibernate to access the database and used the example from http://code.google.com/webtoolkit/articles/using_gwt_with_hibernate.html. When i create a hibernate session from rpc servlet, it throws error INetAddress is a restricted class. :( Even i tried GiLead library, even in that when i tried to create a hibernate session and set it to persistance manager it throws the same error. :( regards, Muthu On Nov 18, 12:25 pm, Sripathi Krishnan sripathi.krish...@gmail.com wrote: If you are using Google App Engine, you cannot access databases even @ server side. You are tied to the persistence approach that GAE provides. --Sri 2009/11/18 Muthukumaran Balan nbmku...@gmail.com Thanks for the reply chris. The code for accessing the database is running on the server-side of the RPC[servlet]. Moreover, if mysql-jdbc-driver cant use these inetaddress class, then we cannot access the database even @ server side? is there anyother way or my configuration is wrong? thanks and regards, Muthu On Nov 18, 2:08 am, Chris Ramsdale cramsd...@google.com wrote: You may want to post this on the general App Engine forum, but the net net is that certain APIs and classes are white listed (and subsequently black listed) within App Engine. List of white listed JRE classes: http://code.google.com/appengine/docs/java/jrewhitelist.html App Engine Group:http://groups.google.com/group/google-appengine On Tue, Nov 17, 2009 at 4:01 AM, Muthukumaran Balan nbmku...@gmail.com wrote: Hi All, I am getting java.net.InetAddress is a restricted class. error when trying to get a Hibernate Session for MySQL DB as below. I seached the internet for help and couldn't find any such error. GWT Version - 1.7.1 AppEngine Version - 1.2.6 Anyone is facing the same error? WARNING: Nested in java.lang.ExceptionInInitializerError: java.lang.NoClassDefFoundError: java.net.InetAddress is a restricted class. Please see the Google App Engine developer's guide for more details. at com.google.appengine.tools.development.agent.runtime.Runtime.reject (Runtime.java:51) at com.mysql.jdbc.StandardSocketFactory.connect (StandardSocketFactory.java:137) at com.mysql.jdbc.MysqlIO.init(MysqlIO.java:284) at com.mysql.jdbc.Connection.createNewIO(Connection.java:2555) at com.mysql.jdbc.Connection.init(Connection.java:1485) at com.mysql.jdbc.NonRegisteringDriver.connect (NonRegisteringDriver.java:266) at java.sql.DriverManager.getConnection(DriverManager.java:525) at java.sql.DriverManager.getConnection(DriverManager.java:140) at org.hibernate.connection.DriverManagerConnectionProvider.getConnection (DriverManagerConnectionProvider.java:110) at org.hibernate.cfg.SettingsFactory.buildSettings (SettingsFactory.java:84) at org.hibernate.cfg.Configuration.buildSettings(Configuration.java: 2009) at org.hibernate.cfg.Configuration.buildSessionFactory (Configuration.java:1292) at com.gt.billing.dao.ManagerFactory.clinit(ManagerFactory.java:13) at com.gt.billing.web.service.WarehouseServiceImpl.init (WarehouseServiceImpl.java:22) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance (NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance (DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:494) at java.lang.Class.newInstance0(Class.java:350) at java.lang.Class.newInstance(Class.java:303) at org.mortbay.jetty.servlet.Holder.newInstance(Holder.java:153) at org.mortbay.jetty.servlet.ServletHolder.getServlet (ServletHolder.java:339
GWT Mysql Error - java.net.InetAddress is a restricted class.
Hi All, I am getting java.net.InetAddress is a restricted class. error when trying to get a Hibernate Session for MySQL DB as below. I seached the internet for help and couldn't find any such error. GWT Version - 1.7.1 AppEngine Version - 1.2.6 Anyone is facing the same error? WARNING: Nested in java.lang.ExceptionInInitializerError: java.lang.NoClassDefFoundError: java.net.InetAddress is a restricted class. Please see the Google App Engine developer's guide for more details. at com.google.appengine.tools.development.agent.runtime.Runtime.reject (Runtime.java:51) at com.mysql.jdbc.StandardSocketFactory.connect (StandardSocketFactory.java:137) at com.mysql.jdbc.MysqlIO.init(MysqlIO.java:284) at com.mysql.jdbc.Connection.createNewIO(Connection.java:2555) at com.mysql.jdbc.Connection.init(Connection.java:1485) at com.mysql.jdbc.NonRegisteringDriver.connect (NonRegisteringDriver.java:266) at java.sql.DriverManager.getConnection(DriverManager.java:525) at java.sql.DriverManager.getConnection(DriverManager.java:140) at org.hibernate.connection.DriverManagerConnectionProvider.getConnection (DriverManagerConnectionProvider.java:110) at org.hibernate.cfg.SettingsFactory.buildSettings (SettingsFactory.java:84) at org.hibernate.cfg.Configuration.buildSettings(Configuration.java: 2009) at org.hibernate.cfg.Configuration.buildSessionFactory (Configuration.java:1292) at com.gt.billing.dao.ManagerFactory.clinit(ManagerFactory.java:13) at com.gt.billing.web.service.WarehouseServiceImpl.init (WarehouseServiceImpl.java:22) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance (NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance (DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:494) at java.lang.Class.newInstance0(Class.java:350) at java.lang.Class.newInstance(Class.java:303) at org.mortbay.jetty.servlet.Holder.newInstance(Holder.java:153) at org.mortbay.jetty.servlet.ServletHolder.getServlet (ServletHolder.java:339) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java: 463) 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:342) 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:205) 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) Regards, Muthu -- 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-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=.
Re: GWT Mysql Error - java.net.InetAddress is a restricted class.
You may want to post this on the general App Engine forum, but the net net is that certain APIs and classes are white listed (and subsequently black listed) within App Engine. List of white listed JRE classes: http://code.google.com/appengine/docs/java/jrewhitelist.html App Engine Group: http://groups.google.com/group/google-appengine On Tue, Nov 17, 2009 at 4:01 AM, Muthukumaran Balan nbmku...@gmail.comwrote: Hi All, I am getting java.net.InetAddress is a restricted class. error when trying to get a Hibernate Session for MySQL DB as below. I seached the internet for help and couldn't find any such error. GWT Version - 1.7.1 AppEngine Version - 1.2.6 Anyone is facing the same error? WARNING: Nested in java.lang.ExceptionInInitializerError: java.lang.NoClassDefFoundError: java.net.InetAddress is a restricted class. Please see the Google App Engine developer's guide for more details. at com.google.appengine.tools.development.agent.runtime.Runtime.reject (Runtime.java:51) at com.mysql.jdbc.StandardSocketFactory.connect (StandardSocketFactory.java:137) at com.mysql.jdbc.MysqlIO.init(MysqlIO.java:284) at com.mysql.jdbc.Connection.createNewIO(Connection.java:2555) at com.mysql.jdbc.Connection.init(Connection.java:1485) at com.mysql.jdbc.NonRegisteringDriver.connect (NonRegisteringDriver.java:266) at java.sql.DriverManager.getConnection(DriverManager.java:525) at java.sql.DriverManager.getConnection(DriverManager.java:140) at org.hibernate.connection.DriverManagerConnectionProvider.getConnection (DriverManagerConnectionProvider.java:110) at org.hibernate.cfg.SettingsFactory.buildSettings (SettingsFactory.java:84) at org.hibernate.cfg.Configuration.buildSettings(Configuration.java: 2009) at org.hibernate.cfg.Configuration.buildSessionFactory (Configuration.java:1292) at com.gt.billing.dao.ManagerFactory.clinit(ManagerFactory.java:13) at com.gt.billing.web.service.WarehouseServiceImpl.init (WarehouseServiceImpl.java:22) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance (NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance (DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:494) at java.lang.Class.newInstance0(Class.java:350) at java.lang.Class.newInstance(Class.java:303) at org.mortbay.jetty.servlet.Holder.newInstance(Holder.java:153) at org.mortbay.jetty.servlet.ServletHolder.getServlet (ServletHolder.java:339) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java: 463) 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:342) 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:205) 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) Regards, Muthu -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send
Re: java.net.InetAddress
You CAN make a browser go to another server, but there's no way to receive information from it. Its possible there's some hacky way to figure something out, but this is just doomed to failure, because email servers don't have to be webservers, and vice versa. For example, there are still loads of servers that don't direct FOOBAR.com port 80 to the webserver, only www.FOOBAR.com. And yet email address are virtually always [EMAIL PROTECTED] and not [EMAIL PROTECTED] Thus, the answer is not only - no, you can't do this, but the answer is: No, you're Doing It Wrong. You don't validate email addresses by checking if there's a webserver running on it. If you must check it... you send an email to it, with a link in it. On Nov 20, 6:21 am, Ian Petersen [EMAIL PROTECTED] wrote: The same origin policy (SOP) prohibits all network traffic except traffic back to your own website so the kind of validation you're trying to do can only be done on the server. Ian --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: java.net.InetAddress
No, you can't do what you want on the client. If you want to validate that the given domain has email capability you'll need to send a request to your server side and then lookup if the domain as any MX records configured for it. If so, you know at the very least that someone's registered an email server for the domain. On Nov 19, 11:25 pm, david_data_digga [EMAIL PROTECTED] wrote: Is there any way to access the class java.net.InetAddress--or something providing similar functionality--from the client side of a GWT app? I know that everything compiles to Javascript so I guess the question would be whether that imposes a constraint such that this is impossible. I'm trying to verify whether a given email address is valid when it is entered in on the client side by a user. Ideally I'd like to do something like the following to check if a given domain name is valid: InetAddress x; try { x = InetAddress.getByName(www.google.com); System.out.println(Success: got to google and the IP address is: +x.getHostAddress());} catch (UnknownHostException e1) { System.out.println(Failure: didn't get to google, Unknown host exception); } But I'm not sure if anything like this can be done on the client side. Any ideas? Thanks!! David --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---
Re: java.net.InetAddress
The same origin policy (SOP) prohibits all network traffic except traffic back to your own website so the kind of validation you're trying to do can only be done on the server. Ian --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/Google-Web-Toolkit?hl=en -~--~~~~--~~--~--~---