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.
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!
SunnyHi 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 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.
SoeI added the namespace in my stockquote xml payload exactly as I used in the input xsd, and it started working.
-
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. ThanksHere'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;
} -
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
nullvery 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.
VenkatHi,
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,
Fernando1. 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 -
Failed to retrieve data from the database.---- Error code:-2147482925
Hi,
I am getting random error while generating a PDF report in Crystal Report XI R2.
The error details are
com.crystaldecisions.sdk.occa.report.lib.ReportSDKServerException: Impossibile r
Error in File C:\WINDOWS\TEMP\{11834722-3B8E-4DFF-B7B6-B3D52DF904C1}.rpt:
Failed to retrieve data from the database.---- Error code:-2147482925 Error code
name:failed
at com.crystaldecisions.sdk.occa.report.application.PrintOutputControlle
r.export(Unknown Source)
at ps_emxCrystalReportUtil_mxJPOZsBymAAAAAEAAAAD.getReport(ps_emxCrystal
ReportUtil_mxJPOZsBymAAAAAEAAAAD.java:488)
at ps_emxCrystalReportUtil_mxJPOZsBymAAAAAEAAAAD.ps_storeReportWithoutCh
eckin(ps_emxCrystalReportUtil_mxJPOZsBymAAAAAEAAAAD.java:183)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
Please help me.
Thanks in advance
-AbhiNot enough info.
The exception just states there were problems retrieving data from your data source.
Sincerely,
Ted Ueda -
Try to retrieve data from database got error message
Try to retrieve data from database got error message *"java.lang.ArrayIndexOutOfBoundsException: 2*
* sun.jdbc.odbc.JdbcOdbcPreparedStatement.clearParameter(JdbcOdbcPreparedStatement.java:1023)*
* sun.jdbc.odbc.JdbcOdbcPreparedStatement.setDate(JdbcOdbcPreparedStatement.java:811)*
* guestbk.doGet(guestbk.java:32)*
* guestbk.doPost(guestbk.java:73)*
* javax.servlet.http.HttpServlet.service(HttpServlet.java:710)*
* javax.servlet.http.HttpServlet.service(HttpServlet.java:803)"*
I have used prepared statment
java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat("dd/MM/yy");
java.util.Date dt = sdf.parse(str3);
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con=DriverManager.getConnection("jdbc:odbc:gbook");
//Statement stmt=con.createStatement();
PreparedStatement ps = con.prepareStatement("SELECT * from gbook where emailid =? AND date =?");
ps.setString(1,str1);
ps.setString(2,str2);
ps.setDate(3,new java.sql.Date(dt.getTime()));
//ps.executeQuery();
//ResultSet rs=stmt.executeQuery("select * from gbook where emailid = str1");
ResultSet rs = ps.executeQuery();
out.println("<Html>");
out.println("<Head>");
out.println("<Title>GuestBook</Title>");
out.println("</Head>");
out.println("<Table border=1 align=center >");
out.println("<H4><B><center>Teacher's Lesson Plan</center></B></H4><BR>");
out.println("<TR><TD><b>Teacher Name</b></TD><TD><b>Class</b></TD></TR>");
while(rs.next())
ctr++;
String email=rs.getString("emailid");
String cmt=rs.getString("comment");
out.println("<TR><TD>"+email+"</TD><TD>"+cmt+"</TD></TR>");
}Please anybody help .PreparedStatement ps = con.prepareStatement("SELECT * from gbook where emailid =? AND date =?");
ps.setString(1,str1);
ps.setString(2,str2);
ps.setDate(3,new java.sql.Date(dt.getTime()));Your SQL query has 2 placeholders but you try to set 3 values.
And didn't you read the stack trace?
guestbk.doGet(guestbk.java:32)You could've tracked down line 32 and seen what was there at that line.
People on the forum help others voluntarily, it's not their job.
Help them help you.
Learn how to ask questions first: http://www.catb.org/~esr/faqs/smart-questions.html
---------------------------------------------------------------- -
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 -
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 -
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 PayzeHi 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 -
Error :Unable to retrieve data from iHTML servlet for Request2 request
I open bqyfile to use HTML in workspace.
When I export report to excel in IR report.
Then I press "back" button I get error"Unable to retrieve data from iHTML servlet for Request2 request "
And I can not open any bqyfiles in workspace.
Anybody gat the same question? Thanks~Hi,
This link will be helpful, the changes is made in the TCP/IP parameter in the registry editor of Windwos machine. I tried the 32 bit setting for my 64 bit machine (DWORD..) and it worked fine for me..
http://timtows-hyperion-blog.blogspot.com/2007/12/essbase-api-error-fix-geeky.html
Hope this helps..
Maybe you are looking for
-
How do I get Black Magic Intensity Pro to work in Premiere CC?
The card works fine in CS6 and Final Cut Pro. I crosschecked the settings in CS6 and CC and as far as I can tell, they are the same. I updated to the latest BM driver today. Is there a setting deep down in some menu that I'm overlooking? I though
-
CE 7.2 on 64-bit Windows 7
Hi all, I'm trying to install the CE 7.2 Eval version on Windows 7 (64-bit version), and I am getting problems with the MaxDB installation probably because it's a 32-bit version. If I run the included MaxDB installation file separately I get the foll
-
hello illustrators. im trying to achieve the blue symbol going around propotionally around the eclipse with out it having it distort dramaticly,how can i do this?i also would like it so seem mapped on it with the bending as its going around.
-
MRBR- Blocking reason: quantity
Hi , I have an issue with MRBR - Release Block for invoice. We have a set up that if we have any quantity variance in during the posting of MIRO, then the invoice doc will block. user will user the MRBR transction to release the block. Now user dont
-
The files that won't stay put...
I've had my powerbook for a good two months now, and have been having trouble keeping some of my data on my hard drive. I'll load some songs onto iTunes, or install a program,and the next time I turn on my mac the data is gone. I have backups, thankf