Help on NL Exception

Hello All,
I'm trying to use IBM Tivoli datawarehouse using a RAC cluster. Tivoli use JDBC type 4 to connect to database. In the standard way, with:
Warehouse driver: oracle.jdbc.driver.OracleDriver
Warehouse URL: jdbc:oracle:thin:@host:1521:SID
works. In fact agent is able to connect to db. Now for using rac I've changed the URL with:
jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=itsm-cldb1a-vip)(PORT=1521))(ADDRESS=(PROTOCOL=TCP)(HOST=itsm-cldb1c-vip)(PORT=1521))(LOAD_BALANCE=yes)(CONNECT_DATA=(SERVICE_NAME=TDW.world)))
And in this way, when i try to connect I get:
SQLException: IO Exception: NL Exception - DB Connection failed.
Any hint?
Thanks
Stefano
http://www.stefanocislaghi.it/

Hi
DB is 10.2.0.1.0
Driver was bundleded with database install, so I think version is the same.
-rw-r----- 1 oracle oinstall 1536979 Jun 22 2005 ojdbc14.jar-rw-r----- 1 oracle oinstall 1536979 Jun 22 2005 ojdbc14.jar
Thanks
Ste

Similar Messages

  • Urgent Help Req.: Exception=ORABPEL-11162 Error while reading native data

    Hi All,
    I am getting below error: Exception=ORABPEL-11162
    Error while reading native data.
    [Line=6, Col=7|http://forums.oracle.com/forums/] Not enough data available in the input, when trying to read data of length "22" for "element with name PurOrderNum" from the specified position, using "style" as "fixedLength" and "length" as "22".
    Ensure that there is enough data from the specified position in the input.
    Let me also give you the brief scenario of what I am trying to achieve.
    INTERFACE FUNCTIONING:_
    I have an interface which reads the records in a file in a chunk through ChunkRead adapter and and after one successful reading if chunk it calls the DB adapter to insert the records in the table.
    Now these records are committed and next chunk is read and the process goes on till all the records are read.
    After this the API is called which does the processing of these records.
    Inserting records in the DB is a XA transaction which means if anything goes wrong while inserting the data, the records which are added earlier are rolled back.
    ISSUE:_
    Now the issue comes when I do the negative testing. Since my file is based on fixed length schema., I change the length of last record from 15 to 13. (say total are 10 records)
    Now what happens is when chunkread tries to read the record of 15 length it gets only 13 characters and hence ignores the records.
    But the chunkread reads all other 9 records correctly and sends this to DB adapter which now inserts them correctly in the DB.
    But being a global transaction I want that if any record is missing from DB in comparison to those in file then whole transaction should roll back.
    So I am unable to make this whole process as global transaction. This is because the ChunkRead adapter inspite of detecting the error doesn’t throw it back.
    Moreover if this problem occurs in say next chunk then also I am unable to find out how to rollback the whole transaction. Because the first chunk was correct.
    So basically two concerns are there:+
    How to detect that chunkread adapter has missed one record?+
    Secondly, If it’s detected then how should I rollback the transaction that caused earlier records to enter into database?+
    Please let me know if anyone has faced this issue earlyer and how it got resolved. Any pointers regarding this would be of great help.
    Also attached is the chunkread log for reference.
    <MESSAGE>
    <HEADER>
    <TSTZ_ORIGINATING>2008-10-06T09:23:58.466-04:00</TSTZ_ORIGINATING>
    <COMPONENT_ID>tip</COMPONENT_ID>
    <MSG_TYPE TYPE="TRACE"></MSG_TYPE>
    <MSG_LEVEL>16</MSG_LEVEL>
    <HOST_ID>usmlrh01.xyz.com</HOST_ID>
    <HOST_NWADDR>192.168.245.39</HOST_NWADDR>
    <MODULE_ID>esb.server.service.impl.inadapter</MODULE_ID>
    <THREAD_ID>57</THREAD_ID>
    <USER_ID>orasoa</USER_ID>
    </HEADER>
    <CORRELATION_DATA>
    <EXEC_CONTEXT_ID><UNIQUE_ID>192.168.245.39:29832:1223297491683:44</UNIQUE_ID><SEQ>130</SEQ></EXEC_CONTEXT_ID>
    </CORRELATION_DATA>
    <PAYLOAD>
    <MSG_TEXT>JCA: FileRejector::rejectTextualMessage errList=[oracle.tip.pc.services.translation.xlators.nxsd.ErrorList@a5213b]</MSG_TEXT>
    </PAYLOAD>
    </MESSAGE>
    <MESSAGE>
    <HEADER>
    <TSTZ_ORIGINATING>2008-10-06T09:23:58.466-04:00</TSTZ_ORIGINATING>
    <COMPONENT_ID>tip</COMPONENT_ID>
    <MSG_TYPE TYPE="TRACE"></MSG_TYPE>
    <MSG_LEVEL>16</MSG_LEVEL>
    <HOST_ID>usmlrh01.xyz.com</HOST_ID>
    <HOST_NWADDR>192.168.245.39</HOST_NWADDR>
    <MODULE_ID>esb.server.service.impl.inadapter</MODULE_ID>
    <THREAD_ID>57</THREAD_ID>
    <USER_ID>orasoa</USER_ID>
    </HEADER>
    <CORRELATION_DATA>
    <EXEC_CONTEXT_ID><UNIQUE_ID>192.168.245.39:29832:1223297491683:44</UNIQUE_ID><SEQ>130</SEQ></EXEC_CONTEXT_ID>
    </CORRELATION_DATA>
    <PAYLOAD>
    <MSG_TEXT>JCA: FileRejector::rejectTextualMessage badCount=[1]</MSG_TEXT>
    </PAYLOAD>
    </MESSAGE>
    <MESSAGE>
    <HEADER>
    <TSTZ_ORIGINATING>2008-10-06T09:23:58.467-04:00</TSTZ_ORIGINATING>
    <COMPONENT_ID>tip</COMPONENT_ID>
    <MSG_TYPE TYPE="TRACE"></MSG_TYPE>
    <MSG_LEVEL>1</MSG_LEVEL>
    <HOST_ID>usmlrh01.xyz.com</HOST_ID>
    <HOST_NWADDR>192.168.245.39</HOST_NWADDR>
    <MODULE_ID>esb.server.service.impl.inadapter</MODULE_ID>
    <THREAD_ID>57</THREAD_ID>
    <USER_ID>orasoa</USER_ID>
    </HEADER>
    <CORRELATION_DATA>
    <EXEC_CONTEXT_ID><UNIQUE_ID>192.168.245.39:29832:1223297491683:44</UNIQUE_ID><SEQ>130</SEQ></EXEC_CONTEXT_ID>
    </CORRELATION_DATA>
    <PAYLOAD>
    <MSG_TEXT>JCA: Rejecting message fileName=/rh01/s01/n01/Distributions/B2B/Gentran/In/855/Test.txt, startLine=4, startColumn=1, endLine=-1, endCol=-1, Exception=ORABPEL-11162
    Error while reading native data.
    [Line=6, Col=7] Not enough data available in the input, when trying to read data of length "22" for "element with name PurOrderNum" from the specified position, using "style" as "fixedLength" and "length" as "22".
    Ensure that there is enough data from the specified position in the input.
    }</MSG_TEXT>
    </PAYLOAD>
    </MESSAGE>
    PFB the version details :
    SOA suite version : 10.1.3.3.1 and JDEV : 10.1.3.3
    Edited by: SOA Team on Oct 6, 2008 10:48 PM

    Just a thought, you could set the terminator for the last field as {eol} instead of length, this means that it should read the last field regardless of the length.
    Depending on the logic of Db adapter the error could be traped due to incorrect length.
    If the file starts each row with a constant(s), e.g. 01 then you can terminate the previous line on that, this is the better option but relys on the file format.
    The other option is a little thing call compensation, ouch. Basically this allows you to back out commited rows but you have to provide all the logic, it is generally something people avoid because of the complexity.
    cheers
    James

  • [Help] Weblogic throws exception under load testing

    Hello All,
    I have developed an application using struts 1.1 framework and deployed
    it on weblogic 8.1. The application works fine. But when we load test
    the application, weblogic throws an exception. I am not able to
    understand why is weblogic throwing this exception. The exception
    doesn't originate from my code
    I am using struts 1.1 on BEA weblogic 8.1 on HP-UX 11i.
    Please help me ... I will be very gratefull for your help.
    Here is the stack trace :
    <Jan 15, 2004 10:02:28 PM IST> <Error> <HTTP> <BEA-101020>
    <[ServletContext(id=28318025,name=testWebApp,context-path=/testWebApp)]
    Servlet failed with Exception java.lang.NullPointerException
    at
    weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(Se
    rvle
    tStubImpl.java:1053)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.
    java
    :387)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.
    java
    :305)
    at
    weblogic.servlet.internal.RequestDispatcherImpl$ForwardAction.run(Reques
    tDis
    patcherImpl.java:382)
    at
    weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSu
    bjec
    t.java:317)
    at
    weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118
    at
    weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatche
    rImp
    l.java:286)
    at
    org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.jav
    a:10
    69)
    at
    org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProc
    esso
    r.java:274)
    at
    org.apache.struts.action.RequestProcessor.processForwardConfig(RequestPr
    oces
    sor.java:455)
    at
    org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(Tiles
    Requ
    estProcessor.java:320)
    at
    org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:
    279)
    at
    org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
    at
    org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at
    weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(Se
    rvle
    tStubImpl.java:1053)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.
    java
    :387)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.
    java
    :305)
    at
    weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.r
    un(W
    ebAppServletContext.java:6310)
    at
    weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSu
    bjec
    t.java:317)
    at
    weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118
    at
    weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServl
    etCo
    ntext.java:3622)
    at
    weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.
    java
    :2569)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
    Regards,
    Abhishek.

    Hello All,
    I have developed an application using struts 1.1 framework and deployed
    it on weblogic 8.1. The application works fine. But when we load test
    the application, weblogic throws an exception. I am not able to
    understand why is weblogic throwing this exception. The exception
    doesn't originate from my code
    I am using struts 1.1 on BEA weblogic 8.1 on HP-UX 11i.
    Please help me ... I will be very gratefull for your help.
    Here is the stack trace :
    <Jan 15, 2004 10:02:28 PM IST> <Error> <HTTP> <BEA-101020>
    <[ServletContext(id=28318025,name=testWebApp,context-path=/testWebApp)]
    Servlet failed with Exception java.lang.NullPointerException
    at
    weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(Se
    rvle
    tStubImpl.java:1053)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.
    java
    :387)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.
    java
    :305)
    at
    weblogic.servlet.internal.RequestDispatcherImpl$ForwardAction.run(Reques
    tDis
    patcherImpl.java:382)
    at
    weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSu
    bjec
    t.java:317)
    at
    weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118
    at
    weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatche
    rImp
    l.java:286)
    at
    org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.jav
    a:10
    69)
    at
    org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProc
    esso
    r.java:274)
    at
    org.apache.struts.action.RequestProcessor.processForwardConfig(RequestPr
    oces
    sor.java:455)
    at
    org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(Tiles
    Requ
    estProcessor.java:320)
    at
    org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:
    279)
    at
    org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
    at
    org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at
    weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(Se
    rvle
    tStubImpl.java:1053)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.
    java
    :387)
    at
    weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.
    java
    :305)
    at
    weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.r
    un(W
    ebAppServletContext.java:6310)
    at
    weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSu
    bjec
    t.java:317)
    at
    weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118
    at
    weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServl
    etCo
    ntext.java:3622)
    at
    weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.
    java
    :2569)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
    Regards,
    Abhishek.

  • Can somebody Pls Help 500 Servlet Exception:

    I am rather new to java prog and have the following problem.
    How do I resolve?All I knw is that the resource bundle is not been read.Where do i go from there.Help!!!
    500 Servlet Exception
    java.lang.NullPointerException
    at ui.error__jsp._jspService(/SSO/ui/error.jsp:14)
    at com.caucho.jsp.JavaPage.service(JavaPage.java:74)
    at com.caucho.jsp.Page.subservice(Page.java:485)
    at com.caucho.server.http.FilterChainPage.doFilter(FilterChainPage.java:179)
    at com.caucho.server.http.Invocation.service(Invocation.java:288)
    at com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:132)
    error.jsp contains the following:
    <%@page language="java" session="false" import="com.infy.bbu.sso.common.SSOConstants, java.util.ResourceBundle, com.infy.bbu.sso.utils.SSOResourceManager, com.infy.bbu.sso.config.SSOConfig"%>
    <%@ page contentType="text/html; charset=utf-8" %>
    <%
    String langCode = request.getParameter(SSOConstants.PARAM_LANG);
    SSOResourceManager manager = new SSOResourceManager();
    if(SSOConfig.isEmpty()) SSOConfig.loadConfig();
    ResourceBundle rb = manager.getResourceBundle(application, SSOConfig.get(SSOConstants.SSO_RB_APP_NAME),langCode);
    %>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
    <title><%=rb.getString("SSO_ERROR_PAGE_TITLE")%></title>
    <script type='text/javascript' src='javascripts/ssodomain.js'></script>
    <script type='text/javascript' src='javascripts/SSOUIProperties_<%=langCode%>.js'></script>
    <link rel="stylesheet" href="sso.css">
    </head>
    <body>
    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="dummy" vspace="0" hspace="0">
    <tr bgcolor="#000000">
    <td height="22"><img src="images/adminbanner.jpg" width="353" height="52" vspace="0" hspace="0" border="0"></td>
    </tr>
    </table>
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td>
    <h1> </h1>
    </td>
    <td>
    <h1><br>
    </h1>
    <span class="tabletext"> <%= request.getParameter(SSOConstants.PARAM_ERROR_MSG)%><BR>
    <BR><a href="INFENG/LoginPage.jsp?<%=SSOConstants.PARAM_LANG%>=<%=langCode%>">Login</a>
    </span></td>
    </tr>
    </table>
    </body>
    </html>
    at com.caucho.server.http.ServletServer.serviceTop(ServletServer.java:937)
    at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:213)
    at com.caucho.server.http.HttpRequest.handleConnection(HttpRequest.java:158)
    at com.caucho.server.TcpConnection.run(TcpConnection.java:140)
    at java.lang.Thread.run(Thread.java:534)
    Resin 2.0.5 (built Fri Jan 11 08:29:05 PST 2002)
    line 14 is in bold.

    sorry about that.It's just that I need to resolve
    this problem and need whatever help I can get.No. That is no reason for you to multipost.
    Do try and think about others sometimes. I mean really. Are you paying for support from this site? No. Then just be fucking patient please.

  • Urgent help with an exception !!

    Hi I Use a java class to calculate some data.
    This java class is called from a jsp page and first I create a Object from the class (and the constructor method is been called). In this constructor I recive (from the jsp page) a String[][] and other diferent values, but in this method I "copy" the String[][] I have passed to a Double [][] variable (defined like global) and I obtain an exception when the Sting[][] variable contains null vales. But I think I am treating that subject:
    JAVA CLASS:
    public class Functions_AEMult{
        Double [][] datosA;
        public Functions_AEMult( String [][] TablaFinal, String Frecuencia, String [] ValoresMult, HttpSession session)
            datosA = new Double[TablaFinal.length][2];
            for(int i = 0;i< TablaFinal.length;i++)
                if(null != TablaFinal[0])
    datosA [i][0] = new Double(TablaFinal[i][0]);
    if(null != TablaFinal[i][1])
    datosA [i][1] = new Double(TablaFinal[i][1]);
    The exception It gives me: ( In "[i]Functions_AEMult.java:884" the line is datosA [1] = new Double(TablaFinal[i][(j+1)]); )
    type Informe de Excepci�n
    mensaje
    descripci�n El servidor encontr� un error interno () que hizo que no pudiera rellenar este requerimiento.
    excepci�n
    org.apache.jasper.JasperException
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:372)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    causa ra�z
    java.lang.NullPointerException
         java.lang.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:980)
         java.lang.Double.valueOf(Double.java:202)
         java.lang.Double.<init>(Double.java:277)
         analisisEsp.Functions_AEMult.<init>(Functions_AEMult.java:884)
         org.apache.jsp.admin.PaleoPlot.show_jsp._jspService(show_jsp.java:928)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    nota La traza completa de la causa de este error se encuentra en los archivos de diario de Apache Tomcat/5.0.28.Some body can help me??
    thanks very much

    If you had some code comparing the entries for the String array to null, I would agree with you. But you don't. So you are calling new Double(null) and throwing that exception.Thanks for ur answer DrClap.
    when I do...
    if(null != TablaFinal[0])
    datosA [i][0] = new Double(TablaFinal[i][0]);
    if(null != TablaFinal[i][1])
    datosA [i][1] = new Double(TablaFinal[i][1]);
    I am comparing the entries for the String array to null, No?
    Thanks

  • Help:Extension Filters exception

    Hi All,
    A)I have included the detailed description of the steps followed.As a part of my new assignment i have been asked to upgrade to Tomahawk1.1.3.I am Websphere RAD to build my application.
    The application uses custom components <t:inputCalendar> and <tanelTabbedPane>.The application worked properly with Tomahawk1.1.1 but once i have upgraded to Tomahawk1.1.3 i am getting the error message "This portlet is unavailable".
    Please note i have used jsf-api.jar(version 1.1) and jsf-impl.jar and not myfaces-all.jar(myfaces-api.jar and myfaces-impl.jar)
    B)I have also configured the extension filter in my web.xml file.
    <filter>
    <filter-name>extensionsFilter</filter-name>
    <filter-class>org.apache.myfaces.component.html.util.ExtensionsFilter</filter-class>
    <init-param>
    <param-name>uploadMaxFileSize</param-name>
    <param-value>100m</param-value>
    <description>Set the size limit for uploaded files.
    Format: 10 - 10 bytes
    10k - 10 KB
    10m - 10 MB
    1g - 1 GB</description>
    </init-param>
    <init-param>
    <param-name>uploadThresholdSize</param-name>
    <param-value>100k</param-value>
    <description>Set the threshold size - files below this limit are stored in memory, files above this limit are stored on disk.
    Format: 10 - 10 bytes
    10k - 10 KB
    10m - 10 MB
    1g - 1 GB</description>
    </init-param>
    </filter>
    <filter-mapping>
    <filter-name>extensionsFilter</filter-name>
    <url-pattern>/*</url-pattern>
    </filter-mapping>
    C)But when i run the application i get the exception in the console as:
    Nested Exception is java.lang.IllegalStateException: ExtensionsFilter not correctly configured. JSF mapping missing. JSF pages not covered. Please see: http://myfaces.apache.org/tomahawk/extensionsFilter.html.
    Please help me trouble shooting.What additional configurations do i need to make this application run.

    Hi,
    Thanks for your reply.
    But if i use the servlet declaration the i get the same error:
    Caused by: java.lang.IllegalStateException: ExtensionsFilter not correctly configured. JSF mapping missing. JSF pages not covered. Please see: http://myfaces.apache.org/tomahawk/extensionsFilter.html
    Are there any other alteratives.Is there a problem because i am using jsf-api.jar and jsf-impl.jar instead of myfaces-api and myfaces-impl.jar.
    You suggestions are always welcome.
    Regards,
    Pals

  • Help with nullPointer exception

    Hi,
    I would like some help identifying and error in the code below. Im getting a nullPointer exception at the location specified in the code. Im adding elements to a tableModel. What puzzles me is that the strings I add to the model does contain values. And it does not complain about adding them. Perhaps this is just a simple error, and you more experinced programmars are probably loughing at me ;)
    void getTests() {
          String[] idNummer = getDirectory(); //gets filenames from a directory
          for (int i = 0; i < idNummer.length; i++) {
             idNummer[i] = idNummer.substring(idNummer[i].lastIndexOf(dataSeparetor) + 1, idNummer[i].length());
    // just sorts out specific parts of the filenames
    for (int i = 0; i < idNummer.length; i ++) {
    System.out.println(idNummer[i]); //I print the sorted filenames and they not null
    testModel.addElement(idNummer[i]); //I add them to the table model
    testNr.setModel(testModel); //and gets a nullPoint exception here??

    I'm sorry, you mean testNr. Don't pay any attention to the above post. it is also declared directly in the class:
    public class GUI extends JFrame implements EventListener  {
      JList testModel;
    }and creates an instance here:
    public GUI {
    testModel = new DefaultListModel();
    getTests();
    testNr = new JList(testModel);
          testNr.setSelectionMode(ListSelectionModel.SINGLE_INTERVAL_SELECTION);
          testNr.setLayoutOrientation(JList.VERTICAL);
          testNr.setPreferredSize(new Dimension(80, 80));
          testNr.addListSelectionListener(new ListSelectionListener() {
             public void valueChanged(ListSelectionEvent event) {
          leftPanel.add(testNr, BorderLayout.EAST);
    }

  • Help! NameAlreadyBound Exception, JNDI name conflict

    Hi, I am using EJB 3.0 and I really have no idea on using JNDI. I read several queries and answers on this problem but I dont know how to solve it. When i go to ejb-jar.xml, I see very little information. Please help! Urgently needed. Any ideas will do, thanks!
    EJB5090: Exception in creating EJB container [javax.naming.NameAlreadyBoundException: Use rebind to override]
    appId=ESCM moduleName=ESCM-ejb_jar ejbName=SystemfunctionBean
    LDR5012: Jndi name conflict found in [ESCM]. Jndi name [AHL.SystemfunctionRemote] for bean [SystemfunctionBean] is already in use.
    LDR5013: Naming exception while creating EJB container:
    javax.naming.NameAlreadyBoundException: Use rebind to override
    at com.sun.enterprise.naming.TransientContext.doBindOrRebind(TransientContext.java:279)
    at com.sun.enterprise.naming.TransientContext.bind(TransientContext.java:219)
    at com.sun.enterprise.naming.SerialContextProviderImpl.bind(SerialContextProviderImpl.java:98)
    at com.sun.enterprise.naming.LocalSerialContextProviderImpl.bind(LocalSerialContextProviderImpl.java:77)
    at com.sun.enterprise.naming.SerialContext.bind(SerialContext.java:372)
    at com.sun.enterprise.naming.SerialContext.bind(SerialContext.java:387)
    at javax.naming.InitialContext.bind(InitialContext.java:363)
    at com.sun.enterprise.naming.NamingManagerImpl.publishObject(NamingManagerImpl.java:215)
    at com.sun.enterprise.naming.NamingManagerImpl.publishObject(NamingManagerImpl.java:168)
    at com.sun.ejb.containers.BaseContainer.initializeHome(BaseContainer.java:948)
    at com.sun.ejb.containers.StatelessSessionContainer.initializeHome(StatelessSessionContainer.java:220)
    at com.sun.ejb.containers.ContainerFactoryImpl.createContainer(ContainerFactoryImpl.java:671)
    at com.sun.enterprise.server.AbstractLoader.loadEjbs(AbstractLoader.java:490)
    at com.sun.enterprise.server.ApplicationLoader.load(ApplicationLoader.java:184)
    at com.sun.enterprise.server.TomcatApplicationLoader.load(TomcatApplicationLoader.java:113)
    at com.sun.enterprise.server.ApplicationManager.applicationDeployed(ApplicationManager.java:322)
    at com.sun.enterprise.server.ApplicationManager.applicationDeployed(ApplicationManager.java:216)
    at com.sun.enterprise.server.ApplicationManager.applicationDeployed(ApplicationManager.java:189)
    at com.sun.enterprise.server.ApplicationManager.applicationEnabled(ApplicationManager.java:754)
    at com.sun.enterprise.admin.event.AdminEventMulticaster.invokeApplicationDeployEventListener(AdminEventMulticaster.java:914)
    at com.sun.enterprise.admin.event.AdminEventMulticaster.handleApplicationDeployEvent(AdminEventMulticaster.java:892)
    at com.sun.enterprise.admin.event.AdminEventMulticaster.processEvent(AdminEventMulticaster.java:445)
    at com.sun.enterprise.admin.event.AdminEventMulticaster.multicastEvent(AdminEventMulticaster.java:160)
    at com.sun.enterprise.admin.server.core.AdminNotificationHelper.sendNotification(AdminNotificationHelper.java:128)
    at com.sun.enterprise.admin.server.core.ConfigInterceptor.postInvoke(ConfigInterceptor.java:109)
    at com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java:97)
    at $Proxy1.invoke(Unknown Source)
    at com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.invoke(SunoneInterceptor.java:297)
    at com.sun.enterprise.admin.jmx.remote.server.callers.InvokeCaller.call(InvokeCaller.java:56)
    at com.sun.enterprise.admin.jmx.remote.server.MBeanServerRequestHandler.handle(MBeanServerRequestHandler.java:142)
    at com.sun.enterprise.admin.jmx.remote.server.servlet.RemoteJmxConnectorServlet.processRequest(RemoteJmxConnectorServlet.java:109)
    at com.sun.enterprise.admin.jmx.remote.server.servlet.RemoteJmxConnectorServlet.doPost(RemoteJmxConnectorServlet.java:180)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:397)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:184)
    at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:174)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:216)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:184)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:276)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
    at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:240)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:179)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
    at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:182)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
    at com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:120)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137)
    at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
    at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:239)
    at com.sun.enterprise.web.connector.grizzly.ProcessorTask.invokeAdapter(ProcessorTask.java:667)
    at com.sun.enterprise.web.connector.grizzly.ProcessorTask.processNonBlocked(ProcessorTask.java:574)
    at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:844)
    at com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:287)
    at com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:212)
    at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)
    at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:75)
    CORE5021: Application NOT loaded: [ESCM]

    12/May/2004:16:59:13] SEVERE ( 4516): LDR5012: Jndi name conflict found in [billerCenter_EJBModule]. Jndi name [ejb/Billercenter] for bean [billerCenter] is already in use.
    If you look at your deployment descriptor which should be ejb-jar.xml you s hould have more than 1 jndi entries which are identical for more than 1 ejbs ..

  • Help identifiying this exception

    Hello.
    I've been working on a project for a while now, that deals with displaying a set of JPGs from a server, then swapping those images with new images, and displaying those. However, I just came across an exception error that I have never got before and have no clue where to start looking. This is exactly what it says:
    Java(TM) Plug-in: Version 1.4.2_01
    Using JRE version 1.4.2_01 Java HotSpot(TM) Client VM
    Uncaught error fetching image:
    java.lang.NullPointerException
         at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
         at sun.plugin.net.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
         at sun.awt.image.URLImageSource.getDecoder(Unknown Source)
         at sun.awt.image.InputStreamImageSource.doFetch(Unknown Source)
         at sun.awt.image.ImageFetcher.fetchloop(Unknown Source)
         at sun.awt.image.ImageFetcher.run(Unknown Source)Any ideas? Within the function that loads it and everything, I would call gc() to help my memory managemtn. I first thought that perhaps the gc() was deleting it before it would show it. Yet, I took it out, and it still shows up.
    Thanks for ANY help or suggestions on where I could start looking

    Ok, so I have an array of images called img[]. I do the following to add an image to the array:
    img[i] = getImage(getCodeBase(), images[current_img+i]);
    tracker.addImage(img,0);
    so, I added a few lines to check if it was null, like you said
    if(img[i] != null) {
         g.drawImage(img, 0, 35, this);
    Is that what you were referring to, or were you suggesting a different method. And thanks for all the tips guys! Its giving me someplace to start with.

  • Help Regarding OutOfMemoryError Exception

    Hello,
    I am trying to write a small program, which downloads all images returned by a google image search. First when I give a query like "tiger" to search, it downloads the images numbering till 684. The download of images count start from 0. My code proceeds till 684 (the 684 images are downloaded and saved on my desktop). But here the OutOfMemoryError is being thrown my JVM
    Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
    But still there are images that have to be saved by the my program.
    Can any please help how to overcome this exception.
    Thank you,
    Chaitanya

    Thx a lot for the response. Can you please eloborate the explanation for "downloading the image a bit and then saving it to disk." Below I am providing the code which downloads the image when URL is given.
    try{
    imageio = ImageIO.read(new URL(allLinks[image]));
    image_title = filename_tosave + image + "." + image_setA[image];
    img = ImageIO.write(imageio,image_setA[image], new File(image_title)); //intelligent and saves in format it finds.
    // image_title = "google_image" + image + ".jpg";
    //img = ImageIO.write(imageio,"jpg", new File(image_title)); //saves all formats into only jpg..
    }catch(Exception e){
    System.out.println("The exception is: " + e + " " +allLinks[image]);
    if(img){
    System.out.println("The image " + image_title + " has been saved to local disk succesfully.");
    allLinks[image] is an array which contains all URL and the above code runs under a for loop.
    Please explain how to change the above code as per your explanation.
    Thanks in advance,
    Chaitanya

  • Help debugging POF exception

    Hi,
    We're just coming to the end of a rather big project and have just replaced some legacy APIs used by the firm's website with APIs that talk to Coherence.
    We've had live traffic hitting these services for a few days now, and have successfully processed millions of requests (yay!)
    As this has just gone live, I've been keeping a keen eye on server logs and noticed that I had an exception in my Proxy node logs to do with Pof Serialisation.
    I can make an API call that will cause this exception on our live servers, but it does not happen on our test system (same versions of code, different data :( )
    I was wondering if anyone had any success with debugging exception messages like this...
    2012-09-05 23:19:08,292 [Logger@9266502 3.7.1.5] DEBUG Coherence 2012-09-05 23:19:08.292/214382.610 Oracle Coherence GE 3.7.1.5 <D5> ...
    An exception occurred while processing a InvokeFilterRequest for Service=Proxy:ExtendTcpProxyService:TcpAcceptor ...
    Wrapped: Failed request execution for DistributedCache service on Member(Id=37 ... : null
    at com.tangosol.util.Base.ensureRuntimeException(Base.java:288)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.tagException(Grid.CDB:36)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache.onInvokeFilterRequest(PartitionedCach
    e.CDB:109)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$InvokeFilterRequest.run(PartitionedCa
    che.CDB:1)
    at com.tangosol.coherence.component.util.DaemonPool$WrapperTask.run(DaemonPool.CDB:1)
    at com.tangosol.coherence.component.util.DaemonPool$WrapperTask.run(DaemonPool.CDB:32)
    at com.tangosol.coherence.component.util.DaemonPool$Daemon.onNotify(DaemonPool.CDB:66)
    at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:42)
    at java.lang.Thread.run(Thread.java:619)
    at <process boundary>
    at com.tangosol.io.pof.ThrowablePofSerializer.deserialize(ThrowablePofSerializer.java:57)
    at com.tangosol.io.pof.PofBufferReader.readAsObject(PofBufferReader.java:3316)
    at com.tangosol.io.pof.PofBufferReader.readObject(PofBufferReader.java:2604)
    at com.tangosol.io.pof.ConfigurablePofContext.deserialize(ConfigurablePofContext.java:368)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.readObject(Service.CDB:1)
    at com.tangosol.coherence.component.net.Message.readObject(Message.CDB:1)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$QueryResponse.read(PartitionedCache.C
    DB:33)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.deserializeMessage(Grid.CDB:19)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.onNotify(Grid.CDB:31)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.PartitionedService.onNotify(PartitionedService.CDB:3)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache.onNotify(PartitionedCache.CDB:3)
    at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:42)
    at java.lang.Thread.run(Thread.java:619)
    Caused by: Portable(java.lang.NullPointerException)
    at <process boundary>
    at com.tangosol.io.pof.ThrowablePofSerializer.deserialize(ThrowablePofSerializer.java:57)
    at com.tangosol.io.pof.PofBufferReader.readAsObject(PofBufferReader.java:3316)
    at com.tangosol.io.pof.PofBufferReader.readObject(PofBufferReader.java:2604)
    at com.tangosol.io.pof.PortableException.readExternal(PortableException.java:150)
    at com.tangosol.io.pof.ThrowablePofSerializer.deserialize(ThrowablePofSerializer.java:59)
    at com.tangosol.io.pof.PofBufferReader.readAsObject(PofBufferReader.java:3316)
    at com.tangosol.io.pof.PofBufferReader.readObject(PofBufferReader.java:2604)
    at com.tangosol.io.pof.ConfigurablePofContext.deserialize(ConfigurablePofContext.java:368)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.readObject(Service.CDB:1)
    at com.tangosol.coherence.component.net.Message.readObject(Message.CDB:1)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$QueryResponse.read(PartitionedCache.C
    DB:33)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.deserializeMessage(Grid.CDB:19)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.onNotify(Grid.CDB:31)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.PartitionedService.onNotify(PartitionedService.CDB:3)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache.onNotify(PartitionedCache.CDB:3)
    at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:42)
    at java.lang.Thread.run(Thread.java:619)
    The only way I think I can get to the bottom of this is by debugging some storage and proxy nodes locally and then loading them with the current set of live data (which is a pain) - then I will set exception breakpoints and see if anything on the stack gives me a clue as to what is going wrong :(
    I have looked through the code and cannot see any place where I could be causing a NPException... (I might have missed something - but the code isn't really that complicated)
    Does anyone have any tips for debugging this sort of thing (our POF serialisers have been in production for over a year now without any problem like this)?
    It would be nice if Coherence logged the POF type number of the thing it was trying to serialise / deseralise when this exception occurs...
    Thanks in advance for any advice!
    -Bret

    Think I got to the bottom of it (had to debug against live data)
    Would be nice if the error message was more helpful...

  • Guys- if u can please help me this exception error...

    guys- this is an assignment for school and i bet there is something that u may consider soooo stupid but i am a beginner and i really dont know how to proceed....
    i have installed tomcat 5.0.12 on my windows xp.
    my java is 2se .
    i have created several serlet pages. in one of them i am suppose to upload a file using multipart-form/data .
    i have imported the related package contains the com.oreilly.servlet.MultipleRequest ( assignment requirement)
    and i had put it in Java2SE\jre\lib\ext directory ( its a jar file)
    i have compile the code with NetBeans IDE 3.5.1 with no errors.
    this is the code for the class Upload ( wich is a servlet):
    import java.io.*;
    import java.lang.*;
    import java.util.*;
    import java.net.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import com.oreilly.servlet.MultipartRequest;
    public class Upload extends HttpServlet
    public void doPost(HttpServletRequest req, HttpServletResponse res)throws ServletException, IOException
    res.setContentType("text/html");
    PrintWriter out = res.getWriter();
    try
    // Blindly take it on faith this is a multipart/form-data request
    // Construct a MultipartRequest to help read the information.
    // Pass in the request, a directory to save files to, and the
    // maximum POST size we should attempt to handle.
    // Here we (rudely) write to /tmp and impose a 50 K limit.
    MultipartRequest multi =
    new MultipartRequest(req, "D:/Progrem Files/Tomcat/jakarta-tomcat-5.0.12/webapps/ROOT/tmp", 100 * 1024,
    new com.oreilly.servlet.multipart.DefaultFileRenamePolicy());
    out.println("<HTML>");
    out.println("<HEAD><TITLE>UploadTest</TITLE></HEAD>");
    out.println("<BODY>");
    out.println("<H1>UploadTest</H1>");
    // Print the parameters we received
    out.println("<H3>Params:</H3>");
    out.println("<PRE> bla ");
    Enumeration params = multi.getParameterNames();
    while (params.hasMoreElements())
    String name = (String)params.nextElement();
    String value = multi.getParameter(name);
    out.println(name + " = " + value);
    out.println("</PRE> bla bla ");
    // Show which files we received
    out.println("<H3>Files:</H3>");
    out.println("<PRE> bla bla bla");
    Enumeration files = multi.getFileNames();
    while (files.hasMoreElements())
    String name = (String)files.nextElement();
    String filename = multi.getFilesystemName(name);
    String original = multi.getOriginalFileName(name);
    String type = multi.getContentType(name);
    File f = multi.getFile(name);
    out.println("name: " + name);
    out.println("filename: " + filename);
    if (filename != null && !filename.equals(original))
    out.println("original file name: " + original);
    out.println("type: " + type);
    if (f != null)
    out.println("length: " + f.length());
    out.println();
    out.println("</PRE> 4 bla");
    catch (Exception e)
    out.println("<PRE> error bla bla");
    e.printStackTrace(out);
    out.println("</PRE> error bla bla");
    out.println("</BODY> yoyoyoyoyoyoyoyoyo </HTML>");
    however, when i invoke the servlet , it gives me the following error:
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    javax.servlet.ServletException: Servlet execution threw an exception
    root cause
    java.lang.NoClassDefFoundError: javax/servlet/ServletRequest
         com.oreilly.servlet.MultipartRequest.(MultipartRequest.java:222)
         com.oreilly.servlet.MultipartRequest.(MultipartRequest.java:151)
         Upload.doPost(Upload.java:23)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    note The full stack trace of the root cause is available in the Tomcat logs.
    2003-10-25 12:46:00 StandardWrapperValve[Upload]: Servlet.service() for servlet Upload threw exception
    java.lang.NoClassDefFoundError: javax/servlet/ServletRequest
         at com.oreilly.servlet.MultipartRequest.<init>(MultipartRequest.java:222)
         at com.oreilly.servlet.MultipartRequest.<init>(MultipartRequest.java:151)
         at Upload.doPost(Upload.java:23)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:284)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:204)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:563)
         at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:245)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:199)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:563)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:195)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:164)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:563)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:156)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:563)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:972)
         at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:209)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:670)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:517)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:575)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:666)
         at java.lang.Thread.run(Thread.java:534)
    well- this is all the information i can give you- please help me with this...by the way the same code was installed on unix machine in my school and it was working properly. i dont know if it means anything..
    all help will be much welcomed and appriciated..
    thank you in advance
    Tino

    When you see this:
    java.lang.NoClassDefFoundError: javax/servlet/ServletRequestit means you've got a CLASSPATH problem.
    The unfortunate thing is that javax.servlet.ServletRequest is in the TOMCAT_HOME/common/lib/servlet.jar. Sounds like you didn't install Tomcat properly.
    Why are you using Tomcat 5.0.12 instead of the stable production version 4.1.27? If you're just a beginner, I'll bet you're not using the features in the latest JSP spec. (You don't even know the old spec yet.) I'd recommend that you uninstall Tomcat 5.0.12 and put up 4.1.27 instead.
    '...I had put it in Java2SE\jre\lib\ext directory ( its a jar file)...' - this is a terrible idea, in my opinion. Do NOT put that JAR in that directory. You should put it in your WEB-INF/lib directory.
    "...Blindly take it on faith this is a multipart/form-data request..." - faith is for religion, not science. This is computer science.

  • Help with these Exceptions!

    Hello All,
    when the code below is run and I select a table name that starts with the number 0 I get a Eception, which is fine but when I click back into the combobox where I have the Table name that sarts with the number 0,
    it Thows that Exception again. How can I get my code to only thow that exception once?
    Someone suggested to use the getId() for the Action event will do this. I have tried to find out how to use this but was unsucessfull. Please could someone help me?
    Thanks
    Dave
    import javax.swing.*;
    import javax.swing.table.*;
    import java.awt.event.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.sql.*;
    public class ComboBoxTable{
    static Connection conn2;
       static DatabaseMetaData DMD;
       static JComboBox group = new JComboBox();
       static JComboBox groupList = new JComboBox();
      public static void main(String[] args) {
    try  {
              // Load the database driver
            Class.forName( "sun.jdbc.odbc.JdbcOdbcDriver" ) ;
            conn2 = DriverManager.getConnection( "jdbc:odbc:myProject") ;
            DMD=conn2 .getMetaData();
            ResultSet rs=DMD.getTables(null,null,null,new String[]{"TABLE"});
            while(rs.next()) {
              group.addItem((String)rs.getString(3));
            rs.close() ;
         } catch (SQLException se ) {
            System.out.println( "SQL Exception: " + se ) ;
         } catch (Exception e ) {
            System.out.println( e ) ;
         group.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent e)  {
              String tbl = (String)group.getSelectedItem();
              try {
                    Statement st=conn2.createStatement();
                 st.execute("SELECT * FROM "+tbl+" WHERE 1=0");
                 ResultSet rs=st.getResultSet();
                 ResultSetMetaData md=rs.getMetaData();
                 groupList.removeAllItems();
                 for (int i=1;i<=md.getColumnCount();i++) {
                   groupList.addItem(md.getColumnName(i));
                 st.close() ;
              } catch (SQLException se ) {
                 System.out.println( "SQL Exception: " + se ) ;
              } catch (Exception ex ) {
                 System.out.println( ex ) ;
    int j=10;
          String[][] data = new String[j][2];
          for (int k=0; k<j; k++){
             String[] row = {"",""};
             data[k] = row;
        String[] colNames = {"Column A", "Column B"};
        JTextField jtf = new JTextField();
        JTable tbl = new JTable(data, colNames);
    // Create the combo box editor
        DefaultCellEditor editor = new DefaultCellEditor(groupList);
    // ADDED IN MY ATTEMPT TO HAVE TO COLUMNS WITH COMBOBOXES
        DefaultCellEditor editor2 = new DefaultCellEditor(group);
    // Assign the editor to the second column
        TableColumnModel tcm = tbl.getColumnModel();
        tcm.getColumn(0).setCellEditor(editor2);
    // ADDED
        tcm.getColumn(1).setCellEditor(editor);
    // Set column widths
        tcm.getColumn(0).setPreferredWidth(200);
        tcm.getColumn(1).setPreferredWidth(100);
    // Set row heighht
        tbl.setRowHeight(20);
        tbl.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
        tbl.setPreferredScrollableViewportSize(tbl.getPreferredSize());
         JFrame f = new JFrame("ComboBoxDemo");
        f.getContentPane().add(new JScrollPane(tbl), "Center");
        f.pack();
        f.addWindowListener(new WindowAdapter() {
          public void windowClosing(WindowEvent evt) {
             System.exit(0);
        f.setVisible(true);
    }

    If you can predict an exception with such certainty, you should put some sanity checking in your code to prevent the the exception from ever occurring.

  • Help with an exception when trying to establish a socket connection

    i am trying to make a chat (using an applet for the client).......
    it uses an simple socket connection between the server and clients.....when i connect the client to address 127.0.0.1 or localhost everything works fine, but when i try to connect the client to my DNS name or ip, i get an exception....the exception reads:
    java.security.AccessControlException: access denied (java.net.SocketPermission nextwave.dyndns.org resolve)
    at java.security.AccessControlContext.checkPermission(AccessControlContext.java:270)
    at java.security.AccessController.checkPermission(AccessController.java:401)
    at java.lang.SecurityManager.checkPermission(SecurityManager.java:542)
    at java.lang.SecurityManager.checkConnect(SecurityManager.java:1042)
    at java.net.InetAddress.getAllByName0(InetAddress.java:937)
    at java.net.InetAddress.getAllByName0(InetAddress.java:918)
    at java.net.InetAddress.getAllByName(InetAddress.java:912)
    at java.net.InetAddress.getByName(InetAddress.java:832)
    at java.net.InetSocketAddress.<init>(InetSocketAddress.java:109)
    at java.net.Socket.<init>(Socket.java:119)
    at Client.<init>(Client.java:42)
    at ClientApplet.init(ClientApplet.java:12)
    at sun.applet.AppletPanel.run(AppletPanel.java:347)
    at java.lang.Thread.run(Thread.java:536)
    what is this all about??????
    i'm not that fluent in java, or networking at that, but i'm sure there is something i can do to fix this......
    any help would be greatley appreciated.

    this is why i am not heart-broken that i will be going the other (executable jar) route.......the major deciding factor is the people who will be using this chat will most likley not be able to edit the policy file due to lack of knowledge, and probably won't want to take the time to try.....they would rather download a program, and double-click execute........
    i thank you for taking the time to help me......i have been reading through the posts in this forum, and am seeing it is a good place to get help, so i will be sticking around.....
    mahalo and happy java

  • Need help in Cursor exception

    Hi,
    I have a small code with implicit cursor to fetch rows from table unreadable_cards and then for each value fetched I lookup another table card_acnt for some values and update data in unreadable cards table. The code is as below
    declare
    v1 number;
    begin
    for v1 in (select engravedid from unreadable_cards where case_resolved=1)
    loop
    update unreadable_cards set serial_number = (select serial_number from card_account
    where ticketid = v1.engravedid)
    where engravedid = v1.engravedid;
    update unreadable_cards set case_resolved=2
    where case_resolved=1
    and serial_number is not null;
    end loop;
    exception
    when no_data_found then
    update unreadable_cards set case_resolved=22
    where ticketid = v1.engravedid;
    when too_many_rows then
    update unreadable_cards set case_resolved=23
    where ticketid = v1.engravedid;
    when others then
    update unreadable_cards set case_resolved=24
    where ticketid = v1.engravedid;
    end;
    Here I have problem writing values to the table as this error pops up for every reference to V1 in exception
    PLS-00487: Invalid reference to variable 'V1'
    I need to be able to raise all three exceptions within the loop so that v1 can be referenced and loop does not exit on encountering the exception and completes for every row fetched by cursor, so that I can track the status of each record on the basis of case_resolved value.
    Any help would be highly appreciated
    Thanks
    Saurabh

    Let me get that out of me.. I don't like your code
    First thing you need to know is, you are not going to hit NO_DATA_FOUND exception in a UPDATE statement. If a update did not modify any row it will not raise NO_DATA_FOUND exception. Check this out
    SQL> begin
      2    update emp set sal = sal+ 10 where 1=2;
      3  end;
      4  /
    PL/SQL procedure successfully completed.
    No exception there. So that is one thing you need to look at.
    Second thing I don't like the way you have used WHEN OTHERS exception. What are the exception you are looking at? You should not be having a when others without RAISE. It a bug in the code. You need to fix that.
    Assuming your logic behind assigning CASE_RESOLVED is like this.
    CASE_RESOLVED = 2   means you have found an exact match for your UNREADABLE_CARDS.ENGRAVEDID in CARD_ACCOUNT.TICKETID
    CASE_RESOLVED = 22 means you don't have a match for your UNREADABLE_CARDS.ENGRAVEDID in CARD_ACCOUNT.TICKETID
    CASE_RESOLVED = 23 means you have multiple match for your UNREADABLE_CARDS.ENGRAVEDID in CARD_ACCOUNT.TICKETID
    CASE_RESOLVED = 24 This does not make any sense. You need to drop this part.
    You can do this, You don't need all that PL/SQL. Just a simple SQL like this will do.
    merge into unreadable_cards x
    using (
            select a.engravedid
                 , max(b.serial_number) serial_number
                 , case when count(b.serial_number) = 1 then 2
                        when count(b.serial_number) = 0 then 22
                        when count(b.serial_number) > 1 then 23
                   end case_resolved
              from unreadable_cards a
              left
              join card_account b
                on a.engravedid = b.eticketid
             where a.case_resolved = 1
             group
                by a.engravedid
          ) y
       on (
            x.engravedid = y.engravedid
    when matched then
    update set x.serial_number = nvl(y.serial_number, x.serial_number)
              , x.case_resolved = y.case_resolved;
    Above is a untested code. But should work. If any minor error fix it and you should be good to go.

  • Help with this exception calling a WS

    Hello there, i have a stand alone java application that consume a WS deployed in a WLS.
    This call works before... i made some changes in the WS but to the logic not the methods signatures... now i have problems when i want to call... i get this weird Exception... can u help me please to understand it?
    Exception in thread "main" java.lang.ExceptionInInitializerError
         at weblogic.wsee.ws.init.WsDeploymentChain.newClientChain(WsDeploymentChain.java:24)
         at weblogic.wsee.ws.WsFactory.callClientListeners(WsFactory.java:113)
         at weblogic.wsee.ws.WsFactory.createClientService(WsFactory.java:46)
         at weblogic.wsee.jaxrpc.ServiceImpl.init(ServiceImpl.java:149)
         at weblogic.wsee.jaxrpc.ServiceImpl.<init>(ServiceImpl.java:117)
         at com.activacionbb.webservice.cliente.ActivacionWebServices_Impl.<init>(Unknown Source)
         at com.activacionbb.webservice.cliente.ActivacionWebServices_Impl.<init>(Unknown Source)
         at com.activacionbb.mq.Despachador.<init>(Despachador.java:29)
         at com.activacionbb.mq.Despachador.main(Despachador.java:53)
    Caused by: java.lang.ClassCastException: com.bea.xbean.values.XmlTokenImpl
         at weblogic.wsee.tools.wseegen.schemas.impl.ListenerTypeImpl.getListenerClass(ListenerTypeImpl.java:37)
         at weblogic.wsee.ws.init.WsConfigFactory.getDeploymentListenerConfig(WsConfigFactory.java:139)
         at weblogic.wsee.ws.init.WsConfigFactory.load(WsConfigFactory.java:110)
         at weblogic.wsee.ws.init.WsConfigFactory.newInstance(WsConfigFactory.java:59)
         at weblogic.wsee.ws.init.WsConfigFactory.newInstance(WsConfigFactory.java:45)
         at weblogic.wsee.ws.init.WsConfigManager.<clinit>(WsConfigManager.java:8)
         ... 9 more
    Thanx in advance!!

    Hello there, i have a stand alone java application that consume a WS deployed in a WLS.
    This call works before... i made some changes in the WS but to the logic not the methods signatures... now i have problems when i want to call... i get this weird Exception... can u help me please to understand it?
    Exception in thread "main" java.lang.ExceptionInInitializerError
         at weblogic.wsee.ws.init.WsDeploymentChain.newClientChain(WsDeploymentChain.java:24)
         at weblogic.wsee.ws.WsFactory.callClientListeners(WsFactory.java:113)
         at weblogic.wsee.ws.WsFactory.createClientService(WsFactory.java:46)
         at weblogic.wsee.jaxrpc.ServiceImpl.init(ServiceImpl.java:149)
         at weblogic.wsee.jaxrpc.ServiceImpl.<init>(ServiceImpl.java:117)
         at com.activacionbb.webservice.cliente.ActivacionWebServices_Impl.<init>(Unknown Source)
         at com.activacionbb.webservice.cliente.ActivacionWebServices_Impl.<init>(Unknown Source)
         at com.activacionbb.mq.Despachador.<init>(Despachador.java:29)
         at com.activacionbb.mq.Despachador.main(Despachador.java:53)
    Caused by: java.lang.ClassCastException: com.bea.xbean.values.XmlTokenImpl
         at weblogic.wsee.tools.wseegen.schemas.impl.ListenerTypeImpl.getListenerClass(ListenerTypeImpl.java:37)
         at weblogic.wsee.ws.init.WsConfigFactory.getDeploymentListenerConfig(WsConfigFactory.java:139)
         at weblogic.wsee.ws.init.WsConfigFactory.load(WsConfigFactory.java:110)
         at weblogic.wsee.ws.init.WsConfigFactory.newInstance(WsConfigFactory.java:59)
         at weblogic.wsee.ws.init.WsConfigFactory.newInstance(WsConfigFactory.java:45)
         at weblogic.wsee.ws.init.WsConfigManager.<clinit>(WsConfigManager.java:8)
         ... 9 more
    Thanx in advance!!

Maybe you are looking for

  • Exporting to PDF

    Post Author: nenders CA Forum: Crystal Reports Hello everyone: A coworker and I are writing code to run a Crystal report, then automatically submit the result to a fax machine. We're looking for help on how to specify PDF format in our code, since by

  • Foreign Currency valuation at Year End

    We have a number of Imprest cash accounts in Foreign Currency. The currency balances have to be revaluated at the Exchange rate prevalent on March 31. Can someone please let me know the configuration process & related t-codes. Correct answers will be

  • AppServer or Web App error (9.0.4) and BROKEN PIPE

    Hi, I'm still using 9.0.4, and have started getting the following message in the base server.log of the Oracle Container..... 07/12/16 21:18:33 Internal error in HttpServer java.lang.ArrayIndexOutOfBoundsException at java.lang.System.arraycopy(Native

  • Error when trying to split

    Hi, DATA: lv_zbnkl(8) TYPE c. Data: l_chr(15)  type c.  ß-- NUMBER is SAME AS zbnkl LENGTH Write i_reguh.-zbnkl to l_chr IF L_CHR CA '-'.     SPLIT L_CHR  AT '-' INTO lv_zbnkl.---->error   endif. I am using above code but it is throwing an eror sayin

  • How can I doenload Firefox v4? My application doesn't support v5.0.

    How do I download Firefox V4? My application doen no support v5.