google-code-export / slim3

Automatically exported from code.google.com/p/slim3
1 stars 1 forks source link

Getting a scary warning: #107

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
WARNING: Class org.slim3.datastore.json.JsonArrayReader loaded from 
file:/Users/robertosaccon/Documents/workspace/unpaperfy/war/WEB-INF/lib/slim3-1.
0.14.jar has a dependency on class 
com.google.appengine.repackaged.org.json.JSONArray, which is not part of App 
Engine's supported API.
You are strongly discouraged from using this class - your app may stop working 
in production at any moment.

Original issue reported on code.google.com by rsaccon on 7 Jan 2012 at 11:09

GoogleCodeExporter commented 9 years ago
I do not get that warning anymore, must have been some wrong stuff at my side 
while developing

Original comment by rsaccon on 7 Jan 2012 at 11:16

GoogleCodeExporter commented 9 years ago
I am getting the message for slim3-1.0.15.jar too.
The message is -
slim3-1.0.15.jar has a dependency on class 
com.google.appengine.repackaged.org.json.JSONObject, which is not part of App 
Engine's supported API.
You are strongly discouraged from using this class - your app may stop working 
in production at any moment.

Original comment by hrmastercontrol on 15 Jan 2012 at 4:13

GoogleCodeExporter commented 9 years ago
Please update AppEngine Eclipse Plugin.

Original comment by higaya...@gmail.com on 16 Jan 2012 at 2:54

GoogleCodeExporter commented 9 years ago
It happens to me. I am getting several messages:

WARNING: Class org.slim3.datastore.AbstractQuery loaded from 
file:/C:/unitprice/app/war/WEB-INF/lib/slim3-1.0.15.jar has a dependency on 
class com.google.appengine.repackaged.com.google.common.util.Base64, which is 
not part of App Engine's supported API.
You are strongly discouraged from using this class - your app may stop working 
in production at any moment.

WARNING: Class org.slim3.datastore.json.JsonWriter loaded from 
file:/C:/unitprice/app/war/WEB-INF/lib/slim3-1.0.15.jar has a dependency on 
class com.google.appengine.repackaged.org.json.JSONObject, which is not part of 
App Engine's supported API.
You are strongly discouraged from using this class - your app may stop working 
in production at any moment.

This only happens from App Engine version 1.6.1. Seems that Google is 
discouraging applications to use the repackaged jars. Should use your own jars 
if required. When do you plan to fix this?

Original comment by carlos.v...@gmail.com on 28 Jan 2012 at 12:09

GoogleCodeExporter commented 9 years ago
I am using AppEngineSDK Eclipse Plugin 1.6.1 and I get no warning.

Original comment by higaya...@gmail.com on 30 Jan 2012 at 2:35

GoogleCodeExporter commented 9 years ago
My environment:

Windows XP
4 GB
Eclipse Helios
Running Google Apps Plugin 3.7
Google Apps Version 1.6.1
Slim3 1.0.15

When running my application this is the console log. No operations
have been done, just display the initial JSP

