This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 258436 - wildfly server log window endless loop
Summary: wildfly server log window endless loop
Status: RESOLVED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: WildFly (show other bugs)
Version: 8.2
Hardware: PC Windows 7
: P2 normal (vote)
Assignee: Petr Hejl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-18 16:00 UTC by jomu
Modified: 2016-10-26 06:58 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
log excerpt (1.09 KB, text/plain)
2016-03-18 16:00 UTC, jomu
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jomu 2016-03-18 16:00:18 UTC
Created attachment 158920 [details]
log excerpt

When starting Wildfly by running the web application on the server, the server log windows reports the first lines of the server log in an endless loop. The server starts works as expected and also the web application works, but the server log is unusable. The log file on the disk (e.g. wildfly/standalone/log/server.log )it self is also ok and does not contain the loop.
Comment 1 jomu 2016-03-18 16:01:03 UTC
Confirmed with Netbeans 8.1 and Netbeans DEV (Build 201603170001) with both WildFly 9 and Wildfly 10
Comment 2 ehsavoie 2016-03-18 16:25:52 UTC
Hum, strange as the server log is parsed to detect that the server is correctly started. Do you have some specific server configuration ? Maybe some environment variables set ?
Could you also tell my which version of the jvm you are using.
Comment 3 jomu 2016-03-19 15:08:27 UTC
The wildfly server is basically just unpacked - no special configuration I am aware of. I just added configuration for database access to be used by my application. 
Server installed to c:\app\wildfly-10.0.0.Final
JBOSS_HOME set to same directory
JAVA_HOME = c:\Program Files\Java\jdk1.8.0_74 (Oracle JDK, error occured also with older versions)
Comment 4 jockel 2016-04-07 10:14:29 UTC
I am experiencing the same bug (and my co-workers too) on a Linux system.

Some additional details / observations I made:

The behaviour never happens after the first deployment. Only after I deployed several times the erratic behaviour occurs. Sometimes with the second deployment, sometimes it needs several deployments.

When the erratic behaviour occurs the CPU load goes up to nearly 100%. If I close the output window CPU load goes back to normal.

The first lines in my server.log looks like this:

