[Issue 4381] New - Problems with charset when running on OpenJDK

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[Issue 4381] New - Problems with charset when running on OpenJDK

redsolo-3
https://hudson.dev.java.net/issues/show_bug.cgi?id=4381
                 Issue #|4381
                 Summary|Problems with charset when running on OpenJDK
               Component|hudson
                 Version|current
                Platform|All
              OS/Version|Linux
                     URL|
                  Status|NEW
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|DEFECT
                Priority|P3
            Subcomponent|warnings
             Assigned to|drulli
             Reported by|redsolo






------- Additional comments from [hidden email] Thu Sep  3 07:34:57 +0000 2009 -------
Just discovered this problem when collecting warnings result from a slave that
is running OpenJDK on Suse. It seems to be a problem with the charset as it is
not available in the OpenJDK? Im not sure if you can do anything about this or
not. Can reproduce this 100%.

Exception:
[WARNINGS] Parsing warnings in console log...
FATAL: remote file operation failed
hudson.util.IOException2: remote file operation failed
        at hudson.FilePath.act(FilePath.java:672)
        at hudson.FilePath.act(FilePath.java:660)
        at
hudson.plugins.warnings.WarningsPublisher.perform(WarningsPublisher.java:211)
        at
hudson.plugins.warnings.util.HealthAwarePublisher.perform(HealthAwarePublisher.j
ava:136)
        at hudson.tasks.BuildStepMonitor$3.perform(BuildStepMonitor.java:36)
        at
hudson.model.AbstractBuild$AbstractRunner.perform(AbstractBuild.java:480)
        at
hudson.model.AbstractBuild$AbstractRunner.performAllBuildStep(AbstractBuild.java
:466)
        at
hudson.maven.MavenModuleSetBuild$RunnerImpl.post2(MavenModuleSetBuild.java:598)
        at
hudson.model.AbstractBuild$AbstractRunner.post(AbstractBuild.java:438)
        at hudson.model.Run.run(Run.java:1129)
        at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:301)
        at hudson.model.ResourceController.execute(ResourceController.java:93)
        at hudson.model.Executor.run(Executor.java:122)
Caused by: java.io.IOException: Remote call failed
        at hudson.remoting.Channel.call(Channel.java:524)
        at hudson.FilePath.act(FilePath.java:667)
        ... 12 more
Caused by: java.lang.InternalError
        at sun.misc.URLClassPath$JarLoader.getResource(URLClassPath.java:769)
        at sun.misc.URLClassPath$2.next(URLClassPath.java:259)
        at sun.misc.URLClassPath$2.hasMoreElements(URLClassPath.java:269)
        at java.lang.ClassLoader$2.hasMoreElements(ClassLoader.java:1146)
        at sun.misc.CompoundEnumeration.next(CompoundEnumeration.java:45)
        at
sun.misc.CompoundEnumeration.hasMoreElements(CompoundEnumeration.java:54)
        at sun.misc.CompoundEnumeration.next(CompoundEnumeration.java:45)
        at
sun.misc.CompoundEnumeration.hasMoreElements(CompoundEnumeration.java:54)
        at java.util.ServiceLoader$LazyIterator.hasNext(ServiceLoader.java:346)
        at java.util.ServiceLoader$1.hasNext(ServiceLoader.java:432)
        at java.nio.charset.Charset$1.getNext(Charset.java:336)
        at java.nio.charset.Charset$1.hasNext(Charset.java:351)
        at java.nio.charset.Charset$4.run(Charset.java:572)
        at java.nio.charset.Charset$4.run(Charset.java:566)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.nio.charset.Charset.availableCharsets(Charset.java:565)
        at
hudson.plugins.warnings.util.EncodingValidator.<clinit>(EncodingValidator.java:3
2)
        at
hudson.plugins.warnings.util.ContextHashCode.create(ContextHashCode.java:30)
        at
hudson.plugins.warnings.AnnotationsClassifier.invoke(AnnotationsClassifier.java:
53)
        at
hudson.plugins.warnings.AnnotationsClassifier.invoke(AnnotationsClassifier.java:
23)
        at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2032)
        at hudson.remoting.UserRequest.perform(UserRequest.java:103)
        at hudson.remoting.UserRequest.perform(UserRequest.java:47)
        at hudson.remoting.Request$2.run(Request.java:236)
        at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
        at java.util.concurrent.FutureTask.run(FutureTask.java:166)
        at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
        at hudson.remoting.Engine$1$1.run(Engine.java:54)
        at java.lang.Thread.run(Thread.java:636)
Caused by: java.io.FileNotFoundException: /usr/lib64/jvm/java-1.6.0-openjdk-
1.2_b11/jre/lib/charsets.jar
        at sun.misc.URLClassPath$JarLoader.getJarFile(URLClassPath.java:658)
        at sun.misc.URLClassPath$JarLoader.access$600(URLClassPath.java:555)
        at sun.misc.URLClassPath$JarLoader$1.run(URLClassPath.java:622)
        at java.security.AccessController.doPrivileged(Native Method)
        at sun.misc.URLClassPath$JarLoader.ensureOpen(URLClassPath.java:614)
        at sun.misc.URLClassPath$JarLoader.getResource(URLClassPath.java:767)
        ... 30 mor

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Issue 4381] Problems with charset when running on OpenJDK

drulli
https://hudson.dev.java.net/issues/show_bug.cgi?id=4381






------- Additional comments from [hidden email] Mon Sep  7 11:30:48 +0000 2009 -------
Actually I don't know what to do in such a case. The same problems occur if I
use some libraries in my plug-in that need to get serialized to the remote
slave... This works only in simple cases.

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Issue 4381] Problems with charset when running on OpenJDK

scm_issue_link
In reply to this post by redsolo-3
https://hudson.dev.java.net/issues/show_bug.cgi?id=4381



User scm_issue_link changed the following:

                What    |Old value                 |New value
================================================================================
                  Status|NEW                       |RESOLVED
--------------------------------------------------------------------------------
              Resolution|                          |FIXED
--------------------------------------------------------------------------------




------- Additional comments from [hidden email] Tue Nov 24 15:19:44 +0000 2009 -------
Code changed in hudson
User: : drulli
Path:
 trunk/hudson/plugins/analysis-core/src/main/java/hudson/plugins/analysis/util/EncodingValidator.java
http://fisheye4.cenqua.com/changelog/hudson/?cs=24019
Log:
[FIXED HUDSON-4381] Use no special encoding if not supported by the JDK.


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]