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...
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
Depends on:
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

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

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;
} catch(java.lang.ClassNotFoundException e) {
try {
     conn = DriverManager.getConnection(connectionURL);

     //body of code to go here

}  catch (Throwable e)  {
} 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).

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>(
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(
        at java.lang.reflect.Constructor.newInstance(
        at org.netbeans.spi.debugger.ContextAwareSupport.createInstance(
Comment 1 stroudcuster 2009-03-03 01:16:51 UTC
Created attachment 77591 [details]
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 
Comment 4 Martin Entlicher 2009-03-10 14:11:16 UTC
Fixed in changeset:   119573:312a0d83af9a
Comment 5 Quality Engineering 2009-03-18 22:33:45 UTC
Integrated into 'main-golden', will be available in build *200903181604* on (upload may still be in progress)
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