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 227450 - Strange warnings of the GlassFish
Summary: Strange warnings of the GlassFish
Status: RESOLVED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: GlassFish (show other bugs)
Version: 7.3
Hardware: All All
: P3 normal (vote)
Assignee: TomasKraus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-14 07:47 UTC by Martin Fousek
Modified: 2013-03-25 16:20 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Fousek 2013-03-14 07:47:13 UTC
Product Version: NetBeans IDE 7.3 (Build 201302132200)
Java: 1.6.0_39; Java HotSpot(TM) 64-Bit Server VM 20.14-b01
Runtime: Java(TM) SE Runtime Environment 1.6.0_39-b04
System: Linux version 3.2.0-27-generic running on amd64; UTF-8; en_US (nb

In the IDE log appeared WARNINGs which doesn't look like real warnings and the way of they logging is strange as well. If there are useful information for you, you should log it ideally as one message and definitely with lower priority.

WARNING [glassfish]: sun.net.www.protocol.http.HttpURLConnection:http://localhost:4848/__asadmin/redeploy?name=WebApplication317&keepState=true&properties=keepSessions=true:preserveAppScopedResources=true
WARNING [glassfish]: text/html
WARNING [glassfish]
WARNING [glassfish]: Header Fields
WARNING [glassfish]: null = 
WARNING [glassfish]:      HTTP/1.1 200 OK
WARNING [glassfish]: Transfer-Encoding = 
WARNING [glassfish]:      chunked
WARNING [glassfish]: Date = 
WARNING [glassfish]:      Thu, 14 Mar 2013 07:39:19 GMT
WARNING [glassfish]: Content-Type = 
WARNING [glassfish]:      text/html
Comment 1 TomasKraus 2013-03-14 10:36:34 UTC
This should be lowered to FINEST logging level. Will do in 7.3.1.
This code is in GF Tooling Library - org.glassfish.tools.ide.admin.Runner#call()

    if (!commandSucceeded) {
        if (!isSilentFailureAllowed()) {
            Logger.log(Level.WARNING, hconn.toString());
            Logger.log(Level.WARNING, hconn.getContentType());
            Logger.log(Level.WARNING, hconn.
                    getContentEncoding());
            Map<String, List<String>> ms2ls = hconn.
                    getHeaderFields();
            Logger.log(Level.WARNING, "Header Fields");
            for (Map.Entry<String, List<String>> e : ms2ls.
                    entrySet()) {
                Logger.log(Level.WARNING, e.getKey() + " = ");
                for (String v : e.getValue()) {
                    Logger.log(Level.WARNING, "     " + v);
                }
            }
        }
    }

Another one is in org.netbeans.modules.glassfish.common.CommandRunner which was used to implement current runner in GF Tooling Library:

    if (!serverCmd.isSilentFailureAllowed()) {                        
        Logger.getLogger("glassfish").log(
                Level.WARNING, hconn.toString());                        
        Logger.getLogger("glassfish").log(
                Level.WARNING, hconn.getContentType());                        
        Logger.getLogger("glassfish").log(
                Level.WARNING, hconn.getContentEncoding());                        
        Map<String,List<String>> ms2ls
                = hconn.getHeaderFields();                        
        Logger.getLogger("glassfish").log(
                Level.WARNING, "Header Fields");                        
        for (Entry<String,List<String>> e : ms2ls.entrySet()) {                        
            Logger.getLogger("glassfish").log(
                    Level.WARNING, e.getKey()+" = ");                        
            for (String v : e.getValue()) {                        
                Logger.getLogger("glassfish").log(
                        Level.WARNING, "     "+v);                        
            }                        
        }                        
    }                        

Looks like the one you see in the logs is coming from CommandRunner and it's there for a long time.
Comment 2 TomasKraus 2013-03-25 11:16:54 UTC
Checked into web-main:
----------------------
changeset:   248787:389a8348d478
branch:      javaee7
date:        Mon Mar 25 12:15:55 2013 +0100
summary:     #227450 - Strange warnings of the GlassFish HTTP reuests
             lowered to FINE
Comment 3 TomasKraus 2013-03-25 16:20:51 UTC
GlassFish Tooling Library:
--------------------------
changeset:   254:d5abb0496548
branch:      0.3-b036
summary:     Bug# 227450 - Strange warnings of the GlassFish
             HTTP reuests lowered to FINE

changeset:   473:81451678eed5
parent:      466:c9b145313fdc
summary:     Bug# 227450 - Strange warnings of the GlassFish
             HTTP reuests lowered to FINE