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 159476 - NullPointerException: No base directory is defined. Properties = {name=StockQuoteService, sourcepath=/home/stroud/NetBeansProjects/StockQuoteService/StockQuoteService/src/java:/home/stroud/NetBeansPro
Summary: NullPointerException: No base directory is defined. Properties = {name=StockQ...
Status: VERIFIED FIXED
Alias: None
Product: debugger
Classification: Unclassified
Component: Java (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker with 1 vote (vote)
Assignee: Martin Entlicher
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-03 01:14 UTC by stroudcuster
Modified: 2009-04-21 14:44 UTC (History)
10 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 146880


Attachments
stacktrace (3.15 KB, text/plain)
2009-03-03 01:16 UTC, stroudcuster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description stroudcuster 2009-03-03 01:14:50 UTC
Build: NetBeans IDE Dev (Build 200902231810)
VM: Java HotSpot(TM) Client VM, 11.0-b15, Java(TM) SE Runtime Environment, 1.6.0_10-b33
OS: Linux, 2.6.27-11-generic, i386

User Comments:
m1k0: start debugging

ntsarb: Attempted to debug my web application (servlets)

GUEST: When initialize debug process in web project.

facilityderek: Starting debug session of Web App

davisn: Compile a JSP file

1. Having testConn.jsp with the content below:
2. Set a break point at conn = DriverManager.getConnection(connectionURL);
3. Select Run > Compile testConn.jsp

<%@ page language="java" import="java.sql.*" %>

<%
String driver = "org.apache.derby.jdbc.ClientDataSource";
String dbName="/sample";
String connectionURL = "jdbc:derby://localhost:1527/" + dbName;
Connection conn = null;
try{
     Class.forName(driver);
} catch(java.lang.ClassNotFoundException e) {
     e.printStackTrace();
        out.println(e);
}
try {
     conn = DriverManager.getConnection(connectionURL);
        out.println("CONNETED<br>");

     //body of code to go here

}  catch (Throwable e)  {
    out.println(e);
    e.printStackTrace();
} finally {

}

%>

GUEST: When start debug mode

GUEST: When start debug mode in web project

facilityderek: Starting debug session on a web appllication. A context path is set '/eportal' but no relative URL set under Run section of project properties

vincewebb: Run a web application which was created from scratch using this nightly build of NetBeans

GUEST: I was starting my web application in debug mode using apache tomcat

mburgess: Tried to run web application

stroudcuster: Start Debug on sample Stock Quote Service project w/ Glassfish V2 server

markharrod: debugging a program

vkraemer: start to debug a web app while the server is started in 'normal' mode.  GF v3 Prelude is the server

GUEST: running debugger

pavaneshwar: Clicked on Debug EAR project.

GUEST: Attempted to debug my application for the first time after installing Netbeans 6.7 Build 200902231810.

GUEST: I attempted to debug my web application (servlets).



Stacktrace: 
java.lang.NullPointerException: No base directory is defined. Properties = {name=StockQuoteService, sourcepath=/home/stroud/NetBeansProjects/StockQuoteService/StockQuoteService/src/java:/home/stroud/NetBeansProjects/StockQuoteService/StockQuoteService/build/generated-sources/jax-ws:/home/stroud/NetBeansProjects/StockQuoteService/StockQuoteService/web, jdksources=}
        at org.netbeans.modules.debugger.jpda.projects.SourcePathProviderImpl.<init>(SourcePathProviderImpl.java:150)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(NativeConstructorAccessorImpl.java:0)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
        at org.netbeans.spi.debugger.ContextAwareSupport.createInstance(ContextAwareSupport.java:125)
Comment 1 stroudcuster 2009-03-03 01:16:51 UTC
Created attachment 77591 [details]
stacktrace
Comment 2 Jindrich Sedek 2009-03-03 07:50:47 UTC
very visible bug, many duplicates
Comment 3 Exceptions Reporter 2009-03-06 18:55:59 UTC
This issue has already 50 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=146880
Comment 4 Martin Entlicher 2009-03-10 14:11:16 UTC
Fixed in changeset:   119573:312a0d83af9a
http://hg.netbeans.org/main/rev/312a0d83af9a
Comment 5 Quality Engineering 2009-03-18 22:33:45 UTC
Integrated into 'main-golden', will be available in build *200903181604* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/312a0d83af9a
User: mentlicher@netbeans.org
Log: #159476 - baseDir property defined.
Comment 6 Filip Zamboj 2009-04-21 14:44:50 UTC
verified on
Product Version: NetBeans IDE 6.7 Beta (Build 200904192254)
Java: 1.6.0_13; Java HotSpot(TM) 64-Bit Server VM 11.3-b02