PreparedStatement.getGeneratedKeys():  undefined for the type PreparedState

All,
I'm getting this exception:
"The method getGeneratedKeys() is undefined for the type PreparedStatement" When I try to run this code:
Connection con = (Connection)getConnection();
PreparedStatement stmt = null;
stmt = con.prepareStatement("INSERT INTO article (title, description, creationDate, createdBy) VALUES (?,?,?,?)");
stmt.setString(1, title);
stmt.setString(2, description);
stmt.setDate(3, creationDate);
stmt.setInt(4, createdBy);
stmt.executeUpdate();
ResultSet rs = stmt.getGeneratedKeys();Javadoc says PreparedStatement inherits getGeneratedKeys() from Statement. Then why does it go wrong?
Thanks alot!

No sorry, it is a compile time error.
But I've solved the problem.
I'm using WSAD and it was pointing to the wrong rt.jar (the one that comes with WSAD). I've changed it to the sun rt.jar and now it works fine!
Thanks anyway!

Similar Messages

  • Method fprint(String) is undefined for the type JspWriter.

    please help me with this problem
    below is the jsp code written to access the data from the database and to display it in the new page.
    <%@ page
         import = "java.io.*"
         import = "java.lang.*"
         import = "java.sql.*"
    %>
    <%
         Connection dbconn=null;
         ResultSet results;
         PreparedStatement sql=null;     
                   String empid1=request.getParameter("empids");     
              try
    String driver = "com.mysql.jdbc.Driver";
              Class.forName(driver).newInstance();
                   dbconn =DriverManager.getConnection("jdbc:mysql://localhost/hris","root","redhat");
                   int empid11;
                   empid11=Integer.parseInt(empid1);
                   sql = dbconn.prepareStatement("select * from employee where empid=?");
                   sql.setInt(1,empid11);
                   results=sql.executeQuery();
                   results.next();
    out.print("<html>");
    out.print("<head>");
    out.print("</head>");
    out.print("<body>");
    out.print("<table width=810 border=0>");
    out.print("<tr>");
    out.print("<td width=210>");
    out.print("Employee Id");
    out.print("</td>");
    out.print("<td width=584>");
    int emp=results.getInt("empid");
    out.print(emp);
    out.print("</td>");
    out.print("</tr>");
    out.print("<tr>");
    out.print("<td>");
    out.print("FirstName");
    out.print("</td>");
    out.print("<td>");
    String first=results.getString("fname");
    out.print(first);
    out.print("</td>");
    out.fprint("</tr>");
              catch (SQLException s)
                   out.println("SQL Error <br>"+s);
    catch ( Exception x )
                   x.printStackTrace();
    %>
    but when i click the submit button , the error is
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: Unable to compile class for JSP
    An error occurred at line: 9 in the jsp file: /HRIS/empsearch1.jsp
    Generated servlet error:
    The method fprint(String) is undefined for the type JspWriter
         org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    root cause
    org.apache.jasper.JasperException: Unable to compile class for JSP
    An error occurred at line: 9 in the jsp file: /HRIS/empsearch1.jsp
    Generated servlet error:
    The method fprint(String) is undefined for the type JspWriter
         org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:84)
         org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:328)
         org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:409)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:297)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:276)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:264)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:563)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:303)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    note The full stack trace of the root cause is available in the Apache Tomcat/5.5.15 logs.
    i am not able to rectify the error.

    JavaB wrote:
    Hi ,
    I have a method defined in my dataManagerDAO classIs it dataManagerDAO or DataManagerDAO?
    getNoc( strRppsId) throws Exception {}That's not a legal Java method declaration, so it's clearly not your actual declaration, so I have no idea what your actual declaration is, so I can't tell you what you're doing wrong.
    Now I am calling this method inside my JSP page :
    DataManagerDAO dataMgr = new DataManagerDAO();
    dataMgr.getNoc(strRppsId)..
    But whenver I am running it locally , it fails to compile and gives following error msg :
    The method getNoc(String) is undefined for the type DataManagerDAOQuite obviously you're calling a method getNoc(String) but that method doesn't exist on the DataManagerDAO class. No matter how much you may think you know that it does, you're wrong and the compiler is right.
    Maybe you misspelled or mis-capitalized something. Maybe you're passing the wrong type of argument. Maybe you're still using an older version of the DataManagerDAO class from before you added that method. Not enough information here to say for sure.
    ny clue wats going wrong in here ?I assume you mean "any", not "ny" and "what's", not "wats". Clear, correct, precise communication counts with folks here almost as much as it does with the Java compiler.

  • The method is undefined for the type

    HI I have a javabean class:
    package database;
    import java.util.*;
    import java.io.*;
    public class CompanyFormBean implements Serializable{
      private String companyparentid;          
      private String companyname;               
      private Hashtable errors;
      //private String notify;
    public boolean validate() {
        boolean allOk=true;
        if (companyname.equals("")) {
          errors.put("companyname","Please enter your Company Name.");
          companyname="";
          allOk=false;
        return allOk;
      public String getErrorMsg(String s) {
        String errorMsg =(String)errors.get(s.trim());
        return (errorMsg == null) ? "":errorMsg;
    // public CompanyFormBean(){}
      public CompanyFormBean() {
        companyparentid          = "";
        companyname               = "";
        errors = new Hashtable();
      public String getCompanyparentid() {
        return companyparentid;
      public String getCompanyname() {
        return companyname;
      public void setCompanyparentid(String fcompanyparentid) {
        companyparentid = fcompanyparentid;
      public void setCompanyname(String fcompanyname) {
        companyname = fcompanyname;
      public void setErrors(String key, String msg) {
        errors.put(key,msg);
    }after the form is submitted I try to display the values
    <%@ page import="database.CompanyFormBean" %>
    <jsp:useBean id="formHandler" class="database.CompanyFormBean" scope="session"/>
    <html>
    <head>
    <title></title>
    <meta name="Generator" content="EditPlus">
    <meta name="Author: Irene Nessa" content="">
    <meta name="Keywords" content="">
    <meta name="Description: creates a new member account" content="">
    </head>
    <body>
    <form name="reg" method="post" action="ProcessMemberRegistration.jsp" onsubmit='return formValidator()'>
    <table>
         <tr>
         <td>Create A New Account</td>
         </tr>
         <tr>
              <td>Existing Company</td>
              <td>
                   <input type="text" name="companyparentid" value='<%=formHandler.getCompanyparentid()%>'>
                   <!-- <select name="campanyparentid" onchange="setcompany(this)">
                        <option>Better Homes</option>
                        <option>Emaar</option>
                   </select>
                   <font size="" color="#FF0033"><b><i>OR</i></b></font>-->
              </td>
         </tr>
         <tr>
              <td>Company Name *</td>
              <td><input type="text" name="companyname" value='<%=formHandler.getCompanyname()%>'>
              </td>
         </tr>
    </table>
    <br>
         <br>
         <input type="reset">  <input type="submit" value='Check Form' />
    </form>
    </body>
    </html>But I keep getting the following errors:*The method getCompanyparentid() is undefined for the type CompanyFormBean* But it defind and the bean class complies. Any idea what am doing wrong.
    thanks.

    I actually got the same error in the same situation the following is my error and Stacktrace. I was trying to using AJAX to retrieve the message from DB and display it in a text area when user click a radio button. It works well untill I add a new method getMessage(String), please help!
    Mar 2, 2009 10:01:03 AM org.apache.catalina.core.StandardWrapperValve invoke
    SEVERE: Servlet.service() for servlet jsp threw exception
    org.apache.jasper.JasperException: Unable to compile class for JSP:
    An error occurred at line: 22 in the jsp file: /getmessage.jsp
    The method getMessage(String) is undefined for the type Item
    19: <jsp:setProperty name="items" property="categoryId" value="<%=catid%>" />
    20: <jsp:setProperty name="items" property="effectiveIndicator" value="C" />
    21: <%
    22: String msg = items.getMessage(id);
    23: String decodedmsg = new String(msg.getBytes("iso-8859-1"), "Big5");
    24: System.out.print("MSG: " + msg);
    25: System.out.print("Deco-MSG: " + decodedmsg);
    An error occurred at line: 26 in the jsp file: /getmessage.jsp
    The method write(String) is undefined for the type HttpServletResponse
    23: String decodedmsg = new String(msg.getBytes("iso-8859-1"), "Big5");
    24: System.out.print("MSG: " + msg);
    25: System.out.print("Deco-MSG: " + decodedmsg);
    26: response.write(decodedmsg);
    27: %>
    Stacktrace:
    at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:85)
    at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
    at org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:415)
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:308)
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:273)
    at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:308)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:228)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
    at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:517)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:216)
    at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190)
    at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283)
    at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:767)
    at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:697)
    at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:889)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:686)
    at java.lang.Thread.run(Thread.java:619)

  • Error: The method ReadLine() is undefined for the typ of Objectkey.

    I'm new at Java. Can anyone help??? Much appreciated.
    public class readfilesAppd {
    //     /define string newline for line.seperator
       private static final String nl = System.getProperty("line.separator");
          private static final String userpath = System.getProperty("C:/Documents and Settings/GheeL/My Documents/My Data/835 ERA files/");
          // public static void main(String[] args, Object fr) {
         public static void main(String [] args) {
                     try {
                          ObjectKey br = null;
         //struct stat request_stat_path(char C:/Documents and Settings/GheeL/My Documents/My Data/835 ERA files/, Request *rq);
                // Create file
                //FileReader fr = new FileReader("C:/Documents and Settings/GheeL/My Documents/My Data/835 ERA files/");               
                //String FILENAME = "";
                 String FILENAME = userpath;
                String record = new String();
                         int recCount = 0; 
                        while ((record = br.ObjectKey())) != null)
                               recCount++;
                                FILENAME = record.substring(780, 792);
                              FileWriter fstream = new FileWriter("ERA Loads.txt", true);
                               BufferedWriter out = new BufferedWriter(fstream);
                               out.write(FILENAME+" "+recCount);
                               out.close();
                               System.out.println(FILENAME);
                               System.out.println(recCount);
                          catch (Exception e){//Catch exception if any
                              System.err.println("Error: " + e.getMessage());           
                        finally {
                     System.out.println("Is that something to cheer about?");
                             }

    You haven't posted the correct code. The error is telling you that you're trying to call a method "ReadLine()" on an object that doesn't have a method by that name. The code you posted doesn't call anything called ReadLine(). Find the code where that happens and post it.

  • Method getWorkflowEngineJMS() is undefined for the type IJWFPortalService

    Hi @ll,
    In my web dynpro project, Iu2019m trying to create collaboration task using CreateTask API as described in the following SAP help link:
    http://help.sap.com/saphelp_nw70/Helpdata/en/46/94b9b2b321581ce10000000a1553f7/frameset.htm
    I've added the following JARs:
    com.sap.portal.usermapping_api.jar
    com.sap.security.api.jar
    com.sap.workflow_api.jar
    prtapi.jar
    And, also added the following sharing references:
    PORTAL:sap.com/com.sap.portal.usermapping
    PORTAL:sap.com/com.sap.workflow.apps
    But in the coding time Iu2019m unable to find getWorkflowEngineJMS() method of  IJWFPortalService. Please suggest shorting out this issue.
    Currently Iu2019m working on EP 7.0, SPS 14.
    Thank in advance
    Gautam Singh.

    issue resloved by adding "ejb.jar".

  • The method logout() is undefined for the type HttpSession

    I am now trying to invalidate all the sessions by calling HttpSession.logout() in doPost(). I can see this API in a famous servlet book (Coreservlet and Javaserver pages by MartyHall) but in Eclipse it is not able to find out even with the latest JDK 1.7.

    Tolls wrote:
    Is it?
    I can't find any logout() method on the HttpSession interface defined in 3.0.
    Got a javadoc link?? I quote and emphasize:
    That's in Servlet 3.0, and it is in HttpServletRequest
    Here you go:
    http://docs.oracle.com/javaee/6/api/javax/servlet/http/HttpServletRequest.html#logout%28%29

  • A realistic assessment of your experiences of hardware needed for the type of editing I do please.

    Introduction:
    I apologise for the length of this post but from experience of reading here, I'm working on the principle of the more I explain about myself now, the less anyone willing to help me will have to ask later.
    I have lurked around this forum on and off for a few years, read the various threads in the FAQ section, particularly PPBM5 and What PC to build thread and other related topics around what system to build.  I have found them very useful and in particular have enjoyed reading about Harm Millaard's experiences First Ideas for a new system.  For about about 12 months I've been delaying upgrading my PC but in Mr Millard's latest updates on his PPBM6 site he talks about new systems and  provides a link to Intel's time line which suggests they are in no rush to replace the i739xx series CPU chip - which has I believe amongst other things 2 cores disabled.  Normally bitter experience has taught me not to rush out and buy the latest technology but let others "test" it first and then benefit from reduced prices as that model is replaced.  However, it now seems like last years technology is going to remain as this years technology and probably the first 2 quarters at least of next year and, if anything, the price of the i739xx series is at best staying at it's existing launch price or even rising.  So it's time to take the plunge for me and upgrade.
    My current hardware for editing:
    I started with Premier 6.5 after I bought it as part of a bundle with a Matrox RTX 10 card - one of the most temperamental pieces of hardware I've had the misfortune to work with.  I later upgraded to Premiere Pro 1.5 and edited with that using a Pentium 4 2.6 (overclocked to 3.2), 3 hard drives (no raid) and 4G of memory.  The video footage used was avi recorded using a Canon MVX 30i and Panasonic NVGS27 and now I've added the Casio Exilim EX -FC100 (mpeg format) and a Panasonic HDC S90 (AVCHD).
    My PC coped with the editing I did with avi footage but couldn't handle AVCHD format and this convinced me to upgrade to Premiere Pro CS5.5.  At the same time I switched to editing on a Dell XPS M1530 (Centrino duo chip) - I upped the memory to 4GB, put Windows 7 64 bit home edition on and replaced the existing hard drive with a faster one.  In addition I use a SATA Quickport duo attached to my laptop via an eSATA card.  However, either the Quickport, eSATA card or XPS is extremely temperamental - I never see two external hard drives, 50% of the time see 1 external drive or none at all - when that happens I edit around it doing things I can with just the one internal drive - but this problem is not my question.
    The type of editing i do:
    I know people usually say around here not to try editing on laptops and believe me, I understand why, but using this setup I have been able to edit lots of videos  - see here for examples of the type of editing I currently do:
    http://www.youtube.com/user/PathfinderPro
    The equipment test videos place the biggest strain on the hardware when editing.  And, to do this editing I have to convert my AVCHD footage in to it's YouTube format before editing and even after I've done that it can be tediously slow to edit and playback even with premiere set to play at 1/4 normal quality.  To convert the AVCHD footage to the YouTube format I edit in has to be done over many nights.
    Now I am not a professional, I typically edit with up to 4 tracks of video with additional tracks for titles and my target audience is YouTube - which is why I can get away without editing in my prefered option of native AVCHD video format.  However, I'm tired of all the waiting, stuttering, and many many days and hours of converting videos into a format I can use so I'm looking to upgrade.  My problem is though I'm uncertain what path to take.  The PPBM results are dominated by overclocked chips, and whilst the motherboard make and model is listed, the hard disks used, graphic card makes and models and memory modules are not.  This is not a criticism of the PPMB tables (big thank you to Bill Gehrke & Harm Millaard for taking the time and effort to pull this much information together) but for me, I am not interested in being in the top 1000 in the world, nor overclocking like mad, and having had horror experiences of using matrox products and compatibility and stability issues with other hardware I'm more interested in compatability and practicality than speed when deciding what to build.  I've also read the threads about marvel controllers, dual and quad channel memory support, the pro's and cons of SSD or standard drives, raid setups, the heat problems with overclocking the newer ivy bridge chips and general build advice etc so I'm not coming here without having done some reading first.
    The type of system I'm thinking of:
    So far based on what I've read here, I've come to the conclusion - but I'm open to suggestion:
    - Chip - regrettably due to the cost and unlikely successor anytime soon - a 39xx (with appropriate cooler) because I want to edit in native AVCHD which seems to require the warrior type chip as opposed to the "economical" build regardless of what my target audience is and this suggests
    - X79 motherboard (which must have an old PCI slot such as the Asus Sabertooth and which has room for the cooler I'm considering).  As I will be carrying over my old terretec DMX 6 fire 24/96 soundcard - all my videos have their audio mastered in Audition using this card - best piece of advice I read was the audience will watch a bad video with good sound editing but not the other way round)
    - 4 hard drives plus additional hard drive for operating system using onboard raid controllers (not sure whether the operating system drive will be WD caviar black or SSD and can't justify cost of external raid controller for either my type of use or number of hard drives being used)
    - Video card - I can now buy a GTX 580 for less than the 670 - so not sure on the card especially based on Harm Millards observations that memory bandwith seems to be as important as CUDA cores
    - Case - I have an Akasa 62 case with room for 5 hard drives - I won't be exceeding that, and if I overclock it will only be by a little so is it really necessary to replace it for a Tower Case - although I would prefer a case with a front connection for esata so I may have to change the case regardless
    - Maximum memory 32G - so is it necessary to upgrade to windows 7 professional?
    - Power source - I'll work out when I've decided on my components.
    Help please:
    For me it's video source/dictated software chosen and hardware/audience(youtube) dictates format edited in.  As I don't intend to change my camcorders format (AVCHD or mpeg) in the next couple of years and I'm not interested in having the "fastest" system around what I'm really interested in learning is:
    what system setups people use now for doing similar editing to me
    what make/models of the component parts in your system work well together
    and if you do have a bottle neck in terms of hardware, where is it and what hardware would you change to  (not a dream model change, just a practical and realistic one)
    I have deliberately not given a budget for the changes I'm intending because budget should not be the deciding factor in determining what I "need" to upgrade to for the "type of editing I do" - especially bearing in mind I've got by so far (admitedly at a tortoise pace) with by todays standards a standard spec laptop.  Basically I don't want a Rolls Royce to go shopping at Wallmart but I'm tired of walking there and carrying everything back by hand!
    Thank you very much for any help / experiences people can share.

    Thank you both for your prompt and helpful replies.
    Mr Millaard, regarding your excellent article Planning and Building an NLE system, I have read it a couple of times now and it was your article which finally convinced me the time was now to upgrade but within it you said for good reason "Initial choice of CPU: i7-39xx with the intention to overclock to 4.6 - 4.8 GHz", hence my uncertainty about the CPU to use.  I have seen a video you posted here  - I think it was based on your cats (which I incidently enjoyed) so working on the editing done there (but not remembering if you mentioned what video format you used) and others who have mentioned many pro's for the i7-39xx I was leaning towards that - but I'm financially relieved at least - if the i3770 will do, although now with the possible recommendation by JEShort01 (sorry not sure of the forum etiquette for use of names) of the 2600K overclocked I'm a little bit back in the position of which is more suitable especially with the update to the i3770 being nearer than i7-39xx.  This still makes me lean towards the i7-39xx.
    Regarding the editing, the match play you can see on the channel is indeed 1 camera basic edits - multiple titles used to provide the score board.  However, the coaching videos use mulitple cameras - 3 to 4 sometimes (another reason for upgrading to CS5.5 for the multi cam editing support) and the equipment testing video can use 3 or 4 tracks layered on top of each other other with each track having opacity settings and multiple motion effects and titles with occasional keying video effects added.  For example this video at approx 2 mins 50 and 5 mins 10 seconds.
    http://www.youtube.com/watch?v=T1E5T7xo57c&list=PL577F7AB5E31FC5E9&index=13&feature=plpp_v ideo
    Monitor wise I use dual monitor setup.  My laptop screen and I link out to an LG M2394 D for widescreen and I sometimes use an old Neovo F-419 for 3 / 4 editing.  I won't be using more monitors than 2.  If the 580 drops a bit more I'll probably go for that - although I'll have to make sure it's size isn't an issue for the motherboard combo setup.  Interestingly there is a thread shown on the forum home page which discusses the 570 vs the 660ti and the opinion was go with the 660ti which surprised me a bit.
    Windows 7 professional it is then - I should have known that too - apologises for asking a question already asked.
    "Accepted, your correct criticism of the lacking hardware info on the PPBM5 website. That is the overriding reason that for the new site http://ppbm7.com/ we want to use Piriform Speccy .xml results to gather more, more accurate and more detailed hardware info."
    No criticism intended Mr Millaard - more an observation and I really look forward to that evolution with PPBM7.  I'm assuming the .xml results will use pre populated drop down lists people can select their hardware from - that way you can control and ensure consistent entries - downside being the work required by you to populate the lists in the first place and maintain them.
    Thanks again for your help but I'm still unsure a bit about the CPU and video card though.

  • [svn:bz-trunk] 11030: Tweak the deserialization of ASObjects to treat an empty string for the type of an object as null .

    Revision: 11030
    Author:   [email protected]
    Date:     2009-10-20 11:35:02 -0700 (Tue, 20 Oct 2009)
    Log Message:
    Tweak the deserialization of ASObjects to treat an empty string for the type of an object as null. It appears that there is some logic in the LC remoting code that relies on a non-null class name to always exist. This change reverts to the old behavior of not allowing empty string as a value for the ASObject.namedType.
    This should fix bug 2448442 and its duplicates caused by the recent serialization changes.
    I don't think this is the perfect fix. Pending further investigation, a better fix would be either:
    a. If it's OK to assume that empty string should always mean null for the type of the ASObject, the code that enforces it should be in the setter/getter inside ASObject and not in the deserializer.
    b. ASObject doesn't guarantee that a named type exists or is valid. In that sense an empty string is as bad as some random characters that cannot be a valid class name in java, so depending on how disruptive it may be, the fix should be in any logic that uses ASObject.getType().
    Modified Paths:
        blazeds/trunk/modules/core/src/flex/messaging/io/amf/AbstractAmfInput.java

    Hi Pavan,
    "In your payload there is no namespace prefix for the elements under PayloadHeader element."
    Yes, you are right - but this message is standard AQ Adapter Header message - it's not defined by me. I just used message which was automatically added to my project when I have defined AQ Adapter.
    "In your process is the default namespace is same as namespace value of tns ??"
    Do you mean targetNamespace? If yes it's different as it points to process "targetNamespace="http://xmlns.oracle.com/PF_SOA_jws/PF_APPS/APPS_PROCESS" (names of application and process have changed as I try different ways to do that)
    ns1 is: xmlns:ns1="http://xmlns.oracle.com/pcbpel/adapter/aq/PF_SOA/PF_APPS/PO_AQ"
    "another thing is tns and ns1 should have same values.."
    When I create a variable of header type, namespace ns1 is automatically created for it. I set it as property of receive activity. When process is instantiated on the serwer I get the error in which you can see that namespace is tns.
    Maybe I'm doing something wrong but I don't see how I could fix this in my process.
    You can see that the message I get on the server has nothing in common with the application/project/process names. Is it possible to define such variable?
    Regards
    Pawel
    PS:
    In Transformation xsl file, both variables (source and target) has tns namespace for Header and PayloadHeader, and no namespace for subfields.
    Edited by: pawel.fidelus on 2010-01-05 02:37

  • I am interested in buying a macbook laptop. I am confused however in which one I should buy for the type of work that I will be doing. I either am looking into getting a macbook pro or the macbook air. I am leaning more towards the air.

    I am interested in buying a macbook laptop. I am confused however in which one I should buy for the type of work that I will be doing. I either am looking into getting a macbook pro or the macbook air. I am leaning more towards the air.

    A basic MBA will be more than adequate.  Take into consideration that storage may be a long term issue unless you are not averse to traveling with an external HDD. 
    Ciao.

  • Can someone explain me the error "The method xyz is ambiguous for the type"

    I get this compiler-error "The method compareTo(java.lang.Object) is ambiguous for the type MyClass" everytime when I want to access the method "compareTo(Object)", which is overwritten in MyClass and in the superclass of MyClass.
    What does it mean?
    Thank you for your help!
    Ciao

    it means you are using a method declared in two of your class declared packages...
    the package paradigm was created to provide a way to distinguish the method with the same signature but from different projects..
    many Java API methods has the same signature but comes from diferent packages.. if you declare theese packages using '*', you should declare it variables with its full signature...
    look this:
    http://java.sun.com/docs/books/tutorial/java/interpack/packages.html

  • HT1918 Trying to edit my payment info.  I keep getting the message that my number is not valid for the type of card I have selected.  I have a VISA card.  I have typed in the number 4 times, but same message pops up.

    Trying to edit my payment info.  I keep getting the message that my number is not valid for the type of card I have selected.  I have a VISA card.  I have typed in the number 4 times, but same message pops up.
    Thoughts?

    You are probably entering your Visa's security code incorrectly.  Here's how to find it:
    http://support.apple.com/kb/HT3541

  • Relus of notification : No Metrics for the type

    Hi evry body,
    When i deployed my management Plug-in (with OEM),it was OK,it collectes and display all the metrics.
    BUT whene want to create rules in:
    Préférences>Rules>create...
    with Metrics,I have this message : No metrics for the type voxpilot.
    i have not find any thing in the doc about that.
    thank's for the help.
    Message was edited by:
    mellissa
    Mellissa

    Hi every Body,
    finnaly i had found solution of my probleme,
    to display metrics on rules console, in the default collection file you must define thresholds for every metric you want to manage.
    thank's

  • Setting preferences for the Type Tool

    Is there a way to change the preferences for the TypeTool? For example, when using it to create a frame, can I set it so that the vertical justification is center instead of top? At present I have to use command B to bring up a panel to make that change. CS4 on a Mac.

    You're not talking about preferences for the Type tool. That would be for character or paragraph formatting. You're talking about preferences for a type frame.
    You should create an Object Style (Window > Styles > Object Styles) that creates a frame the way you like and apply it as an object style.

  • While running my app I get the below error  - have different Class objects for the type javax/servlet/http/HttpServletRequest used in the signature

    I am running ATG[10.1.2] app on Jboss [EAP 5.1.0 GA] I am able to open dyn/admin however when I start my app I get the below error
    java.lang.LinkageError: loader constraint violation: when resolving method "atg.servlet.ServletUtil.setSessionConfNumCacheRequest(Ljavax/servlet/http/HttpServletRequest;)Ljavax/servlet/http/HttpServletRequest;" the class loader (instance of org/jboss/classloader/spi/base/BaseClassLoader) of the current class, atg/filter/dspjsp/PageFilter, and the class loader (instance of org/jboss/classloader/spi/base/BaseClassLoader) for resolved class, atg/servlet/ServletUtil, have different Class objects for the type javax/servlet/http/HttpServletRequest used in the signature
      at atg.filter.dspjsp.PageFilter.doFilter(PageFilter.java:215)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at atg.servlet.ForwardFilter.doFilter(ForwardFilter.java:263)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at atg.servlet.ErrorFilter.doFilter(ErrorFilter.java:279)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:638)
      at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:446)
      at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:382)
      at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:310)
      at org.apache.catalina.core.StandardHostValve.custom(StandardHostValve.java:416)
      at org.apache.catalina.core.StandardHostValve.status(StandardHostValve.java:342)
      at org.apache.catalina.core.StandardHostValve.throwable(StandardHostValve.java:286)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
      at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
      at java.lang.Thread.run(Thread.java:680)
    11:22:47,413 ERROR [[localhost]] Exception Processing ErrorPage[errorCode=500, location=/global/errorPage500.jsp]

    The supported JBoss version for 10.1.2 is JBoss EAP 5.1.2 but I don't think that your issue is caused because of this. Your issue is more of an environmental thing as you are probably getting two different versions getting loaded of class javax.servlet.http.HttpServletRequest and so correspondingly two different Class objects as the error shows. One reason for this could be if you include any server-specific libraries (in present case the Servlet API JAR which contains the class javax.servlet.http.HttpServletRequest) of a different version in the /WEB-INF/lib of your web application. Try removing it from there if so and see if that helps.

  • In the download box, the check box for "always do this for this type of file" is grayed out for the type of file I want, and that application does not appear in the application menu, so how do I set it to perform this function every time?

    The file type in question is InCopy, and the download box acknowledges that program as the type to open it with, but I never want to open it; I always want to save it. This feature works fine with other file types, but not with InCopy. I download thousands of files, so automating this is very important.

    The file type in question is InCopy, and the download box acknowledges that program as the type to open it with, but I never want to open it; I always want to save it. This feature works fine with other file types, but not with InCopy. I download thousands of files, so automating this is very important.

Maybe you are looking for

  • Using one ipod on 2 computers - is this possible?!

    Hi guys I would really appreciate it if somebody could help out with this: I want to buy my girlfriend an 80gb Ipod Classic for xmas and load it with some music using my existing version of itunes (version 7.3.2.6) and then give it to her so that she

  • Connecting via sftp

    I'm having problems connecting to a server via sftp. My friend on a macbook pro using the same internet provider is not having problems connecting/logging in (same username/pwd). What settings on my macbook pro could be preventing my sftp access? I'v

  • Regarding OTF Spool job

    Hi Folks I am using the following code for my requirement: data: SPOOLNO LIKE TSP01-RQIDENT value '24841'. DATA: NUMBYTES TYPE I. data :pdfspoolid like tsp01-rqident, jobname like tbtcjob-jobname, jobcount like tbtcjob-jobcount. DATA: PDF LIKE TLINE

  • Copying queries between multicubes without having the same info objects

    Hello all, I have heard that it should be possible to use the debugger in order to copy a report between two multiproviders without having the exact same info objects in both multiproviders. All the info objects in the report are off course available

  • Internet stopped working on Windows side

    For some reason my internet connection just stopped working on the Windows side of my MBP. Last week I was using it, and one minute it worked, the next it didn't. I didn't make any changes to settings, etc.... Not only does it not work with my wirele