I have WebSphere Studio Advanced Edition 3.5 for Windows 2000 and i'm trying to connect to as400 using com.ibm.as400.access.AS400JDBCDriver, when i create the sql i see data but when i run the servlet generated by Database Wizard, get an error: java.lang.NullPointerException!!!...
i've readen that have to change the servlet generated:
Original Servlet:
<?xml version="1.0"?>
<!-- This file was generated by IBM WebSphere Studio using K:\Program Files\WebSphere\Studio35\BIN\GenerationStyleSheets\V3.5\JSP1.0\ServletModel\ServletConfig.xsl-->
<servlet>
<markup-language>
<ml-name>HTML</ml-name>
<ml-mime>text/html</ml-mime>
<page-list>
<default-page>
<uri>/Query1HTMLResults.jsp</uri>
</default-page>
</page-list>
</markup-language>
<code>Patty.Query1</code>
<init-parameter value="com.ibm.as400.access.AS400JDBCDriver" name="driver"/>
<init-parameter value="pwd" name="password"/>
<init-parameter value="jdbc:as400://xxx" name="URL"/>
<init-parameter value="user" name="userID"/>
<init-parameter value="jdbc/jdbcas400xxx" name="dataSourceName"/>
</servlet>
Changed Servlet:
<?xml version="1.0"?>
<!-- This file was generated by IBM WebSphere Studio using K:\Program Files\WebSphere\Studio35\BIN\GenerationStyleSheets\V3.5\JSP1.0\ServletModel\ServletConfig.xsl-->
<servlet>
<markup-language>
<ml-name>HTML</ml-name>
<ml-mime>text/html</ml-mime>
<page-list>
<default-page>
<uri>/Query1HTMLResults.jsp</uri>
</default-page>
</page-list>
</markup-language>
<code>Patty.Query1</code>
<init-parameter value="com.ibm.db2.jdbc.app.DB2Driver" name="driver"/>
<init-parameter value="pwd" name="password"/>
<init-parameter value="jdbc:db2:xxx" name="URL"/>
<init-parameter value="user" name="userID"/>
<init-parameter value="jdbc/jdbcdb2xxx" name="dataSourceName"/>
</servlet>
i did it but doesn't work!!!
Anybody can help me?
Thanks in advance.
i've readen that have to change the servlet generated:
Original Servlet:
<?xml version="1.0"?>
<!-- This file was generated by IBM WebSphere Studio using K:\Program Files\WebSphere\Studio35\BIN\GenerationStyleSheets\V3.5\JSP1.0\ServletModel\ServletConfig.xsl-->
<servlet>
<markup-language>
<ml-name>HTML</ml-name>
<ml-mime>text/html</ml-mime>
<page-list>
<default-page>
<uri>/Query1HTMLResults.jsp</uri>
</default-page>
</page-list>
</markup-language>
<code>Patty.Query1</code>
<init-parameter value="com.ibm.as400.access.AS400JDBCDriver" name="driver"/>
<init-parameter value="pwd" name="password"/>
<init-parameter value="jdbc:as400://xxx" name="URL"/>
<init-parameter value="user" name="userID"/>
<init-parameter value="jdbc/jdbcas400xxx" name="dataSourceName"/>
</servlet>
Changed Servlet:
<?xml version="1.0"?>
<!-- This file was generated by IBM WebSphere Studio using K:\Program Files\WebSphere\Studio35\BIN\GenerationStyleSheets\V3.5\JSP1.0\ServletModel\ServletConfig.xsl-->
<servlet>
<markup-language>
<ml-name>HTML</ml-name>
<ml-mime>text/html</ml-mime>
<page-list>
<default-page>
<uri>/Query1HTMLResults.jsp</uri>
</default-page>
</page-list>
</markup-language>
<code>Patty.Query1</code>
<init-parameter value="com.ibm.db2.jdbc.app.DB2Driver" name="driver"/>
<init-parameter value="pwd" name="password"/>
<init-parameter value="jdbc:db2:xxx" name="URL"/>
<init-parameter value="user" name="userID"/>
<init-parameter value="jdbc/jdbcdb2xxx" name="dataSourceName"/>
</servlet>
i did it but doesn't work!!!
Anybody can help me?
Thanks in advance.