JDeveloper hangs when publishing the PL/SQL pkg as web service
Hi,
I have followedthe guidelines in
http://www.oracle.com/technology/obe/obe1013jdev/10131/wsfromplsqlpackage/devwsfrom%20plsql.htm
I have created a simple pkg with one function return varchar2. Followed the exact steps to publish my test_pub, the jdeveloper hangs, at the step 4 of 7 : Program Units. Please help!
Thanks!
Yi
Message was edited by:
ytian
Bob,
watch this viewlet, maybe it gives you a helping hand
http://otn.oracle.com/products/jdev/viewlets/10g/WS_PLSQL_Demo_viewlet_swf.html
Frank
Similar Messages
-
Hi,
When I publish a PL/SQL package as a web service in J2EE 1.4 (Jax-RPC) Web Service version get this error:
oracle.j2ee.ws.common.tools.api.ValidationException: Error in database webservices assembly
at oracle.j2ee.ws.tools.wsa.db.WSADBPlugin.processDBEndpoint(WSADBPlugin.java:329)
at oracle.j2ee.ws.tools.wsa.Util.processDBEndpoint(Util.java:887)
at oracle.jdeveloper.webservices.model.plsql.PLSQLGenerator.preparePLSQLPortTypes(PLSQLGenerator.java:734)
at oracle.jdeveloper.webservices.model.plsql.PLSQLGenerator.doGeneration(PLSQLGenerator.java:233)
at oracle.jdeveloper.webservices.model.Generator.generateImpl(Generator.java:447)
at oracle.jdeveloper.webservices.model.Generator.generate(Generator.java:295)
at oracle.jdeveloper.webservices.model.WebService.saveEditImpl(WebService.java:3971)
at oracle.jdeveloper.webservices.model.WebService.mav$saveEditImpl(WebService.java)
at oracle.jdeveloper.webservices.model.WebService$1.run(WebService.java:3817)
at oracle.jdeveloper.webservices.model.GeneratorUI$GeneratorAction.run(GeneratorUI.java:446)
at oracle.ide.dialogs.ProgressBar.run(ProgressBar.java:551)
at java.lang.Thread.run(Thread.java:595)
GRAVE: JPublisher error: please check assembler settings, database connection and database schema. Use debug=true for details.
and when use J2EE 1.3 (Oracle) version WEb Service get this error:
java.lang.NullPointerException
at oracle.jdevimpl.webservices.generator.WrapperClassGenerator.generate(WrapperClassGenerator.java:262)
at oracle.jdevimpl.webservices.generator.SPWebServiceGenerator$1.run(SPWebServiceGenerator.java:285)
at oracle.ide.dialogs.ProgressBar.run(ProgressBar.java:551)
at java.lang.Thread.run(Thread.java:595)
..... Is this a BUG????
please help!OK, This is the PL/SQL package:
Function:
FUNCTION Obtener_paises RETURN res_webservice AS
v_respuesta res_webservice;
i PLS_INTEGER:=1;
CURSOR C_paises IS
SELECT cpais, tpais
FROM paises
ORDER BY tpais;
BEGIN
v_respuesta := res_webservice(null,null);
v_respuesta.error := res_error(null,null,null);
v_respuesta.error.cerror := 0;
v_respuesta.error.cerror_ora := 0;
v_respuesta.error.terror := null;
v_respuesta.datos := res_datos ();
FOR v_pais IN C_paises LOOP
v_respuesta.datos.extend;
v_respuesta.datos(i) := reg_datos(null,null);
v_respuesta.datos(i).codigo := v_pais.cpais;
v_respuesta.datos(i).descripcion := v_pais.tpais;
i := i + 1;
END LOOP;
Insertar_log(NULL,SYSDATE,'C','Obtener_paises',NULL,'ERROR:0');
RETURN v_respuesta;
EXCEPTION
WHEN OTHERS THEN
v_respuesta.error.cerror := 1;
v_respuesta.error.cerror_ora := SQLCODE;
v_respuesta.error.terror := substr(SQLERRM,1,80);
Insertar_log(NULL,SYSDATE,'C','Obtener_paises',NULL,'ERROR:1 '||substr(SQLERRM,1,120));
RETURN v_respuesta;
END Obtener_paises;
TYPES USED:
CREATE OR REPLACE
TYPE res_webservice AS OBJECT (error res_error, datos res_datos);
CREATE OR REPLACE
TYPE res_error AS OBJECT (cerror NUMBER(1), cerror_ora VARCHAR2(12), terror VARCHAR2(80));
CREATE OR REPLACE
TYPE res_datos AS TABLE OF reg_datos;
CREATE OR REPLACE
TYPE reg_datos AS OBJECT(codigo VARCHAR2(12), descripcion VARCHAR2(150));
Thanks in advanced...
Could happen this bacause of these defined types??? -
Adobe reader XI crash and hangs when open the pdf file
After update the adobe reader xi 11.0.10, the reader always crashes and hangs when open the pdf file. Please help me how to do.
Ben Leung wrote:
HThis situation is started after I clear the pop up advertisement.
What kind of advertisement? In Adobe Reader? Can you post a screenshot of that: https://forums.adobe.com/thread/1070933
Regarding the crash, can you try disabling Protected Mode through the registry: download, unzip, then run the registry script https://files.acrobat.com/a/preview/49eeb48b-07c5-4502-984c-8a25259914fa -
How to hide system tables when using the Oracle SQL Developer?
Hi,
I would like to know how can I show only the tables that I created under the Tables tree? I didnt find a way to create a separate database using the Oracle Sql Developer. I see all the tables together, and would like to differentiate between different databases.
Can anyone explain to me how to do these things?
Thanks,Hi,
I would like to know how can I show only the tables that I created under the Tables tree? Your posting is not clear,again tell something more on tables tree,what u want to achieve with it.
How to hide system tables when using the Oracle SQL Developer? if u connected with sys, system or user with dba role then u have a privilege to see these tables,so revoke the privilege/role from ur user to view this tables if ur connected other then sys,system,
I didnt find a way to create a separate database using the Oracle Sql Developer. DBCA is a tool for creating the new database.
Kuljeet -
FQDN Query when publishing the Lync 2010 Topology
Hello All
While am Defining the Topology for Lync 2010 Enterprise Edition , in which the define of SQL store , i forgot to mention the FQDN of SQL server name, instead i was mentioned only server name. my sql server FDQN is SQL.doitnow.com
Define a new sql Store
SQL Server FQDN : SQL
instead of SQL.doitnow.com
SQL instance : RTC
Topology published successfully .
is there any issue will come in future without mentioning of FQDN during the initialization of lync 2010?
After published the topology, all the data stored in central management Store and so, how can i modify any of the data's after it saved to CMS (after Published topology)
can i delete / remove - CMS and re-publish the topology ? is there any harm ?Thanks Holger
So i need to do the below
1. open an existing topology file , by downloading topology from existing deployment from the server LYNCFE01n.doitnow.com
2.Expand Enterprise Edition Front End Pools
3. Right Click the POOL --> New Server -- FQDN of Second Server abd Primary IP address
4. Loging to the second FE server and install the Prequesties
4.Run the Deployment wizzard on your new Server.
5.Install the certificate
6.Start the service
if i need load balance then need the below ,
Configure the load balancer for th web services
Configure the required DNS entries.
Could you please correct me if am i missing anything -
Error when running the apxldimg.sql to update the images direct from rel3.0
Hi everyone,
I'm new to APEX. I'm upgrading from v3.0 to v3.1. I'm on the post-installation, section on "Updating the Images Directory When Upgrading from Release 3.0", I ran into error below when running the apxldimg.sql script. Has anyone run into the is error before. If yes, how did you fix it?
Directory created.
filelist_xml xmltype := xmltype(bfilename(upload_directory_name,file_list),nls_charset_id('AL32UTF8'));
ERROR at line 15:
ORA-06550: line 15, column 36:
PLS-00306: wrong number or types of arguments in call to 'XMLTYPE'
ORA-06550: line 15, column 25:
PL/SQL: Item ignored
ORA-06550: line 38, column 15:
PLS-00302: component 'EXISTSRESOURCE' must be declared
ORA-06550: line 38, column 3:
PL/SQL: Statement ignored
ORA-06550: line 52, column 46:
PLS-00320: the declaration of the type of this expression is incomplete or
malformed
ORA-06550: line 52, column 3:
PL/SQL: Statement ignoredMy team member found another post that ran into the same problem and the section is for 11g only. My db is 9.2.0.5.
-
Video files in Captivate 6 externalize when publishing the project. Is there any way to publish an SWF project with the video files all in one single file?
Rhonda, I used Captivate 6. Create a New Project. Set the project size to the size of your MP4. In my experience, this was 640 v 480 which also happened to fit nicely within my final project.
From the menu, select Video > Insert Video. Choose "Multi-slide Synchronized" and point to the MP4 on your local drive. Select a skin and playbar that you like from Project > Skin Editor. Then publish. In the Publish dialog, choose SWF as your output format option (not HTML5).
This is the SWF that I added to my master project through Insert > Animation.
Hope this helps! -
SAP system hang when start the addon.
Dear Expert,
I just upgrade one of the SAP B1 server from 2007A to SAP B1 8.8 PL15, everything going smooth both server and clients.
Except one client (new laptop with Win 7 Pro x86), this laptop fail to start the addon.
Others clients with same specs Win 7 Pro have no problem to start addon.
Addon started manually.
After click start button for that addon, the system hang. If without the addon system working fine.
If anyone have ideas to check much appreciate and thanks in advance.
Regards,
MatHi Bala,
I did try your steps, but no luck. System still hang when start the addon.
But, I can start SAP addon , example i try Screen Painter, and can start successfully. Only our addon cannot start.
I'm not suspect our addon because others client working smooth, even the server also working fine.
I did re-install DIAPI, even re-install SAP client a few time, but still fail to start addon (delete SAP client folder before install).
Any one face this problem?
Regards,
mat
Edited by: Mat Mat on Apr 21, 2011 10:43 AM -
Cannot run "Publish PL/SQL as a Web Service" example
Hello!
I have Oracle 8.1.7 AS and 9i JDeveloper running on Windows 2000. I'm trying to run the "Publish PL/SQL as a Web Service" example, but am encountering errors I believe are related to my hostname/IP address/DNS entry. Of course, I could be wrong.
Here is some information:
==========================================================
1. I was able to successfully initialize Containers for J2EE. However, when I was trying to deploy the PL/SQL example, it inserted this information:
C:\oracle\jdev9i\j2ee\home>C:\oracle\jdev9i\jdk\bin\java.exe -jar C:\oracle\jdev9i\j2ee\home\oc4j.jar
Node started with id=-1753996682
Oracle9iAS (9.0.3.0.0) Containers for J2EE initialized
Error updating application PLSQL-PLSQL-WS: Error loading web-app 'WebServices' at
C:\oracle\jdev9i\j2ee\home\applications\PLSQL-PLSQL-WS\WebServices:
resource-ref 'jdbc/testCoreDS' referenced from resource-ref-mapping not found
==========================================================
2. I went through the instructions from the website, and when I began the deployment process it generated this information:
---- Deployment started. ---- Jan 17, 2003 1:20:27 PM
Wrote WAR file to C:\oracle\jdev9i\jdev\plsql-webexample\Project1\WebSe[i]Long postings are being truncated to ~1 kB at this time.Couple of suggestions despite your post being cut off with what might be useful information (please post the rest if these suggestions don't help):
1. There are some bugs with Personal Oracle and Web services, notably Oracle9i Personal that may apply also to 8.1.7. If you have a MetaLink account it is logged as bug 2591731.
2. As you are using your local machine, make sure your proxies are turned off (Tools-Preferences Web Browser/Proxy)
3. I've noticed problems when folks use a JDK with a version lower than 1.3.1_02 to run OC4J - it is certified only with 1.3.1_02 or higher. If you are using the built-in JDeveloper JDK to start up OC4J (e.g. <Jdev_home>\jdk\bin\java.exe) you should be fine. But if you are just typing in java -jar oc4j.jar it is worth checking. Check the your default JDK version by typing in: java -version. If it is lower, then download a new version from http://java.sun.com/j2se/1.3/download.html.
4. For level setting it is best to be using build 1035 of JDeveloper, the current production release and either the OC4J embedded in it or the stand-alone version here on OTN.
Hope these point in the right direction.
Mike. -
Publish PL/SQL procedures as web services?
I am investigating JDeveloper for possible use in a project we are starting. We already have existing PL/SQL Procedures that we want to use and I have done a prototype using XSQL and OWA in JDeveloper 9i Candidate version. I am trying to figure out what the changes and improvements are in the most recent version of JDeveloper. On this page http://technet.oracle.com/products/jdev/htdocs/jdev903_fo.html#web_services it says there is broader support for Publishing PL/SQL procedures as web services. Is there any more information out there on this? What exactly has been improved and what are the current limitations. I did find some documentation in the Oracle9i Application Server Developers Guide on the limitations (release 2 (9.0.2) http://download-west.oracle.com/docs/cd/A97329_01/web.902/a95453/plsqlservices.htm#1030066 Do I assume this is the same limitations for JDeveloper since the Oracle9iAS included with it? I am getting confused by all this documentation.
Thanks for any help
NatalieNatalie,
Please take a look at the tutorials on
http://otn.oracle.com/tech/webservices/database.html
Also, read the Web Service discussion forum where you will find some useful hints. Using 9.2.x DB, OC4J 9.0.4 and JDev9.0.3.1 it is really funny to start publishing PL/SQL as Web Service.
Flemming -
Missing Technet Video - Publish PL/SQL as a Web Service
When I try to view the video for "Publish PL/SQL as a Web Service" (http://www.oracle.com/technology/tech/webservices/htdocs/series/plsql/index.html) I get an invalid URL message from Real Player.
Is this video no longer available?Sorry; that content is no longer available. For a more recent document we suggest this URL:
http://www.oracle.com/technology/pub/articles/price_10gws.html
Cheers, OTN -
Helpme I have error when I try connect from struts to web service
helpme I have error when I try connect from struts to web service using basic authentication . the error message is
[SOAP Exception: fault code= SOAP-ENV Protocol; msg=Unsupported response content type "text/html" must be "text/xml"; ] Response was <html><body> 401 Unauthorized </body></html>
I'm not using ldap for authentication only xml (jazx-data.xml) ... I already create user with jazn.jar for that user , and I dont know why it still error like that ..
Please helpme I don't have anytime more to find the mistake , ??
I'm using Jdeveloper 9i , and oc4j 9.0.4 Server (Not embedded with Jdev)
But when I use with sample java client it success .....
then I try with Struts the response is unsupported response content type text/html must be text/xml response was 401 Unauthorized1.The reason why this error occurs is, we are getting non SOAP response when the program is expecting a SOAP response. Did you set the proxy server correctly? Try to handle the exception and see the content type of the response in your program.
2. While creating the client stub u must check an option for authentication for webservice .should solve ur problem.
thanks
sirisha -
How to disable href/id in the generated response of a web-service
Hello All,
Do I have any possibility to disbale href/id on the generated response of a web-service that use RPC-encoded format? My generated soap body looks like this:
<env:Body env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<m:Response xmlns:m="http://www.myTest.com">
<result xmlns:n1="java:com.myTest" xsi:type="n1:Response">
<ResultObject xsi:type="n1:ResultObject">
<firstString href="#ID_6" />
<integerObject href="#ID_13" />
<secondString href="#ID_6" />
</ResultObject>
<ResultObject xsi:type="n1:ResultObject">
<firstString href="#ID_6" />
<integerObject href="#ID_13" />
<secondString href="#ID_6" />
</ResultObject>
<ResultObject xsi:type="n1:ResultObject">
<firstString href="#ID_6" />
<integerObject href="#ID_13" />
<secondString href="#ID_6" />
</ResultObject>
</result>
</m:Response>
<xsd:int xsi:type="xsd:int" id="ID_13">10</xsd:int>
<xsd:string xsi:type="xsd:string" id="ID_6">EUR</xsd:string>
</env:Body>
Do I have any possibility to instruct the serialization process so that the result to conform with an XML schema and to keep the RPC-Encoded format? In other words to get rid of href/id:s? Href/id:s are used only for objects having the same reference.
This issue is now even more problematic since JDK 5 when for integers boxing is not necessarily and thus, the compiler translates an Integer assignment using the method:
public static Integer valueOf(int i)
which returns cached Integer objects for any integer between -128 and 127.
Please give some hints (others than using boxing for integers or changing the soap format to document-literal).
ThanksHello All,
Do I have any possibility to disbale href/id on the generated response of a web-service that use RPC-encoded format? My generated soap body looks like this:
<env:Body env:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<m:Response xmlns:m="http://www.myTest.com">
<result xmlns:n1="java:com.myTest" xsi:type="n1:Response">
<ResultObject xsi:type="n1:ResultObject">
<firstString href="#ID_6" />
<integerObject href="#ID_13" />
<secondString href="#ID_6" />
</ResultObject>
<ResultObject xsi:type="n1:ResultObject">
<firstString href="#ID_6" />
<integerObject href="#ID_13" />
<secondString href="#ID_6" />
</ResultObject>
<ResultObject xsi:type="n1:ResultObject">
<firstString href="#ID_6" />
<integerObject href="#ID_13" />
<secondString href="#ID_6" />
</ResultObject>
</result>
</m:Response>
<xsd:int xsi:type="xsd:int" id="ID_13">10</xsd:int>
<xsd:string xsi:type="xsd:string" id="ID_6">EUR</xsd:string>
</env:Body>
Do I have any possibility to instruct the serialization process so that the result to conform with an XML schema and to keep the RPC-Encoded format? In other words to get rid of href/id:s? Href/id:s are used only for objects having the same reference.
This issue is now even more problematic since JDK 5 when for integers boxing is not necessarily and thus, the compiler translates an Integer assignment using the method:
public static Integer valueOf(int i)
which returns cached Integer objects for any integer between -128 and 127.
Please give some hints (others than using boxing for integers or changing the soap format to document-literal).
Thanks -
I have two web service operations that have the same complex type as their input
parameter. I want to map this type to an existing schema. I can successfully
do this with the first operation using XQuery but when I attempt to do this with
the second operation I get the following error:
ERROR: MyService.jws:715:There are two or more operations with the same schema-element
'ns0:MyNamespace' on the input message in a web service file or callback interface.
ERROR: SUGGESTION: Use different schema-element values for each of those operations.
How can I use different schema-element values? The input parameters are to be
mapped to the same schema and same element since they are the same for both operations....I am having the same problem. How did you resolve this..?? could you please tell me the solution??
Thanks
Shari -
Using the UWL API inside a Web Service
I wrote a Web Service to get the number of new tasks and the total number of tasks for a user like it is displayed in the UWL in the DefaultView.
The numbers are retrieved by the following code:
user = com.sap.security.api.UMFactory.getAuthenticator().getLoggedInUser();
// JNDI lookup for getting the service because we are not in the PRT container
Hashtable env = new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sapportals.portal.prt.registry.PortalRegistryFactory");
InitialContext initialContext = new InitialContext(env);
uwlService = (IUWLService) initialContext.lookup("/broker/services/" + IUWLService.ALIAS_KEY);
if (uwlService == null) {
throw new Exception("Cannot get UWL Service");
context = new UWLContext();
if (user == null) {
throw new Exception("No user");
context.setUser(user);
context.setLocale(user.getLocale());
session = uwlService.beginSession(context, 200);
context.setSession(session);
context.setAllowBackEndConnections(true);
itemManager = uwlService.getItemManager(context);
UWLView view = uwlService.getViewManager(context).getView("DefaultView", context);
if (view != null) {
QueryProperties properties = new QueryProperties();
properties.setMaxNumberOfItemsToFetch(0);
QueryResult result = itemManager.getItemsForView(context, view, properties, null);
totals = itemManager.getTotalAndEmphasizedItemCountForView(context, view, "", null);
In the first step I chose basic authentication. When debugging I see that the web service gets the information about the logged on user. The UWLService, item manager, session and view, all of them are determined resp. created.
But when calling getItems the UWL exception "Logged in users context or session doesn't exist" is thrown.
When calling the same functionality from Web Dynpro everything works fine.
Service and session are determined like this
uwlService = (IUWLService) WDPortalUtils.getServiceReference(IUWLService.ALIAS_KEY);
context = new UWLContext();
IUser user = WDClientUser.getLoggedInClientUser().getSAPUser();
wdContext.currentUIStateElement().setUserName(user.getFirstName() + " " + user.getLastName());
context.setUser(user);
context.setLocale(WDResourceHandler.getCurrentSessionLocale());
session = uwlService.getUwlSessionForWebDynproClient(context);
Does anyone know how to work with the UWL API in a web service context?
Thanks in advance
AntjeHi Experts,
We are also facing the same issue as of Yomesh.
The strange part here is that, yesterday, the code was fetching the User and we were able to run the whole web service.
Suddenly, this doesnt seems to be working today. And after debugging, we found that, the User is not being returned with the below code:
user = UMFactory.getAuthenticator().getLoggedInUser(wsContext.getHttpServletRequest(), null);
Any help is highly appreciated.
Thanks in Advance!!
BR,
Uday
Maybe you are looking for
-
How to do transformation in Aqualogic Service Bus
Hi, I am new to aqualogic service bus. Please guide me how can I do transformation. Here is the scenario: I have one proxy service (ProxyService) and two Buiness Services (BusinessServiceV1 and BusinessServiceV2).Each Business service talks to corres
-
Hi, im developing an intervae which should communicate xml files via HTTPS or SFTP. With HTTP (i have made some tests and it works) now i want to test it with HTTPS or SFTP but i dont know how to use this. Can you provide me with some details how to
-
We are facing problem of Roles getting automatically de-assigned to users in EP. We would like to know the following: 1) If this is a known issue with EP 6.0? 2) If yes how to correct it.? 3) How to find when this role got deassigne
-
I recently purchased music from I tunes; the music downloaded to my computer into file. but, i am unable to move this file to my media player or burn to a CD. what must I do to correct this problem if it's mine?
-
SSL Error 61. Can't access work from home
I keep getting this error and is says I haven't chosen to trust the certificate. But when I go to Keychain the certificate isn't there. So how do I trust it? Go buy a PC?