To retrieve the mesage body in HttpServletRequest

I used getReader () method for reading the message body in the request
like:
protected void doGet(HttpServletRequest req,HttpServletResponse rep)throws ServletException,IOException{
PrintWriter out=rep.getWriter();
rep.setContentType("text/plain");
try{
BufferedReader br=req.getReader();
String s;
while((s=br.readLine())!=null){
out.println(s);
protected void doPost(HttpServletRequest req,HttpServletResponse rep)throws ServletException,IOException{
doGet(req,rep);
When the servlet runs,it didnt display anything.When i tried to print header using getHeader() it shows an output as GET.
But why didnt i get the message body?
Can you clear this?

1. How do you invoke the servlet (Can we see that part of the code)
2. What is the format of message body, what is the content type
3. When you send a message body you must use Post method not get.

Similar Messages

  • HELP! How te retrieve the last row in MYSQL database using Servlet!

    Hi ,
    I am new servlets. I am trying to retireve the last row id inserted using the servlet.
    Could someone show me a working sample code on how to retrieve the last record inserted?
    Thanks
    MY CODE
    import java.awt.*;
    import java.awt.event.*;
    import java.net.*;
    import java.io.*;
    import java.util.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.sql.*;
    public class demo_gr extends HttpServlet {
    //***** Servlet access to data base
    public void doPost (HttpServletRequest req, HttpServletResponse resp)
         throws ServletException, IOException
         String url = "jdbc:mysql://sql2.njit.edu/ki3_proj";
              String param1 = req.getParameter("param1");
              PrintWriter out = resp.getWriter();
              resp.setContentType("text/html");
              String semail, sfname, slname, rfname, rlname, remail, message;
              int cardType;
              sfname = req.getParameter("sfname");
              slname = req.getParameter("slname");
              rfname = req.getParameter("rfname");
              rlname = req.getParameter("rlname");
              semail = req.getParameter("semail");
              remail = req.getParameter("remail");
              message = req.getParameter("message");
              //cardType = req.getParameter("cardType");
              cardType = Integer.parseInt(req.getParameter("cardType"));
              out.println(" param1 " + param1 + "\n");
         String query = "SELECT * FROM greeting_db "
    + "WHERE id =" + param1 + "";
              String query2 ="INSERT INTO greeting_db (sfname, slname ,semail , rfname , rlname , remail , message , cardType ,sentdate ,vieweddate) values('";
              query2 = query2 + sfname +"','"+ slname + "','"+ semail + "','"+ rfname + "','"+ rlname + "','"+ remail + "','"+ message + "','"+ cardType + "',NOW(),NOW())";
              //out.println(" query2 " + query2 + "\n");
              if (semail.equals("") || sfname.equals("") ||
              slname.equals("") || rfname.equals("") ||
              rlname.equals("") || remail.equals("") ||
              message.equals(""))
                        out.println("<h3> Please Click the back button and fill in <b>all</b> fields</h3>");
                        out.close();
                        return;
              String title = "Your Card Has Been Sent";
              out.println("<BODY>\n" +
    "<H1 ALIGN=CENTER>" + title + "</H1>\n" );
                   out.println("\n" +
    "\n" +
    " From  " + sfname + ", " + slname + "\n <br> To  "
                                            + rfname + ", " + rlname + "\n <br>Receiver Email  " + remail + "\n<br> Your Message "
                                            + message + "\n<br> <br> :");
                   if (cardType ==1)
                        out.println("<IMG SRC=/WEB-INF/images/bentley.jpg>");
                   else if(cardType ==2) {
                        out.println("<IMG SRC=/WEB-INF/images/Bugatti.jpg>");
                   else if(cardType ==3) {
                        out.println(" <IMG SRC=/WEB-INF/images/castle.jpg>");
    else if(cardType ==4) {
                        out.println(" <IMG SRC=/WEB-INF/images/motocross.jpg>");
    else if(cardType ==5) {
                        out.println(" <IMG SRC=/WEB-INF/images/Mustang.jpg>");
    else if(cardType ==6) {
                        out.println("<IMG SRC=/WEB-INF/images/Mustang.jpg>");
    out.println("</BODY></HTML>");
         try {
              Class.forName ("com.mysql.jdbc.Driver");
              Connection con = DriverManager.getConnection
              ( url, "*****", "******" );
    Statement stmt = con.createStatement ();
                   stmt.execute (query2);
                   //String query3 = "SELECT LAST_INSERT_ID()";
                   //ResultSet rs = stmt.executeQuery (query3);
                   //int questionID = rs.getInt(1);
                   System.out.println("Total rows:"+questionID);
    stmt.close();
    con.close();
    } // end try
    catch (SQLException ex) {
              //PrintWriter out = resp.getWriter();
         resp.setContentType("text/html");
              while (ex != null) { 
         out.println ("SQL Exception: " + ex.getMessage ());
         ex = ex.getNextException ();
    } // end while
    } // end catch SQLException
    catch (java.lang.Exception ex) {
         //PrintWriter out = resp.getWriter();
              resp.setContentType("text/html");     
              out.println ("Exception: " + ex.getMessage ());
    } // end doGet
    private void printResultSet ( HttpServletResponse resp, ResultSet rs )
    throws SQLException {
    try {
              PrintWriter out = resp.getWriter();
         out.println("<html>");
         out.println("<head><title>jbs jdbc/mysql servlet</title></head>");
         out.println("<body>");
         out.println("<center><font color=AA0000>");
         out.println("<table border='1'>");
         int numCols = rs.getMetaData().getColumnCount ();
    while ( rs.next() ) {
              out.println("<tr>");
         for (int i=1; i<=numCols; i++) {
    out.print("<td>" + rs.getString(i) + "</td>" );
    } // end for
    out.println("</tr>");
    } // end while
         out.println("</table>");
         out.println("</font></center>");
         out.println("</body>");
         out.println("</html>");
         out.close();
         } // end try
    catch ( IOException except) {
    } // end catch
    } // end returnHTML
    } // end jbsJDBCServlet

    I dont know what table names and fields you have but
    say you have a table called XYZ which has a primary
    key field called keyID.
    So in order to get the last row inserted, you could
    do something like
    Select *
    from XYZ
    where keyID = (Select MAX(keyID) from XYZ);
    Good Luckwhat gubloo said is correct ...But this is all in MS SQL Server I don't know the syntax and key words in MYSQL
    This works fine if the emp_id is incremental and of type integer
    Query:
    select      *
    from      employee e,  (select max(emp_id) as emp_id from employee) z
    where      e.emp_id = z.emp_id
    or
    select top 1 * from employee order by emp_id descUday

  • How can an applet retrieve the values of a HTML form shown in a JEditorPane

    Hi,
    I'm doing an applet that contains a JTree and a JEditorPane
    among other components. Each node of the JTree represents some
    information that is stored in a database, and whenever a JTree
    node is selected, this information is recovered and shown in
    the JEditorPane with a html form. To make the html form,
    the applet calls a servlet, which retrieves the information of
    the node selected from the database. This information is stored
    like a XML string, and using XSLT, the servlet sends the html
    form to the applet, which shows it in the JEditorPane.
    My problem is that I don't know how I can recover new values
    that a user of the application can introduce in the input fields
    of the html form. I need to recover this new values and send them
    to another servlet which store the information in the database.
    If someone could help me I'd be very pleased.
    Eduardo

    At least I found a fantastic example. Here it is:
    import java.awt.*;
    import java.awt.event.*;
    import java.util.*;
    import java.net.*;
    import javax.swing.*;
    import javax.swing.text.*;
    import javax.swing.text.html.*;
    public class FormSubmission extends JApplet {
    private final static String FORM_TEXT = "<html><head></head><body><h1>Formulario</h1>"
    + "<form action=\"\" method=\"get\"><table><tr><td>Nombre:</td>"
    + "<td><input name=\"Nombre\" type=\"text\" value=\"James T.\"></td>"
    + "</tr><tr><td>Apellido:</td>"
    + "<td><input name=\"Apellido\" type=\"text\" value=\"Kirk\"></td>"
    + "</tr><tr><td>Cargo:</td>"
    + "<td><select name=\"Cargo\"><option>Captain<option>Comandante<option>General</select></td>"
    + "</tr><td colspan=\"2\" align=\"center\"><input type=\"submit\" value=\"Enviar\"></td>"
    + "</tr></table></form></body></html>";
    protected HashMap radioGroups = new HashMap();
    private Vector v = new Vector();
    public FormSubmission() {
    getContentPane().setLayout(new BorderLayout());
    JEditorPane editorPane = new JEditorPane();
    editorPane.setEditable(false);
    editorPane.setEditorKit(new HTMLEditorKit()
    public ViewFactory getViewFactory() {
    return new HTMLEditorKit.HTMLFactory() {
    public View create(Element elem) {
    Object o = elem.getAttributes().getAttribute(javax.swing.text.StyleConstants.NameAttribute);
    if (o instanceof HTML.Tag)
    HTML.Tag kind = (HTML.Tag) o;
    if (kind == HTML.Tag.INPUT || kind == HTML.Tag.SELECT || kind == HTML.Tag.TEXTAREA)
    return new FormView(elem)
    protected void submitData(String data)
    showData(data);
    protected void imageSubmit(String data)
    showData(data);
    // Workaround f�r Bug #4529702
    protected Component createComponent()
    if (getElement().getName().equals("input") &&
    getElement().getAttributes().getAttribute(HTML.Attribute.TYPE).equals("radio"))
    String name = (String) getElement().getAttributes().getAttribute(HTML.Attribute.NAME);
    if (radioGroups.get(name) == null)
    radioGroups.put(name, new ButtonGroup());
    ((JToggleButton.ToggleButtonModel) getElement().getAttributes().getAttribute(StyleConstants.ModelAttribute)).setGroup((ButtonGroup) radioGroups.get(name));
    JComponent comp = (JComponent) super.createComponent();
    // Peque�a mejora visual
    comp.setOpaque(false);
    return comp;
    return super.create(elem);
    //editorPane.setText(FORM_TEXT);
    editorPane.setText(texto);
    getContentPane().add(new JScrollPane(editorPane), BorderLayout.CENTER);
    private void showData(String data) {
         // ergebnis significa resultado
    StringBuffer ergebnis = new StringBuffer("");
    StringTokenizer st = new StringTokenizer(data, "&");
    while (st.hasMoreTokens()) {
    String token = st.nextToken();
    String key = URLDecoder.decode(token.substring(0, token.indexOf("=")));
    String value = URLDecoder.decode(token.substring(token.indexOf("=")+1,token.length()));
    v.add(value);
    ergebnis.append(" "); ergebnis.append(key); ergebnis.append(": "); ergebnis.append(value); ergebnis.append(" ");
    ergebnis.append(" ");
    JOptionPane.showMessageDialog(this, ergebnis.toString());
    public static void main(String[] args) throws Exception {
    JFrame frame = new JFrame ();
    FormSubmission editor = new FormSubmission ();
    frame.getContentPane().add(editor);
    frame.pack();
    frame.show();
    }

  • How to retrieve the max value from a cursor in procedure

    Hi,
    In a procedure, I defined a cursor:
    cursor c_emp is select empno, ename, salary from emp where ename like 'J%';
    but in the body part, I need to retrieve the max(salary) from the cursor.
    could you please tell me how I can get the max value from the cursor in the procedure.
    Thanks,
    Paul

    Here is one sample but you should just get the max directly. Using bulk processing should be a last resort.
    DECLARE
      CURSOR c1 IS (SELECT * FROM emp where sal is not null);
      TYPE typ_tbl IS TABLE OF c1%rowtype;
      v typ_tbl;
      max_sal number;
    BEGIN
      OPEN c1;
      max_sal := -9999999999999;
      LOOP                                                 --Loop added
        FETCH c1 BULK COLLECT INTO v LIMIT 3; -- process 3 records at a time
            -- process the records
           DBMS_OUTPUT.PUT_LINE('Processing ' || v.COUNT || ' records.');
            FOR i IN v.first..v.last LOOP
                 if v(i).sal > max_sal then
                   max_sal := v(i).sal;
                 end if;
                DBMS_OUTPUT.PUT_LINE(v(i).empno);
            END LOOP; 
        EXIT WHEN c1%NOTFOUND;
      END LOOP;
      DBMS_OUTPUT.PUT_LINE('Max salary was: ' || max_sal);
    END;
    Processing 3 records.
    7369
    7499
    7521
    Processing 3 records.
    7566
    7654
    7698
    Processing 3 records.
    7782
    7788
    7839
    Processing 3 records.
    7844
    7876
    7900
    Processing 2 records.
    7902
    7934
    Max salary was: 5000

  • Error: You cannot login because an error occurred while retrieving the login URL. (WW

    Situation is this.. was using 8.1.6 EE and Oracle Portal.. was able to get the Oracle Portal page up and after a while the application died.. this happened numerous times. Found in one of these forums that a bug existed (UTL_HTTP) and recommended going to 8.1.7 EE because of a patch. I migrated my 8.1.6 EE to 8.1.7 EE(made sure procedures & packages were valid). I'm able to bring up the Oracle Portal page but when I go to login I get this:
    Error: You cannot login because an error occurred while retrieving the login URL. (WWC-41441)
    Thoughts?

    Hi,
    I ran ssodatan again and got the following error:
    ERROR: Setting Login Server Partner App
    ORA-06508: PL/SQL: could not find program unit being called
    I then found out that the wwsec_sso_enabler_private in the SSO
    schema is invalid and this was causing the above error. I tried
    recompiling the package but got the following error:
    Errors for PACKAGE BODY WWSEC_SSO_ENABLER_PRIVATE:
    LINE/COL ERROR
    151/6 PL/SQL: SQL Statement ignored
    151/13 PLS-00320: the declaration of the type of this
    expression is incomplete or malformed
    151/20 PLS-00336: non-object-table "SECI" illegal in this
    context
    160/4 PL/SQL: SQL Statement ignored
    643/6 PL/SQL: SQL Statement ignored
    643/13 PLS-00320: the declaration of the type of this
    expression is incomplete or malformed
    643/20 PLS-00336: non-object-table "SECI" illegal in this
    context
    LINE/COL ERROR
    651/4 PL/SQL: SQL Statement ignored
    713/4 PL/SQL: SQL Statement ignored
    713/50 PLS-00382: expression is of wrong type
    745/3 PL/SQL: SQL Statement ignored
    746/10 PLS-00389: table, view or alias name "ENBCONFIG" not
    allowed in this context
    The same package in the Portal schema is valid. Will an
    export of this package from a working instance and an import into
    the above instance solve this problem?
    Thanks and Regards,
    Rupesh

  • Execution stops after retrieving the factory from the ServletContext while

    Hi,
    I just started working with Quartz, so I am clueless as to why I am getting this error. This is my first time tying to integrate Quartz 1.6.0 in a web app. I am using the JSF Framework. Although I have added the necessary jars I am still getting the error above: servlet.jar not loaded. If you follow the java code and server output you can see that after retrieving the factory from the ServletContext there is no further execution . Following is the definition of the class used for scheduling:
    Quartz Version: 1.6.0
    IDE : Netbeans 5.0
    AppServer: Tomcat 5.5
    *************************************** JAVA CODE *************************************
    * BirthdayScheduler.java
    * Created on May 20, 2008, 5:24 PM
    package com.csg.cs.cscomwebdev.servlet.timer;
    import java.io.*;
    import java.net.*;
    import java.util.Date;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import org.quartz.JobDetail;
    import org.quartz.SchedulerException;
    import org.quartz.SimpleTrigger;
    import org.quartz.impl.StdSchedulerFactory;
    import org.quartz.Scheduler;
    * @author Arijit Datta
    * @version
    public class BirthdayScheduler extends HttpServlet {
    /** Processes requests for both HTTP <code>GET</code> and <code>POST</code> methods.
    * @param request servlet request
    * @param response servlet response
    protected void processRequest(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {
    response.setContentType("text/html;charset=UTF-8");
    PrintWriter out = response.getWriter();
    out.close();
    /** Handles the HTTP <code>GET</code> method.
    * @param request servlet request
    * @param response servlet response
    protected void doGet(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {
    processRequest(request, response);
    /** Handles the HTTP <code>POST</code> method.
    * @param request servlet request
    * @param response servlet response
    protected void doPost(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {
    processRequest(request, response);
    /** Returns a short description of the servlet.
    public String getServletInfo() {
    return "Short description";
    public void init()
    System.out.println(" ------------ STARTTING JOB --------------");
    // Retrieve the ServletContext
    ServletContext theApplicationsServletContext = this.getServletContext();
    // Retrieve the factory from the ServletContext
    StdSchedulerFactory factory =(StdSchedulerFactory)theApplicationsServletContext.getAttribute("QuartzFactory Servlet.QUARTZ_FACTORY_KEY");
    System.out.println(" ------------ FACTORY GOT --------------");
    try {
    // Retrieve the scheduler from the factory
    Scheduler scheduler = factory.getScheduler();
    System.out.println(" ------------ SCHEDULER GOT --------------");
    // Start the scheduler
    scheduler.start();
    System.out.println(" ------------ SCHEDULER STARTED --------------");
    //Creating a job
    JobDetail birthdayJobDetail = new JobDetail("birthdayReminderJob", scheduler.DEFAULT_GROUP, BirthdayReminderJob.class );
    System.out.println(" ------------ JOB CREATED --------------");
    //Creating a trigger
    SimpleTrigger birthdayJobtrigger = new SimpleTrigger("birthdayReminderTrigger",scheduler.DEFAULT_GROUP, new Date(),null,SimpleTrigger.REPEAT_INDEFINITELY, 60L * 1000L);
    System.out.println(" ------------ TRIGGER CREATED --------------");
    //Scheduling the job
    scheduler.scheduleJob(birthdayJobDetail,birthdayJobtrigger );
    System.out.println(" ------------ JOB SCHEDULED --------------");
    } catch (SchedulerException ex) {
    System.out.println(ex.getMessage());
    } ************************************* SECTION OF WEB.XML ************************
    <servlet>
    <description>Quartz Initializer Servlet</description>
    <servlet-name>QuartzInitializer</servlet-name>
    <servlet-class>org.quartz.ee.servlet.QuartzInitializerServlet</servlet -class>
    <init-param>
    <param-name>shutdown-on-unload</param-name>
    <param-value>true</param-value>
    </init-param>
    <init-param>
    <param-name>start-scheduler-on-load</param-name>
    <param-value>true</param-value>
    </init-param>
    <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet>
    <servlet-name>BirthdayScheduler</servlet-name>
    <servlet-class>com.csg.cs.cscomwebdev.servlet.timer.BirthdayScheduler< /servlet-class>
    <load-on-startup>1</load-on-startup>
    </servlet> *********************************** SERVER OUTPUT *******************************
    Using CATALINA_BASE: C:\Documents and Settings\165171\.netbeans\5.0\jakarta-tomcat-5.5.9_base
    Using CATALINA_HOME: D:\Program Files\netbeans-5.0\enterprise2\jakarta-tomcat-5.5.9
    Using CATALINA_TMPDIR: C:\Documents and Settings\165171\.netbeans\5.0\jakarta-tomcat-5.5.9_base\temp
    Using JAVA_HOME: C:\Program Files\Java\jdk1.5.0_02
    May 20, 2008 7:27:13 PM org.apache.coyote.http11.Http11Protocol init
    INFO: Initializing Coyote HTTP/1.1 on http-8084
    May 20, 2008 7:27:13 PM org.apache.catalina.startup.Catalina load
    INFO: Initialization processed in 766 ms
    May 20, 2008 7:27:13 PM org.apache.catalina.core.StandardService start
    INFO: Starting service Catalina
    May 20, 2008 7:27:13 PM org.apache.catalina.core.StandardEngine start
    INFO: Starting Servlet Engine: Apache Tomcat/5.5.9
    May 20, 2008 7:27:13 PM org.apache.catalina.core.StandardHost start
    INFO: XML validation disabled
    May 20, 2008 7:27:14 PM org.apache.catalina.loader.WebappClassLoader validateJarFile
    INFO: validateJarFile(D:\Java Programs\cs\CSCOMWEBDEV\build\web\WEB-INF\lib\servlet.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
    log4j:WARN No appenders could be found for logger (org.apache.catalina.session.ManagerBase).
    log4j:WARN Please initialize the log4j system properly.
    ------------ STARTTING JOB --------------
    ------------ FACTORY GOT --------------
    May 20, 2008 7:27:15 PM org.apache.coyote.http11.Http11Protocol start
    INFO: Starting Coyote HTTP/1.1 on http-8084
    May 20, 2008 7:27:15 PM org.apache.jk.common.ChannelSocket init
    INFO: JK: ajp13 listening on /0.0.0.0:8009
    May 20, 2008 7:27:15 PM org.apache.jk.server.JkMain start
    INFO: Jk running ID=0 time=0/32 config=null
    May 20, 2008 7:27:15 PM org.apache.catalina.storeconfig.StoreLoader load
    INFO: Find registry server-registry.xml at classpath resource
    May 20, 2008 7:27:16 PM org.apache.catalina.startup.Catalina start
    INFO: Server startup in 2802 ms Can anybody please help out? Where exactly am I going wrong?
    Thanks a lot!
    AD

    Your stop condition is "continue if true". This means that, unless you press the button, the while loop will stop after one iteration.
    First, you should change the termination condition to "stop if true".
    Then you should make the stop button "latch when released" (right-click..mechanical action). Else you don't have a well defined state after the program stops.
    You should decide on a reasonable loop rate and enter it for the wait control. (beter use a diagram constant if the value is always the same).
    Why do you need to continue reading in a loop? Are you expecting the response to change over time?
    Do you want to keep appending to the string indicator or only show the latest characters received?
    Maybe you also need a wait between the writing and reading?
    Delete the ms timer value indicator, it is completely useless.
    Do you get any error codes?
    Don't use the run continous button. Use the plain run button.
    What device are you communicating with? Do you have documentation?
    LabVIEW Champion . Do more with less code and in less time .

  • How to send the  XML  format SOAP request to retrieve the Opportunity

    Hello,
    Can any body suggest me how to send the SOAP request to CRM OnDemand in the format of XML to retrieve the Opportunity ?.
    Thanks,
    --bdr_09                                                                                                                                                                                                                                                                                                                               

    I'm afraid you can't.
    If you want to export/import, you should consider using loader, insert (no sqldev needed for import) or even csv (sqldev needed for import) . If you have a lot of data, consider external tools like Data Pump.
    Have fun,
    K.

  • You cannot login because an error occurred while retrieving the login URL.(WWC-41441)

    Hi,
    I have a Portal install with the following specifications:
    OS - Sun Solaris 2.6
    DB - 8.1.7.0.0
    iAS - 1.0.2.2
    Portal - 3.0.9.0.7
    It was working fine. Then the initjvm.sql that installs the JVM
    in the database was run. This was done as part of the steps
    required for enabling the UTL_SMTP. The script ran without any
    errors but after that Portal Login was failing with the following
    error:
    You cannot login because an error occurred while retrieving the
    login URL. (WWC-41441)
    and there were no Java classes present in the Portal or SSO
    schema. To overcome this error I reloaded the SSOHash classes to
    Portal and SSO schemas and ran ssodatan. The script ran
    successfully and I was able to login to the Portal after that.
    However, if I login as the administrator and try to create or
    edit users from the Administer tab of Portal, the same error
    occurs again:
    You cannot login because an error occurred while retrieving the
    login URL. (WWC-41441)
    I can programmatically add users using the Security APIs.
    The wwsec_enabler_config_info$ table of the Portal schema
    contains one row but the wwsec_enabler_config_info$ table of the
    SSO Schema contains no rows.
    This install of Portal is hosting a number of applications and as
    such running opca again is not an option.
    Any workaround for this?
    Thanks,
    Rupesh

    Hi,
    I ran ssodatan again and got the following error:
    ERROR: Setting Login Server Partner App
    ORA-06508: PL/SQL: could not find program unit being called
    I then found out that the wwsec_sso_enabler_private in the SSO
    schema is invalid and this was causing the above error. I tried
    recompiling the package but got the following error:
    Errors for PACKAGE BODY WWSEC_SSO_ENABLER_PRIVATE:
    LINE/COL ERROR
    151/6 PL/SQL: SQL Statement ignored
    151/13 PLS-00320: the declaration of the type of this
    expression is incomplete or malformed
    151/20 PLS-00336: non-object-table "SECI" illegal in this
    context
    160/4 PL/SQL: SQL Statement ignored
    643/6 PL/SQL: SQL Statement ignored
    643/13 PLS-00320: the declaration of the type of this
    expression is incomplete or malformed
    643/20 PLS-00336: non-object-table "SECI" illegal in this
    context
    LINE/COL ERROR
    651/4 PL/SQL: SQL Statement ignored
    713/4 PL/SQL: SQL Statement ignored
    713/50 PLS-00382: expression is of wrong type
    745/3 PL/SQL: SQL Statement ignored
    746/10 PLS-00389: table, view or alias name "ENBCONFIG" not
    allowed in this context
    The same package in the Portal schema is valid. Will an
    export of this package from a working instance and an import into
    the above instance solve this problem?
    Thanks and Regards,
    Rupesh

  • How to retrieve the result parameter ?

    Hello every body.
    We have selected the result parameter checkbox in a method created in a ZXXX bussiness object. We need to know how to retrieve this result from the task.
    Thank you in advance.
    Juan.

    Hi Juan,
    You can retrieve the result parameter from the method defining the Task.
    Just double click on the task number and you will be taken to the "Standard Task: Change" screen.
    Here Look out for a Small binding symbol in the Object Method cluster.
    Click on the binding symbol and do the necessary binding to get the result from the method to the Task containers.
    And subsequently, u can do the binding betweent the task containers and the workflow containers.
    Hope this helps.
    Regards,
    Raj

  • Failed to retrieve the cube for connection (xyz).(Error:INF)

    Hello ,
    Any body faced this error (Failed to retrieve the cube for connection (xyz).(Error:INF)????
    Replication steps: Open the webi report in Launchpad-> refresh the report--> error appears.
    Component info:
    BOBJ Version: SAP BI 4.1 sp2 version 14.1.2.1121)
    Report: Webi report
    Source:BEX/CUBE
    Connection: OLAP
    BW : SAP BW 7.3
    At first i have checked the user availability ( lock or unlock)  olap connection --- locked --- hence unlocked the user from BW
    but still the issue is remains...
    What my thought is: Cube or Bex or un available..?/inactive?secured bex query?
    kindly suggest on this.
    Note : Don't have access to BW,BEX..

    Hi Subbarao,
    1. If Bex Query is greyed out, then it is not been enabled for external access.
    2. If Bex Query failed to retrieve cube for the connection, then the Cube might be removed or relocated (or) Connection fail
    Try this workaround, this connection will not be affected if you relocate the cube in BW side and also you can use any cube / data mart to access data from BW.
    Create a new secured OLAP Connection with SAP BICS Client under the SAP Netweaver BI 7.X option by providing credentials. Select "Do not specify a cube in the connection" and click finish then publish it to the BO Repository.
    Open the WEBI Report, select the Bex Query as Data source which you want to access, now you can able to retrieve the data from the desired BW Cube via BEX Query.
    Check the User Rights and Role imported into BOE Repository.
    --Raji. S

  • Is it possible to retrieve the list of reports

    Dear all
    I'm using products BOE XI R2 and XI 3.1, I want to know if there is a good way to retrieve the list of reports.
    I want to return a list for all the reports that show out the report name and the folder structure of the report from BOE.
    Like I have a report named salary and it's stored in the BOE in the folder structure as Finance-> Year 2010 -> Income, then I would like to retrieve these information.
    As far as I checked, BOE is not provide this kind of function, to carry out this we might need to write some code, does any body have some idea about this? or sample code for this?
    Thanks a lot.
    Alex

    The best way to query the CMS for information like this in hierarchical view is with this:
    http://www.infolytik.com/blog/cmsreports-cms-object-catalog-report
    Installation and Setup Video:
    http://www.infolytik.com/video/cmsconnect_ce_install/cmsconnect_community_edition_installation.html?iframe
    Download Location:
    http://www.infolytik.com/cmsconnect-community-edition
    Also - the driver + universe is  mode and platform agnostic - .NET/Windows/Java/Unix/etc.  Simply install it on your client machine and use Web Intelligence Rich Client to report against your CMS.  No muss, no fuss. 
    And it's  free ;>
    Enjoy!
    Atul Chowdhury
    Infolytik, Inc.

  • How to retrieve the user input in One Step Screenflow

    Hello all,
    I am new in KM. I would like to ask in One Step Screenflow, I have add a inputfield into the ConfirmComponent. How can I retrieve the user input?
    public IRenderingEvent execute(IScreenflowData sfd) throws WcmException
              inp.setLabel(new Label("Delegation:"));
              ConfirmComponent cc = new  ConfirmComponent(ConfirmComponent.OK_CANCEL,this.context.getLocale(),inp);
              String sRid = (String)this.values.get(0);
              RID rid = RID.getRID(sRid, null);
              OneStepScreenflow oscf = new OneStepScreenflow(sfd,this.getAlias(),rid,cc);
              return oscf.execute();
    In the IRenderingEvent , How to retrieve the user input?
    public IRenderingEvent execute(IResource res, Event event ) throws WcmException
              if (event instanceof ConfirmEvent)
                        ConfirmEvent cce = (ConfirmEvent)event;
                        if (ConfirmEvent.CHOICE_YES.equals(cce.getChoice()))
                                  return new InfoEvent(Status.OK, "Done !");
                        else if (ConfirmEvent.CHOICE_NO.equals(cce.getChoice()))
                                  return ConfirmComponent.onNo(event, res.getContext().getLocale());
                        else if (ConfirmEvent.CHOICE_CANCEL.equals(cce.getChoice()))
                                  return ConfirmComponent.onCancel(event, res.getContext().getLocale());
              return new InfoEvent(Status.ABORT, "Aborted.");
    Many Thanks,
    Sunny

    Hello yoga,
    Many Many thanks for your reply again.
    I have just try the class in the thread link.
    There is a error
    "The project was not built since its classpath is incomplete. Cannot find the class file for javax.servlet.http.HttpServletRequest. Fix the classpath then try rebuilding this project."
    The errors occurs because of "extends OneStepComponent"
    public final class NewConfirmInputComponent extends OneStepComponent
    Where can find javax.servlet.http.HttpServletRequest to include it in my classpath?
    Thanks
    Sunny

  • How to use the opportunity stub classes to retrieve the opportunity objects

    Hello ,
    I have downloaded WSDL file for opportunity and i have created the stub classes by using axis as WSDL to java. Can any body suggest me , how can i use those created stub classes to retrieve the opportunity objects ?.
    Thanks,
    --bdr_09
    Edited by: bdr on Feb 3, 2009 1:54 AM

    http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/Tools8.html#63055

  • Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.

    Hi there,
    I use visual studio community 2013 to develop app for office. When I create app project using template and directly run it, it shows me this error: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
    Can anyone help? Thanks in advance.

    Hi holm0104,
    Did you add custom code into the project? Can you reproduce the issue in a new project without custom code?
    If not, did you have issue when you create a normal web application?
    Regards & Fei
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • "Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information" while attempting to open UNIX/Linux monitor

    We have upgraded our System Center to 2012 R2, and we cannot open any of the UNIX/Linux LogFile monitor property or the UNIX/Linux process monitor property for those monitors created prior to the upgrade.  Error we get is below.  Any assitance
    appreciated.
    Date: 9/30/2014 10:01:46 PM
    Application: Operations Manager
    Application Version: 7.1.10226.0
    Severity: Error
    Message:
    System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
       at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection,
    Boolean suppressSecurityChecks)
       at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection,
    Boolean suppressSecurityChecks)
       at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection,
    Boolean suppressSecurityChecks)
       at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean forIntrospection)
       at System.Reflection.RuntimeAssembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection)
       at System.Reflection.Assembly.Load(String assemblyString)
       at Microsoft.EnterpriseManagement.Internal.UI.Authoring.Extensibility.TypeContainer.get_ContainedType()
       at Microsoft.EnterpriseManagement.Internal.UI.Authoring.Extensibility.MomExtensionsCommon.AddTemplatePages(LaunchTemplateUIData launchData, Form form)
       at Microsoft.EnterpriseManagement.Internal.UI.Authoring.Extensibility.MomExtensionsCommon.Initialize(Object launchData, Form form)
       at Microsoft.EnterpriseManagement.Internal.UI.Authoring.Extensibility.MomExtensionsCommon.RunPrivate(Object[] userData)
       at Microsoft.EnterpriseManagement.Internal.UI.Authoring.Extensibility.MomExtensionsCommon.Run(Object[] userData)

    It's possible the upgrade did not update everything properly as it looks like a dll mismatch or a missing file. I'd open a support ticket with MS and have a support engineer look at the upgrade logs. What version of SCOM did you upgrade from?
    Regards,
    -Steve

Maybe you are looking for

  • How to unfeezing a Macbook Pro?

    my MacBook Pro keeps freezing every time I go on to a website. I have tried turning it on and off, logging out of my user and have forced quit it many times and it still hasn't worked. The colour wheel also appears when I go on to my desktop a won't

  • Site doesn't get updated

    I've created a site with iWeb, embedded a song and clicked on the Publish button. The site was published, but I forgot to make the song loop. So I went to iWeb and checked the loop box in the Inspector (quicktime tab). I saved the change and hit Publ

  • MDX Testeditor - How to bring in the Catalog and Cube values??

    Hello Experts,        Is there a way to create new 'Catalog' and new 'Cube' where in I can add the Multiprovider name in the Catalog section and 5 queries in the multiprovider under Cube section.        I have a problem bringing in the new queries un

  • XML Rules in Indesign

    Hi all, I'm trying to use the XMLRuleProcessor for getting the elements directly by giving the x-path using Visual basic6.0.I have tried working on the below code, xpath="//para" Set rulesProcessor = myIndesign.XMLRuleProcessors.Add(xpath) but its re

  • Transfering FCX files

    I was trying to transfer a halfway done video in final cut express from my iMac to final cut express on my Macbook (for travel purposes) but when I tried to open the file in final cut express on my macbook it said File's format is too new for this ve