[GLASSFISH-14961] [Regression] Warning message repeated twice in console Created: 02/Dec/10  Updated: 04/Mar/11  Resolved: 03/Dec/10

Status: Closed
Project: glassfish
Component/s: deployment
Affects Version/s: 3.1_b31
Fix Version/s: 3.1_b32

Type: Bug Priority: Major
Reporter: lidiam Assignee: Hong Zhang
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

build: ogs-3.1-b31-12_02_2010.zip


Attachments: JPEG File deploy-warningrepeated.JPG     File test_create_war.war    
Tags: 3-1-regression, 3_1-verified

 Description   

When there is an issue with deployment of an application, the warning message is repeated. Steps to reproduce:

1. Create a standalone instance and start it.
2. Start database, e.g. asadmin start-database.
3. Add instance as target to 2 default JDBC resources.
4. Deploy attached test_create_war application (with create_timer context root).

The following warning is displayed:

Deployment succeeded with a warning, please look at the log file for details
Application deployed with name create_timer. WARNING: Command _deploy did not complete successfully on server instance in1: org.glassfish.api.admin.CommandException: remote failure: Failed to load the application on instance in1. The application will not run properly. Please fix your application and redeploy. Failed to load the application on instance in1. The application will not run properly. Please fix your application and redeploy. Exception while loading the app. Please see server.log for...

Note that "Failed to load (...) and redeploy." is repeated above.



 Comments   
Comment by lidiam [ 02/Dec/10 ]

Once this application fails to deploy, instance's state is reported as Restart Required.

Comment by Anissa Lam [ 02/Dec/10 ]

I am seeing different thing when following the instructions. Do i need to deploy other app also ?

After deployment,
stageStatusMessage in "status" is set to ""Action failed create app ref failed; FAILURE: Command _deploy failed on server instance ST: org.glassfish.api.admin.CommandException: remote failure: Failed to load the application on instance ST. The application will not run properly. Please fix your application and redeploy.
Failed to load the application on instance ST. The application will not run properly. Please fix your application and redeploy.
Exception while loading the app. Please see server.log for more details. : EJB Timer Service is not available. Please see server.log for more details. "

and

stageStatus is FAILURE.

But statusString is set to ""Application deployed with name test_create_war."

So, i end up seeing the attached error. But the app is deployed.

Request Hong to take a look.
The warning that Lidia is seeing is whatever is returned from status and what i am seeing doesn't seem to be correct either.

Here is the GUI code that extract the status information, found in v3/admingui/common/src/main/java/org/glassfish/admingui/common/util/DeployUtil.java

around line#106

public static boolean checkDeployStatus(DFDeploymentStatus status, HandlerContext handlerCtx, boolean stopProcessing, String warningMsgKey)
{
//TODO-V3 get more msg to user.
//parse the deployment status and retrieve failure/warning msg
ByteArrayOutputStream bos = new ByteArrayOutputStream();
PrintWriter pw = new PrintWriter(bos);
DFDeploymentStatus.parseDeploymentStatus(status, pw);
byte[] statusBytes = bos.toByteArray();
String statusString = new String(statusBytes);

Comment by Hong Zhang [ 03/Dec/10 ]

Yes, I've noticed it also when I was debugging another issue. I have fixed it yesterday so it should be today's nightly.

Comment by lidiam [ 04/Mar/11 ]

Verified in promoted build b43.

Generated at Sun Aug 02 00:46:09 UTC 2015 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.