ORA-06502 JNI.CALL_STRING_METHOD Oracle Forms & Web Services
Hello:
A customer of us has been integrating Oracle Forms 10g and Web Services.
There is a java class named WsGenQueryStub. That java class has been generated using Oracle JDeveloper.
It implements the consume of a Web Service That class has a method named GetDat which receives 2 input parameters which are of VARCHAR2 type, containing XML text.
This method returns an XML text string which may have more than 4000 characters .
That class is incluedd at forms application by using the "Import Java Class" feature.
Forms builds a package named WsGenQueryStub which includes the following funtion
-- Method: GetData (Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
FUNCTION GetData(
obj ORA_JAVA.JOBJECT,
a0 VARCHAR2,
a1 VARCHAR2) RETURN VARCHAR2 IS
BEGIN
args := JNI.CREATE_ARG_LIST(2);
JNI.ADD_STRING_ARG(args, a0);
JNI.ADD_STRING_ARG(args, a1);
RETURN JNI.CALL_STRING_METHOD(FALSE, obj, 'Interfases/WsGenQueryStub', 'GetData', '(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;', args);
END;
Forms Version is 9.0.4.0.19 , and PL/SQL version ( of forms ) is 9.0.1.5.1 , both support variables of type VARCHAR2 up to 32767 characters long
However when the form is run the line
RETURN JNI.CALL_STRING_METHOD(FALSE, obj, 'Interfases/WsGenQueryStub', 'GetData', '(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;', args);
gets the ORA-06502 error when the returned text is longer than 4000 characters
I thank your answers.
Fernando.
Ferdo,
could you split up the result string in chunks that don't exceed the max. length? A method exposed on the Java class to could do this and be called from Forms as long as there is data coming.
Frank
Similar Messages
-
WS-I fails with Oracle Generated Web Service
Hi
I recently used WS-I Analyzer to analyze the HTTP Analyzer logs. I get the following error:
SSBP1003
The Content-Type header is not present.
Element Location:
lineNumber=19
SSBP5101
The message either (1) did not have a "Content-Type" HTTP header field, or (2) the "Content-Type" HTTP header field had a field-value whose media type was something other than "text/xml"
Element Location:
lineNumber=19
Any ideas?I successfully developed the oracle native web service for returning single record but the next challenge is to develop web service in order to return multiple record (like Employees data base on each department)You could return a list (multiple values/records) in XML format (using XMLType or CLOB), or CSV, or JSON, or whatever.
function get_employees (p_department_id in number) return clob
as
begin
return 'your_xml_string_here';
end get_employees;It would be up to the client (the caller of the web service) to extract the values from whatever format you decide upon, of course.
- Morten
http://ora-00001.blogspot.com -
How to return multiple record with Oracle Native Web Service?
Dear all,
I would like to know that the oracle native web service can be able to return multiple records to client or not?
I successfully developed the oracle native web service for returning single record but the next challenge is to develop web service in order to return multiple record (like Employees data base on each department)
Thank and Regards,
ZenoniI successfully developed the oracle native web service for returning single record but the next challenge is to develop web service in order to return multiple record (like Employees data base on each department)You could return a list (multiple values/records) in XML format (using XMLType or CLOB), or CSV, or JSON, or whatever.
function get_employees (p_department_id in number) return clob
as
begin
return 'your_xml_string_here';
end get_employees;It would be up to the client (the caller of the web service) to extract the values from whatever format you decide upon, of course.
- Morten
http://ora-00001.blogspot.com -
R12 how to restart forms/web services without also starting concurrent mana
R12 how to restart forms/web services without also starting concurrent managers
jemar98 wrote:
R12 how to restart forms/web services without also starting concurrent managersadopmnctl.sh startall
Managing Server Processes
http://docs.oracle.com/cd/E18727_01/doc.121/e13675/T530130T530133.htm#5274555
Thanks,
Hussein -
How to install downloaded Oracle Forms Developer/Services 6i Release 2 for linux
Hi folks,
I downloaded d2k6irelease2.tar (Oracle Forms Developer/Services 6i Release
2 for linux) from
http://otn.oracle.com/software/products/forms/htdocs/linuxsoft.html
I untar the file on my linux machine however the extracted files don't
seem to contain any installing program. I didn't find products.jar in the
files and there are no script to install the software. I read the attached
doc, however it only assumes that the installation is from CD-ROM. The doc
doesn't help anything for this downloaded software. I wonder if anyone
here know how to install it. Thank you so much.
Best regards,
Kai HuangThere should be a text based installer in the /orainst sub-
directory
In that directory, just run the script:
./orainst
The installer seems to require libXm.a, which wasn't included in
my RH 7.1 installation, so I had to install the motif-
development libraries before the full install would complete
successfully. -
Oracle 9i Web Services Quickstart Install TCP tunneling problem
When I try to run the OTNGUIDGenerator example using the TCP Tunneling portion of the Oracle 9i Web Services Quickstart
Install I get this in the From localhost8900 tunnel window:
<?xml version='1.0' encoding='UTF-8'?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<SOAP-ENV:Body>
<ns1:getGUID xmlns:ns1="oracle.otn.ws.emarket.OTNGUIDGenerator" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
</ns1:getGUID>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
I get this in the From 127.0.0.1:8888 window:
HTTP/1.1 404 Not Found
Date: Mon, 28 Oct 2002 20:38:06 GMT
Server: Oracle9iAS (9.0.2.0.0) Containers for J2EE
Content-Length: 171
Connection: Close
Content-Type: text/html
<HTML><HEAD><TITLE>404 Not Found</TITLE></HEAD><BODY><H1>404 Not Found</H1>Resource /j2ee-web/oracle.otn.ws.emarket.OTNGUIDGenerator not found on this server</BODY></HTML>
This is my webservices stub
public class OTNGUIDGeneratorStub
/** public String endpoint = "http://otn.oracle.com/ws/oracle.otn.ws.emarket.OTNGUIDGenerator"; */
public String endpoint = "http://127.0.0.1:8900/j2ee-web/oracle.otn.ws.emarket.OTNGUIDGenerator";
private OracleSOAPHTTPConnection m_httpConnection = null;
public OTNGUIDGeneratorStub()
System.setProperty("oracle.soap.transport.noHTTPClient", "true");
m_httpConnection = new OracleSOAPHTTPConnection();
Properties props = new Properties();
/** props.put(OracleSOAPHTTPConnection.PROXY_AUTH_TYPE, "basic");
props.put(OracleSOAPHTTPConnection.PROXY_HOST, "proxy.scott.af.mil");
props.put(OracleSOAPHTTPConnection.PROXY_PORT, "375");
props.put(OracleSOAPHTTPConnection.PROXY_USERNAME, "fowlerji");
props.put(OracleSOAPHTTPConnection.PROXY_PASSWORD, "F1234567*g"); */
m_httpConnection.setProperties(props);
Not sure what to call the server - this works okay when I'm not using tunneling and using our proxy server??I think your problem is that you have a proxy user/password and the TCP Monitor (both the command line and built-in 9.0.3 version) do not support that - they only support specification of the proxy server itself :-(
It is a feature request that I hope will make it into the late spring/early summer release of JDeveloper - I wrote it up as a request based on the number of folks who faced this issue with these tutorials.
Mike. -
Oracle Spatial Web Services in ADF application
Hi,
I want to use Oracle Spatial Web Services in an ADF application (JDeveloper 11.1.2) to retrieve Longitude/Latitude after inserting/upating an address record.
Is there any sample app or documentation on how to do this?
Thank you,
MonicaI never did solve the problem. I decided to try out GeoServer for WFS and am very impressed. It was much easier to install and pretty feature-filled as well with a lot of documentation. I would definitely suggest checking it out to see if it will fit your needs.
-
Using Oracle Forms Developer/Services 6i Release 2 with Oracle 9i
Hello,
I am trying to load Oracle Forms Developer/Services 6i Release 2 for Windows 95/98/NT/2000/XP with already installed Oracle 9i , I am able to use all the applications installed with 9i database but I am not able to use Forms with it, Please let me know if any of you have any thoughts or Idea around this, Also please let me know what version of Forms & Reports will go with Oracel 9i Database.
Thanks,
Ripal PatelThank you for you postings - The Member Feedback forum is not monitored by Oracle support or product teams and so Oracle product and technology related questions cannot be answered. However we recommend that you post this thread to the "Forms" forum.
The URL is: Forms
Thanks - The OTN team -
Oracle Forms Developer/Services 6i Release 2
Hi folks,
I downloaded d2k6irelease2.tar (Oracle Forms Developer/Services 6i Release
2 for linux) fromhttp://otn.oracle.com/software/products/forms/htdocs/linuxsoft.html
I untar the file on my linux machine however the extracted files don't
seem to contain any installing program. I didn't find products.jar in the
files and there are no script to install the software. I read the attached
doc, however it only assumes that the installation is from CD-ROM. The doc
doesn't help anything for this downloaded software. I wonder if anyone
here know how to install it. Thank you so much.
Best regards,
SlimHi,
First use gunzip utility to unzip .gz file. Once you are done, you will get a .tar file. Use tar -xvf to untar the file to a directory. It is similar to unzip.
Regards,
Arun -
Oracle Forms Developer/Services 6i Release 2 for Sun SPARC Solaris
Exist? :
Oracle Forms Developer/Services 6i Release 2 for Sun SPARC Solaris
6i Release 2 ,it's product or patch ?
I want to know then Software Product CD Part number, Part # ????? Release 2 , not Release 1!!I'm getting the page not found error on trying to download the setup Oracle Forms Developer 6i Release 2 for 95/98/NT/2000/XP from:
http://www.oracle.com/technology/software/products/forms/htdocs/winsoft.html -
How to install Oracle Forms Developer/Services 6i Release to Ubuntu
Oracle Forms Developer/Services 6i Release 2 for Linux
I've downloaded this software for ubuntu but I couldn't install.
Does anyone know how to install this package?Hi,
To my knowledge Forms Developer/Services 6i Release 2 are not certified for Ubuntu.
Check Certify: www.oracle.com/technology/support/metalink/index.html
Regards,
Martin -
Oracle BI Web Services to extract Presentation Variables
Hi Folks,
I have a complex requirement and was unable to find the right solution on web.
My general question is,
What is the C# code which uses Oracle BI Web Services to extract Presentation Variables information and write it to XML files?
We are unable to extract for Presentation Variables with Variable Value but able to extract for Column Value.
So please share your thoughts as how to extract the presentation variables.
Thanks,
OjOj,
Check this
O.B.I.E.E: Obiee Web Services &#8211; Using .net and C#
http://msdn.microsoft.com/en-us/library/windows/desktop/gg537745(v=vs.85).aspx
Try this and let us know the outcome.
Thanks, -
Oracle Calendar Web services toolkit download
Where can I download Oracle Calendar Web Services Toolkit ?
OK, I found it under the OCS sindows client v9 download.
-
Speed Oracle forms (web based) versus client server
2 years ago we've tested forms 9i
Everything went very smoothly:
We had no problems in converting our old forms to 9i.
We've installed a new database on a new server and we've installed a application server on a second server (Both servers had 2 CPU's and 2GB of memory).
In short everything worked perfectly ... except the speed.
Oracle forms (web based) are a lot slower than client-server forms on a LAN, so we kept developing client-server.
We just use forms on our own local network (100Mbit) but
we use a lot of triggers in our forms (perhaps the reason for the poor performance?)
Has anything changed?
Is it now possible to use web based forms, that are at leased as fast as client server forms?OK, I agree: changing the form (more views, less post-query, more pl/sql on database) will improve performance.
But then I have to recreate every form (> 1000), so then converting c/s to web is not just recompile.
We don't use images in our forms, the database is connected to the application server with a gigabit line. We did tests when even the client was on gigabit, but c/s remains faster. We did the test with just 1 client. and we have never experienced a bottleneck on the network using c/s (even with post-query on millions of records)
So 1 database (2 Xeon CPU's 2GB RAM), 1 App server (2 XEON CPU's, 2GB RAM) and 1 client (XEON workstation, 512MB RAM) using web forms on a gigabit network is slower than the same client using forms (c/s) without an appl. server. => A lot more hardware for less performance?
In short my question: is the latest version of forms faster than the previous version?
Can webforms have the same performance as client server? -
Oracle Forms Server Service cannot start by scripts (windows2k)
We have a Portal & Application Server installed (Forms&Reports 6i).
Server is Windows2000.
I have to start Oracle Forms Server service by scripts, when i manually start the process by pressing start or stop, it works & asks for nothing.
but when i write a script to stop & start oracle forms server , it stops by script.
but it fails to start & says FRM-60009 : ifsvr60 correct usage : -install [service name] exc..... so service doesnt start but when i go to services & start it manually by presing start , it starts. I dont want to install a new service just stop & start the engine.
How can i start the forms server service by a script ? (any of known commands or a way to Oracle forms server service to start by scripts ?)
Thx for Help..Hi
Have you checked that the rpd file still exists in the Repository folder? Did you leave it in a consistent state? assuming the paint.rpd is still there, double click it and see if you can open it, if so run a consistency check.
Rgds
Ed
Maybe you are looking for
-
Hi, I imported my iphotos to Lightroom using the plugin and realised that the geotagging/locations that I did on iphoto did not get transferred. What is the best way for me to get the geotags transferred without having to geotag all the photos on Li
-
Why Apple is silent about iPhone 4s wifi getting greyed out with iOS updates 8.0.2 and 8.1 and did not respond to this issue officially? Many people are suffering from this affected service. How can you trust us to buy new iPhones when you stop suppo
-
Can no longer drag icons, copy paste, print, spell check, drag and drop etc
All of a sudden I can no longer do any of thoses things. Also I get a message that ClamAV can not find the scanning agent either (I use ClamXav). the spell check in Safari does not work either. it claims it can not find my printer, and who knows what
-
Hi I have bought an agent webcam and believe I have downloaded the right software, When I click send webcam it does not work, i don't know why. I am on a power pc g4. On my macbook I can use ichat and aol people can view my webcam, however on the pow
-
Hello All, Please help how I can create consumptiom query in sap B1 , I need to create with fields: 1. Catalog number 2. Description 3. Stock hand (up to day) 4. A single cost 5. Sum of stock (single cost * stock) 6. consumption per month 7. Stock ye