2016-04-07 09:59:00,448 INFO  [org.jboss.modules] (main) JBoss Modules version 1.5.1.Final
2016-04-07 09:59:00,731 INFO  [org.jboss.msc] (main) JBoss MSC version 1.2.6.Final
2016-04-07 09:59:00,841 INFO  [org.jboss.as] (MSC service thread 1-8) WFLYSRV0049: WildFly Full 10.0.0.Final (WildFly Core 2.0.10.Final) starting
2016-04-07 09:59:00,842 DEBUG [org.jboss.as.config] (MSC service thread 1-8) Configured system properties:
	[Standalone] = 
	awt.toolkit = sun.awt.X11.XToolkit
	file.encoding = UTF-8
	file.encoding.pkg = sun.io
	file.separator = /
	http.nonProxyHosts = localhost,127.0.0.1,jr-ThinkPad-L540
	java.awt.graphicsenv = sun.awt.X11GraphicsEnvironment
	java.awt.headless = true
	java.awt.printerjob = sun.print.PSPrinterJob
	java.class.path = /home/jr/Downloads/wildfly-10.0.0.Final/jboss-modules.jar
	java.class.version = 52.0
	java.endorsed.dirs = /opt/java/jdk1.8.0_31/jre/lib/endorsed
	java.ext.dirs = /opt/java/jdk1.8.0_31/jre/lib/ext:/usr/java/packages/lib/ext
	java.home = /opt/java/jdk1.8.0_31/jre
	java.io.tmpdir = /tmp
	java.library.path = /opt/java/jdk1.8.0_31/jre/lib/amd64:/opt/java/jdk1.8.0_31/jre/lib/i386::/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
	java.net.preferIPv4Stack = true
	java.runtime.name = Java(TM) SE Runtime Environment
	java.runtime.version = 1.8.0_31-b13
	java.specification.name = Java Platform API Specification
	java.specification.vendor = Oracle Corporation
	java.specification.version = 1.8
	java.util.logging.manager = org.jboss.logmanager.LogManager
	java.vendor = Oracle Corporation
	java.vendor.url = http://java.oracle.com/
	java.vendor.url.bug = http://bugreport.sun.com/bugreport/
	java.version = 1.8.0_31
	java.vm.info = mixed mode
	java.vm.name = Java HotSpot(TM) 64-Bit Server VM
	java.vm.specification.name = Java Virtual Machine Specification
	java.vm.specification.vendor = Oracle Corporation
	java.vm.specification.version = 1.8
	java.vm.vendor = Oracle Corporation
	java.vm.version = 25.31-b07
	javax.management.builder.initial = org.jboss.as.jmx.PluggableMBeanServerBuilder
	javax.xml.datatype.DatatypeFactory = __redirected.__DatatypeFactory
	javax.xml.parsers.DocumentBuilderFactory = __redirected.__DocumentBuilderFactory
	javax.xml.parsers.SAXParserFactory = __redirected.__SAXParserFactory
	javax.xml.stream.XMLEventFactory = __redirected.__XMLEventFactory
	javax.xml.stream.XMLInputFactory = __redirected.__XMLInputFactory
	javax.xml.stream.XMLOutputFactory = __redirected.__XMLOutputFactory
	javax.xml.transform.TransformerFactory = __redirected.__TransformerFactory
	javax.xml.validation.SchemaFactory:http://www.w3.org/2001/XMLSchema = __redirected.__SchemaFactory
	javax.xml.xpath.XPathFactory:http://java.sun.com/jaxp/xpath/dom = __redirected.__XPathFactory
	jboss.home.dir = /home/jr/Downloads/wildfly-10.0.0.Final
	jboss.host.name = jr-thinkpad-l540
	jboss.http.port = 8084
	jboss.management.http.port = 9990
	jboss.modules.dir = /home/jr/Downloads/wildfly-10.0.0.Final/modules
	jboss.modules.system.pkgs = org.jboss.byteman
	jboss.node.name = jr-thinkpad-l540
	jboss.qualified.host.name = jr-thinkpad-l540
	jboss.server.base.dir = /home/jr/Downloads/wildfly-10.0.0.Final/standalone
	jboss.server.config.dir = /home/jr/Downloads/wildfly-10.0.0.Final/standalone/configuration
	jboss.server.data.dir = /home/jr/Downloads/wildfly-10.0.0.Final/standalone/data
	jboss.server.deploy.dir = /home/jr/Downloads/wildfly-10.0.0.Final/standalone/data/content
	jboss.server.log.dir = /home/jr/Downloads/wildfly-10.0.0.Final/standalone/log
	jboss.server.name = jr-thinkpad-l540
	jboss.server.persist.config = true
	jboss.server.temp.dir = /home/jr/Downloads/wildfly-10.0.0.Final/standalone/tmp
	line.separator = 

	logging.configuration = file:/home/jr/Downloads/wildfly-10.0.0.Final/standalone/configuration/logging.properties
	module.path = /home/jr/Downloads/wildfly-10.0.0.Final/modules
	org.jboss.boot.log.file = /home/jr/Downloads/wildfly-10.0.0.Final/standalone/log/server.log
	org.jboss.resolver.warning = true
	org.xml.sax.driver = __redirected.__XMLReaderFactory
	os.arch = amd64
	os.name = Linux
	os.version = 3.16.0-38-generic
	path.separator = :
	sun.arch.data.model = 64
	sun.boot.class.path = /opt/java/jdk1.8.0_31/jre/lib/resources.jar:/opt/java/jdk1.8.0_31/jre/lib/rt.jar:/opt/java/jdk1.8.0_31/jre/lib/sunrsasign.jar:/opt/java/jdk1.8.0_31/jre/lib/jsse.jar:/opt/java/jdk1.8.0_31/jre/lib/jce.jar:/opt/java/jdk1.8.0_31/jre/lib/charsets.jar:/opt/java/jdk1.8.0_31/jre/lib/jfr.jar:/opt/java/jdk1.8.0_31/jre/classes
	sun.boot.library.path = /opt/java/jdk1.8.0_31/jre/lib/amd64
	sun.cpu.endian = little
	sun.cpu.isalist = 
	sun.desktop = gnome
	sun.io.unicode.encoding = UnicodeLittle
	sun.java.command = /home/jr/Downloads/wildfly-10.0.0.Final/jboss-modules.jar -mp /home/jr/Downloads/wildfly-10.0.0.Final/modules org.jboss.as.standalone -Djboss.home.dir=/home/jr/Downloads/wildfly-10.0.0.Final -Djboss.server.base.dir=/home/jr/Downloads/wildfly-10.0.0.Final/standalone -c standalone-full.xml
	sun.java.launcher = SUN_STANDARD
	sun.jnu.encoding = UTF-8
	sun.management.compiler = HotSpot 64-Bit Tiered Compilers
	sun.os.patch.level = unknown
	user.country = US
	user.dir = /home/jr/Downloads/wildfly-10.0.0.Final/bin
	user.home = /home/jr
	user.language = en
	user.name = jr
	user.timezone = Europe/Berlin
