Search the web
Sign In
New User? Sign Up
xml-dbms
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Message search is now enhanced, find messages faster. Take it for a spin.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
I have met a error of "NullPointerexception" when i use manager tool   Message List  
Reply | Forward Message #3847 of 3867 |
Hello,everbody
I have met a error of "NullPointerexception" when i use manager tool
,and i have capture the error position in source code is as follow:
public XMLDBMSMap createMapFromDTD(Properties dbProps, Properties
configProps, String dtdFilename)
throws XMLMiddlewareException, SQLException
{
DBInfo dbInfo;
Connection conn;
MapFactory_DTD factory;
String order, databaseName, catalogName, schemaName;
Hashtable namespaceURIs;

if (dbProps == null) dbProps = emptyProps;
if (configProps == null) configProps = emptyProps;
// Create a new map factory.

factory = new MapFactory_DTD();
// Set the database properties, if any.

dbInfo = getDBInfo(dbProps, false);
if (dbInfo != null)
{
conn = dbInfo.dataSource.getConnection(dbInfo.user,
dbInfo.password);
factory.setConnection(conn);
}

// Set the order options, if any.

order = configProps.getProperty(XMLDBMSProps.ORDERTYPE);

if (order != null)
{
if (order.equals(XMLDBMSProps.FIXED))
{
System.out.println("I am here1");
//when i put the statement at here,the error is occur and "I am here"
do not come outĄŁmy version of jdk is 1.5.0_08
factory.setOrderType(MapFactory_DTD.ORDER_FIXED);

}
else if (order.equals(XMLDBMSProps.NONE))
{
factory.setOrderType(MapFactory_DTD.ORDER_NONE);
}
else if (order.equals(XMLDBMSProps.COLUMNS))
{
factory.setOrderType(MapFactory_DTD.ORDER_COLUMNS);
}
else
throw new IllegalArgumentException("Invalid value of " +
XMLDBMSProps.ORDERTYPE + " property: " + order);
}
......




Mon Nov 5, 2007 2:39 am

leepf7211
Offline Offline
Send Email Send Email

Forward
Message #3847 of 3867 |
Expand Messages Author Sort by Date

Hello,everbody I have met a error of "NullPointerexception" when i use manager tool ,and i have capture the error position in source code is as follow: public...
leepf7211
Offline Send Email
Nov 5, 2007
2:39 am

Hello, Sorry I haven't replied sooner. The statement does not print because you have not reached that section of the code. You did not supply a value for the...
rpbourret@...
xmldbms
Offline Send Email
Nov 7, 2007
7:43 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help