Serialization Error retrieving data from JSP to Applet

I have an applet which calls a JSP to write data object to the db and then the JSP sends back the updated data object. The writing part is ok but the response is giving the following error. The data object is in a separate class which implements Serialized.
Here's the code in the applet calling the JSP and the response from the JSP
URL server = null;
String urlConnectionString = "http://localhost:7001/isLoginValid.jsp";
try
     server = new URL(urlConnectionString);
catch(MalformedURLException e)
     System.out.println("URL exception: " + e );          
// send request
ObjectInputStream response = null;
Object result = null;
try
     URLConnection conn = server.openConnection();
        conn.setDoOutput(true);
        conn.setUseCaches(false);
        conn.setRequestProperty("Content-Type", "application/octet-
        stream");
        ObjectOutputStream request = new ObjectOutputStream(new 
        BufferedOutputStream(conn.getOutputStream()));
     request.writeObject((Object)dvo);
     request.flush();
     request.close();
        // get the result input stream
     response = new ObjectInputStream(new BufferedInputStream
        (conn.getInputStream()));
     // read response back from the server
     result = response.readObject();
        if( result!=null && (result instanceof DataVO))
          dvo = (DataVO)result;
             String vo = dvo.printDataVO();
             System.out.println
             ("*****************DataVO********************\n"+vo);
     else
          System.out.println("not an instanceof DataVO");
catch(IOException ignored)
     System.out.println("Error in DataVO response");
     ignored.printStackTrace();
}Here's the code in the JSP sending the response back to the applet.
The 'dvo' object is the object which is serialized and has gets and sets
for the diff. data elements. When I print the 'dvo' before writing
the object to outputStream it prints the correct values for the data
element.
// send response
response.setStatus(HttpServletResponse.SC_OK);
ObjectOutputStream outputStream = new ObjectOutputStream (new BufferedOutputStream (response.getOutputStream()));
outputStream.writeObject(dvo);
outputStream.flush();ERROR is as follows:
Error in DataVO response
java.io.StreamCorruptedException: InputStream does not contain a serialized object
     at java/io/ObjectInputStream.readStreamHeader
     at java/io/ObjectInputStream.<init>
What am I doing wrong?. Please respond soon. Thanks

Here's the code. Yes I have it implementing serializable.
import java.io.Serializable;
import java.util.Date;
public class DataVO implements Serializable
     // Data Variables
     private     String uname;
     private     String pwd;
     private     String errorMSG;
     private     boolean multiMessage;
     private     boolean blnFirstTextField;
     private     boolean subscriptionError;
     private     boolean subscriptionCancelled;
     private     int userNumber;
     private     int status;
     private     int userCount;
     private     int userMax;
     private     int seqnum;
     private boolean loginValid;
     private int t_Interval;
     public DataVO()
          uname="";                   
          pwd="";                     
          errorMSG="";                
          multiMessage=false;        
          blnFirstTextField=false;   
          subscriptionError=false;   
          subscriptionCancelled=false;
          userNumber = -1;
          status = -1;   
          userCount = -1;
          userMax = -1;  
          seqnum = -1;   
          loginValid = false;
          t_Interval = 0;
     public String getUserName() {return uname;}
     public void setUserName(String uname) {this.uname = uname;}
     public String getPassword() {return pwd;}
     public void setPassword(String pwd) {this.pwd = pwd;}
     public String getErrorMessage() {return errorMSG;}
     public void setErrorMessage(String errorMSG) {this.errorMSG = errorMSG;}
     public boolean isMultiMessage() {return multiMessage;}
     public void setMultiMessage(boolean multiMessage) {this.multiMessage = multiMessage;}
     public boolean isBlnFirstTextField() {return blnFirstTextField;}
     public void setBlnFirstTextField(boolean blnFirstTextField) {this.blnFirstTextField = blnFirstTextField;}
     public boolean isSubscriptionError() {return subscriptionError;}
     public void setSubscriptionError(boolean subscriptionError) {this.subscriptionError = subscriptionError;}
     public boolean isSubscriptionCancelled() {return subscriptionCancelled;}
     public void setSubscriptionCancelled(boolean subscriptionCancelled) {this.subscriptionCancelled = subscriptionCancelled;}
     public int getUserNumber() {return userNumber;}
     public void setUserNumber(int userNumber) {this.userNumber = userNumber;}
     public int getStatus() {return status;}
     public void setStatus(int status) {this.status = status;}
     public int getUserCount() {return userCount;}
     public void setUserCount(int userCount) {this.userCount = userCount;}
     public int getUserMax() {return userMax;}
     public void setUserMax(int userMax) {this.userMax = userMax;}
     public int getSeqNo() {return seqnum;}
     public void setSeqNo(int seqnum) {this.seqnum = seqnum;}
     public boolean isLoginValid() {return loginValid;}
     public void setLoginValid(boolean loginValid) {this.loginValid = loginValid;}
     public int getTimeIntvl() {return t_Interval;}
     public void setTimeIntvl(int t_Interval) {this.t_Interval = t_Interval;}
     public String printDataVO()
          String returnString = "username = "+uname+"\n";
          returnString = returnString + "password = "+pwd+"\n";
          returnString = returnString + "errorMSG = "+errorMSG+"\n";
          returnString = returnString + "multiMessage = "+multiMessage+"\n";
          returnString = returnString + "blnFirstTextField = "+blnFirstTextField+"\n";
          returnString = returnString + "subscriptionError = "+subscriptionError+"\n";
          returnString = returnString + "subscriptionCancelled = "+subscriptionCancelled+"\n";
          returnString = returnString + "userNumber = "+userNumber+"\n";
          returnString = returnString + "status = "+status+"\n";
          returnString = returnString + "userCount = "+userCount+"\n";
          returnString = returnString + "userMax = "+userMax+"\n";
          returnString = returnString + "seqnum = "+seqnum+"\n";
          returnString = returnString + "loginValid = "+loginValid+"\n";
          returnString = returnString + "t_Interval = "+t_Interval+"\n";
          return returnString;
}

