Parsing failed: TypeError: Cannot call method "replace"
Hi,
when i troubleshooting my collector, sentinel GUI message prompt
following:
Parsing failed: TypeError: Cannot call method "replace" of undefined;
input:
my release.js is following:
Collector.prototype.initialize = function() {
this.PARSER.getOffsetData = function(input) {
if (typeof input.RXMap != "undefined") {
return input.RXMap.REQUEST_TM;
conn.addParser(this.PARSER.getOffsetData);
return true;
Collector.prototype.cleanup = function() {
return true;
Connector.prototype.sendQuery = function() {
return true;
Record.prototype.preParse = function(e) {
if (this.CONNECTION_ERROR != null || typeof this.RXMap == "undefined")
{ return false; }
if (this.CONNECTION_METHOD == "DATABASE") {
for (var field in this.RXMap) {
this[field] = this.RXMap[field];
return true;
Record.prototype.parse = function(e) {
var detstring =
this.RXMap.REQUEST_TM.replace(/(\d+)\/(\d+)\/(\d{4})\s(\S+)/g, '$1/$2/$3
$4 GMT');
var dt = new Date(detstring);
e.ObserverEventTime(dt);
return true;
Record.prototype.normalize = function(e) {
instance.SEND_EVENT =true;
return true;
Record.prototype.postParse = function(e) {
return true;
Record.prototype.reply = function(e) {
return true;
my sqlquery.base is following:
SELECT TOP 100 * FROM TS_QUERYBILLSIGNED_LOG WHERE REQUEST_TM > %s
My table sample is following:
CUSTCODE,BEGIN_TM,END_TM,PAGEINDEX,QUERYTYPE,SYSTE MNAME,SIGNEDTYPE,CLIENTIP,CLIENTMAC,CLIENTNAME,MET HODNAME,REQUEST_TM,ANSWER_TM,ANSWER_TOTAL,ANSWER_C URRENTCOUNT,LOG_ID,WAYBILL_NOS
8710294837,12/30/2013,1/2/2014
23:59,0,0,CSS-CLIENT,0,221.213.26.241,6C-F0-49-CD-2C-CD,a0af75ce888346e,waybillSingedTotal,1/3/2014
14:50,1/3/2014 14:50,28,4,433676211,
My table Schema is following:
USE [sfere]
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
SET ANSI_PADDING ON
GO
CREATE TABLE [dbo].[ts_querybillsigned_log](
[CUSTCODE] [varchar](20) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[BEGIN_TM] [datetime] NULL,
[END_TM] [datetime] NULL,
[PAGEINDEX] [varchar](20) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[QUERYTYPE] [varchar](20) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[SYSTEMNAME] [varchar](20) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[SIGNEDTYPE] [varchar](20) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[CLIENTIP] [varchar](200) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[CLIENTMAC] [varchar](200) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[CLIENTNAME] [varchar](500) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[METHODNAME] [varchar](20) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
[REQUEST_TM] [datetime] NULL,
[ANSWER_TM] [datetime] NULL,
[ANSWER_TOTAL] [numeric](20, 0) NULL,
[ANSWER_CURRENTCOUNT] [numeric](20, 0) NULL,
[LOG_ID] [numeric](30, 0) NOT NULL,
[WAYBILL_NOS] [varchar](400) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
) ON [PRIMARY]
GO
SET ANSI_PADDING OFF
Thanks
Best Regards!
Steve zeng
steve_zeng
steve_zeng's Profile: https://forums.netiq.com/member.php?userid=3875
View this thread: https://forums.netiq.com/showthread.php?t=50290
steve_zeng;242145 Wrote:
> Hi,
>
> when i troubleshooting my collector, sentinel GUI message prompt
> following:
>
>
> Parsing failed: TypeError: Cannot call method "replace" of undefined;
> input:
>
> my release.js is following:
> ----------------------------------------------------------------------
> Collector.prototype.initialize = function() {
> this.PARSER.getOffsetData = function(input) {
> if (typeof input.RXMap != "undefined") {
> return input.RXMap.REQUEST_TM;
> }
> };
> conn.addParser(this.PARSER.getOffsetData);
> return true;
> };
>
> Collector.prototype.cleanup = function() {
> return true;
> };
>
>
> Connector.prototype.sendQuery = function() {
> return true;
> };
>
>
> Record.prototype.preParse = function(e) {
> if (this.CONNECTION_ERROR != null || typeof this.RXMap == "undefined")
> { return false; }
>
> if (this.CONNECTION_METHOD == "DATABASE") {
>
> for (var field in this.RXMap) {
> this[field] = this.RXMap[field];
> }
> }
>
> return true;
> };
>
> Record.prototype.parse = function(e) {
>
> var detstring =
> this.RXMap.REQUEST_TM.replace(/(\d+)\/(\d+)\/(\d{4})\s(\S+)/g, '$1/$2/$3
> $4 GMT');
> var dt = new Date(detstring);
> e.ObserverEventTime(dt);
> return true;
> };
>
>
> Record.prototype.normalize = function(e) {
> instance.SEND_EVENT =true;
> return true;
> };
>
> Record.prototype.postParse = function(e) {
> return true;
> };
>
>
> Record.prototype.reply = function(e) {
> return true;
>
> ----------------------------------------------------------------------------
> my sqlquery.base is following:
>
> SELECT TOP 100 * FROM TS_QUERYBILLSIGNED_LOG WHERE REQUEST_TM > %s
>
>
> My table sample is following:
> ----------------------------------------------------------------------------------
>
> CUSTCODE,BEGIN_TM,END_TM,PAGEINDEX,QUERYTYPE,SYSTE MNAME,SIGNEDTYPE,CLIENTIP,CLIENTMAC,CLIENTNAME,MET HODNAME,REQUEST_TM,ANSWER_TM,ANSWER_TOTAL,ANSWER_C URRENTCOUNT,LOG_ID,WAYBILL_NOS
> 8710294837,12/30/2013,1/2/2014
> 23:59,0,0,CSS-CLIENT,0,221.213.26.241,6C-F0-49-CD-2C-CD,a0af75ce888346e,waybillSingedTotal,1/3/2014
> 14:50,1/3/2014 14:50,28,4,433676211,
>
> -----------------------------------------------------------------------------------------
> My table Schema is following:
>
> USE [sfere]
> GO
>
> SET ANSI_NULLS ON
> GO
> SET QUOTED_IDENTIFIER ON
> GO
> SET ANSI_PADDING ON
> GO
> CREATE TABLE [dbo].[ts_querybillsigned_log](
> [CUSTCODE] [varchar](20) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
> [BEGIN_TM] [datetime] NULL,
> [END_TM] [datetime] NULL,
> [PAGEINDEX] [varchar](20) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
> [QUERYTYPE] [varchar](20) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
> [SYSTEMNAME] [varchar](20) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
> [SIGNEDTYPE] [varchar](20) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
> [CLIENTIP] [varchar](200) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
> [CLIENTMAC] [varchar](200) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
> [CLIENTNAME] [varchar](500) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
> [METHODNAME] [varchar](20) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
> [REQUEST_TM] [datetime] NULL,
> [ANSWER_TM] [datetime] NULL,
> [ANSWER_TOTAL] [numeric](20, 0) NULL,
> [ANSWER_CURRENTCOUNT] [numeric](20, 0) NULL,
> [LOG_ID] [numeric](30, 0) NOT NULL,
> [WAYBILL_NOS] [varchar](400) COLLATE SQL_Latin1_General_CP1_CI_AS NULL
> ) ON [PRIMARY]
>
> GO
> SET ANSI_PADDING OFF
>
> Thanks
> Best Regards!
> Steve zeng
It's throwing an exception because at some point, you are not checking
your string for nulls before calling replace. My guess is that
this.RXMap.REQUEST_TM is sometimes empty/null and when you call replace,
it then excepts. Always ensure that your string value is
non-null/defined before calling a function against it.
brandon.langley
brandon.langley's Profile: https://forums.netiq.com/member.php?userid=350
View this thread: https://forums.netiq.com/showthread.php?t=50290
Similar Messages
-
Hi there, any help with this error?
this is the log:
[0123/100157:ERROR:renderer_main.cc(226)] Running without renderer sandbox
[0123/100157:ERROR:renderer_main.cc(226)] Running without renderer sandbox
[0123/100157:ERROR:renderer_main.cc(226)] Running without renderer sandbox
[0123/100159:INFO:CONSOLE(1)] "Uncaught TypeError: Cannot call method 'appendChild' of undefined", source: v8/appCss (1)
[0123/100159:INFO:CONSOLE(0)] "event.returnValue is deprecated. Please use the standard event.preventDefault() instead.", source: (0)Hi, here the proyect http://macheteapps.com/aure/edge/test_font_error.zip , the error is when I add a new custom font.
<link href='http://fonts.googleapis.com/css?family=Roboto:900,400&subset=latin,latin-ext' rel='stylesheet' type='text/css'>
Roboto, sans-serif -
Share blueprint - TypeError: Cannot call method "OutEdges" of undefined'
Hello,
I made a BPMN-model in the BPA-suite and want to share the blueprint with IT. The firsttime I succeeded. But when I change the model and want to share the blueprint with IT, I get the following error:
internal error: TypeError: Cannot call method “OutEdges” of undefined’.
I am working on a windows2003 platform, the version of the BPA-suite is 10.1.3.4 and the database is a Oracle 10g express edition.
Does anyone recognise the problem and know the solution?
Best,
Jan TammengaHi Danilo,
In what cases can appear that error? I have the same error and I can't share blueprint because of that.
What is it talking about?
And by the way: is there any document in which errors generated by BPA are described? I would by thankful, if you could give me any links... :)
Bye,
Pawel -
Uncaught TypeError: Cannot call method 'renderStoreProperty' of undefined
Hi,
I'm using CQ5.5 with SP2.
I am going through the tutorial on how to create and register a new xtype.
I have followed the steps, and am getting the following error when I try to view the page:
Uncaught TypeError: Cannot call method 'renderStoreProperty' of undefined
I have added the following:
/apps/training/widgets ( jcr:primaryType(Name)=cq:ClientLibraryFolder, categories(String[])=training.widgets, dependencies(String[])=cq.widgets, sling:resourceType(String[])=widgets/clientlib )
/apps/training/widgets/files (jcr:primaryType(Name)=nt:folder)
/apps/training/widgets/files/training.js (content below)
/apps/training/widgets/js.txt
#base=files
training.js
training.js
// Create the namespace
Training = {};
// Create a new class based on existing CompositeField
Training.Selection = CQ.Ext.extend(CQ.form.CompositeField, {
text: "default text",
constructor : function(config){
if (config.text != null) this.text = config.text;
var defaults = {
height: "auto",
border: false,
style: "padding:0;margin-bottom:0;",
layoutConfig: {
labelSeparator: CQ.themes.Dialog.LABEL_SEPARATOR
defaults: {
msgTarget: CQ.themes.Dialog.MSG_TARGET
CQ.Util.applyDefaults(config, defaults);
Training.Selection.superclass.constructor.call(this, config);
this.selectionForm = new CQ.Ext.form.TimeField({
name: this.name,
hideLabel: true,
anchor: "100%",
minValue: '8:00am',
maxValue: '6:00pm',
intDate: new Date(),
validateValue: function(value) {return true}
this.add(this.selectionForm);
processRecord: function(record, path){
this.selectionForm.setValue(record.get(this.getName()));
CQ.Ext.reg("trainingSelection", Training.Selection);
I have included headlibs.jsp for an extension of page as per the tutorial, contianing:
<cq:includeClientLib js="training.widgets"/>
When debugging the /etc/clientlibs/foundation/librarymanager/CQClientLibraryManager.js file, the path seems to be correct, pointing to:
/apps/training/widgets.js
unfortunately, when I try to hit
http://localhost:4502/apps/training/widgets.js, I get a 404 No resource found error.
This leads me to believe that I have something wrong with the /apps/training/widgets node, as it is not rendering the .js includes.
Any help would be greatly appreciated.OK, found the problem.
The clue was that it couldn't find the relevant js files.
The tutorial tells us to add:
<cq:inclueClientLib js="training.widgets" />
Just above they have the line:
<cq:inclueClientLib categories="cq.foundation-main"/>
as we have set the property categories(String[])=training.widgets, if we change js to categories as such:
<cq:inclueClientLib categories="training.widgets" />
It fixes the issue. -
This is the error that I get when I open our site.
MuseJSAssert: Error calling selector function:TypeError: Cannot call method 'getElementsByTagName' of null
Can someone take a look at this?
I tried uploading from scratch on to a new bc test site:
expertly.businesscatalyst.com
Dont worry about the Edge videos that works fine.
When you click on Online or Offline (on the left hand side) this error shows up.
And then the accordian wigs out.
Any help would be appreciated. Thanks.There seems to be a Javascript error with the "ss-form" HTML that has been inserted. Specifically, this part:
var divs = document.getElementById('ss-form').
getElementsByTagName('div');
I believe (though I'm not sure), that changing it to
var divs = document.getElementById('ss-form').getElementsByTagName('div');
All on one line will solve the problem. Unfortunately this is beyond the scope of Muse, as it is code that has been inserted. You made need to check with the source you found the inserted code from.
Thanks,
Colby -
Calendar invitation errors: cannot call method 'index of' of undefined
I added an event to iCal and it sent out some email invitaions. When people click "Accept" in their emails, they get this eror "an error has occurred which prevents application from running: cannot call method 'indexOf' of undefined". Anyone know what's going on here?
Roginator,
I too have been experiencing this in the past couple of days. We have two iPhones (4s), and my wife and I add each other to our schedules. We have tried at least 5 tests recently, and only 1 worked. The error occurs in Safari on the iphone and also in my web browsers -Chrome, IE, and Firefox.
Can we get someone from Apple, on the iCloud side involved with this ASAP. I am sure many others are experiencing this.
Thanks. -
Apply template but it show "cannot call method 'getAttribute' of null"
i created a shared template first.
my steps:
1. created a datamodel as 'sales'
2. created a report using 'sale' datamodel
3. created a new layout ,put my data into the page, and saved the new layout as 'my layout 1'.
4. saved the report as 'Boilerplates' and placed it undel /my folders.
(i want to use the layout 'my layout 1' as shared templates)
now i create another datamodel as 'teu',
and then create another report using 'teu' datamodel,
i can see 'my layout 1' layout in the new report, but when i apply 'my layout 1',
the alert "cannot call method 'getAttribute' of null" display.
can anyone help me?
thanks,
newkoaThe Code tool is realy useful for putting the script in a readable format.
This isnt' a great location for generic, non SharePoint, PowerShell questions. A lot of us know it back to front but the hey Scripting guy forum is much faster than we are here.
That error message is actually very descriptive. It's saying there is no invoke method on a null object, or in other words there isn't an object to operate on. Or to finally put it in English: There is no '$shellApplication' object that PowerShell knows
of.
At the moment I've no idea what you intended to do with the $zipPackage object but since it's not being used now i'd just comment that line out -
Calling methods from inside a tag using jsp 2.0
My searching has led me to believe that you cannot call methods from in the jsp 2.0 tags. Is this correct? Here is what I am trying to do.
I have an object that keeps track of various ui information (i.e. tab order, whether or not to stripe the current row and stuff like that). I am trying out the new (to me) jsp tag libraries like so:
jsp page:
<jsp:useBean id="rowState" class="com.mypackage.beans.RowState" />
<ivrow:string rowState="${rowState}" />my string tag:
<%@ attribute type="com.mypackage.beans.RowState" name="rowState" required="true" %>
<c:choose>
<c:when test="${rowState.stripeToggle}">
<tr class="ivstripe">
</c:when>
<c:otherwise>
<tr>
</c:otherwise>
</c:choose>I can access the getter method jst fine. It tells me wether or not to have a white row or a gray row. Now I want to toggle the state of my object but I get the following errors when I try this ${rowState.toggle()}:
org.apache.jasper.JasperException: /WEB-INF/tags/ivrow/string.tag(81,2) The function toggle must be used with a prefix when a default namespace is not specified
Question 1:
Searching on this I found some sites that seemed to say you can't call methods inside tag files...is this true?...how should I do this then? I tried pulling the object out of the pageContext like this:
<%@ page import="com.xactsites.iv.beans.*" %>
<%
RowState rowState = (RowState)pageContext.getAttribute("rowState");
%>I get the following error for this:
Generated servlet error:
RowState cannot be resolved to a type
Question 2:
How come java can't find RowState. I seem to recall in my searching reading that page directives aren't allowed in tag files...is this true? How do I import files then?
I realized that these are probably newbie questions so please be kind, I am new to this and still learning. Any responses are welcome...including links to good resources for learning more.You are correct in that JSTL can only call getter/setter methods, and can call methods outside of those. In particular no methods with parameters.
You could do a couple of things though some of them might be against the "rules"
1 - Whenever you call isStripeToggle() you could "toggle" it as a side effect. Not really a "clean" solution, but if documented that you call it only once for each iteration would work quite nicely I think.
2 - Write the "toggle" method following the getter/setter pattern so that you could invoke it from JSTL.
ie public String getToggle(){
toggle = !toggle;
return "";
}Again its a bit of a hack, but you wouldn't be reusing the isStriptToggle() method in this way
The way I normally approach this is using a counter for the loop I am in.
Mostly when you are iterating on a JSP page you are using a <c:forEach> tag or similar which has a varStatus attribute.
<table>
<c:forEach var="row" items="${listOfThings}" varStatus="status">
<tr class="${status.index % 2 == 0 ? 'evenRow' : 'oddRow'}">
<td>${status.index}></td>
<td>${row.name}</td>
</tr>
</c:forEach> -
Hi All,
During the Coexistence of Exchange 2007 to 2010 Migration..
I have create new Edge Scubscription in Edge Server 1 and Export the Edge Configuration File from Edge Server 1.
While trying to Import Edge configuration to Edge Server 2 in Exchange Management Shell, I am getting the below Error.
I have tried importing on both Exchange 2007 and 2010 Edge Servers, getting the same error.
"Importing Edge configuration information Failed.
Reason: You cannot call a method on a null-valued expression."
Please help in resolving this issue...Also found the CloneLogFile as below : I masked my domain name as xxx for security reason..
Get-TransportServer -Identity:xxx | Set-TransportServer -AntispamAgentsEnabled:$true -ConnectivityLogEnabled:$false -ConnectivityLogMaxAge '30.00:00:00' -ConnectivityLogMaxDirectorySize '250MB' -ConnectivityLogMaxFileSize '10MB' -ConnectivityLogPath 'C:\Program
Files\Microsoft\Exchange Server\TransportRoles\Logs\Connectivity' -DelayNotificationTimeout '04:00:00' -ExternalDelayDsnEnabled:$true -ExternalDNSAdapterEnabled:$true -ExternalDNSAdapterGuid '00000000-0000-0000-0000-000000000000' -ExternalDNSProtocolOption
'Any' -ExternalDNSServers:$null -ExternalIPAddress:$null -ExternalDsnDefaultLanguage 'en-US' -ExternalDsnLanguageDetectionEnabled:$true -ExternalDsnMaxMessageAttachSize '10MB' -ExternalDsnSendHtml:$true -InternalDelayDsnEnabled:$true -InternalDNSAdapterEnabled:$true
-InternalDNSAdapterGuid '00000000-0000-0000-0000-000000000000' -InternalDNSProtocolOption 'Any' -InternalDNSServers:$null -InternalDsnDefaultLanguage 'en-US' -InternalDsnLanguageDetectionEnabled:$true -InternalDsnMaxMessageAttachSize '10MB' -InternalDsnSendHtml:$true
-MaxConcurrentMailboxDeliveries '7' -MaxConcurrentMailboxSubmissions '20' -MaxConnectionRatePerMinute '1200' -MaxOutboundConnections '1000' -MaxPerDomainOutboundConnections '20' -MessageExpirationTimeout '2.00:00:00' -MessageRetryInterval '00:01:00' -MessageTrackingLogEnabled:$true
-MessageTrackingLogMaxAge '30.00:00:00' -MessageTrackingLogMaxDirectorySize '1GB' -MessageTrackingLogMaxFileSize '10MB' -MessageTrackingLogPath 'C:\Program Files\Microsoft\Exchange Server\TransportRoles\Logs\MessageTracking' -MessageTrackingLogSubjectLoggingEnabled:$true
-OutboundConnectionFailureRetryInterval '00:30:00' -IntraOrgConnectorProtocolLoggingLevel 'None' -PickupDirectoryMaxHeaderSize '64KB' -PickupDirectoryMaxMessagesPerMinute '100' -PickupDirectoryMaxRecipientsPerMessage '100' -PickupDirectoryPath 'C:\Program
Files\Microsoft\Exchange Server\TransportRoles\Pickup' -PipelineTracingEnabled:$false -ContentConversionTracingEnabled:$false -PipelineTracingPath 'C:\Program Files\Microsoft\Exchange Server\TransportRoles\Logs\PipelineTracing' -PipelineTracingSenderAddress:$null
-PoisonMessageDetectionEnabled:$true -PoisonThreshold '2' -QueueMaxIdleTime '00:03:00' -ReceiveProtocolLogMaxAge '30.00:00:00' -ReceiveProtocolLogMaxDirectorySize '250MB' -ReceiveProtocolLogMaxFileSize '10MB' -ReceiveProtocolLogPath 'C:\Program Files\Microsoft\Exchange
Server\TransportRoles\Logs\ProtocolLog\SmtpReceive' -RecipientValidationCacheEnabled:$true -ReplayDirectoryPath 'C:\Program Files\Microsoft\Exchange Server\TransportRoles\Replay' -RoutingTableLogMaxAge '7.00:00:00' -RoutingTableLogMaxDirectorySize '50MB' -RoutingTableLogPath
'C:\Program Files\Microsoft\Exchange Server\TransportRoles\Logs\Routing' -SendProtocolLogMaxAge '30.00:00:00' -SendProtocolLogMaxDirectorySize '250MB' -SendProtocolLogMaxFileSize '10MB' -SendProtocolLogPath 'C:\Program Files\Microsoft\Exchange Server\TransportRoles\Logs\ProtocolLog\SmtpSend'
-TransientFailureRetryCount '6' -TransientFailureRetryInterval '00:10:00'
New-AcceptedDomain -DomainName 'xxx' -DomainType 'Authoritative' -Name 'xxx'
Set-AcceptedDomain -DomainType 'Authoritative' -AddressBookEnabled:$true -Name 'xxx'
Importing Edge configuration information Failed.
Reason: You cannot call a method on a null-valued expression. -
Abstract classes and constructors - cannot call abs. methods in CONSTRUCTOR
Let me explain the scenario:
I'm building a program in which I need to read a file (among other things) and I intend to use object orientation to it's fullest in doing so. I thought of creating an abstract FILE class which has the commonalities, and two subclasses SERVER_FILE and PC_FILE, which implement the abstract method GET_CONTENTS in different ways (OPEN DATASET / GUI_UPLOAD), same for the CHOOSE method which allows to select the file from it's corresponding source.
Initially I've used an interface but since another tasks like setting the file path are common for both, switched to an ABSTRACT class.
Now, the problem is, from the main code I intend to use a FILE reference to handle either type of file. At the instantiation moment I'd like the path attribute to be set; if it was not set by parameter, i'd like to call the CHOOSE method which is abstract for the superclass. Since this is common for either subclass, I need a way to code it once in the superclass. But I get an error because the CHOOSE method is abstract.
This is the problem code (extracts):
* CLASS lcl_file DEFINITION
CLASS lcl_file DEFINITION ABSTRACT.
PUBLIC SECTION.
METHODS:
constructor
IMPORTING
i_path TYPE string OPTIONAL
EXCEPTIONS
no_path_chosen,
get_contents ABSTRACT
RETURNING
value(rt_contents) TYPE string_table
EXCEPTIONS
read_error.
PROTECTED SECTION.
DATA:
_v_path TYPE string.
METHODS:
choose ABSTRACT
EXCEPTIONS
no_path_chosen,
set_path
IMPORTING
i_path TYPE string.
ENDCLASS. "lcl_file DEFINITION
* CLASS lcl_file IMPLEMENTATION
CLASS lcl_file IMPLEMENTATION.
METHOD constructor.
IF i_path IS SUPPLIED.
CALL METHOD set_path
EXPORTING
i_path = i_path.
ELSE.
*---->>>> PROBLEM CALL - CAN'T BE DONE!!
CALL METHOD choose
EXCEPTIONS
no_path_chosen = 1.
IF sy-subrc = 1.
RAISE no_path_chosen.
ENDIF.
ENDIF.
ENDMETHOD. "constructor
METHOD set_path.
_v_path = i_path.
ENDMETHOD. "set_path
ENDCLASS. "lcl_file IMPLEMENTATION
* CLASS lcl_server_file DEFINITION
CLASS lcl_server_file DEFINITION
INHERITING FROM lcl_file.
PUBLIC SECTION.
METHODS:
get_contents REDEFINITION.
PROTECTED SECTION.
METHODS:
choose REDEFINITION.
ENDCLASS. "lcl_server_file DEFINITIO
* CLASS lcl_server_file IMPLEMENTATION
CLASS lcl_server_file IMPLEMENTATION.
METHOD choose.
DATA:
l_i_path TYPE dxfields-longpath,
l_o_path TYPE dxfields-longpath.
CALL FUNCTION 'F4_DXFILENAME_TOPRECURSION'
EXPORTING
i_location_flag = 'A' " Application server
i_path = l_i_path
fileoperation = 'R' " Lectura
IMPORTING
o_path = l_o_path
EXCEPTIONS
rfc_error = 1
OTHERS = 2.
IF sy-subrc = 0 AND l_o_path <> l_i_path.
MOVE l_o_path TO _v_path.
ELSE.
RAISE no_path_chosen.
ENDIF.
ENDMETHOD. "choose
METHOD get_contents.
DATA: l_line LIKE LINE OF rt_contents,
l_osmsg TYPE string.
CHECK NOT _v_path IS INITIAL.
OPEN DATASET _v_path FOR INPUT
IN TEXT MODE
MESSAGE l_osmsg.
IF sy-subrc <> 0.
MESSAGE e000(oo) WITH l_osmsg
RAISING read_error.
ELSE.
DO.
READ DATASET _v_path INTO l_line.
IF sy-subrc = 0.
APPEND l_line TO rt_contents.
ELSE.
EXIT.
ENDIF.
ENDDO.
CLOSE DATASET _v_path.
ENDIF.
ENDMETHOD. "get_contents
ENDCLASS. "lcl_server_file IMPLEMENTATION
* CLASS lcl_pc_file DEFINITION
CLASS lcl_pc_file DEFINITION
INHERITING FROM lcl_file.
PUBLIC SECTION.
METHODS:
get_contents REDEFINITION.
PROTECTED SECTION.
METHODS:
choose REDEFINITION.
ENDCLASS. "lcl_pc_file DEFINITIO
* CLASS lcl_pc_file IMPLEMENTATION
CLASS lcl_pc_file IMPLEMENTATION.
METHOD choose.
DATA:
l_i_path TYPE dxfields-longpath VALUE 'C:\',
l_o_path TYPE dxfields-longpath.
CALL FUNCTION 'F4_DXFILENAME_TOPRECURSION'
EXPORTING
i_location_flag = 'P' " PC
i_path = l_i_path
fileoperation = 'R' " Lectura
IMPORTING
o_path = l_o_path
EXCEPTIONS
rfc_error = 1
OTHERS = 2.
IF sy-subrc = 0 AND l_o_path <> l_i_path.
MOVE l_o_path TO _v_path.
ELSE.
RAISE no_path_chosen.
ENDIF.
ENDMETHOD. "choose
METHOD get_contents.
CHECK NOT _v_path IS INITIAL.
CALL METHOD cl_gui_frontend_services=>gui_upload
EXPORTING
filename = _v_path
CHANGING
data_tab = rt_contents
EXCEPTIONS
file_open_error = 1
file_read_error = 2
no_batch = 3
gui_refuse_filetransfer = 4
invalid_type = 5
no_authority = 6
unknown_error = 7
bad_data_format = 8
header_not_allowed = 9
separator_not_allowed = 10
header_too_long = 11
unknown_dp_error = 12
access_denied = 13
dp_out_of_memory = 14
disk_full = 15
dp_timeout = 16
OTHERS = 17.
IF sy-subrc <> 0.
RAISE read_error.
ENDIF.
ENDMETHOD. "get_contents
ENDCLASS. "lcl_pc_file IMPLEMENTATION
* Data
DATA: gr_file TYPE REF TO lcl_file.
* Main Program
START-OF-SELECTION.
* Get text lines from file
IF p_srv = abap_true.
CREATE OBJECT gr_file
TYPE
lcl_server_file
EXCEPTIONS
no_path_chosen = 1.
ELSE.
CREATE OBJECT gr_file
TYPE
lcl_pc_file
EXCEPTIONS
no_path_chosen = 1.
ENDIF.
On a 4.6c system this code gave me a dump, while on my NW7.0 SP it doesn't even activate with the following error:
You cannot call abstract methods in the "CONSTRUCTOR" method.
- Following some suggestions from Java forums i've tried to define the constructor in the base class as PROTECTED or PRIVATE instead, then calling super->constructor from the subclasses, but I get this error in german:
Sichtbarkeit des Konstruktors darf nicht spezieller als die Sichtbarkeit der Instanzerzeugung (CREATE-Zuzatz) sein.
which Altavista translates like:
Visibility of the constructor may not be more special than the
visibility of the instance production (CREATE Zuzatz).
- I've also thought of defining the CHOOSE method as a class (not instance) one, then calling it before creating the file object which maybe solves the problem, but I see that approach more "procedural oriented" which i'm trying to avoid.
- Of course I could define a constructor for each subclass, but both would have exactly the same code.
I'm really lost on how should I code this. My main focus is on avoiding code dupplication.
I hope someone with more OO experience can see what I'm trying to do and sheds some light.
Many thanks for reading all this!Dear Alejandro,
When i saw your code, you are trying to access an astract method CHOOSE(which is actually implemented in sub class) from the constructor of the base class which is not possible. By this time, we don't know which sub class it is refering to, so it gives an error. I see two solutions for this..
1. To define constructor in sub class and call the choose method from the consturctor of the sub class(which in this case is reputation of the same again for each sub class)
2. Remove the calling of choose method from the constructor of the main class and call it separately(after creating the object). By now we know which sub class we are refering to. I would have designed the program in the following way.
* CLASS lcl_file DEFINITION
CLASS lcl_file DEFINITION ABSTRACT.
PUBLIC SECTION.
METHODS:
constructor
IMPORTING
i_path TYPE string OPTIONAL
EXCEPTIONS
no_path_chosen,
get_contents ABSTRACT
RETURNING
value(rt_contents) TYPE string_table
EXCEPTIONS
read_errorm,
set_path ABSTRACT
EXCEPTIONS
no_path_chosen.
PROTECTED SECTION.
DATA:
_v_path TYPE string.
* METHODS:
* choose ABSTRACT
* EXCEPTIONS
* no_path_chosen,
* set_path ABSTRACT
* IMPORTING
* i_path TYPE string.
ENDCLASS. "lcl_file DEFINITION
* CLASS lcl_file IMPLEMENTATION
CLASS lcl_file IMPLEMENTATION.
METHOD constructor.
IF i_path IS SUPPLIED.
_v_path = i_path.
* CALL METHOD set_path
* EXPORTING
* i_path = i_path.
* ELSE.
**---->>>> PROBLEM CALL - CAN'T BE DONE!!
* CALL METHOD choose
* EXCEPTIONS
* no_path_chosen = 1.
* IF sy-subrc = 1.
* RAISE no_path_chosen.
* ENDIF.
ENDIF.
ENDMETHOD. "constructor
* METHOD set_path.
* _v_path = i_path.
* ENDMETHOD. "set_path
ENDCLASS. "lcl_file IMPLEMENTATION
* CLASS lcl_server_file DEFINITION
CLASS lcl_server_file DEFINITION
INHERITING FROM lcl_file.
PUBLIC SECTION.
METHODS:
get_contents REDEFINITION,
set_path REDEFINITION.
* PROTECTED SECTION.
* METHODS:
* choose REDEFINITION.
ENDCLASS. "lcl_server_file DEFINITIO
* CLASS lcl_server_file IMPLEMENTATION
CLASS lcl_server_file IMPLEMENTATION.
METHOD set_path.
DATA:
l_i_path TYPE dxfields-longpath,
l_o_path TYPE dxfields-longpath.
CHECK _v_path IS INITIAL.
CALL FUNCTION 'F4_DXFILENAME_TOPRECURSION'
EXPORTING
i_location_flag = 'A' " Application server
i_path = l_i_path
fileoperation = 'R' " Lectura
IMPORTING
o_path = l_o_path
EXCEPTIONS
rfc_error = 1
OTHERS = 2.
IF sy-subrc = 0 AND l_o_path = l_i_path.
MOVE l_o_path TO _v_path.
ELSE.
RAISE no_path_chosen.
ENDIF.
ENDMETHOD. "set_path
METHOD get_contents.
DATA: l_line LIKE LINE OF rt_contents,
l_osmsg TYPE string.
CHECK NOT _v_path IS INITIAL.
* OPEN DATASET _v_path FOR INPUT
* IN TEXT MODE
* MESSAGE l_osmsg.
IF sy-subrc = 0.
* MESSAGE e000(oo) WITH l_osmsg
* RAISING read_error.
ELSE.
DO.
READ DATASET _v_path INTO l_line.
IF sy-subrc = 0.
APPEND l_line TO rt_contents.
ELSE.
EXIT.
ENDIF.
ENDDO.
CLOSE DATASET _v_path.
ENDIF.
ENDMETHOD. "get_contents
ENDCLASS. "lcl_server_file IMPLEMENTATION
* CLASS lcl_pc_file DEFINITION
CLASS lcl_pc_file DEFINITION
INHERITING FROM lcl_file.
PUBLIC SECTION.
METHODS:
get_contents REDEFINITION,
set_path REDEFINITION.
* PROTECTED SECTION.
* METHODS:
* choose REDEFINITION.
ENDCLASS. "lcl_pc_file DEFINITIO
* CLASS lcl_pc_file IMPLEMENTATION
CLASS lcl_pc_file IMPLEMENTATION.
METHOD set_path.
DATA:
l_i_path TYPE dxfields-longpath VALUE 'C:\',
l_o_path TYPE dxfields-longpath.
CHECK _v_path IS INITIAL.
CALL FUNCTION 'F4_DXFILENAME_TOPRECURSION'
EXPORTING
i_location_flag = 'P' " PC
i_path = l_i_path
fileoperation = 'R' " Lectura
IMPORTING
o_path = l_o_path
EXCEPTIONS
rfc_error = 1
OTHERS = 2.
IF sy-subrc = 0 AND l_o_path = l_i_path.
MOVE l_o_path TO _v_path.
ELSE.
RAISE no_path_chosen.
ENDIF.
ENDMETHOD. "set_path
METHOD get_contents.
CHECK NOT _v_path IS INITIAL.
CALL METHOD cl_gui_frontend_services=>gui_upload
EXPORTING
filename = _v_path
CHANGING
data_tab = rt_contents
EXCEPTIONS
file_open_error = 1
file_read_error = 2
no_batch = 3
gui_refuse_filetransfer = 4
invalid_type = 5
no_authority = 6
unknown_error = 7
bad_data_format = 8
header_not_allowed = 9
separator_not_allowed = 10
header_too_long = 11
unknown_dp_error = 12
access_denied = 13
dp_out_of_memory = 14
disk_full = 15
dp_timeout = 16
OTHERS = 17.
IF sy-subrc = 0.
* RAISE read_error.
ENDIF.
ENDMETHOD. "get_contents
ENDCLASS. "lcl_pc_file IMPLEMENTATION
* Data
DATA: gr_file TYPE REF TO lcl_file.
* Main Program
START-OF-SELECTION.
* Get text lines from file
IF abap_true = abap_true.
CREATE OBJECT gr_file
TYPE
lcl_server_file
EXCEPTIONS
no_path_chosen = 1.
ELSE.
CREATE OBJECT gr_file
TYPE
lcl_pc_file
EXCEPTIONS
no_path_chosen = 1.
ENDIF.
gr_file->set_path( ).
Regards
Kesava
Edited by: Kesava Chandra Rao on Mar 19, 2008 11:44 AM -
I have the problem of calls getting failed.. Black Iphone 4S 16gb IOS 6.1.3. O2 Network - Airtel India.
I have full bars of signal but cannot make calls. Goes to "No service" then to "searching".
I constantly get "Call Failed" when making calls.
What could be done to solve the problem?Try settings/general/reset/reset network settings. If that does not do it then contact your carrier
-
Im getting an error : MustJSAssert: Error calling selector function: TypeError: Cannot read property 'style' of null'
- with each page selection on the nav bar
here is the link
http://http-shipleybusinesscatalystcom.businesscatalyst.com/index.htmlI'm unable to reproduce the error message at your site (on any of the pages) as tested in multiple browsers on a Windows machine. What browser (with version)/OS/Muse version are you using?
However, the most likely cause of the error message is the pinned menu at your site. Refer to a similar thread here - http://forums.adobe.com/thread/1117058
If the problem persists at your end, please try clearing your browser's cache/history/cookies and re-try. Also try a different browser in order to isolate the issue to a specific browser (version).
Thanks,
Vinayak -
MuseJSAssert: Error calling selector function:TypeError: Cannot read property 'msie' of undefined. Please help me in this.
Hi
Please check the following thread,
Re: MuseJSAssert: Error Calling Selector Function:[Object Error]
Do let me know if you have any question. -
Calling Web Service from PL/SQL (ORA-31011: XML parsing failed)
hi all,
i want to invoke a web service from PL/SQL.
i found a soap_api package from "Tim Hall".
but it gives error in "ealtas.soap_api.invoke function"
ORA-31011: XML parsing failed
ORA-19202: Error occurred in XML processing
LPX-00007: unexpected end-of-file encountered
ORA-06512: at "SYS.XMLTYPE", line 48
ORA-06512: at "EALTAS.SOAP_API", line 135
ORA-06512: at line 44
set scan off;
declare
P_ADRES_WS VARCHAR2(100) := 'http://<host>:<port>/dswsbobje/qaawsservices/biws?wsdl=1&cuid=AVhBxL14I2dDjz8yFoznRLY';
P_ENVELOPE VARCHAR2(32767);
P_FNC VARCHAR2(256) := 'runQueryAsAService';
ol_req ealtas.soap_api.t_request;
ol_resp ealtas.soap_api.t_response;
message varchar2(500);
BEGIN
p_envelope := '<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:db="DB_SUBS_BUDGET">
<soapenv:Body>
<db:runQueryAsAService>
<db:login>DWH_BO</db:login>
<db:password>Pass1234</db:password>
</db:runQueryAsAService>
</soapenv:Body>
</soapenv:Envelope>
ol_req := ealtas.soap_api.new_request(P_FNC, 'xmlns="'||P_ADRES_WS||'"');
ol_resp := ealtas.soap_api.invoke(ol_req, P_ADRES_WS, p_fnc,P_ENVELOPE);
ealtas.soap_api.show_envelope(p_envelope);
message := ealtas.soap_api.get_return_value(ol_resp, 'Db_Timeid', 'xmlns:m="'||P_ADRES_WS||'"');
DBMS_OUTPUT.PUT_LINE('AAAA -'||message);
end;
thanks.
ealtas.AlexAnd thanks for your help.
ACL is ok.
can you help me about how can i edit this function. i tried many times but i could not do it :( .
web service url : <host>:<port>/dswsbobje/qaawsservices/biws?WSDL=1&cuid=AVhBxL14I2dDjz8yFoznRLY
what must be these variables values ?
l_url :=
l_namespace :=
l_method :=
l_soap_action :=
l_result_name :=
this is the xml;
<?xml version="1.0" encoding="UTF-8" ?>
- <definitions xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:s0="DB_SUBS_BUDGET" xmlns:tns1="dsws.businessobjects.com" targetNamespace="DB_SUBS_BUDGET" xmlns="http://schemas.xmlsoap.org/wsdl/" name="queryasaservice">
- <types>
- <s:schema elementFormDefault="qualified" targetNamespace="DB_SUBS_BUDGET">
- <s:element name="runQueryAsAService">
- <s:complexType>
- <s:sequence>
<s:element name="login" type="s:string" />
<s:element name="password" type="s:string" />
</s:sequence>
</s:complexType>
</s:element>
- <s:complexType name="Row">
- <s:sequence>
<s:element name="Db_Timeid" type="s:string" nillable="true" />
<s:element name="Db_Tariff" type="s:string" nillable="true" />
<s:element name="Grossadds" type="s:double" nillable="true" />
<s:element name="Cancellations" type="s:double" nillable="true" />
<s:element name="Netadds" type="s:double" nillable="true" />
<s:element name="Subs" type="s:double" nillable="true" />
<s:element name="Churn_P" type="s:double" nillable="true" />
</s:sequence>
</s:complexType>
- <s:complexType name="Table">
- <s:sequence>
<s:element name="row" maxOccurs="unbounded" type="s0:Row" />
</s:sequence>
</s:complexType>
- <s:element name="runQueryAsAServiceResponse">
- <s:complexType>
- <s:sequence>
<s:element name="table" type="s0:Table" />
<s:element name="message" type="s:string" />
<s:element name="creatorname" type="s:string" />
<s:element name="creationdate" type="s:dateTime" />
<s:element name="creationdateformated" type="s:string" />
<s:element name="description" type="s:string" />
<s:element name="universe" type="s:string" />
<s:element name="queryruntime" type="s:int" />
<s:element name="fetchedrows" type="s:int" />
</s:sequence>
</s:complexType>
</s:element>
- <s:element name="QaaWSHeader">
- <s:complexType>
- <s:sequence>
<s:element name="sessionID" type="s:string" minOccurs="0" maxOccurs="1" nillable="true" />
<s:element name="serializedSession" type="s:string" minOccurs="0" maxOccurs="1" nillable="true" />
</s:sequence>
</s:complexType>
</s:element>
</s:schema>
</types>
- <message name="runQueryAsAServiceSoapIn">
<part name="parameters" element="s0:runQueryAsAService" />
<part name="request_header" element="s0:QaaWSHeader" />
</message>
- <message name="runQueryAsAServiceSoapOut">
<part name="parameters" element="s0:runQueryAsAServiceResponse" />
</message>
- <portType name="QueryAsAServiceSoap">
- <operation name="runQueryAsAService">
<documentation>Get Web Service Provider server info</documentation>
<input message="s0:runQueryAsAServiceSoapIn" />
<output message="s0:runQueryAsAServiceSoapOut" />
</operation>
</portType>
- <binding name="QueryAsAServiceSoap" type="s0:QueryAsAServiceSoap">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" />
- <operation name="runQueryAsAService">
<soap:operation soapAction="DB_SUBS_BUDGET/runQueryAsAService" style="document" />
- <input>
- <soap:header message="s0:runQueryAsAServiceSoapIn" part="request_header" use="literal">
<soap:headerfault message="s0:runQueryAsAServiceSoapIn" part="request_header" use="literal" />
</soap:header>
<soap:body use="literal" parts="parameters" />
</input>
- <output>
<soap:body use="literal" />
</output>
</operation>
</binding>
- <service name="DB_SUBS_BUDGET">
<documentation />
- <port name="QueryAsAServiceSoap" binding="s0:QueryAsAServiceSoap">
<soap:address location="http://<host>:<port>/dswsbobje/qaawsservices/queryasaservice?&cuid=AVhBxL14I2dDjz8yFoznRLY&authType=secEnterprise&locale=en_US&timeout=60&ConvertAnyType=false" />
</port>
</service>
</definitions> -
XML parsing failed : Try to update FCRM field
i created one field in fusion crm ,lead . and i have one table in my oracle EBS database i write one procedure which get data from table and pur into fcrm
when i call procedure with static value it perfactly alright but ,when try to use xml parsing for all records give following error
ORA-20001: An error was encountered - -31011 -ERRORORA-31011: XML parsing failed
ORA-19202: Error occurred in XML processing
LPX-00245: extra data after end of document
Error at line 1
ORA-06512: at "SCOTT.XX_LEAD_UPDATE", line 101
ORA-06512: at line 1
my procedure as follow :
CREATE OR REPLACE PROCEDURE xx_lead_update
--(p_leadid IN VARCHAR2,p_xx_kp_lead IN VARCHAR2)
IS
p_leadid VARCHAR2(50);
p_xx_kp_lead VARCHAR2(50);
CURSOR c1 IS
SELECT FCRM_LEADID,XX_KP_LEAD
FROM XX_KP_EBSLEAD
WHERE ID = 6;
-- Construct xml payload, which is used to invoke the service.
l_envelope VARCHAR2(32767) := '<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:typ="http://xmlns.oracle.com/apps/marketing/leadMgmt/leads/leadService/types/" xmlns:lead="http://xmlns.oracle.com/oracle/apps/marketing/leadMgmt/leads/leadService/" xmlns:lead1="http://xmlns.oracle.com/apps/marketing/leadMgmt/leads/leadService/" xmlns:not="http://xmlns.oracle.com/apps/crmCommon/notes/noteService" xmlns:not1="http://xmlns.oracle.com/apps/crmCommon/notes/flex/noteDff/">
<soapenv:Header/>
<soapenv:Body>
<typ:updateSalesLead>
<typ:salesLead>
<lead:LeadId>'||p_leadid||'</lead:LeadId>
<lead:xx_kp_lead_c>'||p_xx_kp_lead||'</lead:xx_kp_lead_c>
</typ:salesLead>
</typ:updateSalesLead>
</soapenv:Body>
</soapenv:Envelope>';
--PartyId: 300000000912340
l_result VARCHAR2(32767) := null;
l_http_request UTL_HTTP.req;
l_http_response UTL_HTTP.resp;
v_len number;
v_txt Varchar2(32767);
soap_respond CLOB;
resp xmltype;
l_str long;
v_str varchar2(100);
BEGIN
OPEN c1;
LOOP
FETCH c1 INTO p_leadid,p_xx_kp_lead;
dbms_output.put_line ('p_xx_kp_lead '||p_xx_kp_lead);
dbms_output.put_line ('p_leadid: '||p_leadid);
-- Sets the Oracle wallet used for request, required for HTTPS
UTL_HTTP.set_wallet('file:/apps/oracle/dnlclone/10.2.0/wallet','test1234');
-- Creates new HTTP request
l_http_request := UTL_HTTP.begin_request('https://aes.crm.ap2.oraclecloud.com:443/mklLeads/SalesLeadService?WSDL', 'POST','HTTP/1.1');
-- Configure the authentication details on the request
UTL_HTTP.SET_AUTHENTICATION(l_http_request, '[email protected]', 'DNLcrm*1');
-- Configure the request content type to be xml and set the content length
UTL_HTTP.set_header(l_http_request, 'Content-Type', 'text/xml');
UTL_HTTP.set_header(l_http_request, 'Content-Length', LENGTH(l_envelope));
-- Set the SOAP action to be invoked; while the call works without this the value is expected to be set based on standards
UTL_HTTP.set_header(l_http_request, 'SOAPAction','http://xmlns.oracle.com/apps/marketing/leadMgmt/leads/leadService/');
-- Write the xml payload to the request.
UTL_HTTP.write_text(l_http_request, l_envelope);
-- Get the response
l_http_response := UTL_HTTP.get_response(l_http_request);
utl_http.get_header_by_name(l_http_response, 'Content-Length', v_len, 1); -- Obtain the length of the response
FOR i in 1..CEIL(v_len/32767) -- obtain response in 32K blocks just in case it is greater than 32K
LOOP
utl_http.read_text(l_http_response, v_txt, case when i < CEIL(v_len/32767) then 32767 else mod(v_len,32767) end);
soap_respond := soap_respond || v_txt; -- build up CLOB
END LOOP;
UTL_HTTP.END_RESPONSE(l_http_response);
resp:= xmltype.createxml(soap_respond); -- Convert CLOB to XMLTYPE
--Using extract or extractvalue methods, retrieve value from a particular element/tag in the xml
--v_str := resp.extract('/env:Envelope/env:Body/ns0:updateOpportunityResponse/ns2:result/ns3:EBSOrderNumber_c/text()','xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns0="http://xmlns.oracle.com/apps/sales/opptyMgmt/opportunities/opportunityService/types/" xmlns:ns2="http://xmlns.oracle.com/apps/sales/opptyMgmt/opportunities/opportunityService/types/" xmlns:ns3="http://xmlns.oracle.com/apps/sales/opptyMgmt/opportunities/opportunityService/"').getstringval();
l_str := resp.extract('/*').getstringval();
LOOP
EXIT
WHEN l_str IS NULL;
dbms_output.put_line (SUBSTR (l_str, 1, instr (l_str, chr(10)) - 1));
l_str := SUBSTR (l_str, instr (l_str, chr(10)) + 1);
END LOOP;
--dbms_output.put_line('EBS Order Number updated as: '||v_str);
EXIT WHEN c1%NOTFOUND;
END LOOP;
CLOSE c1;
COMMIT;
EXCEPTION
WHEN OTHERS THEN
--dbms_output.put_line('Exception');
RAISE_APPLICATION_ERROR(-20001,'An error was encountered - '
||SQLCODE||' -ERROR'||SQLERRM);
END;Hi,
Remove the exception handler (it's totally useless here) and tell us which line is really giving the error.
Maybe you are looking for
-
How can i get the open sale orders for given material no and plant
Hi, I have to retrieve the open sale orders depending on the material number and plant. For only open sale orders at header level and item level. I want to use VBUK-GBSTK to find open sale order at header level and VBUP-GBSTA at
-
Master and Details Tables Data
Hi all I have two tables one is Master table and other one is Details table. How to write a query to get Master as well as Details table data. Detail table contain more than one record for particular Master Record. Pls Help me.
-
One sales order with number of Ship to party??
hi Experts one customer has 10 plant . Customer give 10 PO from 10 plant to client . now my client want to create one sales order for for that customer and delivery goes to respective 10 plants (ship to party) for that customer and sa
-
View disappeared from menu bar in word and i don't know how to get back
I clicked the wrong button and view disappeared from menu bar in word and I can't get it back. I've tried to reinstate it from system preferences and I've tried everything in the help menu. Please help
-
Aperture update and post script printers
I downloaded the latest Apple update for raw cameras, ie 50D, and now when I move any image to photoshop to print, I get a pop-up saying my epson 2400 is not a post-script printer and all prints cone out very dark regardless of adjustments....any ide