Hello,

I am new to GeoTools. Trying to connect to an Oracle DataStore in a jsp:


---------------

java.util.Map params = new java.util.HashMap();
params.put( "dbtype", "oracle");
params.put( "host", "nbg-proj-srv");
params.put( "port", 1521);
params.put( "schema", "gie");
params.put( "database", "nbg");
params.put( "user", "gie");
params.put( "passwd", "gie");

DataStore dataStore = DataStoreFinder.getDataStore(params);

SimpleFeatureSource featureSource = 
dataStore.getFeatureSource("GIE_GEO_KADASTRAAL_PERCEEL");
---------------

The Exception is for the last line is:
java.lang.NullPointerException 
org.apache.jsp.NBG_jsp._jspService(NBG_jsp.java:111) 
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) 
javax.servlet.http.HttpServlet.service(HttpServlet.java:717) 
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374) 
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342) 
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267) 
javax.servlet.http.HttpServlet.service(HttpServlet.java:717) 


What do I do wrong?

Regards,
Ron
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
GeoTools-GT2-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to