• Bug
  • Status: Closed
  • 2 Major
  • Resolution: Fixed
  • nadeem
  • Reporter: tgautier
  • March 13, 2008
  • 0
  • Watchers: 2
  • February 25, 2009
  • January 07, 2009

Description

I see this error often:

[INFO] [node] 2008-03-13 00:49:58,414 INFO - Log file: ‘/Users/tgautier/src/forge/projects/labs/tim-guice/sample-annotations/logs-192.168.110.103/terracotta-client.log’. [INFO] [node] [WARN] could not read class [org/terracotta/modules/cglib_2_1_3/object/dna/impl/CGLibFactoryInstance] as byte array [INFO] [node] [WARN] could not read class [org/terracotta/modules/cglib_2_1_3/object/dna/impl/CGLibBulkBeanInstance] as byte array [INFO] [node] [WARN] could not read class [com/google/inject/cglib/core/MethodWrapper$MethodWrapperKey\(KeyFactoryByCGLIB\)55122cac] as byte array [INFO] [node] [WARN] could not read class [org/terracotta/sample/guice/Foo\(FastClassByGuice\)f9f3fb0] as byte array [INFO] [node] [WARN] could not read class [org/terracotta/sample/guice/Bar\(FastClassByGuice\)f9f2efd] as byte array [INFO] [node] [WARN] could not read class [[Lcom/google/inject/InjectorImpl$SingleMemberInjector;] as byte array [INFO] [node] [WARN] could not read class [[Lcom/google/inject/InjectorImpl$SingleParameterInjector;] as byte array [INFO] [node] [WARN] could not read class [[Ljava/lang/Class;] as byte array

Here is a project that repros it:

$ svn co http://svn.terracotta.org/svn/forge/projects/labs/tim-guice $ cd tim-guice $ mvn clean install $ cd sample-annotations $ mvn tc:start $ mvn tc:run

Comments

Tim Eck 2008-07-23

those look like warnings to me, not errors

Fiona OShea 2008-08-12

See if this occurs on any other platforms

Taylor Gautier 2008-09-22

Also seen here:

http://forums.terracotta.org/forums/posts/list/813.page

here:

http://forums.terracotta.org/forums/posts/list/1228.page

and here:

http://forums.terracotta.org/forums/posts/list/1415.page

Taylor Gautier 2008-11-12

Seen again - or at least looks to be the same species of bug:

AW::WARNING - could not load class [org/mozilla/javascript/ NativeFunction] as a resource in loader
[org.mozilla.javascript.DefiningClassLoader@7b73e3] AW::WARNING - could not load class [org/mozilla/javascript/Script] as
a resource in loader [org.mozilla.javascript.DefiningClassLoader@9d94ca]

This does not occur where the terracotta configuration has been
commented out. Services still appear to work despite this
classloading error.

Is this something which has been seen by anyone already?

We plan to be guinea pigs and phase this into production here at USC
in about a week or so, and I’d like to confirm that this message can
be fixed or can safely be ignored.

Alex Miller 2008-11-14

Gary says this is attributable to use of tim-annotations, so presumably that’s a clue.

Rob Beazizo 2008-12-18

We are having the “AW::WARNING - could not load class [org/mozilla/javascript/ NativeFunction] as a resource in loader”. Unfortunately the code path is in a very high traveled path so it ends up spamming our logs.

Is there anyway to make it not spam the our logs when this happens?

Fiona OShea 2008-12-19

Created CDV-1087 for AW::WARNING Issues

Chris Dennis 2009-01-07

Suppressed the necessary logging statements. Causes no functional changes, but someone more au fait with this code may want to check that there is no danger in not logging here.

nadeem ghani 2009-01-29

reproduce with forge/labs/tim-guice/sample-annotations

macbook ~/forge/labs/tim-guice/sample-annotations > mvn tc:run [INFO] Scanning for projects… [INFO] Searching repository for plugin with prefix: ‘tc’. [INFO] org.apache.maven.plugins: checking for updates from kong-repo [INFO] org.apache.maven.plugins: checking for updates from tc-staging-repo [INFO] org.apache.maven.plugins: checking for updates from forge-dev-repo [INFO] org.codehaus.mojo: checking for updates from kong-repo [INFO] org.codehaus.mojo: checking for updates from tc-staging-repo [INFO] org.codehaus.mojo: checking for updates from forge-dev-repo [INFO] artifact org.codehaus.mojo:exec-maven-plugin: checking for updates from kong-repo [INFO] artifact org.codehaus.mojo:exec-maven-plugin: checking for updates from tc-staging-repo [INFO] artifact org.codehaus.mojo:exec-maven-plugin: checking for updates from forge-dev-repo [INFO] ———————————————————————— [INFO] Building Guice Sample [INFO] task-segment: [tc:run] [INFO] ———————————————————————— [INFO] Preparing tc:run [INFO] [resources:resources] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:compile] [INFO] Compiling 3 source files to /Users/nghani/forge/labs/tim-guice/sample-annotations/target/classes [INFO] [resources:testResources] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:testCompile] [INFO] No sources to compile [INFO] [surefire:test] [INFO] No tests to run. [INFO] [jar:jar] [INFO] Building jar: /Users/nghani/forge/labs/tim-guice/sample-annotations/target/guice-example-1.0.0-SNAPSHOT.jar [INFO] [tc:run] 2009-01-29 13:52:21,878 INFO - Terracotta 2.7.3, as of 20090121-100129 (Revision 11331 by cruise@su10mo5 from 2.7) 2009-01-29 13:52:22,179 INFO - Configuration loaded from the file at ‘/Users/nghani/forge/labs/tim-guice/sample-annotations/tc-config.xml’. [INFO] Resolving modules: [, ] [INFO] Resolving bundle: org.terracotta.modules:excludes-config:2.7.3 [INFO] Resolving bundle: org.terracotta.modules:modules-common:2.7.3 [INFO] Resolving bundle: org.terracotta.modules:guimodels-config:2.7.3 [INFO] Resolving bundle: org.terracotta.modules:jdk15-preinst-config:2.7.3 [INFO] Resolving bundle: org.terracotta.modules:spring-config:2.7.3 [INFO] Resolving bundle: org.terracotta.modules:standard-config:2.7.3 [INFO] Resolving location: org.terracotta.modules:tim-guice-1.0:1.0.0 [INFO] Resolving location: org.terracotta.modules:tim-annotations:1.2.3 [INFO] ———————————————————————— [INFO] Starting bootjar tool [INFO] [bootjar] 2009-01-29 13:52:22,668 INFO - Terracotta 2.7.3, as of 20090121-100129 (Revision 11331 by cruise@su10mo5 from 2.7) [INFO] [bootjar] 2009-01-29 13:52:23,057 INFO - Configuration loaded from the file at ‘/Users/nghani/forge/labs/tim-guice/sample-annotations/tc-config.xml’. [INFO] [bootjar] Creating boot JAR at ‘/Users/nghani/forge/labs/tim-guice/sample-annotations/target/dso-boot.jar… [INFO] [bootjar] Successfully created boot JAR file at ‘/Users/nghani/forge/labs/tim-guice/sample-annotations/target/dso-boot.jar’. [INFO] OK [INFO] Skipping starting DSO Server [INFO] ———————————————————————— 2009-01-29 13:52:27,966 INFO - Configuration loaded from the file at ‘/Users/nghani/forge/labs/tim-guice/sample-annotations/tc-config.xml’. [INFO] Resolving modules: [, ] [INFO] Resolving bundle: org.terracotta.modules:excludes-config:2.7.3 [INFO] Resolving bundle: org.terracotta.modules:modules-common:2.7.3 [INFO] Resolving bundle: org.terracotta.modules:guimodels-config:2.7.3 [INFO] Resolving bundle: org.terracotta.modules:jdk15-preinst-config:2.7.3 [INFO] Resolving bundle: org.terracotta.modules:spring-config:2.7.3 [INFO] Resolving bundle: org.terracotta.modules:standard-config:2.7.3 [INFO] Resolving location: org.terracotta.modules:tim-guice-1.0:1.0.0 [INFO] Resolving location: org.terracotta.modules:tim-annotations:1.2.3 [INFO] Starting DSO nodes [INFO] Starting node node: /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/bin/java -Dcom.tc.l1.modules.repositories=/Users/nghani/.m2/repository -Dtc.nodeName=node -Dtc.numberOfNodes=1 -Dtc.config=/Users/nghani/forge/labs/tim-guice/sample-annotations/tc-config.xml -Dtc.classpath=file:/tmp/tc-classpath15996.tmp -Dtc.session.classpath=/Users/nghani/.m2/repository/org/terracotta/tc-session/2.7.3/tc-session-2.7.3.jar -Dcom.tc.l1.modules.repositories=/Users/nghani/.m2/repository -Xbootclasspath/p:/Users/nghani/forge/labs/tim-guice/sample-annotations/target/dso-boot.jar -cp /Users/nghani/forge/labs/tim-guice/sample-annotations/target/classes:/Users/nghani/.m2/repository/com/google/code/guice/guice/1.0/guice-1.0.jar:/Users/nghani/.m2/repository/org/terracotta/modules/tim-annotations/1.2.3/tim-annotations-1.2.3.jar:/Users/nghani/.m2/repository/org/terracotta/modules/modules-common/2.7.3/modules-common-2.7.3.jar:/Users/nghani/.m2/repository/log4j/log4j/1.2.9/log4j-1.2.9.jar: org.terracotta.sample.guice.Main [INFO] ———————————————————————— [INFO] Waiting completion of the DSO process [INFO] [node] 2009-01-29 13:52:28,591 INFO - Terracotta 2.7.3, as of 20090121-100129 (Revision 11331 by cruise@su10mo5 from 2.7) [INFO] [node] 2009-01-29 13:52:28,967 INFO - Configuration loaded from the file at ‘/Users/nghani/forge/labs/tim-guice/sample-annotations/tc-config.xml’. [INFO] [node] 2009-01-29 13:52:29,071 INFO - Log file: ‘/Users/nghani/forge/labs/tim-guice/sample-annotations/logs-10.0.0.113/terracotta-client.log’. [INFO] [node] 2009-01-29 13:52:31,081 INFO - Statistics buffer: ‘/Users/nghani/forge/labs/tim-guice/sample-annotations/statistics-10.0.0.113’. [INFO] [node] 2009-01-29 13:52:31,314 INFO - Connection successfully established to server at 10.0.0.113:9510 [INFO] [node] Called go 0 times. [INFO] Finished node node [INFO] DSO processes finished [INFO] Skipping stopping DSO Server [INFO] ———————————————————————— [INFO] BUILD SUCCESSFUL [INFO] ———————————————————————— [INFO] Total time: 18 seconds [INFO] Finished at: Thu Jan 29 13:52:32 PST 2009 [INFO] Final Memory: 16M/254M [INFO] ————————————————————————