cloudendpoints / endpoints-java

A Java framework for building RESTful APIs on Google App Engine
Apache License 2.0
32 stars 35 forks source link

A lot of info/warn “scanned from multiple locations” when running standard Java appengine app on local machine #174

Open wmwong opened 5 years ago

wmwong commented 5 years ago
   [INFO] GCLOUD: 2018-11-10 09:29:59.763:WARN:oeja.AnnotationParser:qtp1335050193-20: javax.jdo.spi.JDOImplHelper scanned from multiple locations: 
    jar:file:///D:/Temp/endpoints-v2-backend/target/echo-j8-1.0-SNAPSHOT/WEB-INF/lib/jdo2-api-2.3-eb.jar!/javax/jdo/spi/JDOImplHelper.class, 
    jar:file:///D:/Temp/endpoints-v2-backend/target/echo-j8-1.0-SNAPSHOT/WEB-INF/lib/endpoints-management-control-appengine-all-1.0.10.jar!/javax/jdo/spi/JDOImplHelper.class

For more details: https://stackoverflow.com/questions/53240103/gcloud-throws-a-lot-of-info-warn-scanned-from-multiple-locations-when-running

hsjawanda commented 5 years ago

I too am getting similar warnings, though I am not using Cloud Endpoints.

I started getting these warnings only recently, without any library/configuration change that could account for this sudden change. Running the development server locally seems to be fine, but I am too scared to deploy to a production environment.

I have played around with versions of appengine-api-1.0-sdk and appengine-api-labs (these are the ones reporting conflicting files) but that doesn't seem to make any difference.

Here's a sample (lightly formatted):

com.google.appengine.tools.appstats.StatsProtos scanned from multiple locations:
    jar:file:///C:/Users/hsjawanda/Code/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/quiz/WEB-INF/lib/appengine-api-labs-1.9.49.jar!/com/google/appengine/tools/appstats/StatsProtos.class,
    jar:file:///C:/Users/hsjawanda/Code/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/quiz/WEB-INF/lib/appengine-api-1.0-sdk-1.9.68.jar!/com/google/appengine/tools/appstats/StatsProtos.class

I updated appengine-api-labs to 1.9.68, but that didn't make any difference.

rajesh99 commented 5 years ago

I am getting similar log and slowing down the development.

GCLOUD: 2019-03-28 12:06:13.677:WARN:oeja.AnnotationParser:qtp226710952-19: org.apache.commons.collections.list.PredicatedList scanned from multiple locations: jar:file:///C:/java/qpsample/target/qpsample-1.0-SNAPSHOT/WEB-INF/lib/commons-collections-3.2.1.jar!/org/apache/commons/collections/list/PredicatedList.class, jar:file:///C:/java/qpsample/target/qpsample-1.0-SNAPSHOT/WEB-INF/lib/ipp-v3-java-devkit-5.0.2-jar-with-dependencies.jar!/org/apache/commons/collections/list/PredicatedList.class

niesteszeck commented 5 years ago

+1 example:

2019-07-29 12:24:25.076:WARN:oeja.AnnotationParser:qtp2094411587-15: com.google.api.Distribution$BucketOptions$LinearOrBuilder scanned from multiple locations:
jar:file:///home/user/src/Intellij/selknam/selknam/target/mypry-1.0-SNAPSHOT/WEB-INF/lib/endpoints-management-protos-1.0.11.jar!/com/google/api/Distribution$BucketOptions$LinearOrBuilder.class,
jar:file:///home/user/src/Intellij/selknam/selknam/target/mypry-1.0-SNAPSHOT/WEB-INF/lib/proto-google-common-protos-1.0.0.jar!/com/google/api/Distribution$BucketOptions$LinearOrBuilder.class