NullPointer in executeQuery()

Hello,
i have a correct querystring, but in my code, when executeQuery() come, a exception is trow.
NullPointerException...
what's that means?
please, i need your help...
bye!

It means there is something wrong with the code that causes some code to attempt to access a field or a method of an object reference that is null.
That's what it means. To fix it, you have to look at the stack trace that comes out. It tells you what line of code threw the exception. There is more information besides that; it tells you what line of code called the method in which the failing line was contained, and so on. By looking at it you should be able to determine what part of your code caused the problem, in most cases.
Now, if you look at it and still can't find the problem, you could ask us to look at it and explain what it means.

Similar Messages

  • Jsp form + servet =nullpointer

    Hi everyone,
    I'm trying to make a form using a servlet to insert the data from the jsp form into my database. What im using was from an example i found online.
    All i'm trying to do right now is declare a string with the req.getParameter("textdemo"); But everytime i submit my form, i get a null pointer.
    here is my java code.
    package com.stardeveloper.servlets.db;
    import java.sql.*;
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class InsertServlet extends HttpServlet {
         public void doGet(HttpServletRequest req, HttpServletResponse res)
              throws ServletException, IOException {
              res.setContentType("text/html");
              PrintWriter out = res.getWriter();
              StringWriter tempEntry = new StringWriter();
              String test =  req.getParameter("textdemo");
              out.print("<html><body>");
              out.print("<form action=\"");
              out.print( req.getRequestURI() );
              out.print("\" method=\"post\">");
              out.print("First Name :<br>");
              out.print("<input type=\"text\" name=\"first\"><br>");
              out.print("Last Name :<br>");
              out.print("<input type=\"text\" name=\"last\">");
              out.print("<br><br><input type=\"submit\" value=\" + test + \">");
              out.print("     Insert Record");
              out.print("      <input type=\"submit\" value=\" \">");
              out.print("     Display Records</form>");
              out.print("</body></html>");
              out.close();
         public void doPost(HttpServletRequest req, HttpServletResponse res)
              throws ServletException, IOException {
              res.setContentType("text/html");
              PrintWriter out = res.getWriter();
              out.print("<html><body>");
              out.print("<code><pre>");
              out.println("ID\tFirst Name\tLast Name\n");
              // receiving parameters
              String first = req.getParameter("first").trim();
              String last = req.getParameter("last").trim();
              boolean proceed = false;
              if(first != null && last != null)
                   if(first.length() > 0 && last.length() > 0)
                        proceed = true;
              // connecting to database
              Connection con = null;
              Statement stmt = null;
              ResultSet rs = null;
              PreparedStatement ps = null;
              try {
                   Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
              con=DriverManager.getConnection("jdbc:odbc:odbc_exmp");
                   String sql;
              sql = "INSERT INTO Names(first_name, last_name) VALUES (?,?)";
                   ps = con.prepareStatement(sql);
                   stmt = con.createStatement();
                   // inserting records
                   if(proceed) {
                        ps.setString(1, first);
                        ps.setString(2, last);
                        ps.executeUpdate();
                   // displaying records
                   rs = stmt.executeQuery("SELECT * FROM Names");
                   while(rs.next()) {
                        out.print(rs.getObject(1).toString());
                        out.print("\t");
                        out.print(rs.getObject(2).toString());
                        out.print("\t\t");
                        out.print(rs.getObject(3).toString());
                        out.print("\n");
              } catch (SQLException e) {
                   throw new ServletException(e);
              } catch (ClassNotFoundException e) {
                   throw new ServletException(e);
              } finally {
                   try {
                        if(rs != null)
                             rs.close();
                        if(stmt != null)
                             stmt.close();
                        if(ps != null)
                             ps.close();
                        if(con != null)
                             con.close();
                   } catch (SQLException e) {}
              out.print("</body></html>");
              out.close();
    }and here is the JSP code.
    <a href="servlet/InsertServlet">sdfsdf</a>
    <form action="servlet/InsertServlet" method="post">
    textdemo
      <input type="text" name="textdemo" />
    submit
      <input type="submit" name="Submit" value="Submit" />
    </form>Does anyone know why the servlet is throwing an nullpointer?
    thanks

    now to make the things very clear, try this example
    the servlet
    * s1.java
    * Created on March 28, 2006, 3:41 PM
    import java.io.*;
    import java.net.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    * @author AJ Deschanel, [email protected]
    public class s1 extends HttpServlet
         public void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException
              res.setContentType("text/html");
              PrintWriter out = res.getWriter();
              StringWriter tempEntry = new StringWriter();
              String test =  req.getParameter("getVar");
              out.print("getVar=" + test);
                    out.close();
         public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException
              res.setContentType("text/html");
              PrintWriter out = res.getWriter();
              String text = req.getParameter("postVar").trim();
                    out.println("postVar = " + text);
              out.close();
    }and the jsp page
    <a href="/web3/s1?getVar=g10">Servlet</a>
    <form action="/web3/s1" method="post">
    textdemo
    <input type="text" name="postVar" value="p20"/>
      <input type="submit" name="Submit" value="Submit" />
    </form>try both
    1) hit the submit button, (for POST)
    2) click the Servlet hyperlink (for GET)
    PS
    my application has teh name web3, so you change my code accordingly to your settings

  • NullPointer exception in request.getParameter().indexof(.....) only in 6.1

    Hi
    I have one full working application (containing WAR + JAR) files.
    Right now this application is working absolutely fine in weblogic 6.0 sp1 on
    WINNT & Solaris.
    In this application, we accept events to save data from external
    applications like excel files.
    Now code in JSP is -->
    Line 1: String Data = request.getParameter("data");
    Line 2: Data.indexof(........);
    Now in case of weblogic 6.1, i am getting NullPointer Exception in line 2,
    but I am NOT getting any exception in case of weblogic 6.0sp1.
    To my surprise, I am also printing request obj parameters values, whenever
    jsp get called from external source, there it is printing value of "data".
    I am totally clueless!!
    Any idea plz?
    Ashish Jain

    Looking very closely at request object contents..
    Wht i am sending (posting) from excel file-->
    xmlData=<?xml version="1.0" encoding="UTF-8"?><reportSheet bu="SHKXXX"
    report="PBrandContr" sheet=
    "PBrandContr" year="2002" coType="A" status="0" brId="PIC" act_brId="PIC"
    opt="P" ></reportSheet>
    But 6.1 interprets like this ---->
    key is --------> xmlData=<?xml version="1.0" encoding="UTF-8"?><reportSheet
    bu="SHKXXX" report="PBrandContr" sheet=
    "PBrandContr" year="2002" coType="A" status="0" brId="PIC" act_brId
    And Value is -------> "PIC" opt="P" ></reportSheet>
    This thing is causing all problems.
    I am not observing this kinda behaviour in 6.0sp1.
    Thanks
    Ashish Jain
    "Ashish Jain" <[email protected]> wrote in message
    news:[email protected]..
    Hi
    I have one full working application (containing WAR + JAR) files.
    Right now this application is working absolutely fine in weblogic 6.0 sp1on
    WINNT & Solaris.
    In this application, we accept events to save data from external
    applications like excel files.
    Now code in JSP is -->
    Line 1: String Data = request.getParameter("data");
    Line 2: Data.indexof(........);
    Now in case of weblogic 6.1, i am getting NullPointer Exception in line 2,
    but I am NOT getting any exception in case of weblogic 6.0sp1.
    To my surprise, I am also printing request obj parameters values,whenever
    jsp get called from external source, there it is printing value of "data".
    I am totally clueless!!
    Any idea plz?
    Ashish Jain

  • Nullpointer exception... any help would be appreciated

    In advance, I apologize for any ignorance which I may obviously have... I'm in the process of learning Java, and am used to C/C++... In any case, I'm running into a nullpointer exception while 'compiling', which I'm having trouble figuring out... I'll list everything below, but this message will be rather long, as I will try to include everything I can. For this reason, I will ask my questions here, at the top:
    1) A null pointer exception, I believe, is generated when something is being referenced which is currently null, for example "a=null; a.b;" yields a null pointer exception. However, is there any other way that one is generated?
    2) Are there methods to figure out what/why something is null other than simply looking at it? As shown below, it seems that just looking at it runs you in a circle from line to line, file to file, which leads you back to the beginning where nothing is actually null... (I'm probably just not seeing it, but that seems to be what's happening to me)
    So now, on to the actual code:
    The following is a printout of the debugging info:
    ~/bin/jdk*/bin/java -classpath classes jamie.Main
    java.lang.NullPointerException
    at jamie.Main.Sys_Log(Main.java:110)
    at jamie.Main.Setup(Main.java:142)
    at jamie.Main.main(Main.java:54)
    Exception in thread "main" java.lang.NullPointerException
    at jamie.Main.Sys_Log(Main.java:110)
    at jamie.Main.Shutdown(Main.java:182)
    at jamie.Main.main(Main.java:92)And a short excerpt of each. (*) indicates line which error originates:
    20    )   private static Log                sys_log;
    108  )   static void Sys_Log(String msg)
    109  )   {
    110*)        sys_log.Log(msg);
    111  )   }
    142*)   Sys_Log("Server warming up...");
    182*)   Sys_Log("Server shutting down...");
    50  )     public static void main(String[] args)
    51  )     {
    52  )          try
    53  )          {
    54*)                Setup();
    85  )     catch(Exception e)
    86  )     {
    87  )          e.printStackTrace(System.out);
    88  )          err_log.Log(e.toString());
    89  )     }
    90  )     finally
    91  )     {
    92*)            Shutdown();
    93  )      }Now, various things that I have tried, and their result (you can probably skip this section, as these were mostly futile efforts):
    What seems odd to me is that the initial error is on line 110, which is the logging function Sys_Log. Since it's a null pointer exception, I would assume that sys_log is null? and thus in calling Log we're generating that error... I'm not entirely sure that that makes sense, though. Additionally, and what I find odd, is that if I change it to what I will list below, I get a slew of other seemingly unrelated problems:
    20    )   private static Log                sys_log;
    108  )   static void Sys_Log(String msg)
    109  )   {
    110#)        if (sys_log!=null)
    111  )        sys_log.Log(msg);
    112  )   }This results in a problem with function Err_Log, which I change the same way, resulting in the following:
    java.lang.NullPointerException
            at jamie.Area_LUL.Load(Area_LUL.java:23)
            at jamie.Main.Setup(Main.java:161)
            at jamie.Main.main(Main.java:55)
    Exception in thread "main" java.lang.NullPointerException
            at jamie.Main.Shutdown(Main.java:186)
            at jamie.Main.main(Main.java:93)In Main.java the following lines are generating the error:
    160  )   lul = new Area_LUL();
    161*)   lul.Load();And in Area_LUL.java I also have the following:
    14  )class Area_LUL implements LoaderUnloader
    15  ){
    16  )    public void Load()
    17  )    {
    18  )        try
    19  )        {
    20  )            areadir = new File("./areas/");
    21  )            SAXParser p = SAXParserFactory.newInstance().newSAXParser();
    22  )
    23*)            for(File curr : areadir.listFiles(new Area_Filter()))
    24  )            {
    25  )                p.parse(curr, new XMLParser());
    26  )            }
    27  )        }Where in the above, the for statement is generating the null pointer exception... which would tell me that areadir is null, however it is defined as new File("./areas/"); Also, lul (defined as new Area_LUL(); is generating the same error, though it is clearly defined in Area_LUL.java at the top of the last excerpt.
    Also, LoaderUnloader is defined in another file as follows:
    interface LoaderUnloader
        void Load();
        void Unload();
    }which are defined in Area_LUL in Area_LUL.java .
    A major theory which I currently have is that the compiler is beginning with my main.java file, and not seeing the class definition in another file, and thus attributing the class obj I create as null, which is causing the error, but I also am not sure if this is possible...
    My imports for Main.java are as follows:
    package jamie;
    import java.io.*;
    import java.util.*;I'm not entirely sure what the package is including, however I do have a jamie.jar file in another directory (../../dist) (could be referencing that?). Also, to compile the source I am using the following command:
    ~/bin/jdk*/bin/java -classpath classes jamie.MainHowever my classpath (I believe) isn't set to include all my files in the given directory. I wouldn't believe that this would be an issue, however if it could possibly be causing this, I can figure out how to set it properly. Also, this should mean I'm starting with Main.java, and perhaps I am right in concluding that it isn't referencing Area_LUL in another file properly, which is setting it as null?
    In any case... Any help would be greatly appreciated. This has been a bit of a struggle for about a month now, trying various resources, moving things around, etc... Thanks so much for your time in reading,
    -Jess

    I'm not able to follow the program flow from your post. Please create a small standalone program that exhibits the problem and post that back here.
    Your assumption re a NPE is correct, that's the only way they're generated.
    There are no "canned" methods to resolve NPEs. The best solution is to put System.out.println statements for all of the involved objects and variables immediately preceeding the error line (in this case, 110) and something will show null. Usually that's enough info to backtrace to the real cause.

  • ExecuteQuery method of view object taking much time to execute

    Hi All,
    I am using a view object and execute the VO query using executeQuery method in VOImpl java.
    But, problem is, it is taking long time to bring the results after executing the query after setting the parameters. Same query in TOAD gives 4 seconds. While executing using executeQuery method, it is taking 5 mins.
    It is urgent issue. Please help me. Thanks.
    Regards, Soorya

    Hi Kali,
    Thanks for your prompt response.
    Yes. It has bind parameters. I have printed the statement before and after the executeQuery method
    ++VOImpl Code snippet++
    setWhereClauseParams(params);
    System.out.println("before executing query:Time:"+System.currentTimeMillis());
    executeQuery();
    System.out.println( "after executing query:Time:"+System.currentTimeMillis());
    +++
    I have removed some conditions in the query as it is business confidential. Please find the jdev log.
    ++++++++
    before executing query:Time:1322071711046
    [724] Column count: 41
    [725] ViewObject close prepared statements...
    [726] ViewObject : Created new QUERY statement
    [727] ViewObject: VO1
    [728] UserDefined Query: SELECT DISTINCT
    ai.invoice_num invoice_num
    FROM ap_invoices_all ai
    , ap_checks_all ac
    WHERE ...
    ai.org_id = :p_orgid
    AND ac.id = :p_id
    [729] Binding param 1: ,468,
    [730] Binding param 2: 247
    [731] The resource pool monitor thread invoked cleanup on the application module pool, AM, at 2011-11-23 23:41:32.781
    after executing query:Time:1322072052875
    +++++++
    Regards,
    Soorya

  • Nullpointer on com.sap.tc.webdynpro.progmodel.controller.MessageManager

    Dear all,
    i have two web dynpro components, say A and B.
    A is using component B.
    When i push a close button in B, i do the following things:
    1. wdComponentAPI.getMessageManager().reportWarning("Some warning!!!");
    2. wdThis.wdGetICLRequestDetailsController().leaveRequestDetails();
    This leaveRequestDetails() fires a plug (standard) to leave back to my component A and component A deletets the componentUsage when needed... ( if(hasActiveComponent()) )
    Component B has a view with an inputfield for an amount (bigdecimal). When this has valid input and i push the button and execute 1. and 2. everything works fine and i see the warning on the view of my comp. A.
    When i put invalid input in the amount field ( for example some characters) and i push the button, i see an error message on my view in comp. B. (automatic validation)
    When i correct the input and push the submit button again while the previous error message is still visible on the screen (so there's no event trigerred since the automatic validation), i get the following nullpointer exception on calling the deleteComponent method in component A:
    java.lang.NullPointerException
    +     at com.sap.tc.webdynpro.progmodel.controller.MessageManager.setAttributeValidbyContext(MessageManager.java:656)+
    +     at com.sap.tc.webdynpro.progmodel.context.NodeElement.clearPendingInput(NodeElement.java:297)+
    +     at com.sap.tc.webdynpro.progmodel.context.NodeElement.exit(NodeElement.java:132)+
    +     at com.sap.tc.webdynpro.progmodel.context.Node$ElementList.exit(Node.java:1859)+
    +     at com.sap.tc.webdynpro.progmodel.context.Node.clearElements(Node.java:1560)+
    +     at com.sap.tc.webdynpro.progmodel.context.Node.forgetDataNode(Node.java:1733)+
    +     at com.sap.tc.webdynpro.progmodel.context.Node.exit(Node.java:295)+
    +     at com.sap.tc.webdynpro.progmodel.context.Node.exit(Node.java:306)+
    +     at com.sap.tc.webdynpro.progmodel.context.Context.exit(Context.java:53)+
    +     at com.sap.tc.webdynpro.progmodel.controller.Controller.exit(Controller.java:161)+
    +     at com.sap.tc.webdynpro.progmodel.view.View.exitController(View.java:403)+
    +     at com.sap.tc.webdynpro.progmodel.view.View.exitController(View.java:435)+
    +     at com.sap.tc.webdynpro.progmodel.controller.Controller.exit(Controller.java:154)+
    +     at com.sap.tc.webdynpro.progmodel.view.ViewManager.exit(ViewManager.java:125)+
    +     at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.exit(ClientComponent.java:211)+
    +     at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.deleteComponent(ClientComponent.java:195)+
    +     at com.sap.tc.webdynpro.progmodel.components.ComponentUsage.deleteComponent(ComponentUsage.java:199)+
    When i do the same again, but without reporting the warning before leaving comp B, i don't get the nullpointer exception and can continue interacting on my view in component A.
    Can anyone tell me what's the cause for this nullpointer? is it a bug?
    Kind regards.
    J.

    The following is a working solution for me:
    MessageManager mManager = (MessageManager)wdComponentAPI.getMessageManager();
    mManager.reset();
    I have put these lines right before i call the deleteComponent() method in my web dynpro component A.

  • ExecuteQuery() fails with -2146232000 on Windows 8.1 (works great on Server 2013)

    When executing a small console app on my Windows 8.1, I get an error:
    {"Name cannot begin with the ' ' character, hexadecimal value 0x20. Line 95, position 36."}
    The code:
    ClientContext ctx = Create();
    Web web = ctx.Web;
    List instNoteList = ctx.Web.Lists.GetByTitle(InstNoteListTitle);
    List instDokList = ctx.Web.Lists.GetByTitle(InstDokListTitle);
    ctx.Load(ctx.Web);
    ctx.Load(instNoteList);
    ctx.Load(instDokList);
    ctx.ExecuteQuery();
    This code works on a Server 2012 Image running HyperV: I can create lists, insert items, upload documents etc.
    But on my host OS, this code fails.
    Jorgen

    I had the exact same issue and the exception was thrown at Line 95, position 36 when trying to access
    our Sharepoint Online site. Is this related to authentication? I tried with multiple valid accounts and none of them worked so the chances of incorrect credentials should be low.
    Here is the stacktrace
       at System.Xml.XmlTextReaderImpl.Throw(Exception e)
       at System.Xml.XmlTextReaderImpl.Throw(String res, String[] args)
       at System.Xml.XmlTextReaderImpl.ParseQName(Boolean isQName, Int32 startOffset, Int32& colonPos)
       at System.Xml.XmlTextReaderImpl.ParseElement()
       at System.Xml.XmlTextReaderImpl.ParseElementContent()
       at System.Xml.XmlTextReaderImpl.Read()
       at System.Xml.Linq.XContainer.ReadContentFrom(XmlReader r)
       at System.Xml.Linq.XContainer.ReadContentFrom(XmlReader r, LoadOptions o)
       at System.Xml.Linq.XDocument.Load(XmlReader reader, LoadOptions options)
       at System.Xml.Linq.XDocument.Load(XmlReader reader)
       at Microsoft.SharePoint.Client.Idcrl.IdcrlAuth.DoGet(String url)
       at Microsoft.SharePoint.Client.Idcrl.IdcrlAuth.RequestFederationProviderInfo(String domainname)
       at Microsoft.SharePoint.Client.Idcrl.IdcrlAuth.GetFederationProviderInfo(String domainname)
       at Microsoft.SharePoint.Client.Idcrl.IdcrlAuth.InitFederationProviderInfoForUser(String username)
       at Microsoft.SharePoint.Client.Idcrl.IdcrlAuth.GetServiceToken(String username, String password, String serviceTarget, String servicePolicy)
       at Microsoft.SharePoint.Client.Idcrl.SharePointOnlineAuthenticationProvider.GetAuthenticationCookie(Uri url, String username, SecureString password)
       at Microsoft.SharePoint.Client.SharePointOnlineCredentials.GetAuthenticationCookie(Uri url, Boolean refresh)
       at Microsoft.SharePoint.Client.ClientRuntimeContext.SetupRequestCredential(ClientRuntimeContext context, HttpWebRequest request)
       at Microsoft.SharePoint.Client.SPWebRequestExecutor.GetRequestStream()
       at Microsoft.SharePoint.Client.ClientContext.GetFormDigestInfoPrivate()
       at Microsoft.SharePoint.Client.ClientContext.EnsureFormDigest()
       at Microsoft.SharePoint.Client.ClientContext.ExecuteQuery()
    Any suggestions?

  • Error with ExecuteQuery() in prepared statement

    Hello,
    i' m a new one at java. I' m trying to build a web application in jsp and i have a problem in a simple at log in authentication.
    My code is this:
    <html>
    <head>
    <title>Welcome to the online Boat Shop, Inc.</title></head>
    <body>
    <%@ page language ="java" import = "java.io.*, java.lang.*, java.sql.*" %>
    <% try
    String strUsername = request.getParameter("USERNAME");
    String strPassword = request.getParameter("PASSWORD");
    Class.forName ("org.apache.derby.jdbc.ClientDriver");
    Connection myConn = DriverManager.getConnection("jdbc:derby://localhost:1527/boatsdb","tony", "logo");
    String strSQL = "SELECT USERNAME, PASSWORD FROM BOATDB where USERNAME = ? and PASSWORD = ?";
    PreparedStatement stmt = myConn.prepareStatement(strSQL);
    stmt.setString(1, "USERNAME");
    stmt.setString(2, "PASSWORD");
    ResultSet myResult = stmt.executeQuery(strSQL);
    if(myResult.next()){
    out.println("Login Succesful! A record with the given user name and password exists");
    } else {
    out.println("Login Failed. No records exists with the given user name and password");
    myResult.close();
    stmt.close();
    myConn.close();
    } catch(Exception e){
    out.println(e);
    %>
    </body>
    </html>
    The problem is that prepared statement doesn't support executeQuery() method and i can find any solution. The error is this:
    java.sql.SQLException: Method 'executeQuery(String)' not allowed on prepared statement. I already have some data in my database so that it can return results.
    Thank you.
    Edited by: antonis on May 3, 2008 6:13 AM

    thank you, that was the problem. It seems that i have also done mistakes in passing the username and password from the forms to the database for checking, because the message that i get always when i log is that there is no user with this username kai password.
    <form method=GET action=log1.jsp>
    <font size=5> Username <input type=text name="USERNAME" size=20>
              </font>
              <br>
              <font size=5> Password <input type=text name="PASSWORD" size=20>
              </font>
              <br>
              <input type=submit name=action value="Submit">
    </form>
    That's the forms and combined with the code in the fist post should have worked. Any ideas?
    thanks again.

  • Java.lang.NullPointer Exception in File-RFC-File wtihout BPM scenario

    Hi All,
    I have implemented scenario File - RFC - File without BPM in PI7.1 according to below link by bhavesh
    [File - RFC - File without a BPM - Possible from SP 19.;
    but I am getting error java.lang.NullPointer Exception  in Audit log of sender communication channel when it enters in ResponseOnewayBean.
    I had implemented the same in PI 7.0 but there it was working fine.
    Is there any limitations on the use of the above beans in PI7.1 as I could see two more threads on the same unanswered yet.
    Please help me in resolving as it is priority task for me
    Thanks,
    Amit

    Sometime back I saved this SAP Note 1261159 for this error. Not sure if it is still valid. Try to get it implemented.
    Regards,
    Prateek

  • Problems with DynamicSQL.executeQuery in Windows 7

    Hello.
    Recently I change the version of BPM Studio from 10.3.1.0 to 10.3.3 and run it in Windows 7. Now when I execute an ScreenFlow and find a DynamicSQL.executeQuery
    show the follow error:
    automatica:12:45: the method 'executeQuery' from DynamicSQL class can´t execute correctly.
    Begin_invocator:11:3: the method 'propateParentExcepcion' from '' class can´t execute correctly.
    Error:
    fuego.lang.ComponentExecutionException: No se ha podido ejecutar correctamente la tarea.
    Motivo: 'fuego.compiler.CompilerExceptionShell: Begin_Invocator:11:3:El método 'propagateParentException' de la clase '' no se ha podido ejecutar correctamente.'.
         at fuego.compiler.FuegoInvokeable.invoke(FuegoInvokeable.java:444)
         at fuego.compiler.CodeRunner$DebuggerRunnable.runMethod(CodeRunner.java:725)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at fuego.lang.JavaClass.invokeMethod(JavaClass.java:1410)
         at fuego.lang.JavaObject.invoke(JavaObject.java:227)
         at fuego.component.Message.process(Message.java:585)
         at fuego.component.ExecutionThread.processMessage(ExecutionThread.java:780)
         at fuego.component.ExecutionThread.processBatch(ExecutionThread.java:755)
         at fuego.component.ExecutionThread.doProcessBatch(ExecutionThread.java:142)
         at fuego.component.ExecutionThread.doProcessBatch(ExecutionThread.java:134)
         at fuego.compiler.DebuggerPrincipal.processBatch(DebuggerPrincipal.java:64)
         at fuego.component.ExecutionThread.work(ExecutionThread.java:839)
         at fuego.component.ExecutionThread.run(ExecutionThread.java:408)
         at fuego.component.CustomExecution.next(CustomExecution.java:176)
         at fuego.web.execution.InteractiveExecution.process(InteractiveExecution.java:182)
         at fuego.web.execution.impl.WebInteractiveExecution.process(WebInteractiveExecution.java:54)
         at fuego.web.execution.InteractiveExecution.process(InteractiveExecution.java:228)
         at fuego.webdebugger.servlet.DebuggerServlet.doDebug(DebuggerServlet.java:156)
         at fuego.webdebugger.servlet.DebuggerServlet.doPost(DebuggerServlet.java:92)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
         at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
         at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
         at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
         at fuego.web.execution.servlet.ServletExternalContext.forwardInternal(ServletExternalContext.java:197)
         at fuego.web.execution.servlet.ServletExternalContext.finishExecution(ServletExternalContext.java:103)
         at fuegoblock.base.web.DisplayController.service(DisplayController.java:87)
         at fuego.web.execution.servlet.ServletRedirector$ControllerRedirector.forward(ServletRedirector.java:197)
         at fuego.web.execution.servlet.ServletRedirector.redirect(ServletRedirector.java:58)
         at fuego.webdebugger.servlet.DebuggerServlet.redirect(DebuggerServlet.java:138)
         at fuego.webdebugger.servlet.DebuggerServlet.doPost(DebuggerServlet.java:86)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at fuego.web.filter.CharsetFilter.doFilter(CharsetFilter.java:48)
         at fuego.web.filter.BaseFilter.doFilter(BaseFilter.java:63)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
         at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:667)
         at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
         at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Thread.java:662)
    Caused by: fuego.compiler.CompilerExceptionShell: Begin_Invocator:11:3:El método 'propagateParentException' de la clase '' no se ha podido ejecutar correctamente.
         at fuego.compiler.Invoke$MethodCall.run(Invoke.java:1529)
         at fuego.compiler.Invoke.runCall(Invoke.java:791)
         at fuego.compiler.Invoke.run(Invoke.java:775)
         at fuego.compiler.Block.run(Block.java:323)
         at fuego.compiler.On.run(On.java:275)
         at fuego.compiler.DoBlock.run(DoBlock.java:616)
         at fuego.compiler.Block.run(Block.java:323)
         at fuego.compiler.DoBlock.run(DoBlock.java:586)
         at fuego.compiler.Method.run(Method.java:999)
         at fuego.compiler.Method$Adaptor.run(Method.java:1190)
         at fuego.compiler.FuegoInvokeable.invoke(FuegoInvokeable.java:436)
         at fuego.compiler.CodeRunner$DebuggerRunnable.runMethod(CodeRunner.java:725)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at fuego.lang.JavaClass.invokeMethod(JavaClass.java:1410)
         at fuego.lang.JavaObject.invoke(JavaObject.java:227)
         at fuego.component.Message.process(Message.java:585)
         at fuego.component.ExecutionThread.processMessage(ExecutionThread.java:780)
         at fuego.component.ExecutionThread.processBatch(ExecutionThread.java:755)
         at fuego.component.ExecutionThread.doProcessBatch(ExecutionThread.java:142)
         at fuego.component.ExecutionThread.doProcessBatch(ExecutionThread.java:134)
         at fuego.compiler.DebuggerPrincipal.processBatch(DebuggerPrincipal.java:64)
         at fuego.component.ExecutionThread.work(ExecutionThread.java:839)
         at fuego.component.ExecutionThread.run(ExecutionThread.java:408)
    Caused by: fuego.lang.ComponentExecutionException: El método 'propagateParentException' de la clase '' no se ha podido ejecutar correctamente.
         at fuego.compiler.FuegoInvokeable.invoke(FuegoInvokeable.java:393)
         at fuego.compiler.Invoke$MethodCall.run(Invoke.java:1498)
         ... 25 more
    Caused by: java.lang.NoClassDefFoundError: com/ddtek/jdbc/extensions/ExtEmbeddedConnection
         at fuego.jdbc.DatabaseManager.unlockConnection(DatabaseManager.java:91)
         at fuego.connector.impl.BaseJDBCConnector.createJDBConnection(BaseJDBCConnector.java:210)
         at fuego.jdbc.FaultTolerantConnection.createConnection(FaultTolerantConnection.java:929)
         at fuego.jdbc.FaultTolerantConnection.getConnection(FaultTolerantConnection.java:883)
         at fuego.jdbc.FaultTolerantConnection.prepareStatement(FaultTolerantConnection.java:553)
         at fuegoblock.sql.DynamicSQL.initPreparedStatement(DynamicSQL.java:752)
         at fuegoblock.sql.DynamicSQL.executeQuery(DynamicSQL.java:332)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at fuego.lang.JavaClass.invokeMethod(JavaClass.java:1410)
         at fuego.lang.ObjectTypeDescription.invokeMethod(ObjectTypeDescription.java:1370)
         at fuego.lang.MethodTypeDescription.invoke(MethodTypeDescription.java:1251)
         at fuego.compiler.Invoke$MethodCall.run(Invoke.java:1501)
         at fuego.compiler.Invoke.runCall(Invoke.java:791)
         at fuego.compiler.Invoke.run(Invoke.java:775)
         at fuego.compiler.Node.value(Node.java:2233)
         at fuego.compiler.Node.value(Node.java:2267)
         at fuego.compiler.Assignment.run(Assignment.java:285)
         at fuego.compiler.Block.run(Block.java:323)
         at fuego.compiler.DoBlock.run(DoBlock.java:586)
         at fuego.compiler.Block.run(Block.java:323)
         at fuego.compiler.DoBlock.run(DoBlock.java:586)
         at fuego.compiler.Method.run(Method.java:999)
         at fuego.compiler.FuegoInvokeable.invoke(FuegoInvokeable.java:436)
         at fuego.compiler.Invoke$MethodCall.run(Invoke.java:1498)
         at fuego.compiler.Invoke.runCall(Invoke.java:791)
         at fuego.compiler.Invoke.run(Invoke.java:775)
         at fuego.compiler.Block.run(Block.java:323)
         at fuego.compiler.DoBlock.run(DoBlock.java:586)
         at fuego.compiler.Block.run(Block.java:323)
         at fuego.compiler.DoBlock.run(DoBlock.java:586)
         at fuego.compiler.Method.run(Method.java:999)
         at fuego.compiler.FuegoInvokeable.invoke(FuegoInvokeable.java:436)
         at fuego.compiler.Invoke$MethodCall.run(Invoke.java:1498)
         at fuego.compiler.Invoke.runCall(Invoke.java:791)
         at fuego.compiler.Invoke.run(Invoke.java:775)
         at fuego.compiler.Block.run(Block.java:323)
         at fuego.compiler.DoBlock.run(DoBlock.java:586)
         at fuego.compiler.Method.run(Method.java:999)
         at fuego.compiler.FuegoInvokeable.invoke(FuegoInvokeable.java:436)
         at fuego.compiler.Invoke$MethodCall.run(Invoke.java:1498)
         at fuego.compiler.Invoke.runCall(Invoke.java:791)
         at fuego.compiler.Invoke.run(Invoke.java:775)
         at fuego.compiler.Block.run(Block.java:323)
         at fuego.compiler.DoBlock.run(DoBlock.java:586)
         ... 20 more
    Caused by: java.lang.ClassNotFoundException: com.ddtek.jdbc.extensions.ExtEmbeddedConnection
         at java.lang.ClassLoader.findClass(ClassLoader.java:357)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:305)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:246)
         at org.eclipse.osgi.framework.internal.core.BundleLoader.findClassInternal(BundleLoader.java:429)
         at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:369)
         at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:357)
         at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:83)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:246)
         ... 67 more
    Hope your help. thanks

    ELKO,
    Did you use the full three step way?
    Uninstall, run the Cleaner Tool, and reinstall?
    http://www.adobe.com/support/contact/cscleanertool.html
    Presuming CC(2014), you may try to restart the Creative Cloud application by quitting and relaunching it.

  • Nullpointer in 'weblogic.transaction.internal.CoordinatorImpl

              I am using Weblogic 6.1 SP4 on JDK 1.3.1 on AIX.
              My server has a transacted EJB which accesses Oracle and DB2 databases. I have
              been running my application for several months.
              Suddenly, yesterday it starting spitting out these exceptions a few times a minute.
              I cannot find the configuration change I made that would have caused this to
              suddenly start appearing. My code has not changed in 2 weeks.
              Has anyone seen this error before? Does anyone know what causes this, so that
              I can narrow my search?
              Thanks for your help,
              Tania
              ####<Mar 4, 2003 12:35:48 PM CST> <Warning> <Dispatcher> <ksp12025> <cuAS01> <ExecuteThread:
              '5' for queue: 'default'> <system> <> <000000> <RuntimeException thrown by rmi
              server: 'weblogic.rmi.internal.BasicServerRef@105 - jvmid: '-4285102758410085945S:10.1.21.21:[18120,18120,18121,18121,18120,18121,-1]:qdomain4:cuAS01',
              oid: '261', implementation: 'weblogic.transaction.internal.CoordinatorImpl@311671da''>
              java.lang.NullPointerException
              at weblogic.transaction.internal.ServerResourceInfo.isAccessibleAtAndAssignableTo(ServerResourceInfo.java(Compiled
              Code))
              at weblogic.transaction.internal.ServerTransactionImpl.assignResourcesToSelf(ServerTransactionImpl.java(Compiled
              Code))
              at weblogic.transaction.internal.ServerTransactionImpl.assignResourcesToSelf(ServerTransactionImpl.java(Compiled
              Code))
              at weblogic.transaction.internal.ServerTransactionImpl.localCommit(ServerTransactionImpl.java(Compiled
              Code))
              at weblogic.transaction.internal.SubCoordinatorImpl.startCommit(SubCoordinatorImpl.java(Compiled
              Code))
              at weblogic.transaction.internal.CoordinatorImpl_WLSkel.invoke(Unknown
              Source)
              at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java(Compiled
              Code))
              at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java(Compiled
              Code))
              at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java(Compiled
              Code))
              at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java(Compiled Code))
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
              

              Thanks,
              The problem did clear up when the Unix server had to get bounced. I believe it
              was bounced for an unrelated issue.
              The one thing I noticed was that there were a couple of copies of my EJBs in the
              wlnotdelete directory that the server had been previously compliaining about.
              They went away after the Unix server was restarted and the NullPointer problem
              went away.
              We plan to upgrade to 7.1 soon, but will try to move to SP5 if we need to sooner.
              Thanks for your help.
              Tania Rhinehart
              Rajesh Mirchandani <[email protected]> wrote:
              >This is fixed in SP5. Open a case with [email protected] and reference
              >CR092301.
              >
              >Slava Imeshev wrote:
              >
              >> Hi Tania,
              >>
              >> I think you need to contact BEA support at [email protected]
              >>
              >> Regards,
              >>
              >> Slava Imeshev
              >>
              >> "Tania Rhinehart" <[email protected]> wrote in message
              >> news:[email protected]...
              >> >
              >> > I am using Weblogic 6.1 SP4 on JDK 1.3.1 on AIX.
              >> > My server has a transacted EJB which accesses Oracle and DB2 databases.
              > I
              >> have
              >> > been running my application for several months.
              >> > Suddenly, yesterday it starting spitting out these exceptions a few
              >times
              >> a minute.
              >> > I cannot find the configuration change I made that would have caused
              >this
              >> to
              >> > suddenly start appearing. My code has not changed in 2 weeks.
              >> >
              >> > Has anyone seen this error before? Does anyone know what causes
              >this, so
              >> that
              >> > I can narrow my search?
              >> >
              >> > Thanks for your help,
              >> > Tania
              >> >
              >> > ####<Mar 4, 2003 12:35:48 PM CST> <Warning> <Dispatcher> <ksp12025>
              >> <cuAS01> <ExecuteThread:
              >> > '5' for queue: 'default'> <system> <> <000000> <RuntimeException
              >thrown by
              >> rmi
              >> > server: 'weblogic.rmi.internal.BasicServerRef@105 - jvmid:
              >> '-4285102758410085945S:10.1.21.21:[18120,18120,18121,18121,18120,18121,-1]:q
              >> domain4:cuAS01',
              >> > oid: '261', implementation:
              >> 'weblogic.transaction.internal.CoordinatorImpl@311671da''>
              >> >
              >> > java.lang.NullPointerException
              >> > at
              >> weblogic.transaction.internal.ServerResourceInfo.isAccessibleAtAndAssignable
              >> To(ServerResourceInfo.java(Compiled
              >> > Code))
              >> > at
              >> weblogic.transaction.internal.ServerTransactionImpl.assignResourcesToSelf(Se
              >> rverTransactionImpl.java(Compiled
              >> > Code))
              >> > at
              >> weblogic.transaction.internal.ServerTransactionImpl.assignResourcesToSelf(Se
              >> rverTransactionImpl.java(Compiled
              >> > Code))
              >> > at
              >> weblogic.transaction.internal.ServerTransactionImpl.localCommit(ServerTransa
              >> ctionImpl.java(Compiled
              >> > Code))
              >> > at
              >> weblogic.transaction.internal.SubCoordinatorImpl.startCommit(SubCoordinatorI
              >> mpl.java(Compiled
              >> > Code))
              >> > at
              >> weblogic.transaction.internal.CoordinatorImpl_WLSkel.invoke(Unknown
              >> > Source)
              >> > at
              >> weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java(Compiled
              >> > Code))
              >> > at
              >> weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java(Compi
              >> led
              >> > Code))
              >> > at
              >> weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java(C
              >> ompiled
              >> > Code))
              >> > at
              >> weblogic.kernel.ExecuteThread.execute(ExecuteThread.java(Compiled Code))
              >> > at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
              >> >
              >
              >--
              >Rajesh Mirchandani
              >Developer Relations Engineer
              >BEA Support
              >
              >
              

  • NullPointer when GUI calls method in Client

    Hi, I'm relatively new to Java programming and this conference.
    I hope the following is not too long winded.
    I'm trying to programme a FTP Client which is controlled by a GUI.
    My JBuilder project has three classes:
    ClientGUI.java and ClientFrame.java (produced with JBUilder's New Application option)
    plus AClient.java (this is the 'engine' of the project).
    ClientGUI constructs an instance 'frame' of ClientFrame which in turn constructs an instance 'client' of AClient.
    The call to the AClient constructor has to be in a try/catch statement,
    and takes a JTextArea as a parameter from ClientFrame to allow 'client' to display messges in my GUI.
    The AClient constructor opens the Socket connection to a simple server on the same computer.
    This part works.
    However, when I attempt to use events generated by buttons in my GUI ('frame')to call methods in 'client', I get the following null-pointer exception:-
    java.lang.NullPointerException
    at ClientFrame.jButton1_actionPerformed(ClientFrame.java:219)
    at ClientFrame_jButton1_actionAdapter.actionPerformed(ClientFrame.java:274)
    etc...
    etc...
    These refer to code blocks:-
        if ( client.isAlive() ) {  /*line 219*/
          System.out.println("client alive");
        }where isAlive() is a simple test method that returns true,
    and
      public void actionPerformed(ActionEvent e) {
        adaptee.jButton1_actionPerformed(e);  /*line 274*/
      }'client' is listed as a public field in ClientFrame and is instanciated, so why do I have this problem?
    Enclosing the call in a try/catch statement doesn't help.
    Thanks in advance. Laurence

    The NullPointer means that the client was not instantiated, though you may think it has been.
    Make sure that you are instantiating the correct variable, for instance, if you have a class-level field called client you would do something like this:
    public class WhateverClass {
      private AClient client;
      //other stuff
      public WhateverClass(...) {
        client = //assignment either
                 //with new AClient(...)
                 //or something else
      }You would NOT do:
    public class WhateverClass {
      private AClient client;
      //other stuff
      public WhateverClass(...) {
        AClient client = //assignment either
                         //with new AClient(...)
                         //or something else
      }Since this would create a second variable of name client that only has scope within the constructor.
    Also, if the client is being assigned through a parameter in the constructor, check to make sure that that you are not passing a null value along... Do a System.out.println(client) after the assignement and see what you get. Then you know if the problem occurs in this class or in the class that creates the AClient reference to begin with...

  • ExecuteQuery() error with MySQL

    I have already followed all the steps recommended by OTN to create a connection with MySQL (most up-to-date files) in JDeveloper 10g. It works fine except when I try to find a view and execute a query using an Application Module in a jsp:
    ApplicationModule appMod = appMod.getGenericAppMod();
    ViewObject voTabEmployee = appMod.findViewObject("TabEmployee");
    voTabEmployee.executeQuery();
    It works ok when connected to Oracle DB but it raises the following exception when I move Business Components to a MySQL connection, exactly as recommended:
    java.lang.ClassCastException: com.mysql.jdbc.ServerPreparedStatement
    Any help would be highly appreciated.
    Marcio

    Hi Marcio
    The ApplicationModule that you create in your source (utilApp.java) is created using the default configuration that uses the OracleSQLBuilder as the default SQLBuilder (configured to work with Oracle Databases). Thus, when you use MySQL or any other database (and I confirmed this using SQLServer), a ClassCastException is thrown.
    Instead of using the following lines:
    Context ic = new InitialContext(env);
    String theAMDefName = "mysysjcom.MySysJComModule";
    ApplicationModuleHome home = (ApplicationModuleHome) ic.lookup(theAMDefName);
    ApplicationModule appMod = home.create();
    appMod.getTransaction().connectToDataSource(null, "jdbc/MYSYSJCOMCoreDS", false);
    can you use the following lines:?
    Context ic = new InitialContext(env);
    String theAMDefName = "mysysjcom.MySysJComModule";
    ApplicationModule appMod = Configuration.createRootApplicationModule(theAMDefName, <config_name>);
    ic.lookup(theAMDefName);
    I got your sample working with the above change
    This will ensure that you are using the same configuration that has the SQLBuilder correctly set to your Database type
    Thanks
    Prasanth

  • Nullpointer when starting application.

    Sometimes when i start my application with java web start, a nullpointer exception accurs, but it doesn't affect the application. And seems to happen randomly.
    Exception in thread "Thread-3" java.lang.NullPointerException
    at com.sun.javaws.Launcher$2.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
    The application still starts, and apparently runs without problems.
    Can anyone explain this?
    /Kenneth

    hi Sid,
    Thanks problem was the way I was accessing the values. But still its not clear how error was coming in wdMOdify method when at start it should not run at the load time.
    And (!firsttime) can be used in case something is modify and screen rendering has happened more than once.
    Regards

  • Problem in executeQuery(SQL query sentence with a ' );

    for example:
    String strName="";
    //here strName is searching key value.
    String strQueryString="SELECT * FROM Authors WHERE name='" strName "'";
    ResultSet rs=st.executeQuery(strQueryString);
    if strName value is "yijun_lee",that will return all information which the name columns value is "yijun_lee" with SQL Query sentence SELECT * FROM Authors WHERE name='yijun_lee'
    but if strName value is "yijun ' lee",that value contains a '.that will error!
    how to do?
    thanks very much!

    You could parse <strName > and insert another ' for each '
    A concrete example would be SELECT * FROM Authors WHERE name='yijun '' lee'HTH

Maybe you are looking for

  • Creation of Bidders / Vendors with BP

    Hi all, Some Basic questions. The creation of Bidders/Vendors in SRM will create a BP and links the Bidder/Vendor to the Vendor Org structure. Can we create just a BP alone for a Bidder/Vendor in SRM, maintain him and make him participate in bidding,

  • Converting from photoshop to pdf.

    I am using Photoshop CS5 and Adobe Reader X.  I would like to know how to convert a multiple picture file in photoshop to an adobe pdf file so that it will fit to one cd.  Any suggestions?

  • Horizontal grey thick line - iMac C2Duo 2,4 GHz ATI HD2600 (late 2007)

    On my iMac 24" i have an horizontal line grey line, thicker at middle. Seems to be sometimes more viewable sometimes less. Also my dock seems to be burned in (or shall i write it "persists"). Some screenshots: http://lh5.ggpht.com/7n3M2I6_QAg/SrsjE_t

  • Doubt in Extended Syntax check

    Hi all ,               I am facing a problem when i do a Extended Syntax check for a program . The message i am getting is as follows : Messages for CALL FUNCTION interfaces(Todo Prio3) Program:  SAPLZC_BWSPI  Include:  LZC_BWSPIF01  Row:    496  [Pr

  • Layer mask

    On screen this show when doing a simple layer mask fade with the gradient tool. (notice the hard transition in the black) The if I flatten it it looks fine, like this. I don't understand why all of a sudden it is doing this, same with brushes. Just s