2016-04-07 09:59:00,843 DEBUG [org.jboss.as.config] (MSC service thread 1-8) VM Arguments: -D[Standalone] -Xms128m -Xmx512m -Dhttp.nonProxyHosts=localhost,127.0.0.1,jr-ThinkPad-L540 -Djava.net.preferIPv4Stack=true -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true -Djboss.management.http.port=9990 -Djboss.http.port=8084 -Dorg.jboss.boot.log.file=/home/jr/Downloads/wildfly-10.0.0.Final/standalone/log/server.log -Dlogging.configuration=file:/home/jr/Downloads/wildfly-10.0.0.Final/standalone/configuration/logging.properties 


In my output window following part is repeated again and again:

2016-04-07 09:59:00,731 INFO  [org.jboss.msc] (main) JBoss MSC version 1.2.6.Final
2016-04-07 09:59:00,841 INFO  [org.jboss.as] (MSC service thread 1-8) WFLYSRV0049: WildFly Full 10.0.0.Final (WildFly Core 2.0.10.Final) starting
2016-04-07 09:59:00,842 DEBUG [org.jboss.as.config] (MSC service thread 1-8) Configured system properties:
	[Standalone] = 
	awt.toolkit = sun.awt.X11.XToolkit
	file.encoding = UTF-8
	file.enc2016-04-07 09:59:00,448 INFO  [org.jboss.modules] (main) JBoss Modules version 1.5.1.Final

(Note, that the repetition starts with the second line).

If I'm removing some lines from the beginning of server.log the output changes. If I'm removing e.g. the first four lines the repeating output changes to:

	java.ext.dirs = /opt/java/jdk1.8.0_3	[Standalone] = 
	awt.toolkit = sun.awt.X11.XToolkit
	file.encoding = UTF-8
	file.encoding.pkg = sun.io
	file.separator = /
	http.nonProxyHosts = localhost,127.0.0.1,jr-ThinkPad-L540
	java.awt.graphicsenv = sun.awt.X11GraphicsEnvironment
	java.awt.headless = true
	java.awt.printerjob = sun.print.PSPrinterJob
	java.class.path = /home/jr/Downloads/wildfly-10.0.0.Final/jboss-modules.jar
	java.class.version = 52.0
	java.endorsed.dirs = /opt/java/jdk1.8.0_31/jre/lib/endorsed

So, exactly 511 bytes are always repeated, no matter if I delete some content or not.

If I'm stopping the server, the repetition ends and the log continues normally (deleting every repetition in the output window that happened). Starting the server once again bring the output back to normal until I deploy my application again several times. 


Details about my used Netbeans version:

Product Version: NetBeans IDE 8.1 (Build 201510222201)
Updates: NetBeans IDE is updated to version NetBeans 8.1 Patch 1
Java: 1.8.0_31; Java HotSpot(TM) 64-Bit Server VM 25.31-b07
Runtime: Java(TM) SE Runtime Environment 1.8.0_31-b13
System: Linux version 3.16.0-38-generic running on amd64; UTF-8; en_US (nb)
Comment 5 Petr Hejl 2016-05-16 09:29:04 UTC
It looks like this happens only when server is started from outside of the IDE.
Comment 6 Petr Hejl 2016-05-16 09:41:44 UTC
Fixed in web-main d5abd24a4f1e.
Comment 7 Quality Engineering 2016-05-17 01:46:53 UTC
Integrated into 'main-silver', will be available in build *201605170002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/d5abd24a4f1e
User: Petr Hejl <phejl@netbeans.org>
Log: #258436 - wildfly server log window endless loop