Similar Messages

  • Error retrieving data from the web server in Excel fo BPC

    Hello Everybody,
    I'm working with BPC v7.5 , i created some reports with the EVDRE formula and they were working perfectly.
    The problem started when i created new users, that in fact have the same access profile and task profile as my user.
    i started to test these new users in excel and every time i expand the report this legend appears: " EVDRE Retrying... EVDRE encountered an error retrieving data from the Web Server. Retrying in (X) Seconds...". After waiting a while a push cancel, then appears a window with the legend: Ev4excel Addin, Errors found retriening data.
    The funny thing is that when i login back to my user everything works fine again, any idea what could be the problem? the other user have the same permissions.
    Thanks a lot in advance!!
    Nidia Olguí

    very strange. Normally the member access profile must be diifferent. So it is not important the task profile but the member access profile. Can you please double check ?
    If you are doing a simple EVDRE with users having problems is it working or you still have problems?
    Regards
    Sorin Radulescu

  • EVDRE encountered an error retrieving data from the Web Server

    Hi,
    I'm working on a presales AppSet "Demo5b".
    When I create a brand-new EVDRE report on FINANCE app, there is no problem.
    However, after changing to ICMATCHING app, when I type =EVDRE() on a blank sheet and press Refresh, the following message pops up.
    EVDRE encountered an error retrieving data from the Web Server
    Retrying in (??) seconds
    Any idea why this happens and how it can be solved?
    Thanks!
    Sunny

    Hi Joost,
    I have the same problem. When I try to retrieve data on an input schedule is launched that error.
    I am working on an VM on MS BPC.
    I am not working with cubes so the solution is not the same.
    If i process all my dimensions this error does not appear any more?
    Best regards,
    Vitor

  • Error retrieving data from DB2 NoSuchMethodEror:sun.io.ByteToCharSingleByte

    Hi All,
    I am trying retrieve data from DB2 database using select command from java code,
    able to establish connection but not getting the data, the following error was occurred,
    can any one help out me...
    Exception in thread "main" java.lang.NoSuchMethodError: sun.io.ByteToCharSingleByte.createCharMap(Ljava/lang/String;Z)[C
    at sun.io.ByteToCharCp870.<clinit>(ByteToCharCp870.java:86)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Unknown Source)
    at sun.io.Converters.getConverterClass(Unknown Source)
    at sun.io.Converters.newConverter(Unknown Source)
    at sun.io.ByteToCharConverter.getConverter(Unknown Source)
    at com.ibm.db2.jcc.b.j.a(j.java:426)
    at com.ibm.db2.jcc.c.kc.a(kc.java:2366)
    at com.ibm.db2.jcc.c.jb.a(jb.java:3167)
    at com.ibm.db2.jcc.c.jb.a(jb.java:1720)
    at com.ibm.db2.jcc.c.jb.a(jb.java:1647)
    at com.ibm.db2.jcc.c.jb.n(jb.java:562)
    at com.ibm.db2.jcc.c.jb.j(jb.java:247)
    at com.ibm.db2.jcc.c.jb.c(jb.java:57)
    at com.ibm.db2.jcc.c.w.c(w.java:42)
    at com.ibm.db2.jcc.c.cc.h(cc.java:178)
    at com.ibm.db2.jcc.b.sf.p(sf.java:1256)
    at com.ibm.db2.jcc.b.sf.a(sf.java:1954)
    at com.ibm.db2.jcc.b.sf.a(sf.java:523)
    at com.ibm.db2.jcc.b.sf.executeQuery(sf.java:507)
    Edited by: siva512 on Dec 11, 2008 5:37 PM

    siva512 wrote:
    Exception in thread "main" java.lang.NoSuchMethodError: sun.io.ByteToCharSingleByte.createCharMap(Ljava/lang/String;Z)[CThe mentioned method is missing in the mentioned class during runtime, while it was available during compiletime.
    This generally indicate a version conflict. Your classpath is dirty. The older versioned class without that method apparently got precedence in classloading above the newer versioned class with that method. Cleanup your classpath. Check all classes/JAR´s and remove all duplicated older versions.

  • Error retrieving data from database

    my problem is i cant connect my eclipse to database
    it display this error
    Error parsing data org.json.JSONException: Value <html><body><h2>Checking of type java.lang.String cannot be converted to JSONObject
    my apps can run correctly before...but last night i cant open it when want to retrieve any data from database
    can somebody help me?

    This doesn't seem to have anything to do with Eclipse, but I'd guess that a server-side error message is being returned a HTML rather than the JSON you expect.

  • Error retrieving data from the payload

    Hi all,
    I have a sample process which receive the xml payload posted (with http post) from another process. I am able to see the data in my input payload, but I am not able to use either assignment or transformation to get the value of any element from that payload. If I use the getNodeValue, I am able to see the data of each element.
    e.g., the xml that was posted to this process is
    =========
    <?xml version="1.0" encoding="UTF-8"?>
    <!-- "Stock Quotes". -->
    <stockquotes>
    <stock_quote>
    <symbol>ABCDEFG</symbol>
    <when>
    <date>01/27/2001</date>
    <time>3:40PM</time>
    </when>
    <change>-2.1875</change>
    <volume>8050200</volume>
    </stock_quote>
    </stockquotes>
    =================
    In my input payload, I am seeing as
    =========
    <Receive_XMLNode_InputVariable>
    <part name="RequestMessage">
    <RequestMessage>
    <stock_quote>
    <symbol>ABCDEFG</symbol>
    <when>
    <date>01/27/2010</date>
    <time>3:40PM</time>
    </when>
    <change>-2.1875</change>
    <volume>8050200</volume>
    </stock_quote>
    </RequestMessage>
    </part>
    </Receive_XMLNode_InputVariable>
    ===================
    But when I tried to assign symbol element to output, I am getting "com.oracle.bpel.client.BPELFault: faultName: {{http://schemas.xmlsoap.org/ws/2003/03/business-process/}selectionFailure} " error. Can anyone advise me what am I doing wrong? Thanks.
    Soe

    I added the namespace in my stockquote xml payload exactly as I used in the input xsd, and it started working.

  • Error retrieving data from CLOB....please help!

    I am trying to retrieve a CLOB object from Oracle. I am using
    Oracle's thin driver.
    If I use :-
    clobObj.getSubString(1, length); where clobObj is an instance of
    oracle.sql.CLOB and is valid, I get the following exception if
    length > 32500
    SQLException: ORA-21560: argument 2 is null, invalid, or out of
    range
    ORA-06512: at "SYS.DBMS_LOB", line 648
    ORA-06512: at line 1
    If instead I use a Reader to read from the clob object :-
    Reader instream = clobObj.getCharacterStream();
    char[] buffer = new char[4];
    int length = 0;
    while ((length = instream.read(buffer)) != -1)
    System.out.print("Read " + length + " chars: ");
    I get the following exception :-
    IOException: ORA-21560: argument 2 is null, invalid, or out of
    range
    ORA-06512: at "SYS.DBMS_LOB", line 648
    ORA-06512: at line 1
    at oracle.jdbc.dbaccess.DBError.SQLToIOException(DBError.java, Compiled
    Code)
    at oracle.jdbc.driver.OracleClobReader.needChars(OracleClobReader.java:
    60)
    at oracle.jdbc.driver.OracleClobReader.read(OracleClobReader.java:179,
    ompiled Code)
    at java.io.Reader.read(Reader.java:104, Compiled Code)
    at com.geocast.geodb.DBTag.printRDF(DBTag.java:882, Compiled Code)
    at com.geocast.forms.JMainFrame.newObject_actionPerformed_Interaction1(
    MainFrame.java:967)
    at com.geocast.forms.JMainFrame.newObjectButton_actionPerformed(JMainFr
    me.java:1024)
    at com.geocast.forms.JMainFrame$SymAction.actionPerformed(JMainFrame.ja
    a:597)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1
    66)
    at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Abstr
    ctButton.java:1101)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonMode
    .java:378)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:25
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButton
    istener.java:204)
    at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:
    30)
    at java.awt.Component.processMouseEvent(Component.java:3160)
    at java.awt.Component.processEvent(Component.java:2999)
    at java.awt.Container.processEvent(Container.java:990)
    at java.awt.Component.dispatchEventImpl(Component.java:2394, Compiled C
    de)
    at java.awt.Container.dispatchEventImpl(Container.java, Compiled Code)
    at java.awt.Component.dispatchEvent(Component.java:2307, Compiled Code)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:204
    , Compiled Code)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:1827
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:1776, Co
    piled Code)
    at java.awt.Container.dispatchEventImpl(Container.java:1022, Compiled C
    de)
    at java.awt.Window.dispatchEventImpl(Window.java:749, Compiled Code)
    at java.awt.Component.dispatchEvent(Component.java:2307, Compiled Code)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:287, Compiled Code
    at java.awt.EventDispatchThread.pumpOneEvent(EventDispatchThread.java:1
    3, Compiled Code)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:92)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:83)
    If anyone has come across a similar problem or knows the solution
    to my woes, please let me know ASAP.
    Thanks,
    Anirban
    null

    very strange. Normally the member access profile must be diifferent. So it is not important the task profile but the member access profile. Can you please double check ?
    If you are doing a simple EVDRE with users having problems is it working or you still have problems?
    Regards
    Sorin Radulescu

  • EVDRE encountered an error when retrieving data from web server

    Hi
    When I am trying to open Data Input=>Build a schedule using a dynamic template in BPC version for SAP netweaver, I am getting the below error "EVDRE encountered an error retrieving data from the Web Server". 
    I am not able to open any template, every time I am getting the same message. I have tried again after reprocessing all the dimension.
    Even I have tried in appset APSHELL also, there also I am getting the same error
    Request you to help me to resolve the above error which will allow me to proceed further.
    Thanks in Advance.
    Venkat

    Hi,
    Beside Nilanjan's solution, this error could also occur when the expansion is running more rows than the Excel limit allows (65'000 rows and 256 cols for Excel 2003)...
    Even when you're using suppress field to reduce the number of rows, the first sequence is to retrieve the complete dataset before performing any suppression. And this could of course exceed the limit sometimes.
    Hope this helps.
    Kind Regards,
    Patrick

  • BPC 7.5 NW - EVDRE error retrieving data

    Hello all.
    I have a problem with my BPC 7.5 NW system.
    I am working with BPC 7.5 NW SP07, and I did all the installation and configuration steps with both .NET and ABAP components.
    But when I try to execute an EVDRE, the system shows the next error message:
         "EVDRE encountered an error retrieving data from Web Server"
    I checked ST22 transaction and I saw that /BI0/02xxx tables are not created or activated. I checked these tables in SE11 transaction, and they don´t exist.
    I saw several posts and a couple of notes with this problem. They say that these temporary tables are needed to be created or activated, but I couldn´t see anywhere the way to solve the problem in case the tables are not created.
    Does anyone have any idea? What is the cause of this problem? Why these are not being created?
    Thanks in advanced.
    Best regards,
    Fernando

    1. Login into BPC for Admin
    2. Once logged into your Appset , open the Dimension library
    3. Process each dimension by selecting the "Process members from membersheet" and by unchecking the "Take system offline" option
    4. Process all the dimensions one by one not together.
    5. Once processing the dimensions is done then open the Applications and Modify each Application by adding or changing the Application Description.
    6. Once done modifying Applications then logout of the BPC Admin and BPC Excel.
    7. Login back again into BPC for Excel by going through the connection wizard.
    Ideally this should solve your problem and If all the dimensions are processed successfully then logoff and login to see if you stilll see the EVDRE error.
    Hope this helps.
    Regards,
    Sanjeev

  • Unable to retrieve data from a nested table in Oracle 8i from JSP

    How do i retrieve data from a nested table in Oracle 8i from my JSP code?
    When i try to execute the query , a general error is thrown.
    Kindly advice as soon as possible.

    How do i retrieve data from a nested table in Oracle 8i from my JSP code?
    When i try to execute the query , a general error is thrown.
    Kindly advice as soon as possible.

  • Error message-retrieve data from database

    I tried to retrieve data from oracle database. I got the following error message. I did compile the files without error. but when I run index.jsp I got the following error message. is it related with taglib Directives ?
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: Exception in JSP: /index.jsp:8
    5: <% AccessDB accessDB=new AccessDB(); %>
    6:
    7: <%-- create an instance of List, then retrieve SubjectNames --%>
    8: <% List subjNames=accessDB.getSubjectName(); %>
    9:
    10: <%-- make list accessible to page --%>
    11: <% request.setAttribute("subjNames", subjNames); %>
    Stacktrace:
         org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:504)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)
         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)
         org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:368)
    root cause
    java.lang.NullPointerException
         org.AccessDB.getSubjectName(AccessDB.java:68)
         org.apache.jsp.index_jsp._jspService(index_jsp.java:62)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
         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)
         org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:368)
    note The full stack trace of the root cause is available in the Apache Tomcat/5.5.17 logs.
    Apache Tomcat/5.5.17

    Hi,
    Try to print the value in List...n comment the request.setAttribute...n then run the program....
    check wot value is printed in List....
    This error may b because the List doesnt have anyvalue into it.....

  • Error while trying to retrieve data from BW BEx query

    The following error is coming while trying to retrieve data from BW BEx query (on ODS) when the Characters are more than 50.
    In BEx report there is a limitation but is it also a limitation in Webi report.
    Is there any other solution for this scenario where it is possible to retrieve more than 50 Characters?
    A database error occured. The database error text is: The MDX query SELECT  { [Measures].[3OD1RJNV2ZXI7XOC4CY9VXLZI], [Measures].[3P71KBWTVNGY9JTZP9FTP6RZ4], [Measures].[3OEAEUW2WTYJRE2TOD6IOFJF4] }  ON COLUMNS , NON EMPTY CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( [ZHOST_ID2].[LEVEL01].MEMBERS, [ZHOST_ID3].[LEVEL01].MEMBERS ), [ZHOST_ID1].[LEVEL01].MEMBERS ), [ZREVENDDT__0CALDAY].[LEVEL01].MEMBERS ) ........................................................ failed to execute with the error Invalid MDX command with UNSUPPORTED: > 50 CHARACT.. (WIS 10901)

    Hi,
    That warning / error message will be coming from the MDX interface on the BW server.  It does not originate from BOBJ.
    This question would be better asked to support component BW-BEX-OT-MDX
    Similar discussion can be found using search: Limitation of Number of Objects used in Webi with SAP BW Universe as Source
    Regards,
    Henry

  • How to retrieve data from a jsp page

    I have created a page with some text boxes, file, submit button. In my Ist jsp, i am dynamically add Text boxes and File (for Uploading).
    In the 2nd jsp, i am used Jakarata FileUpload API. I am able to retrieve all data and files except that value of dynamicall added text boxes. That is, I cannot retrieve data from dynamically added text boxes.
    Using Jakarata FileUpload API, i can retrieve values of form data using
    getString() method.
    I want to know that there is any way or method for retrieving form data values into String Array.
    regards
    madhu
    [email protected]

    Use parseRequest(request) to get the file information as you already are doing. However, I dont know how you can use request.getParameter("textField1") to get the other fields from the page. My work-around is as follows:
    Change your submit button to an ordinary button and add an onClick event to it. Then in the javascript function that supports the onClick, add the textField1 as follows:
    <form name="fileUploadForm" method="post" action="someAction" (((more code code here)))))
    function submitButtonClick(){
    document.fileUploadForm.action=
    document.fileUploadForm.action+
    "?textField1="+document.fileUploadForm.textField1.value"+
    "&textField2="+document.fileUploadForm.textField2.value"+
    "&textField3="+document.fileUploadForm.textField3.value";
    document.fileUploadForm.submit();
    As you can see in the above code, I append the textField1 name/value pair to the end of the action. Now in the server, you can use getParameter("textField1");

  • Error while retrieving data from PL/SQL Table using SELECT st. (Urgent!!!)

    Hi Friends,
    I am using Oracle 8.1.6 Server, & facing problems while retrieving data from a PL/SQL Table:
    CREATE or REPLACE PROCEDURE test_proc IS
    TYPE tP2 is TABLE of varchar2(10); --declared a collection
    dt2 tP2 := tP2('a','b','c');
    i NUMBER(8);
    begin
    SELECT COUNT(*) INTO i FROM TABLE(CAST(dt2 as tP2));
    DBMS_OUTPUT.PUT_LINE('**'||i);
    end;
    While executing the above procedure, I encountered foll. error:
    ERROR at line 1:
    ORA-00600: internal error code, arguments: [15419], [severe error during PL/SQL execution], [], [],
    ORA-06544: PL/SQL: internal error, arguments: [pfrrun.c:pfrbnd1()], [], [], [], [], [], [], []
    ORA-06553: PLS-801: internal error [0]
    Can anyone please help me, where the problem is??
    Is it Possible to retrieve data from PL/SQL TABLE using SELECT statement? & How ?
    Thanks in advance.
    Best Regards,
    Jay Raval.

    Thanks Roger for the Update.
    It means that have to first CREATE TYPE .. TABLE in database then only I can fire a Select statement on that TYPE.
    Actually I wanted to fire a Select statement on the TABLE TYPE, defined & declared in PLSQL stored procedure using DECLARE TYPE .. TABLE & not using CREATE TYPE .. TABLE.
    I was eager to know this, because my organization is reluctant in using CREATE TYPE .. TABLE defined in the database, so I was looking out for another alternative to access PL/SQL TABLE using Select statement without defining it database. It would have been good if I could access a PLSQL TABLE using Select statement Declared locally in the stored procedure.
    Can I summarize that to access a PL/SQL TABLE using SELECT statement, I have to first CREATE TYPE .. TABLE?
    If someone have any other idea on this, please do let me know.
    Thanks a lot for all help.
    Best Regards,
    Jay Raval.
    You have to define a database type...
    create type tP2 is table of varchar2(10)
    CREATE OR REPLACE PROCEDURE TEST_PROC
    IS
    dt2 tP2 := tP2('a','b','c');
    i NUMBER(8);
    begin
    SELECT COUNT(*) INTO i FROM TABLE(CAST (dt2 AS tP2));
    DBMS_OUTPUT.PUT_LINE('**'||i);
    end;
    This will work.
    Roger

  • Get "An Error occurred while retrieving data From ProjectWebApp.." when searching content on an External Content Type

    I have set-up an ECT in SPD2013 on SP2013.  It is a SQL Data source called ProjectWebApp.   I have BCS/SSS set-up.  I can create an ECT OK in SPD.  I can add the ECT to a custom list.
    The problem is when I add a new item in the list the following error message appears in red
    An error occurred while retrieving data from ProjectWebApp. Administrators, see the server log for more information
    I cannot filter or return any results.  There is data in the DB.
    Another test I do is to try and create a new App/List using the "External List" template.  When
    I select the ECT a red message appears "External Content Types are not available".  which is odd since I can add an ECT to a list as mentioned above.
    Any ideas?
    Tx
    Andrew
    Andrew Payze

    Hi Andrew,
    Please try the option Allow unlimited length in document libraries in the column settings:
    http://littletalk.wordpress.com/2011/08/18/external-content-type-an-error-occurred-while-retrieving-data-from-a-system-administrators-see-the-server-log-for-more-information/
    If it doesn't help, please refer to the link below and raise the External content type Read List operation thresholds:
    http://lightningtools.com/bcs/business-connectivity-services-end-user-implications-part-one-threshold-limit-errors/
    Please provide error message in ULS log for further troubleshooting.
    Regards,
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected] .
    Rebecca Tu
    TechNet Community Support

Maybe you are looking for