[jboss-osgi-issues] [JBoss JIRA] Commented: (JBOSGI-297) OSGiBootstrapBean spinning on System.in read

Heiko Braun (JIRA) jira-events at lists.jboss.org
Fri Mar 5 05:02:15 EST 2010


    [ https://jira.jboss.org/jira/browse/JBOSGI-297?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12518291#action_12518291 ] 

Heiko Braun commented on JBOSGI-297:
------------------------------------

I am on OSX 10.6.2 with JDK java version "1.6.0_17"
Java(TM) SE Runtime Environment (build 1.6.0_17-b04-248-10M3025)


It starts w/o any problems:

=========================================================================

  JBossOSGi Bootstrap Environment

  OSGI_HOME: /Users/hbraun/jboss-osgi-1.0.0.Beta6/runtime

  JAVA: /System/Library/Frameworks/JavaVM.framework/Home//bin/java

  JAVA_OPTS: -Dprogram.name=run.sh -Dosgi.home=/Users/hbraun/jboss-osgi-1.0.0.Beta6/runtime -Xms128m -Xmx512m -XX:MaxPermSize=256m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000

=========================================================================


[..]

11:00:30,102 INFO  [DeploymentScannerImpl] JBossOSGi Runtime started in 1.371sec



> OSGiBootstrapBean spinning on System.in read
> --------------------------------------------
>
>                 Key: JBOSGI-297
>                 URL: https://jira.jboss.org/jira/browse/JBOSGI-297
>             Project: JBoss OSGi
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: Core Framework
>    Affects Versions: JBossOSGi 1.0.0 Beta6
>         Environment: Mac OSX 10.5.8
> [523][valkyrie: trunk]$ java -version
> java version "1.6.0_17"
> Java(TM) SE Runtime Environment (build 1.6.0_17-b04-248-9M3125)
> Java HotSpot(TM) 64-Bit Server VM (build 14.3-b01-101, mixed mode)
>            Reporter: Scott M Stark
>            Assignee: Thomas Diesler
>             Fix For: JBossOSGi 1.0.0 Beta7
>
>
> At least under OSX, I'm seeing the default runtime configuration spinning in a loop reading the System.in stream:
> "Thread-2" prio=5 tid=0x0000000101955000 nid=0x13a6f9000 runnable [0x000000013a6f8000]
>    java.lang.Thread.State: RUNNABLE
> 	at java.io.FileInputStream.readBytes(Native Method)
> 	at java.io.FileInputStream.read(FileInputStream.java:199)
> 	at java.io.BufferedInputStream.read1(BufferedInputStream.java:256)
> 	at java.io.BufferedInputStream.read(BufferedInputStream.java:317)
> 	- locked <0x0000000107aaf788> (a java.io.BufferedInputStream)
> 	at sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:264)
> 	at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:306)
> 	at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:158)
> 	- locked <0x0000000108289d20> (a java.io.InputStreamReader)
> 	at sun.nio.cs.StreamDecoder.read0(StreamDecoder.java:107)
> 	- locked <0x0000000108289d20> (a java.io.InputStreamReader)
> 	at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:93)
> 	at java.io.InputStreamReader.read(InputStreamReader.java:151)
> 	at org.jboss.osgi.spi.internal.OSGiBootstrapBean$StartupThread.run(OSGiBootstrapBean.java:205)
> This is a busy loop consuming 100% cpu. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-osgi-issues mailing list