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 198205 - [70cat] IllegalStateException: Common server instance not found for [/opt/glassfish-3.1/glassfish]deployer:gfv3ee6:localhost:4848
Summary: [70cat] IllegalStateException: Common server instance not found for [/opt/gla...
Status: RESOLVED WORKSFORME
Alias: None
Product: serverplugins
Classification: Unclassified
Component: GlassFish (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal (vote)
Assignee: Vince Kraemer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-29 13:43 UTC by kurti
Modified: 2011-10-26 19:25 UTC (History)
18 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 178605


Attachments
stacktrace (700 bytes, text/plain)
2011-04-29 13:43 UTC, kurti
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kurti 2011-04-29 13:43:06 UTC
This bug was originally marked as duplicate of bug 162741, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE 6.9.1 (Build 201007282301)
VM: Java HotSpot(TM) 64-Bit Server VM, 19.1-b02, Java(TM) SE Runtime Environment, 1.6.0_24-b07
OS: Linux

User Comments:
jag: Starting to debug a project

annamoto: launching a debug, on a library project, this project has nothing in common with a glassfish-v3-prelude project or anything needs deployment

pepijn: starting a debug session

mv7402: problem ib the Netbeans build - 200902190601

jonast: Debuggin test files

GUEST: selected debug from the menu bar.

malakim: Launching a debugging session for a web application running on Glassfish V2.1

annamoto: launching a run as debug

GUEST: Launching a debug session of a web application with javascript in a JSP and a breakpoint in the Java.  Also in the project is an empty Java class.

dlmerryweather: Debugging PHP App

bwells2004: Start the app up in debug mode and the exception appeared.

jag: Starting to debug; this is not an EE app - no server!

GUEST: package deckofcards;

import java.util.List;
import java.util.Arrays;
import java.util.Collections;
/**
 *
 * @author csharp
 */
class Card {
	public static enum Face {
		Ace, Duece, Three, Four, Five, Six, Seven, Eight, Nine, Ten, Jack, Queen, King
	};

	public static enum Suit {
		Clubs, Diamonds, Hearts, Spades
	};

	private final Face face;
	private final Suit suit;

	public Card(Face cardFace, Suit cardSuit) {
		face = cardFace;
		suit = cardSuit;
	}

	public Face getFace() {
		return face;
	}

	public Suit getSuit() {
		return suit;
	}

	@Override
	public String toString() {
		return String.format("%s of %s", face, suit);
	}
}

public class DeckOfCards {

  private List<Card> list;
	/**
     * @param args the command line arguments
     */
	public DeckOfCards() {

		Card[] deck = new Card[52];
		int count = 0;

		for(Card.Suit suit : Card.Suit.values()) {
			for(Card.Face face : Card.Face.values()) {
				deck[count] = new Card(face, suit);
				count++;
			}
		}
		list = Arrays.as

GUEST: Attempting to run program in debug

jag: Starting desktop app - no need for glassfish!!

GUEST: Starting debugger

GUEST: CTRL+F5

aldobrucale: Attach remote jpda debugger

GUEST: deploying a war to glassfish v3

ahleong: run debug

GUEST: Starting war project by doing RUN.

kurti: I had 2 Glassfish in the configuration and removed the entry under "services" which relates to the instance named in the summary

ender01: I had removed multiple GF instances from the servers section and then started a GF2 up in debug mode. This error came from trying to attach the debugger to this GF2 instance. (it still attached, but generated this error)

dkittle: I was trying to attach the debugger to an application running in WebLogic (configured for remote debugging).

GUEST: Tried to start debugging an ordinary Java Application.

GUEST: Starting embedded Tomcat.  Do not have Glassfish installed.

haskovec: launching the debugger to attach to my tomcat process.

bernd_zedv: startet Debug File

GUEST: debug php project

GUEST: launching UI project in debug mode

GUEST: clicked debug to start debug session on java file

GUEST: Error occurred when trying to run debugger

emiddio: trying to debug

GUEST: I tried running the project and i got this error

GUEST: start a java dynamic web application on glassfish

GUEST: Trying to start the attach to a Grails debug session using the Debug Attach command. Not sure what it has to do with glassfish ... using an external jetty application server.

pepijn: starting debug session

GUEST: Debugging an Java application (no swing or web, just pure java with jdbc and hibernate)

GUEST: Trying to debug an Application Client.  Was having problems with 6.7 so I downloaded and installed 6.7.1 and now can't get it deployed properly




Stacktrace: 
java.lang.IllegalStateException: Common server instance not found for [/opt/glassfish-3.1/glassfish]deployer:gfv3ee6:localhost:4848
   at org.netbeans.modules.glassfish.javaee.Hk2DeploymentManager.getServerInstance(Hk2DeploymentManager.java:520)
   at org.netbeans.modules.glassfish.javaee.Hk2StartServer.getCommonServerSupport(Hk2StartServer.java:109)
   at org.netbeans.modules.glassfish.javaee.Hk2StartServer.isRunning(Hk2StartServer.java:279)
   at org.netbeans.modules.j2ee.deployment.impl.ServerInstance$3.run(ServerInstance.java:805)
   at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418)
   at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1957)
Comment 1 kurti 2011-04-29 13:43:11 UTC
Created attachment 108017 [details]
stacktrace
Comment 2 Vince Kraemer 2011-10-26 19:25:07 UTC
this appears to have been fixed (reduced significantly) by changes in the code... Though I cannot identify the specific change.

Marking as worksforme