Feb 3, 2012 12:51:57 PM
com.google.appengine.tools.info.RemoteVersionFactory getVersion
Feb 3, 2012 12:51:58 PM com.google.apphosting.utils.jetty.JettyLogger info
INFO: Logging to JettyLogger(null) via
com.google.apphosting.utils.jetty.JettyLogger
Feb 3, 2012 12:51:58 PM
com.google.apphosting.utils.config.AppEngineWebXmlReader
readAppEngineWebXml
INFO: Successfully processed
C:\applications\cxtrends\visual\war\WEB-INF/appengine-web.xml
Feb 3, 2012 12:51:58 PM
com.google.apphosting.utils.config.AbstractConfigXmlReader
readConfigXml
INFO: Successfully processed C:\applications\cxtrends\visual\war\WEB-INF/web.xml
Feb 3, 2012 8:51:58 PM com.google.apphosting.utils.jetty.JettyLogger info
INFO: jetty-6.1.x
Slim3 HOT reloading:true
Feb 3, 2012 8:51:59 PM com.google.apphosting.utils.jetty.JettyLogger info
INFO: Started SelectChannelConnector@127.0.0.1:8888
Feb 3, 2012 8:51:59 PM
com.google.appengine.tools.development.DevAppServerImpl start
INFO: The server is running at http://localhost:8888/
Feb 3, 2012 8:51:59 PM
com.google.appengine.tools.development.DevAppServerImpl start
INFO: The admin console is running at http://localhost:8888/_ah/admin
Feb 3, 2012 8:52:17 PM
com.google.appengine.tools.development.agent.impl.ObjectAccessVisitor$MethodTran
slator
maybeReject
WARNING: Class org.slim3.datastore.json.JsonObjectReader loaded from
file:/C:/applications/cxtrends/visual/war/WEB-INF/lib/slim3-1.0.13.jar
has a dependency on class
com.google.appengine.repackaged.org.json.JSONObject, which is not part
of App Engine's supported API.
You are strongly discouraged from using this class - your app may stop
working in production at any moment.
Feb 3, 2012 8:52:17 PM
com.google.appengine.tools.development.agent.impl.ObjectAccessVisitor$MethodTran
slator
maybeReject
WARNING: Class org.slim3.datastore.json.JsonObjectReader loaded from
file:/C:/applications/cxtrends/visual/war/WEB-INF/lib/slim3-1.0.13.jar
has a dependency on class
com.google.appengine.repackaged.org.json.JSONObject, which is not part
of App Engine's supported API.
You are strongly discouraged from using this class - your app may stop
working in production at any moment.
Feb 3, 2012 8:52:17 PM
com.google.appengine.tools.development.agent.impl.ObjectAccessVisitor$MethodTran
slator
maybeReject
WARNING: Class org.slim3.datastore.json.JsonObjectReader loaded from
file:/C:/applications/cxtrends/visual/war/WEB-INF/lib/slim3-1.0.13.jar
has a dependency on class
com.google.appengine.repackaged.org.json.JSONObject, which is not part
of App Engine's supported API.
You are strongly discouraged from using this class - your app may stop
working in production at any moment.
Feb 3, 2012 8:52:18 PM
com.google.appengine.tools.development.agent.impl.ObjectAccessVisitor$MethodTran
slator
maybeReject
WARNING: Class org.slim3.datastore.AbstractQuery loaded from
file:/C:/applications/cxtrends/visual/war/WEB-INF/lib/slim3-1.0.13.jar
has a dependency on class
com.google.appengine.repackaged.com.google.common.util.Base64, which
is not part of App Engine's supported API.
You are strongly discouraged from using this class - your app may stop
working in production at any moment.
Feb 3, 2012 8:52:18 PM
com.google.appengine.tools.development.agent.impl.ObjectAccessVisitor$MethodTran
slator
maybeReject
WARNING: Class org.slim3.datastore.AbstractQuery loaded from
file:/C:/applications/cxtrends/visual/war/WEB-INF/lib/slim3-1.0.13.jar
has a dependency on class
com.google.appengine.repackaged.com.google.common.util.Base64, which
is not part of App Engine's supported API.
You are strongly discouraged from using this class - your app may stop
working in production at any moment.
Feb 3, 2012 8:52:18 PM
com.google.appengine.tools.development.agent.impl.ObjectAccessVisitor$MethodTran
slator
maybeReject
WARNING: Class org.slim3.datastore.AbstractQuery loaded from
file:/C:/applications/cxtrends/visual/war/WEB-INF/lib/slim3-1.0.13.jar
has a dependency on class
com.google.appengine.repackaged.com.google.common.util.Base64, which
is not part of App Engine's supported API.
You are strongly discouraged from using this class - your app may stop
working in production at any moment.
Feb 3, 2012 8:52:18 PM
com.google.appengine.tools.development.agent.impl.ObjectAccessVisitor$MethodTran
slator
maybeReject
WARNING: Class org.slim3.datastore.AbstractQuery loaded from
file:/C:/applications/cxtrends/visual/war/WEB-INF/lib/slim3-1.0.13.jar
has a dependency on class
com.google.appengine.repackaged.com.google.common.util.Base64, which
is not part of App Engine's supported API.
You are strongly discouraged from using this class - your app may stop
working in production at any moment.
Feb 3, 2012 8:52:18 PM
com.google.appengine.api.datastore.dev.LocalDatastoreService init
INFO: Local Datastore initialized:
Type: High Replication
Storage: 
C:\applications\cxtrends\visual\war\WEB-INF\appengine-generated\local_db.bin
Feb 3, 2012 8:52:20 PM
com.google.appengine.api.datastore.dev.LocalDatastoreService load
INFO: Time to load datastore: 2462 ms

I am getting exactly the same results in another environment with
Windows 7/64 bits. This is very serious and may prompt us to remove Slim3
from our development tools.

Original comment by carlos.v...@gmail.com on 3 Feb 2012 at 9:03

GoogleCodeExporter commented 9 years ago
I am using Google Plugin for Eclipse 3.6 v2.5.0.
The reason may be Eclipse version(3.6 or 3.7).
I will investigate it.

Original comment by higaya...@gmail.com on 6 Feb 2012 at 2:22

GoogleCodeExporter commented 9 years ago
Please confirm Eclipse menu Preferences -> Google -> Errors/Warnings ->
AppEngine -> Repackaged imports are not allowed.
Set the value from Error to Ignore.
The errors have gone.

Original comment by higaya...@gmail.com on 12 Feb 2012 at 5:47

GoogleCodeExporter commented 9 years ago
The warning report is gone, the situation remains. That warning is there for a 
reason:  do not use the repackaged imports in your code, as they are not part 
of the official API and may not be supported in the future. I don't mind the 
warning, I mind the implications of the warning.

Original comment by carlos.v...@gmail.com on 12 Feb 2012 at 1:35

GoogleCodeExporter commented 9 years ago
I will fix this problem rightly.

Original comment by higaya...@gmail.com on 14 Feb 2012 at 2:19

GoogleCodeExporter commented 9 years ago
Same repackaged warning mentioned in this issue: 
http://code.google.com/p/slim3/issues/detail?id=112. I would think the severity 
of these two should be higher as the application might stop working any time. 
Thanks a lot

Original comment by chay...@gmail.com on 29 Jun 2012 at 11:30

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
It finally happened. I just installed App Engine 1.7.0 and running my program I 
get this error:

java.lang.NoClassDefFoundError: 
com/google/appengine/repackaged/org/json/JSONException
    at org.slim3.datastore.ModelMeta.jsonToModels(ModelMeta.java:410)
    at org.slim3.datastore.ModelMeta.jsonToModels(ModelMeta.java:394)

Are you planning to fix this any time soon? I think this is now a catastrophic 
problem and need immediate attention

Original comment by carlos.v...@gmail.com on 10 Jul 2012 at 2:41

GoogleCodeExporter commented 9 years ago

Original comment by higaya...@gmail.com on 12 Jul 2012 at 5:20