Dependency analysis for function in plsql package
Hi there,
I am trying to resolve a bug in a function which is inside a package. I want to know which package,functions are affected by the change so I can retest it. I have not changed the parameters or return type from function just the code inside it. Is there a table I can query that gives a dependency "tree"?
Thanks
user469956 wrote:
Hi there,
I am trying to resolve a bug in a function which is inside a package. I want to know which package,functions are affected by the change so I can retest it. I have not changed the parameters or return type from function just the code inside it. Is there a table I can query that gives a dependency "tree"?
ThanksThis is the beauty of a package. Since you have not changed the parameters or return type from function just the code inside it, all you need is issue:
CREATE OR REPLACE
PACKAGE BODY package-name
IS
modified-package-body
END package-name
/Do not replace/recompile package specification!!! Again, this is the beauty of a package: as long as you do not replace/recompile package specification, modifying package body does not invalidate any dependent objects.
SY.
P.S. If you want to get dependencies, use DBA_DEPENDENCIES/ALL_DEPENDENCIES/USER_DEPENDENCIES data dictionary views.
Similar Messages
-
Where is the documentation for the sdo_mvclient plsql package?
I am trying to use the sdo_mvclient package in my apex application but there is no documentation for it other than the mapviewer user guide which has like 5 lines of example code and that's it.
Or so it seems...
Where is the rest?Oh never mind, i should look at the java API
-
Datatype of parameters defined in PLSQL function and procedures (packages)
Hi,
Require help with this one.
We have written a unit test generator given a PLSQL package name (and several other unit test attributes). This it does by looking at metadata from user_arguments.
We have hit upon a issue with %ROWTYPE parameters.
It apparently splits such arguments into data_level = 0 (the actual ROWTYPE parameter) and data_level = 1 (the individual components of the ROWTYPE) in user_arguments table.
From the data_level = 0 row, i am unable to retrieve the name of the table of which the ROWTYPE is hinged to.
I am looking for this information to be able to declare a variable, initialize it and pass it over to the package.function / procedure being tested.
Is there a way i can retrieve this information (what's the table name its %ROWTYPE of) ?
Thanks,
KrishnanWe have written a unit test generator given a PLSQL package name (and several other unit test attributes)Nice.
Is there a way i can retrieve this information (what's the table name its %ROWTYPE of) ?Unfortunately not that I know of, the underlying anchored datatype is not recorded in USER_ARGUMENTS or the underlying SYS.ARGUMENT$.
Assuming such types were declared at package specification it would be theoretically possible to do this lookup by exploiting the DIANA interface (DIUTIL, DIANA and PIDL packages) but that would be a significant undertaking. Alternatively I suppose you could consider parsing the source code but this again would be a significant undertaking and would not support wrapped code.
The good news is that the compiler does not require that an identically anchored record is passed to the function/procedure, rather the declaration of the attributes of the record must match. In which case you can (simplistically) just declare a local record type with the argument_name, data_type, data_precision, data_scale and/or data_length from USER_ARGUMENTS level 1 then declare a variable of that type and pass it to the function/procedure under test. I say simplistically because there is (albeit rather rarely used) support for nested record types in PL/SQL, hence levels > 1 may exist in USER_ARGUMENTS.
Edited by: padderz on 30-Mar-2011 02:27 -
Time-dependent BW hierarchies in Analysis for OLAP
Hi all,
We are using time-dependent hierarchies in combination with a key date variable.
Tools used: Query designer based on SAP BW 7.4 and BO 4.0.
The following steps are executed:
Report is executed and key date is prompted
According to the key date, the correct time-dependent organisation hierarchy will be used in drill-down
Bring up variable screen again and select different key date
The drill-down changes according to the now correct time-dependent organisation hierarchy
The above scenario works for BEx Analyzer, BEx Web, Analysis for Office - but not for Analysis for OLAP.
Whenever I run through this scenario and confirm the updated key date, the following error is displayed:
cube.get.dimension.info.runtime.error : java.lang.IllegalStateException: There is no default hierarchy for dimension [ORG].
In the user guide I don't find any specifics about the hierarchies and since it works in all the other applications, I wonder where the error is coming from. I also could not find it anywhere else in the forum.
Has anyone experienced the same error or any suggestions?Hi Peter,
This issue is captured in SAP Note 1941865. Resolved in 4.0 (8.5, 9.2 or SP10) and 4.1 (1.6 or SP03).
Symptom
In BI 4.1, Analysis for OLAP returns errors similar to:"An error occurred in the MDAS service while processing a request from Analysis, edition for OLAP. Try the operation again. If the problem persists, please contact your administrator. (AOC00041)" and/or "cube.get.dimension.info.runtime.error: java.lang.IllegalStateException: There is no default hierarchy for dimension [DIMENSIONNAME]"
The BW Query the AOLAP workspace is created against has 2 different hierarchies that have the same text description
Environment
SAP BusinessObjects Business Intelligence platform 4.0
SAP BusinessObjects Business Intelligence platform 4.1
Analysis, edition for OLAP
Reproducing the Issue
In CMC, create an OLAP BICS connection to a multi provider
Connect to BI launchpad and launch Analysis, edition for OLAP.
Use the connection to create a new workspace.
The error is observed
Cause
This issue has been logged as a defect under ADAPT01720287 for BI4.0 and ADAPT01713663 for BI4.1
Resolution
A fix for this issue is included in the following maintenance releases:
BI4.0:
Patch 8.5
Patch 9.2
Support Pack 10
BI4.1:
Patch 1.6
Support Pack 03 -
Function Point Analysis for SAP BW Projects
Hello All,
Have been assigned a task to come up with Function Point
analysis for SAP BW projects.
Any help will be appreciated.
Thanks,
MainakHi Mainak,
Function Point Analysis is independent of technology, methodology or platform, so there is no function point analysis specific for sap bw, rather you should familiarize with the fundamentals of FPA.
And as you might know, FAP is used to determine whether a given a tool, an environment or a language is more productive when compared to others.
I can send you good links if you can give me your email-id.
Hope this helps...
Thanks,
Raj -
Runtime analysis for an RFC function Module
Hi,
How to get an Runtime analysis for an RFC function Module?
I have an RFC function Module I am using it for a WEB INTERFACE . For this function Module I need to get Runtime Analysis.
Please do not duplicate or cross post
Edited by: Rob Burbank on Feb 21, 2009 11:42 AMTotal Questions: 40 (39 unresolved)
Duplicate thread locked.
Rob -
I would like to get data analysis for solving statistic and making graphs, but this function is not in add-in. How should I do? I also set up microsoft office for mac 2011.
Microsoft didn't include that with the 2011 version.
There is a third-party application that substitutes for the add-in: http://www.analystsoft.com/en/products/statplusmac/
They also have a limited, free version. -
Can't create WS from PLSQL package (Jdeveloper 11g 4) (Exception occured)
Hello,
I'am using JDeveloper 11g preview 4.
On database i have a package with 2 procedures.
When I like to create a WS from database package I get the Exception:
java.lang.ClassCastException: oracle.jdeveloper.webservices.model.plsql.PLSQLPortType
at oracle.jdeveloper.webservices.model.generator.AddToDeploymentProfiles.getJarFiles(AddToDeploymentProfiles.java:592)
at oracle.jdeveloper.webservices.model.generator.AddToDeploymentProfiles.action(AddToDeploymentProfiles.java:292)
at oracle.jdeveloper.webservices.model.generator.GeneratorAction.run(GeneratorAction.java:147)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:153)
at java.awt.Dialog$1.run(Dialog.java:525)
at java.awt.Dialog$2.run(Dialog.java:553)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Dialog.show(Dialog.java:551)
at java.awt.Component.show(Component.java:1300)
at java.awt.Component.setVisible(Component.java:1253)
at oracle.bali.ewt.dialog.JEWTDialog.runDialog(Unknown Source)
at oracle.bali.ewt.dialog.JEWTDialog.runDialog(Unknown Source)
at oracle.ide.dialogs.ProgressBar.start(ProgressBar.java:361)
at oracle.ide.dialogs.ProgressBar.start(ProgressBar.java:222)
at oracle.ide.dialogs.ProgressBar.start(ProgressBar.java:194)
at oracle.jdeveloper.webservices.model.Model.saveEditSync(Model.java:242)
at oracle.jdevimpl.webservices.wizard.jaxrpc.PLSQLWizard.runWizard(PLSQLWizard.java:366)
at oracle.jdevimpl.webservices.wizard.jaxrpc.PLSQLWizard.runWizard(PLSQLWizard.java:137)
at oracle.jdevimpl.webservices.WebServicesAddin.fastCreatePlSqlService(WebServicesAddin.java:1503)
at oracle.jdevimpl.webservices.WebServicesAddin.handleEvent(WebServicesAddin.java:870)
at oracle.ide.controller.IdeAction.performAction(IdeAction.java:513)
at oracle.ide.controller.IdeAction.actionPerformedImpl(IdeAction.java:843)
at oracle.ide.controller.IdeAction.actionPerformed(IdeAction.java:486)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
at javax.swing.AbstractButton.doClick(AbstractButton.java:302)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1000)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.menuDragMouseReleased(BasicMenuItemUI.java:1104)
at javax.swing.JMenuItem.fireMenuDragMouseReleased(JMenuItem.java:578)
at javax.swing.JMenuItem.processMenuDragMouseEvent(JMenuItem.java:475)
at javax.swing.JMenuItem.processMouseEvent(JMenuItem.java:422)
at javax.swing.MenuSelectionManager.processMouseEvent(MenuSelectionManager.java:283)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1043)
at java.awt.Component.processMouseEvent(Component.java:5501)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3135)
at java.awt.Component.processEvent(Component.java:5266)
at java.awt.Container.processEvent(Container.java:1966)
at java.awt.Component.dispatchEventImpl(Component.java:3968)
at java.awt.Container.dispatchEventImpl(Container.java:2024)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
at java.awt.Container.dispatchEventImpl(Container.java:2010)
at java.awt.Window.dispatchEventImpl(Window.java:1778)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Exception from Jdeveloper console
Validating XML...
Validating C:\Generali\WsGenerali\public_html\WEB-INF\web.xml
Validate XML: 0 errors, 0 warnings.
Aug 13, 2008 1:20:20 PM oracle.javatools.logging.LogUtils log
WARNING: Exception in task oracle.jdeveloper.webservices.model.generator.FixLocationAttribute$1@1fa522d on model oracle.jdevimpl.webservices.wsdl.WSDLXmlModel@129271e; txn name=null
java.lang.NullPointerException
at oracle.jdeveloper.webservices.model.generator.FixLocationAttribute$1.performTask(FixLocationAttribute.java:72)
at oracle.bali.xml.model.task.StandardTransactionTask.runThrowingXCE(StandardTransactionTask.java:172)
at oracle.bali.xml.model.task.StandardTransactionTask.run(StandardTransactionTask.java:103)
at oracle.jdeveloper.webservices.model.generator.FixLocationAttribute.action(FixLocationAttribute.java:51)
at oracle.jdeveloper.webservices.model.generator.GeneratorAction.run(GeneratorAction.java:147)
at java.lang.Thread.run(Thread.java:595)
Aug 13, 2008 1:20:20 PM oracle.j2ee.xml.XMLMessages warningException
WARNING: Exception Encountered
Aug 13, 2008 1:20:20 PM oracle.j2ee.xml.XMLMessages warningException
WARNING: Exception Encountered
Aug 13, 2008 1:20:20 PM oracle.j2ee.xml.XMLMessages warningException
my procedures are:
type r_sifrant is record
( id number,
nadrejeni_id number,
opis varchar2(100),
privzeto varchar2(1)
type r_cursor is ref cursor return r_sifrant;
function f_sel_sifrant(p_naziv in varchar2) return r_cursor;
procedure gen_polica(p_username in varchar2, p_polica_xml in clob, p_stevilka_police out number);
Here I have posted a video of generating ws from plsql package (screen capture):
http://shrani.si/f/x/P6/m5GSF8c/in2.avi
Thank you for any help
best regards
Peterv
Message was edited by:
user651799Hello,
I'am using JDeveloper 11g preview 4.
On database i have a package with 2 procedures.
When I like to create a WS from database package I get the Exception:
java.lang.ClassCastException: oracle.jdeveloper.webservices.model.plsql.PLSQLPortType
at oracle.jdeveloper.webservices.model.generator.AddToDeploymentProfiles.getJarFiles(AddToDeploymentProfiles.java:592)
at oracle.jdeveloper.webservices.model.generator.AddToDeploymentProfiles.action(AddToDeploymentProfiles.java:292)
at oracle.jdeveloper.webservices.model.generator.GeneratorAction.run(GeneratorAction.java:147)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:153)
at java.awt.Dialog$1.run(Dialog.java:525)
at java.awt.Dialog$2.run(Dialog.java:553)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Dialog.show(Dialog.java:551)
at java.awt.Component.show(Component.java:1300)
at java.awt.Component.setVisible(Component.java:1253)
at oracle.bali.ewt.dialog.JEWTDialog.runDialog(Unknown Source)
at oracle.bali.ewt.dialog.JEWTDialog.runDialog(Unknown Source)
at oracle.ide.dialogs.ProgressBar.start(ProgressBar.java:361)
at oracle.ide.dialogs.ProgressBar.start(ProgressBar.java:222)
at oracle.ide.dialogs.ProgressBar.start(ProgressBar.java:194)
at oracle.jdeveloper.webservices.model.Model.saveEditSync(Model.java:242)
at oracle.jdevimpl.webservices.wizard.jaxrpc.PLSQLWizard.runWizard(PLSQLWizard.java:366)
at oracle.jdevimpl.webservices.wizard.jaxrpc.PLSQLWizard.runWizard(PLSQLWizard.java:137)
at oracle.jdevimpl.webservices.WebServicesAddin.fastCreatePlSqlService(WebServicesAddin.java:1503)
at oracle.jdevimpl.webservices.WebServicesAddin.handleEvent(WebServicesAddin.java:870)
at oracle.ide.controller.IdeAction.performAction(IdeAction.java:513)
at oracle.ide.controller.IdeAction.actionPerformedImpl(IdeAction.java:843)
at oracle.ide.controller.IdeAction.actionPerformed(IdeAction.java:486)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
at javax.swing.AbstractButton.doClick(AbstractButton.java:302)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1000)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.menuDragMouseReleased(BasicMenuItemUI.java:1104)
at javax.swing.JMenuItem.fireMenuDragMouseReleased(JMenuItem.java:578)
at javax.swing.JMenuItem.processMenuDragMouseEvent(JMenuItem.java:475)
at javax.swing.JMenuItem.processMouseEvent(JMenuItem.java:422)
at javax.swing.MenuSelectionManager.processMouseEvent(MenuSelectionManager.java:283)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1043)
at java.awt.Component.processMouseEvent(Component.java:5501)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3135)
at java.awt.Component.processEvent(Component.java:5266)
at java.awt.Container.processEvent(Container.java:1966)
at java.awt.Component.dispatchEventImpl(Component.java:3968)
at java.awt.Container.dispatchEventImpl(Container.java:2024)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
at java.awt.Container.dispatchEventImpl(Container.java:2010)
at java.awt.Window.dispatchEventImpl(Window.java:1778)
at java.awt.Component.dispatchEvent(Component.java:3803)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Exception from Jdeveloper console
Validating XML...
Validating C:\Generali\WsGenerali\public_html\WEB-INF\web.xml
Validate XML: 0 errors, 0 warnings.
Aug 13, 2008 1:20:20 PM oracle.javatools.logging.LogUtils log
WARNING: Exception in task oracle.jdeveloper.webservices.model.generator.FixLocationAttribute$1@1fa522d on model oracle.jdevimpl.webservices.wsdl.WSDLXmlModel@129271e; txn name=null
java.lang.NullPointerException
at oracle.jdeveloper.webservices.model.generator.FixLocationAttribute$1.performTask(FixLocationAttribute.java:72)
at oracle.bali.xml.model.task.StandardTransactionTask.runThrowingXCE(StandardTransactionTask.java:172)
at oracle.bali.xml.model.task.StandardTransactionTask.run(StandardTransactionTask.java:103)
at oracle.jdeveloper.webservices.model.generator.FixLocationAttribute.action(FixLocationAttribute.java:51)
at oracle.jdeveloper.webservices.model.generator.GeneratorAction.run(GeneratorAction.java:147)
at java.lang.Thread.run(Thread.java:595)
Aug 13, 2008 1:20:20 PM oracle.j2ee.xml.XMLMessages warningException
WARNING: Exception Encountered
Aug 13, 2008 1:20:20 PM oracle.j2ee.xml.XMLMessages warningException
WARNING: Exception Encountered
Aug 13, 2008 1:20:20 PM oracle.j2ee.xml.XMLMessages warningException
my procedures are:
type r_sifrant is record
( id number,
nadrejeni_id number,
opis varchar2(100),
privzeto varchar2(1)
type r_cursor is ref cursor return r_sifrant;
function f_sel_sifrant(p_naziv in varchar2) return r_cursor;
procedure gen_polica(p_username in varchar2, p_polica_xml in clob, p_stevilka_police out number);
Here I have posted a video of generating ws from plsql package (screen capture):
http://shrani.si/f/x/P6/m5GSF8c/in2.avi
Thank you for any help
best regards
Peterv
Message was edited by:
user651799 -
A question about ABC analysis for Cycle counting
Hello expert,
What is RMCBIN00 used for? Currently, user asked me if we can copy RMCBIN00 and perform ABC analysis by quantity? I have no knowledge about it. Can any expert give some clue?
Thanks in advance,
Best Regards, JohnnyHi
RMCBIN00 is a standard ABAP report available within your SAP system (depending on your version and release level). Below is the standard documentation available for this report and a few details of other objects it interacts with such as tables, function modules, includes etc. If you would like to see the full code listing simply enter the object name( RMCBIN00 ) into the relevant SAP transaction such as SE38 or SE80
RMCBIN00 - ABC Analysis of Cycle Counting (Physical Inventory)
PURPOSE
This report runs an analysis for the chosen material types in the cycle counting method of physical inventory.
FEATURES
The analysis takes into account the consumption (usage) or the requirements values of the selected materials for the desired time period. You can decide whether you want to analyze:
Only materials that have a cycle counting indicator
All materials; that is, including materials that have no cycle counting indicator.
Regards
Anand -
Using XML Publisher with plsql package data source?
Hi,
I have a html gantt chart which i create using a plsql package and the use of the htp.p procedure for output to a webpage.
I want to be able to print this to PDF and was hoping the XML Publisher may be an option for doing this. The datasource for this however seems to be a sql query or XML feed.
Can anyone provide any suggestions on this??With a Pipelined Table Function you can use a function in your FROM-clause (so you'll have a normal SELECT, but in the background the data comes from a PL/SQL-function):
SELECT * FROM TABLE( <function_name> )
Look here:
http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:30404463030437
http://download-uk.oracle.com/docs/cd/B19306_01/appdev.102/b14261/tuning.htm#sthref2335 -
Where can I see functions prototype in package wwv_name_value ?
Hi,
I'm interested to see function prototypes from packages wwv_name_value, wwv_standard_util, wwv_lang and others.
How is it possible ?
I used wwv_name_value.get_string function in Advanced PL/SQL window (following a given example), but in the future maybe I'll find other usefull functions which I would like to use...
I'm working with WebDB 2.1.
Thanks:
SzilardHi,
You can see public apis at this location.
http://portalstudio.oracle.com/pls/ops/docs/FOLDER/COMMUNITY/PDK/plsql/doc/astart.htm
For wwv_name goto the preference APIS.
For wwv_lang goto national language APIS
Thanks,
Sharmila -
Urgent - Error calling web service generated from plsql package
Hi,
I am using Jdeveloper 10.1.3 production release.
I am trying to publish a plsql packaged procedure as a web service.
My first question is -
When I am publishing the plsql API as a WS, should I choose the style Document/Wrapped or RPC Literal? Document Wrapped is the default in the wizard.
My second question - Depending on whether I choose Document/Wrapped or RPC Literal style, I get 2 different errors when I try to run the client java file (generated by Jdeveloper) that calls the web service. The client java compiles successfully but when I run I get these messages:
Document/Wrapped error -
D:\jdev1013\jdk\bin\javaw.exe -ojvm -classpath H:\jdevhome\jdev\mywork\Genesis\Test\classes;D:\jdev1013\sqlj\lib\runtime12.jar;D:\jdev1013\jdbc\lib\ojdbc14dms.jar;D:\jdev1013\jdbc\lib\orai18n.jar;D:\jdev1013\jdbc\lib\ocrs12.jar;D:\jdev1013\diagnostics\lib\ojdl.jar;D:\jdev1013\lib\dms.jar;D:\jdev1013\jdev\lib\jdev-rt.jar;D:\jdev1013\webservices\lib\soap.jar;D:\jdev1013\webservices\lib\saaj-api.jar;D:\jdev1013\lib\xmlparserv2.jar;D:\jdev1013\jlib\javax-ssl-1_1.jar;D:\jdev1013\jlib\jssl-1_1.jar;D:\jdev1013\j2ee\home\lib\activation.jar;D:\jdev1013\j2ee\home\lib\mail.jar;D:\jdev1013\j2ee\home\lib\http_client.jar;D:\jdev1013\webservices\lib\jaxrpc-api.jar;D:\jdev1013\webservices\lib\wsclient.jar;D:\jdev1013\webservices\lib\wsserver.jar;D:\jdev1013\webservices\lib\wssecurity.jar;D:\jdev1013\webservices\lib\wsdl.jar;D:\jdev1013\webservices\lib\orasaaj.jar;D:\jdev1013\webservices\lib\orawsdl.jar;D:\jdev1013\webservices\lib\orawsrm.jar;D:\jdev1013\webservices\lib\jaxr_api.jar;D:\jdev1013\webservices\lib\orajaxr.jar;D:\jdev1013\webservices\lib\relaxngDatatype.jar;D:\jdev1013\webservices\lib\jaxb-impl.jar;D:\jdev1013\webservices\lib\jaxb-libs.jar;D:\jdev1013\webservices\lib\xsdlib.jar;D:\jdev1013\webservices\lib\mdds.jar;D:\jdev1013\jlib\jaxen.jar;D:\jdev1013\jlib\oraclepki.jar;D:\jdev1013\jlib\ojpse.jar;D:\jdev1013\jlib\osdt_core.jar;D:\jdev1013\jlib\osdt_cert.jar;D:\jdev1013\jlib\osdt_xmlsec.jar;D:\jdev1013\jlib\osdt_wss.jar;D:\jdev1013\jlib\osdt_saml.jar;D:\jdev1013\jlib\repository.jar;D:\jdev1013\jlib\ojmisc.jar;D:\jdev1013\j2ee\home\jazncore.jar;D:\jdev1013\j2ee\home\oc4jclient.jar;D:\jdev1013\rdbms\jlib\xdb.jar;D:\jdev1013\diagnostics\lib\ojdl2.jar;D:\jdev1013\lib\xsu12.jar;D:\jdev1013\lib\xml.jar;D:\jdev1013\j2ee\home\lib\ejb.jar;D:\jdev1013\j2ee\home\lib\jms.jar;D:\jdev1013\j2ee\home\lib\jta.jar;D:\jdev1013\j2ee\home\lib\servlet.jar;D:\jdev1013\jakarta-taglibs\commons-logging-1.0.3\commons-logging-api.jar;D:\jdev1013\jakarta-taglibs\commons-logging-1.0.3\commons-logging.jar;D:\jdev1013\j2ee\home\lib\ojsp.jar;D:\jdev1013\j2ee\home\jsp\lib\taglib\ojsputil.jar;D:\jdev1013\j2ee\home\oc4j.jar;D:\jdev1013\j2ee\home\lib\oc4j-internal.jar;D:\jdev1013\jdev\lib\ojc.jar genc2dv1.TestWebServiceSoapHttpPortClient
calling http://rchellam-PC1:8888/Genesis-Test-context-root/TestWebServiceSoapHttpPort
java.rmi.RemoteException: Error parsing envelope: (1, 1) Start of root element expected.; nested exception is:
javax.xml.soap.SOAPException: Error parsing envelope: (1, 1) Start of root element expected.
at test.proxy.runtime.TestWebServiceSoapHttp_Stub.getAttributes(TestWebServiceSoapHttp_Stub.java:157)
at genc2dv1.TestWebServiceSoapHttpPortClient.getAttributes(TestWebServiceSoapHttpPortClient.java:46)
at genc2dv1.TestWebServiceSoapHttpPortClient.main(TestWebServiceSoapHttpPortClient.java:29)
Caused by: javax.xml.soap.SOAPException: Error parsing envelope: (1, 1) Start of root element expected.
at oracle.j2ee.ws.saaj.soap.soap11.SOAPImplementation11.createEnvelope(SOAPImplementation11.java:104)
at oracle.j2ee.ws.saaj.soap.SOAPPartImpl.getEnvelope(SOAPPartImpl.java:76)
at oracle.j2ee.ws.saaj.soap.MessageImpl.getSOAPBody(MessageImpl.java:713)
at oracle.j2ee.ws.client.StreamingSender._preHandlingHook(StreamingSender.java:673)
at oracle.j2ee.ws.client.StubBase._preHandlingHook(StubBase.java:664)
at oracle.j2ee.ws.client.StreamingSender._sendImpl(StreamingSender.java:201)
at oracle.j2ee.ws.client.StreamingSender._send(StreamingSender.java:111)
at test.proxy.runtime.TestWebServiceSoapHttp_Stub.getAttributes(TestWebServiceSoapHttp_Stub.java:134)
... 2 more
Caused by: oracle.xml.parser.v2.XMLParseException: Start of root element expected.
at oracle.xml.parser.v2.XMLError.flushErrors1(XMLError.java:320)
at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:333)
at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:295)
at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:201)
at oracle.j2ee.ws.saaj.soap.soap11.SOAPImplementation11.createEnvelope(SOAPImplementation11.java:78)
... 9 more
Process exited with exit code 0.
RPC Literal error -
D:\jdev1013\jdk\bin\javaw.exe -ojvm -classpath H:\jdevhome\jdev\mywork\Genesis\Test\classes;D:\jdev1013\sqlj\lib\runtime12.jar;D:\jdev1013\jdbc\lib\ojdbc14dms.jar;D:\jdev1013\jdbc\lib\orai18n.jar;D:\jdev1013\jdbc\lib\ocrs12.jar;D:\jdev1013\diagnostics\lib\ojdl.jar;D:\jdev1013\lib\dms.jar;D:\jdev1013\jdev\lib\jdev-rt.jar;D:\jdev1013\webservices\lib\soap.jar;D:\jdev1013\webservices\lib\saaj-api.jar;D:\jdev1013\lib\xmlparserv2.jar;D:\jdev1013\jlib\javax-ssl-1_1.jar;D:\jdev1013\jlib\jssl-1_1.jar;D:\jdev1013\j2ee\home\lib\activation.jar;D:\jdev1013\j2ee\home\lib\mail.jar;D:\jdev1013\j2ee\home\lib\http_client.jar;D:\jdev1013\webservices\lib\jaxrpc-api.jar;D:\jdev1013\webservices\lib\wsclient.jar;D:\jdev1013\webservices\lib\wsserver.jar;D:\jdev1013\webservices\lib\wssecurity.jar;D:\jdev1013\webservices\lib\wsdl.jar;D:\jdev1013\webservices\lib\orasaaj.jar;D:\jdev1013\webservices\lib\orawsdl.jar;D:\jdev1013\webservices\lib\orawsrm.jar;D:\jdev1013\webservices\lib\jaxr_api.jar;D:\jdev1013\webservices\lib\orajaxr.jar;D:\jdev1013\webservices\lib\relaxngDatatype.jar;D:\jdev1013\webservices\lib\jaxb-impl.jar;D:\jdev1013\webservices\lib\jaxb-libs.jar;D:\jdev1013\webservices\lib\xsdlib.jar;D:\jdev1013\webservices\lib\mdds.jar;D:\jdev1013\jlib\jaxen.jar;D:\jdev1013\jlib\oraclepki.jar;D:\jdev1013\jlib\ojpse.jar;D:\jdev1013\jlib\osdt_core.jar;D:\jdev1013\jlib\osdt_cert.jar;D:\jdev1013\jlib\osdt_xmlsec.jar;D:\jdev1013\jlib\osdt_wss.jar;D:\jdev1013\jlib\osdt_saml.jar;D:\jdev1013\jlib\repository.jar;D:\jdev1013\jlib\ojmisc.jar;D:\jdev1013\j2ee\home\jazncore.jar;D:\jdev1013\j2ee\home\oc4jclient.jar;D:\jdev1013\rdbms\jlib\xdb.jar;D:\jdev1013\diagnostics\lib\ojdl2.jar;D:\jdev1013\lib\xsu12.jar;D:\jdev1013\lib\xml.jar;D:\jdev1013\j2ee\home\lib\ejb.jar;D:\jdev1013\j2ee\home\lib\jms.jar;D:\jdev1013\j2ee\home\lib\jta.jar;D:\jdev1013\j2ee\home\lib\servlet.jar;D:\jdev1013\jakarta-taglibs\commons-logging-1.0.3\commons-logging-api.jar;D:\jdev1013\jakarta-taglibs\commons-logging-1.0.3\commons-logging.jar;D:\jdev1013\j2ee\home\lib\ojsp.jar;D:\jdev1013\j2ee\home\jsp\lib\taglib\ojsputil.jar;D:\jdev1013\j2ee\home\oc4j.jar;D:\jdev1013\j2ee\home\lib\oc4j-internal.jar;D:\jdev1013\jdev\lib\ojc.jar genc2dv1.TestWebService2SoapHttpPortClient
calling http://rchellam-PC1:8888/Genesis-Test-context-root/TestWebService2SoapHttpPort
unexpected null value for literal data
at oracle.j2ee.ws.common.util.exception.JAXRPCExceptionBase.<init>(JAXRPCExceptionBase.java:52)
at oracle.j2ee.ws.common.encoding.SerializationException.<init>(SerializationException.java:26)
at oracle.j2ee.ws.common.encoding.literal.LiteralObjectSerializerBase.internalSerialize(LiteralObjectSerializerBase.java:191)
at oracle.j2ee.ws.common.encoding.literal.LiteralObjectSerializerBase.serialize(LiteralObjectSerializerBase.java:137)
at test.proxy.runtime.TestWebService2SoapHttp_getAttributes_ReqS_LiteralSerializer.doSerialize(TestWebService2SoapHttp_getAttributes_ReqS_LiteralSerializer.java:154)
at oracle.j2ee.ws.common.encoding.literal.LiteralObjectSerializerBase.internalSerialize(LiteralObjectSerializerBase.java:199)
at oracle.j2ee.ws.common.encoding.literal.LiteralObjectSerializerBase.serialize(LiteralObjectSerializerBase.java:137)
at oracle.j2ee.ws.client.StreamingSender._writeRequest(StreamingSender.java:625)
at oracle.j2ee.ws.client.StreamingSender._sendImpl(StreamingSender.java:137)
at oracle.j2ee.ws.client.StreamingSender._send(StreamingSender.java:111)
at test.proxy.runtime.TestWebService2SoapHttp_Stub.getAttributes(TestWebService2SoapHttp_Stub.java:89)
at genc2dv1.TestWebService2SoapHttpPortClient.getAttributes(TestWebService2SoapHttpPortClient.java:57)
at genc2dv1.TestWebService2SoapHttpPortClient.main(TestWebService2SoapHttpPortClient.java:32)
Process exited with exit code 0.
Now all the classes are generated by JDeveloper automatically from the plsql API. So I am not sure why the errors occur and how to fix these.
Also, these errors are occurring on plsql APIs that have input or output parameters of plsql record type or pslql table of record type. These errors don't occur if the api is simple with scalar input or output parameters only.
I would appreciate any help on how to resolve these errors.
Thanks,
RajiHi,
I'm wondering if the problem is actually that the client is failing to connect to the server correctly. Can I suggest that you switch on the HTTP Analyzer and see what comes back there.
Is it possible it is a proxy problem? If you are working locally then I first suggest that you ensure that the Web Browser Proxy is off (see Tools -> Preferences -> Web Browser Proxy) - and that there are no exceptions listed (either with the proxy on or off) before you start the HTTP Analyzer.
As to Doc/Wrapped or RPC. see this blog entry for a little more explanation:
http://susanduncan.blogspot.com/2006/05/rpc-document-bare-wrapped-literal-get.html
regards
Susan -
Best practice : Base an Entity object on a table or on PLSQL Package?
Hello,
We are going to build an application based upon services. We'd like to implement the data part of our services with the ADF BC components. Each Service data part is represented as an Application.
There are two ways to define an entity within an application
(1) Directly based upon the database tables
(2) Based upon a PLSQL package, containing insert/update/delete functionality (as described in paragraph 26.4 of the ADF Dev. guide for Forms/4GL Developers)
I can imagine that the last methodology is (from a services standpoint) a cleaner separation between the data and the model layer.
What are the advantages/disadvantages in real life of basing an Entity object on a PLSQL package?
Thanks in advance,
Regards Leon SmiersHello Frank,
We are going to use the ADF BC model for both JSF pages and Web Services. So I'd like to hve a reusable BC Model.
You mentioned ADF BC transaction management, when you base the BC model upon PLSQL API's, do I have to define my own transaction management?
Regards Leon -
What is ESOA? What is the Scope/Role for Functional Consultants in eSOA.
Hi Experts,
1) Does eSOA is a tool, application or module?
2) What is the relation between eSOA and ECC6.0?
3) What is the Scope/Role for Functional Consultants in eSOA?
4) What I have to learn in eSOA?
5) How it is useful for Functional Consultant?
6) How it is useful for Customers?
7) How much time it will take to learn eSOA?
8) Where can get the Material?
9) What all technologies I have to learn before I learn to eSOA?
I am working as a SAP HR Consultant. If I want to learn eSOA what are the pre-requisites.
I donu2019t know anything eSOA.
Please give me the answers.
Regards,
RamHi Ram,
See the answers below
> 1) Does eSOA is a tool, application or module?
ESOA is not any tool,application or module. Its a methodology/Architecture
> 2) What is the relation between eSOA and ECC6.0?
ECC 6.0 provides some Enterprises Services through enhancement packages.
> 3) What is the Scope/Role for Functional Consultants in eSOA?
FUnctional consultant should know which ENterprise Serrvices are available and which should be developed to carry out a business process.
> 4) What I have to learn in eSOA?
. Being a technical guy, there are things to be learnt like ESR, implementing designed serivces through ABAP or Java and consuming it. But being a functional guy, only awareness of what enterprise services are available and what they do and their input/output params and how they can fit into a business process is sufficient.
> 5) How it is useful for Functional Consultant?
see above
> 6) How it is useful for Customers?
Customers can move towards Service Oriented Architecture, get flexibility in changing a business process easily, maintaince cost is less
> 7) How much time it will take to learn eSOA?
depends on your skills
> 8) Where can get the Material?
lot of material in SDN
> 9) What all technologies I have to learn before I learn to eSOA?
ABAP or JAVA,ESR ( being a technical consultant) , Web Services
> I am working as a SAP HR Consultant. If I want to learn eSOA what are the pre-requisites.
you should aware of basics of service oriented architecture
If you further want to clear doubts, do write up.
Regards,
Piyush -
Can record comparisons be done without functions or PLSQL
I am used to writing Oracle functions to do record comparisons, however on this particular project the managers do not want to use functions or PLSQL
Is there a way to do the following with a SQL statement rather than writing a function - see data set below? Oracle 9i.
I have the following data set used to track packages that are moved from warehouse to warehouse on trucks
I only want to retrieve a record if the starting location is Dallas Ft Worth and the end location is another city.
I do not want to retrieve a record if the package moves between other cities (say Boston and New York)
For this data set package 1324 was added and removed to the warehouses at Dallas 4 times via truck 735 before it was finally moved to a warehouse in Boston by the same truck
I want the query to return the following record
105273 345 1324 725 11/3/2010 14:32 11/3/2010 15:46 Dallas Ft Worth WH4
Showing the last location in Dallas before it was moved to Boston
I do not want to return any of the Boston or NY records or any of the previous Dallas Ft Worth Records.
The way the system updates the records is as follows:
If a package is added to a warehouse the record gets an added date.
When it is removed the system updates the removed date of that same record
Once it is added to a new warehouse there is a new record with an added date and null date for the removed date unless it leaves that location
In the record set if the removed date is null then that is the current location of the package
CREATE TABLE package_location
( track_id NUMBER(10)
, sender_id NUMBER(10)
, package_id NUMBER(10)
, truck_id NUMBER(10)
, package_add_date DATE,
, package_remove_date DATE,
, city VARCHAR2 (50)
, Warehouse VARCHAR2(50)
INSERT ALL
INTO package_location(track_id, sender_id, package_id, truck_id, package_add_date, package_remove_date, city, warehouse) VALUES (100012
, 345, 1324, 725, 8/4/2010 2:39:48 PM, 8/4/2010 2:53:07 PM, 'Dallas Ft Worth', 'WH1')
INTO package_location(track_id, sender_id, package_id, truck_id, package_add_date, package_remove_date, city, warehouse) VALUES (100016
, 345, 1324, 725, 8/4/2010 2:53:07 PM, 9/30/2010 10:41:01 AM, 'Dallas Ft Worth', 'WH2')
INTO package_location(track_id, sender_id, package_id, truck_id, package_add_date, package_remove_date, city, warehouse) VALUES (103055
, 345, 1324, 725, 9/30/2010 10:41:01 AM, 11/3/2010 2:32:14 PM, 'Dallas Ft Worth', 'WH3')
INTO package_location(track_id, sender_id, package_id, truck_id, package_add_date, package_remove_date, city, warehouse) VALUES (105273
, 345, 1324, 725, 11/3/2010 2:32:14 PM, 11/3/2010 3:46:22 PM, 'Dallas Ft Worth', 'WH4')
INTO package_location(track_id, sender_id, package_id, truck_id, package_add_date, package_remove_date, city, warehouse) VALUES (105284
, 345, 1324, 725, 11/3/2010 3:46:22 PM, 11/22/2010 11:55:18 AM, 'Boston', 'WH34')
INTO package_location(track_id, sender_id, package_id, truck_id, package_add_date, package_remove_date, city, warehouse) VALUES (106674
, 345, 1324, 725, 11/22/2010 11:55:18 AM, NULL, 'New York', 'WH56')
I tried to do a query with a subquery... the main query was getting all the records with Dallas Ft Worth and then the subquery was to check if the location was not Dallas Ft Worth, but so far I haven't quite been able to get the correct dataset.
Any help is greatly appreciated. I don't know if there is a way to do this with just a sql query, if not other suggestions are welcomed!
Thanks in advanceI added a couple of rows to your table, shipping the package back from New York to Dallas on a different truck, then back out from Dallas to New York just to make sure I understand the requirements.
SQL> SELECT * FROM package_location;
TRACK_ID SENDER_ID PACKAGE_ID TRUCK_ID PACKAGE_ADD_DATE PACKAGE_REMOVE_DATE CITY WAREH
100012 345 1324 725 04-aug-2010 14:39:48 04-aug-2010 14:53:07 Dallas Ft Worth WH1
100016 345 1324 725 04-aug-2010 14:53:07 30-sep-2010 10:41:01 Dallas Ft Worth WH2
103055 345 1324 725 30-sep-2010 10:41:01 03-nov-2010 14:32:14 Dallas Ft Worth WH3
105273 345 1324 725 03-nov-2010 14:32:14 03-nov-2010 15:46:22 Dallas Ft Worth WH4
105284 345 1324 725 03-nov-2010 15:46:22 22-nov-2010 11:55:18 Boston WH34
106674 345 1324 725 22-nov-2010 11:55:18 New York WH56
106675 345 1324 804 25-nov-2010 09:55:18 30-nov-2010 15:46:22 Dallas Ft Worth WH4
106676 345 1324 804 25-nov-2010 09:55:18 01-dec-2010 15:46:22 New York WH42Given this data, you would want to get back track_id 105273 and 106675 correct?
If so, then something like:
SQL> SELECT track_id, sender_id, package_id, truck_id, package_add_date,
2 package_remove_date, city, warehouse
3 FROM (SELECT track_id, sender_id, package_id, truck_id, package_add_date,
4 package_remove_date, city, warehouse,
5 LEAD (city) OVER(PARTITION BY package_id
6 ORDER BY package_remove_date) next_city
7 FROM package_location)
8 WHERE city = 'Dallas Ft Worth' and
9 next_city != city;
TRACK_ID SENDER_ID PACKAGE_ID TRUCK_ID PACKAGE_ADD_DATE PACKAGE_REMOVE_DATE CITY WAREH
105273 345 1324 725 03-nov-2010 14:32:14 03-nov-2010 15:46:22 Dallas Ft Worth WH4
106675 345 1324 804 25-nov-2010 09:55:18 30-nov-2010 15:46:22 Dallas Ft Worth WH4John
Edited by: John Spencer on Aug 14, 2011 2:22 PM
Fixed non-displaying operator
Maybe you are looking for
-
Is it possible to have an Opaque Border
Is it possible to have a transparent border? I'm asking because I'm putting a component into one of Hans Mullers wizzzy MultiSplitPanes which in turn is opaque because It's used inside a TabbedPane (XP colours these with a white background gradient .
-
so i just downloaded lion and everything is cool and i like it alright. but today i tried to delete something off my mac hd and i suppose they changed the format and it now says idisk. I click on idisk and it asks me to sign in using my name and pas
-
Available software for old iBook & G4tower?
I inherited a 14 inch iBook from my mother running 10.4.11 & I also have an old G4 tower running 10.4.11 & OS 9. Is there any newer OS system I can install that would be compatible with either of these, and where would I get such a thing? What are th
-
HT4993 iphone 5c as an ipod touch
Hello I have a iphone 5c I am upgrading because I like the iphone 5s better. My question is can I use the iphone 5c as an ipod touch when i no longer have service on it?
-
Hello. I've encountered an annoying error involving Hooks.dll, it started in Acrobat X but perists after upgrading to XI. Sometimes when opening a multi-page .pdf, or attempting to print one brings up this error: "Unhandled error in hooks.dll. Post