A strange bug in 10Gr2.How to handle??
Hi friends,
In Oracle 9i releases It works fine...
SQL> set serveroutput on
SQL> exec dbms_output.put_line(10*99990000*12);
11998800000
PL/SQL procedure successfully completed.
but in any 10g releases the same code gives..
SQL> set serveroutput on
SQL> exec dbms_output.put_line(10*99990000*12);
BEGIN dbms_output.put_line(10*99990000*12); END;
ERROR at line 1:
ORA-01426: numeric overflow
ORA-06512: at line 1
Please help if you have already noticed it.Or point me if I've been forgetting something.
Check out Metalink document 351965.1. This looks like your issue.
Similar Messages
-
Missing start boundary exception, caused by an empty Part, how to handle?
Hello,
i wrote an application that automatically handles mails from laboratories. The only essential part of the mail is the attachment, where chemical analyses are submitted (from permitted addresses, recognized by whitelist and fileheader of the attachment). Other ways to submit data weren't allowed.
Currently a mail was received that can't be parsed. It's from a laboratory, that
use its provider's (a german internet suplier named Arcor) webmail, a browser-based mailing portal. It always worked fine, because they wrote some greetings. But this time they sent a blank message. The result is following structure of the mail:
MIME-Version: 1.0
Content-Type: multipart/mixed;
boundary="----=_Part_50112_10709369.1203586767396"
//Some X-Flags
------=_Part_50112_10709369.1203586767396
Content-Type: multipart/alternative;
boundary="*----=_Part_50111_24141780.1203586767396*"
------=_Part_50111_24141780.1203586767396--
------=_Part_50112_10709369.1203586767396
Content-Type: application/octet-stream
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename=somefile.bin
ABCDEF.... //Some binary data
------=_Part_50112_10709369.1203586767396--
It seems the webmailer creates an empty mailpart and only writes the end boundary (Line: ------=_Part_50111_24141780.1203586767396--).
I know, the start boundary is really missing.
I checked it out by getting a mailaccount from Arcor, and it always creates this structure when sending a message without a text. By the way, the Message-ID (header) generated from Arcor's server seems to be from javamail. (.....1234.567890.....JavaMail.ngmail@....).
I don't know how many mailclients create "empty" parts, but impossible is nothing (e.g. other or future webmailer services).
But how to handle?
The error occures when calling MimeMultipart.getCount(), which causes to parse the mail if not parsed. All actions, which cause the mail to be parsed, will end in this exception (for this mail).
I looked at the javamail source and found out, that the line of the empty part is not recognized as a boundary, because of its ending delimiters:
if (line.equals(boundary))
break;
So the boundary is added to the preamble. It goes on with reading lines from the stream, until line == null.
if (line == null)
throw new MessagingException("Missing start boundary");
Because there is no test, if the line matches the end boundary, it's not recognized. Wouldn't it be better in this case, to add an empty bodypart and set a variable to false (e.g. complete) instead of throwing an exception? Because MimeMultipart.parse() is called by other methods, like getCount, getBodyPart and writeTo, I can't nearly do anything automatically with the mail. How should i walk through the bodyparts and fetch the parts I'm interested in?
Subclassing seems to be difficult to me:
Object content = message.getContent();
//javax.mail.Message, won't return a subclassed multipart
if (content instanceof Multipart) {
//recursive method!
handleMultipart((Multipart) content); //collecting parts from multipart
Of course, I could ask the laboratory: "please send me a greeting!" ;-)
Greetings,
cliffInteresting.
Yes, it's probably a bug that JavaMail allows you to
create a multipart with no body parts, since the
MIME specification doesn't allow that. Still, the
webmail application should be fixed so that it doesn't
try to do that, at least including an empty plain text
body part.
Please contact the webmail provider and tell them of
this bug in their application.
I'll also look into making JavaMail cope with these
broken messages more gracefully. Contact me
at [email protected] and I'll let you know when
I have a version ready to test. -
How to handle different languages in Illustrator for big clients?
Hi Guys,
I need small suggestio for 'How to handle different languages in illustrator for big clients'. For instance; Arabic, this is a language which needs to be read from right to left instead of left to right. There are other strange languages as well (Cyrillic, Chinese etc.). It happens also that when you copy strange languages from a word file it will not be easy to paste it the correct way in a .ai file. Besides that, it’s also difficult to do a language check when we are not able to read it!. So, to make a long story short, I want to figure out how we can deal with multiple language circles?
Can you some please give me the solution for this...
Thanks in advance...
HARII take it you might come from an arabic background.
Here is how you can help yourself to some degree.
Google has a translation feature and service which is at the moment free. It is excellent.
Secondly if you are working with ME languages you really need the ME version of Illustrator or any other Creative Suites Application in order for it to work properly.
It, is also best to enable the language and the input for that language for your system on the Mac it is easy you go to the Language and text feature in theSystem Preferences, once enabled you can select the fro the menu bar under the American flag if you are in the US. Thst will appear once you have more than one language selected.
You select the language input you need and then a font for that language then paste and edit.
You need fonts on your computer that are of those languages as well.
How to manage this as a work flow well that is something you will have to work on yourself or hire a consultant who specializes in this area.
We had a few visit here when they have come across a snafu. So they exists. -
How to handle multiple save exceptions (Bulk Collect)
Hi
How to handle Multiple Save exceptions? Is it possible to rollback to first deletion(of child table) took place in the procedure.
There are 3 tables
txn_header_interface(Grand Parent)
orders(parent)
order_items (Child)
One transaction can have one or multiple orders in it.
and one orders can have one or multiple order_items in it.
We need to delete the data from child table first then its parent and then from the grand parent table.if some error occurs anywhere I need to rollback to child record deletion. Since there is flag in child table which tells us when to delete data from database.
Is it possible to give name to Save exceptions?
e.g.
FORALL i IN ABC.FIRST..ABC.LAST SAVE EXCEPTIONS A
FORALL i IN abc.FIRST..ABC.LAST SAVE EXCEPTIONS B
if some error occurs then
ROLLBACK A; OR ROLLBACK B;
Please find the procedure attached
How to handle the errors with Save exception and rollback upto child table deletion.
CREATE OR REPLACE
PROCEDURE DELETE_CONFIRMED_DATA IS
TYPE TXN_HDR_INFC_ID IS TABLE OF TXN_HEADER_INTERFACE.ID%TYPE;
TXN_HDR_INFC_ID_ARRAY TXN_HDR_INFC_ID;
ERROR_COUNT NUMBER;
BULK_ERRORS EXCEPTION;
PRAGMA exception_init(bulk_errors, -24381);
BEGIN
SELECT THI.ID BULK COLLECT
INTO TXN_HDR_INFC_ID_ARRAY
FROM TXN_HEADER_INTERFACE THI,ORDERS OS,ORDER_ITEMS OI
WHERE THI.ID = OS.TXN_HDR_INFC_ID
AND OS.ID = OI.ORDERS_ID
AND OI.POSTING_ITEM_ID = VPI.ID
OI.DW_STATUS_FLAG =4 --data is moved to Datawarehouse
MINUS
(SELECT THI.ID FROM TXN_HEADER_INTERFACE THI,ORDERS OS,ORDER_ITEMS OI
WHERE THI.ID = OS.TXN_HDR_INFC_ID
AND OS.ID = OI.ORDERS_ID
OI.DW_STATUS_FLAG !=4);
IF SQL%NOTFOUND
THEN
EXIT;
END IF;
FORALL i IN TXN_HDR_INFC_ID_ARRAY.FIRST..TXN_HDR_INFC_ID_ARRAY.LAST SAVE
EXCEPTIONS
DELETE FROM ORDER_ITEMS OI
WHERE OI.ID IN (SELECT OI.ID FROM ORDER_ITEMS OI,ORDERS
OS,TXN_HEADER_INTERFACE THI
WHERE OS.ID = OI.ORDERS_ID
AND OS.TXN_HDR_INFC_ID = THI.ID
AND THI.ID = TXN_HDR_INFC_ID_ARRAY(i));
FORALL i IN TXN_HDR_INFC_ID_ARRAY.FIRST..TXN_HDR_INFC_ID_ARRAY.LAST SAVE
EXCEPTIONS
DELETE FROM ORDERS OS
WHERE OS.ID IN (SELECT OS.ID FROM ORDERS OS,TXN_HEADER_INTERFACE THI
WHERE OS.TXN_HDR_INFC_ID = THI.ID
AND THI.ID = TXN_HDR_INFC_ID_ARRAY(i));
FORALL i IN TXN_HDR_INFC_ID_ARRAY.FIRST..TXN_HDR_INFC_ID_ARRAY.LAST SAVE
EXCEPTIONS
DELETE FROM TXN_HEADER_INTERFACE THI
WHERE THI.ID = TXN_HDR_INFC_ID_ARRAY(i);
COMMIT;
DBMS_OUTPUT.PUT_LINE(TO_CHAR(SYSDATE, 'DD-MON-YY HH:MIPM')||':
DELETE_CONFIRMED_DATA: INFO:DELETION SUCCESSFUL');
EXCEPTION
WHEN OTHERS THEN
ERROR_COUNT := SQL%BULK_EXCEPTIONS.COUNT;
DBMS_OUTPUT.PUT_LINE(TO_CHAR(SYSDATE, 'DD-MON-YY HH:MIPM')||':
DELETE_CONFIRMED_DATA: ERROR:Number of errors is ' ||ERROR_COUNT);
FOR indx IN 1..ERROR_COUNT LOOP
DBMS_OUTPUT.PUT_LINE('Error ' || indx || 'occurred during
'||'iteration'||SQL%BULK_EXCEPTIONS(indx).ERROR_INDEX);
DBMS_OUTPUT.PUT_LINE('Error is '
||SQLERRM(-SQL%BULK_EXCEPTIONS(indx).ERROR_CODE));
END LOOP;
END DELETE_CONFIRMED_DATA;
Any suggestion would be of great help.
Thanks in advance
AnuIf you have one or two places in your code that need multiple exceptions, just do it with multiple catch statements. Unless you are trying to write the most compact Programming 101 homework program, inventing tricks to remove two lines of code is not good use of your time.
If you have multiple catches all over your code it could be a code smell. You may have too much stuff happening inside one try statement. It becomes hard to know what method call throws one of those exceptions, and you end up handling an exception from some else piece of code than what you intended. E.g. you mention NumberFormatException -- only process one user input inside that try/catch so it is easy to see what error message is given if that particular input is gunk. The next step of processing goes inside its own try/catch.
In my case, the ArrayIndexOutOfBoundsException and
NumberFormatException should be handled by the same way.Why?
I don't think I have ever seen an ArrayIndexOutOfBoundsException that didn't indicate a bug in the code. Instead of an AIOOBE perhaps there should be an if statement somewhere that prevents it, or the algorithm logic should prevent it automatically. -
Strange bug, items in list boxes disappearing
First of all this is my first post here ever. If its a wrong forum, sorry.
So ever since I installed Windows 8.1 here (fresh install), I have this strange bug were items in list boxes start disappearing when you open a window with them.
It didn't bother me much but now its horrible when I wanted to switch my playback device... Or if you want to change IP settings on my network adapter.
The thing is it all happens in a very short period of time so it took me a while to get screens of it and here they are:
s9.postimg.org/dvqvulc5b/bug.gif
s9.postimg.org/a0nhs0szj/bug2.gif
I still can't upload images on this forum!
That is real time of how it appears on my screen when I open those windows. You can see on the first image that the window is still appearing.
I have searched for this problem but couldn't find anything.
Lenovo Z510 Notebooktry to use default Windows 8.1 theme
try to check with different account
try to check in safe mode
try to find if there is any graphic driver update or any driver update, compare your version
http://support.lenovo.com/en_HK/downloads/detail.page?DocID=DS037055
try to update your windows
monitor event viewer if there is any abnormal behavior
try to check using PSR
http://windows.microsoft.com/en-hk/windows7/how-do-i-use-problem-steps-recorder
update your windows if there is any windows update -
Hi,
I'm having a strange bug in my new iphone. I recently upgraded to an iphone from an older model of phone and had my contacts transferred to the new phone by the sales rep at the store. I dont know how the process worked exactly, but im guessing it has something to do with the sims cards or something like that. anyway, ive ad my phone for a day and it has been working fine up until an hour ago. suddenly, i am able to make and receive text messages from my new phone, but i can only make and receive calls from my old phone. i was told that once my service was activated with my new phone, that the old one would just have no more service. that was the case until about an hour ago. now i can text from my new phone, but can only make phone calls from the old one. anyone ever hear of this happening? please help. thanks ahead of time.
sincerely,
joeHi stinky7777,
I see that you've been provided with a couple options to resolve the issues with your phones (thanks victorbraga98 and kaebfly), this is definitely an activation issue. I trust that you have contacted our technical support at 1-800-922-0204 and your concerns have been resolved by now. If you still need assistance with the proper activation of your new iPhone please send me a direct message with your name and number and I will follow up with you to resolve the activation issue.
For immediate assistance please call 800-922-0204. We're available 6am to 11pm CST., every day of the year. Please call us from another phone and have your iPhone fully charged and available for troubleshooting.
You can also contact us on Twitter @VZWSupport Monday to Friday 7am-10pm CST., and Saturday 7am to 4pm CST.
AntonioC_VZWSupport
Follow us on Twitter at www.twitter.com/vzwsupport -
How to handle Chinese on WL 6.0 sp1
Hi all,
I got a strange experience when i'm trying to handle chinese character in
JPS. I wrote a simple JSP (test.jsp) performing "FORM POST" to see whether i can
get the "right" chinese character after FORM POST. The program is written as below:
<%@ page info="test page" session="true" buffer="1024kb"
import="java.sql.*, java.util.*, java.lang.*" %>
<%
response.setContentType("text/html; charset=UTF-8");
try {
String s1a = request.getParameter("field1");
String s2a = request.getParameter("field2");
%>
<HTML>
<HEAD>
<TITLE>DUMMY No. 1 ^.^ </TITLE>
</HEAD>
<BODY>
<BR>~~FORM POST TESTING~~<BR>
<FORM name="frm1" action="test.jsp" method="post">
Field 1: <INPUT type="text" name="field1"><BR>
Field 2: <INPUT type="text" name="field2"><BR>
<INPUT type="submit"><BR>
</FORM>
<%=s1a%> || <%=s2a%>
</BODY>
</HTML>
<% } catch (Exception e) {
out.println("Error : " + e.getMessage());
%>
Everytime when i entered a chinese character, i got some strange character
or even nothing after FORM POST. Do you know why or could you advise me how to
fix it? I'm using Window 2000 professional english version, default locale is
Hong Kong, and WebLogic 6.0sp1.
Thanks in advance.
Regards,
Ralpho
Hi Ralpho,
check out
http://e-docs.bea.com/wls/docs60///adminguide/config_web_app.html#100357
, I think it should help.
Cheers,
Daniel
> -----Ursprüngliche Nachricht-----
> Von: Ralpho [mailto:[email protected]]
> Bereitgestellt: Donnerstag, 21. Juni 2001 04:16
> Bereitgestellt in: jsp
> Unterhaltung: How to handle Chinese on WL 6.0 sp1
> Betreff: How to handle Chinese on WL 6.0 sp1
>
>
>
> Hi all,
>
> I got a strange experience when i'm trying to handle
> chinese character in
> JPS. I wrote a simple JSP (test.jsp) performing "FORM POST"
> to see whether i can
> get the "right" chinese character after FORM POST. The
> program is written as below:
>
> <%@ page info="test page" session="true" buffer="1024kb"
> import="java.sql.*, java.util.*, java.lang.*" %>
> <%
> response.setContentType("text/html; charset=UTF-8");
>
> try {
> String s1a = request.getParameter("field1");
> String s2a = request.getParameter("field2");
> %>
>
> <HTML>
> <HEAD>
> <TITLE>DUMMY No. 1 ^.^ </TITLE>
> </HEAD>
> <BODY>
> <BR>~~FORM POST TESTING~~<BR>
> <FORM name="frm1" action="test.jsp" method="post">
> Field 1: <INPUT type="text" name="field1"><BR>
> Field 2: <INPUT type="text" name="field2"><BR>
> <INPUT type="submit"><BR>
> </FORM>
> <%=s1a%> || <%=s2a%>
> </BODY>
> </HTML>
> <% } catch (Exception e) {
> out.println("Error : " + e.getMessage());
> }
> %>
>
> Everytime when i entered a chinese character, i got some
> strange character
> or even nothing after FORM POST. Do you know why or could you
> advise me how to
> fix it? I'm using Window 2000 professional english version,
> default locale is
> Hong Kong, and WebLogic 6.0sp1.
>
> Thanks in advance.
>
> Regards,
> Ralpho
>
-
How to handle exception CX_SY_REF_IS_INITIAL
hi experts,
im working on a test scenario for abap mapping in SAP XI im getting this error
An exception with the type CX_SY_REF_IS_INITIAL occurred, but was neither handled locally, nor declared in a RAISING clause Dereferencing of the NULL reference
i understand that i need to catch this exception in the abap coding but i'm not familiar with oops concepts
can any one please suggest me how to handle this exception for the following code...
method IF_MAPPING~EXECUTE.
break x1149.
* initialize iXML
TYPE-POOLS: ixml.
class cl_ixml definition load.
** Instances & Variable declaration =======================
* instance main factory
TYPES: BEGIN OF t_xml_line,
data(256) TYPE x,
END OF t_xml_line.
DATA: l_ixml TYPE REF TO if_ixml,
* instance input stream factory
l_streamfactory TYPE REF TO if_ixml_stream_factory,
* instance input stream
l_istream TYPE REF TO if_ixml_istream,
* instance input document
l_document TYPE REF TO if_ixml_document,
* instance parse input document
l_parser TYPE REF TO if_ixml_parser,
* instance for elements within the nodes
node TYPE REF TO if_ixml_node,
*instance of nodemap
nodemap TYPE REF TO if_ixml_named_node_map,
* instance for iterator
iterator TYPE REF TO if_ixml_node_iterator,
name TYPE string,
value TYPE string,
* instance main factory
o_ixml TYPE REF TO if_ixml,
* instance output document
o_document TYPE REF TO if_ixml_document,
* instance output stream
o_istream TYPE REF TO if_ixml_ostream,
* instance parse output document
o_parser TYPE REF TO if_ixml_parser,
* instance fot renderer
renderer type ref to if_ixml_renderer,
irc type i,
l_xml_size TYPE i,
*ROOT ELEMENT
l_element_MT_DEMANDTEC_COST TYPE REF TO if_ixml_element,
*NEXT CHILD ELEMENT FROM THE ABOVE PARENT
l_element_DT_DEMANDTEC TYPE REF TO if_ixml_element,
*CHILDREN1 ELEMENT FOR DT_DEMANDTEC
l_element_DT_WHSE TYPE REF TO if_ixml_element,
*CHILDREN2 ELEMENT FOR DT_DEMANDTEC
l_element_DT_DC TYPE REF TO if_ixml_element,
*CHILDREN3 ELEMENT FOR DT_DEMANDTEC
l_element_DT_PLANT TYPE REF TO if_ixml_element,
*CHILDREN4 ELEMENT FOR DT_DEMANDTEC
l_element_DT_QTY TYPE REF TO if_ixml_element.
*saving the xml document
DATA: l_xml_table TYPE TABLE OF t_xml_line.
types: begin of t_source,
whse(5),
dc(4) ,
plant(4),
qty type i,
end of t_source.
types: tt_source TYPE STANDARD TABLE OF t_source.
data: wa_source type t_source.
data: it_source TYPE tt_source,
ivalue type string.
* Procedures and business logic =======================================
* Creating the main iXML factory
l_ixml = cl_ixml=>create( ).
* Creating a stream factory
l_streamfactory = l_ixml->create_stream_factory( ).
* create input stream
l_istream = l_streamfactory->create_istream_xstring( source ).
* initialize input document
l_document = l_ixml->create_document( ).
* Create a Parser
l_parser = l_ixml->create_parser( stream_factory = l_streamfactory
istream = l_istream
document = l_document ).
* parse input document
l_parser->parse( ).
* Validate a document
l_parser->set_validating( mode = if_ixml_parser=>co_validate ).
* Parse the stream
IF l_parser->parse( ) NE 0.
IF l_parser->num_errors( ) NE 0.
DATA: parseerror TYPE REF TO if_ixml_parse_error,
str TYPE string,
i TYPE i,
count TYPE i,
index TYPE i.
count = l_parser->num_errors( ).
WRITE: count, ' parse errors have occured:'.
index = 0.
WHILE index < count.
parseerror = l_parser->get_error( index = index ).
i = parseerror->get_line( ).
WRITE: 'line: ', i.
i = parseerror->get_column( ).
WRITE: 'column: ', i.
str = parseerror->get_reason( ).
WRITE: str.
index = index + 1.
ENDWHILE.
ENDIF.
ENDIF.
* Process the document
IF l_parser->is_dom_generating( ) EQ 'X'.
refresh : it_source.
node ?= l_document.
CHECK NOT node IS INITIAL.
* create a node iterator
iterator = node->create_iterator( ).
* get current node
node = iterator->get_next( ).
* loop over all nodes
WHILE NOT node IS INITIAL.
CASE node->get_type( ).
WHEN if_ixml_node=>co_node_element.
* element node
name = node->get_name( ).
nodemap = node->get_attributes( ).
WHEN if_ixml_node=>co_node_text.
* text node
value = node->get_value( ).
if name eq 'DT_WHSE'.
wa_source-whse = value.
ELSEIF name eq 'DT_DC'.
wa_source-DC = value.
ELSEIF name eq 'DT_PLANT'.
wa_source-PLANT = value.
ELSEIF name eq 'DT_QTY'.
wa_source-QTY = value.
COLLECT wa_source INto it_source.
CLEAR wa_source.
ENDIF.
endcase.
node = iterator->get_next( ).
endwhile.
ENDIF.
loop at it_source into wa_source .
at first.
* Creating a ixml factory
o_ixml = cl_ixml=>create( ).
* Creating the dom object model
o_document = l_ixml->create_document( ).
endat.
* Build and Fill root node MT_DEMANDTEC_COST
AT FIRST.
l_element_MT_DEMANDTEC_COST =
O_document->create_simple_element(
name = 'MT_DEMANDTEC_COST'
parent = o_document ).
ENDAT.
* Build and Fill Child node DT_DEMANDTEC for parent
* MT_DEMANDTEC_COST
l_element_DT_DEMANDTEC = O_document->create_simple_element(
name = 'DT_DEMANDTEC'
parent = l_element_MT_DEMANDTEC_COST ).
* Build and Fill Child node1 DT_WHSE for parent DT_DEMANDTEC
ivalue = wa_source-WHSE.
l_element_DT_WHSE = O_document->create_simple_element(
name = 'DT_WHSE'
VALUE = ivalue
parent = l_element_DT_DEMANDTEC ).
* Build and Fill Child node2 DT_WHSE for parent DT_DEMANDTEC
ivalue = wa_source-DC.
l_element_DT_DC = O_document->create_simple_element(
name = 'DT_DC'
VALUE = ivalue
parent = l_element_DT_DEMANDTEC ).
* Build and Fill Child node3 DT_WHSE for parent DT_DEMANDTEC
ivalue = wa_source-PLANT.
l_element_DT_PLANT = O_document->create_simple_element(
name = 'DT_PLANT'
VALUE = ivalue
parent = l_element_DT_DEMANDTEC ).
* Build and Fill Child node4 DT_QTY for parent DT_DEMANDTEC
ivalue = wa_source-QTY.
l_element_DT_QTY = O_document->create_simple_element(
name = 'DT_QTY'
VALUE = ivalue
parent = l_element_DT_DEMANDTEC ).
endloop.
* render document ======================================================
* create output stream
o_istream = l_streamfactory->create_ostream_xstring( result ).
* Connect internal XML table to stream factory
o_istream = l_streamfactory->create_ostream_itable( table =
l_xml_table ).
renderer = o_ixml->create_renderer( ostream = o_istream
document = o_document ).
irc = renderer->render( ).
* how do i catch the exception for type CX_SY_REF_IS_INITIAL ...?
endmethod.
full reward points for answers.
Thanks & Regards,
Uday Kumar.
Edited by: UDAY on May 6, 2008 9:32 PMHi Uday,
Its occurs because you're trying to access a objects with null reference. Or you forgot to create an instance or an error occurs during the instance creation. So You should put all your "Procedures and business logic" inside a Try/catch block. as follow.
" Define a class exception object to get error message......
DATA o_exception TYPE REF TO cx_sy_ref_is_initial.
"// Use the statment Try block to catch the error.
TRY.
* Creating the main iXML factory
l_ixml = cl_ixml=>create( ).
* Creating a stream factory
l_streamfactory = l_ixml->create_stream_factory( ).
* create input stream
l_istream = l_streamfactory->create_istream_xstring( source ).
* initialize input document
l_document = l_ixml->create_document( ).
* Create a Parser
l_parser = l_ixml->create_parser( stream_factory = l_streamfactory
istream = l_istream
document = l_document ).
* parse input document
l_parser->parse( ).
* Validate a document
l_parser->set_validating( mode = if_ixml_parser=>co_validate ).
* Parse the stream
IF l_parser->parse( ) NE 0.
IF l_parser->num_errors( ) NE 0.
DATA: parseerror TYPE REF TO if_ixml_parse_error,
str TYPE string,
i TYPE i,
count TYPE i,
index TYPE i.
count = l_parser->num_errors( ).
WRITE: count, ' parse errors have occured:'.
index = 0.
WHILE index < count.
parseerror = l_parser->get_error( index = index ).
i = parseerror->get_line( ).
WRITE: 'line: ', i.
i = parseerror->get_column( ).
WRITE: 'column: ', i.
str = parseerror->get_reason( ).
WRITE: str.
index = index + 1.
ENDWHILE.
ENDIF.
ENDIF.
* Process the document
IF l_parser->is_dom_generating( ) EQ 'X'.
refresh : it_source.
node ?= l_document.
CHECK NOT node IS INITIAL.
* create a node iterator
iterator = node->create_iterator( ).
* get current node
node = iterator->get_next( ).
* loop over all nodes
WHILE NOT node IS INITIAL.
CASE node->get_type( ).
WHEN if_ixml_node=>co_node_element.
* element node
name = node->get_name( ).
nodemap = node->get_attributes( ).
WHEN if_ixml_node=>co_node_text.
* text node
value = node->get_value( ).
if name eq 'DT_WHSE'.
wa_source-whse = value.
ELSEIF name eq 'DT_DC'.
wa_source-DC = value.
ELSEIF name eq 'DT_PLANT'.
wa_source-PLANT = value.
ELSEIF name eq 'DT_QTY'.
wa_source-QTY = value.
COLLECT wa_source INto it_source.
CLEAR wa_source.
ENDIF.
endcase.
node = iterator->get_next( ).
endwhile.
ENDIF.
loop at it_source into wa_source .
at first.
* Creating a ixml factory
o_ixml = cl_ixml=>create( ).
* Creating the dom object model
o_document = l_ixml->create_document( ).
endat.
* Build and Fill root node MT_DEMANDTEC_COST
AT FIRST.
l_element_MT_DEMANDTEC_COST =
O_document->create_simple_element(
name = 'MT_DEMANDTEC_COST'
parent = o_document ).
ENDAT.
* Build and Fill Child node DT_DEMANDTEC for parent
* MT_DEMANDTEC_COST
l_element_DT_DEMANDTEC = O_document->create_simple_element(
name = 'DT_DEMANDTEC'
parent = l_element_MT_DEMANDTEC_COST ).
* Build and Fill Child node1 DT_WHSE for parent DT_DEMANDTEC
ivalue = wa_source-WHSE.
l_element_DT_WHSE = O_document->create_simple_element(
name = 'DT_WHSE'
VALUE = ivalue
parent = l_element_DT_DEMANDTEC ).
* Build and Fill Child node2 DT_WHSE for parent DT_DEMANDTEC
ivalue = wa_source-DC.
l_element_DT_DC = O_document->create_simple_element(
name = 'DT_DC'
VALUE = ivalue
parent = l_element_DT_DEMANDTEC ).
* Build and Fill Child node3 DT_WHSE for parent DT_DEMANDTEC
ivalue = wa_source-PLANT.
l_element_DT_PLANT = O_document->create_simple_element(
name = 'DT_PLANT'
VALUE = ivalue
parent = l_element_DT_DEMANDTEC ).
* Build and Fill Child node4 DT_QTY for parent DT_DEMANDTEC
ivalue = wa_source-QTY.
l_element_DT_QTY = O_document->create_simple_element(
name = 'DT_QTY'
VALUE = ivalue
parent = l_element_DT_DEMANDTEC ).
endloop.
* render document ======================================================
* create output stream
o_istream = l_streamfactory->create_ostream_xstring( result ).
* Connect internal XML table to stream factory
o_istream = l_streamfactory->create_ostream_itable( table =
l_xml_table ).
renderer = o_ixml->create_renderer( ostream = o_istream
document = o_document ).
irc = renderer->render( ).
" The Statement CATCH define a block that catches the exceptions of the
" exception class cx_sy_ref_is_initial
CATCH cx_sy_ref_is_initial INTO o_exception.
" If you need to get the error message text do as follow
DATA errorMsg type string.
" Get the message text
errorMsg = o_exception->GET_TEXT( ).
" Display the error information
MESSAGE errorMsg TYPE 'I'.
ENDTRY.
The TRY block defines a guarded area whose class-based exceptions can be caught in the subsequent CATCH blocks. If no exception occurs in the TRY block and it reaches its end, the system continues the processing after ENDTRY. If a class-based exception occurs in the TRY block, the system searches for an exception handler in the same or an external TRY control structure.
Font: SAP Help
You can see a how to create and use an exception in this example [ ABAP Objects - Defining a Class-based exceptions|https://wiki.sdn.sap.com/wiki/x/19w] .
Best Regards.
Marcelo Ramos -
How to handle null values in RTF templates
Hi - I have two groups in a report for different SQL and two formulas for each group, CF_ELE_CNT and CF_ELE_CNT1. In the template I use the below code to print or not print a section.
<?if:number(CF_ELE_CNT +CF_ELE_CNT1) >0?>
The problem is when there is no data in the second group its not creating the XML tag for CF_ELE_CNT1, though CF_ELE_CNT has 13, it still does not print that partucular section. If I remove CF_ELE_CNT1 from the condition it works fine. I was wondering how to handle this.
Any help would be appreciated!!
Thanks,
RavHey Rav,
You can add a check to identify it the element/tag is present or not
<?if:(CF_ELE_CNT1)?> will give true, if the element is present otherwise falsesince you are adding the two elements, you have to add a or condition.
<?if:(CF_ELE_CNT and number(CF_ELE_CNT) >0 ) or ( CF_ELE_CNT1 and CF_ELE_CNT1 >0)?> -
How to handle file on application server without coading?
HI all,
can anybody tell me How to handle file on application server without coading? Is there any solution?
Thanks in advance.> can anybody tell me How to handle file on application server without coading? Is there any solution?
what is that you want to handle. what you do if you don't code ... -
Thoughts on how LabVIEW handles checkout of file from SCC when file already open
When you already have a file/project open in LabVIEW and it is set to read only because you haven't checked it out, you can go into SCC and do a checkout then save the file immediately. The issue with this is, if your local copy doesn't match the copy in SCC, you will probably be overwriting changes. Sometimes this is convenient because if you have ever edited a MS Word file and then gone to save and it won't let you because it was opened as read-only...then that sucks because you either lose your work, or have to do a copy of the entire word file->close the program->re-open as writable, then paste. This can be avoided with the "LabVIEW way", but the "MS Word" way seems much safer because it forces you to conscioiusly make the file writable (by either checking it out or manually write clicking and changing to writable) BEFORE opening it. I just wanted people's opinions on how LabVIEW handles this, and if there would be a better way.
CLA, LabVIEW Versions 2010-2013VSS
CLA, LabVIEW Versions 2010-2013 -
How to handle password changes if we implement singlesignon between BO& BI7
Hi,
As we know ,we can implement single signon between BO and SAP BI 7, by importing roles and users through CMC and by selecting the option "Use Single signon during report refresh time".
My doubt here is, When we import roles from SAP and Auto import the users, is it only the SAP usernames that are stored in BO repository or both username and password. If second case holds true then how to handle/manage password change for a user who is already imported in BO sometime back?
Would the password changes be reflected automatically in BO?
Please guide me if you think that I'm thinking in a wrong direction.Hi Naresh,
password changes are reflected automatically in BO. BO just forwards the data to the SAP side and it does the real authentification.
Regards,
Stratos
PS: Keep in mind that you cannot change the SAP password on the BO login screen if your SAP password has expired. You have to do this with the SAP client (SAP GUI) -
How to handle rpc/encoded style messages using BizTalk?
I am integrating with a lot of services and one of our customers has a service with rpc/encoded style
I could consume and generate schema from their wsdl file via BizTalk consume WCF wizard.
Once I am trying to call the service with request message that generated from the schema, it is giving an error that can not desterilize the first element of the message.
No Deserializer found to deserialize a 'FieldName' using encoding style 'null'
I compared the stub xml request message from SaopUI and I noticed that the xml expecting the data type with the element like this .
<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsb="WSBanka">
<soapenv:Header/>
<soapenv:Body>
<wsb:bnkBorcsorgulama soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<sozlesmeNo xsi:type="xsd:string">?</sozlesmeNo>
<bankaKodu xsi:type="xsd:string">?</bankaKodu>
<anahtar xsi:type="xsd:string">?</anahtar>
</wsb:bnkBorcsorgulama>
</soapenv:Body>
</soapenv:Envelope>
On the other hand, I got the request of the message from Fiddler using the BizTalk , and the generate xml of the BizTalk schema without the data type.
<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsb="WSBanka">
<soapenv:Header/>
<soapenv:Body>
<wsb:bnkBorcsorgulama>
<sozlesmeNo>?</sozlesmeNo>
<bankaKodu>?</bankaKodu>
<anahtar>?</anahtar>
</wsb:bnkBorcsorgulama>
</soapenv:Body>
</soapenv:Envelope>
In SoapUi, if I remove a datatype from the message, I will get same error from the BizTalk request.
I read some articles that rpc/encoded style are not supported but I am not sure and these articles are not clear.
I also read that it was supported with Soap adapter but now it is deprecated.
So, Is there any one has an experience in rpc/encoded style messages and how to handle these message in BizTalk or is there any work around to handle these messages?
Your inputs really appreciate it.
Thanks in advance,
When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As AnswerHi,
Please refer to the document which might help you:
#RPC/Encoded Style
http://www.c-sharpcorner.com/UploadFile/martinkropp/DesigningInteroperableWebService11232005044847AM/DesigningInteroperableWebService.aspx -
How to handle the OK button of the parameters prompt of a crystal report
Hi,
how to handle the OK button of the parameters prompt of a crystal report in vba.NET?
I want to use the parameter prompt from the crystal report itself and I want to know when the report is ready. I need to export programatically by sending email to a list of employees after the parameters has been set. The emails I send depends on the results of the report.
Im using a CrystalReportViewer control in VS2010 and Crystal Report for VS2010 v13.0.1.220.Right. But the parameter screen is driven by the viewer. Unless you create your own parameter screen and pass the parameters to the report via code.
Another thing I am not sure about:
"Then by code I want to read all the employees id from the report and send email to them with specified pages of the report. (1 page per employee)"
How do you plan on reading the employee ID from the report? I am not aware of any API that will read a value in a report so that you can then decide what page to send to whom.
I think you're approaching this kinda backwards. A question to ask is; can you do what you are trying to do in code in the CR designer? If not, using APIs will not work either. I suspect your approach should be a report that uses an employee filter. Run the report for employee x, get the report populated with the data for that employee and email it. Repeat for employee x1, employee x2, etc.
- Ludek -
Suggestions on how to handle "Hacked Skype Account...
I. User Can Still Access Account
Run a full anti-virus scan (and other security scans available in your computer). This may help to detect and remove any elements that the hacker may have used in gaining access to your account.
2. Immediately Change Your Password, preferably with something that is difficult to guess, and not related or totally different from the passwords you previously used.
3. If the hacker also changed your registered email address, changed it back to your own email address. Here is the link on how to change your registered email address;
https://support.skype.com/en/faq/FA96/How-do-I-change-my-email-address-or-add-another-email-address-...
4. Contact Skype to report the incident. They may be able to provide you with further explanation, clarification and helpful advice. Use the Subject Security & Privacy >> Identity theft / Account takeover.
https://support.skype.com/support_selection
5. You can also contact your bank to inform or alert them of the incident if there is a payment method registered in your Skype account. They may also be able to provide you with additional suggestions, advice, or options.
II. User Can Not Access Account (Password Has Been Changed) – Registered Email Address Not Changed.
Run a full anti-virus scan (and other security scans available in your computer). This may help to detect and remove any elements that the hacker may have used in gaining access to your account.
2. Open the “Forgotten Your Password” page, then request for a new password to be sent to your registered email address;
https://login.skype.com/account/password-reset-request
3. Contact Skype to report the incident. They may be able to provide you with further explanation, clarification and helpful advice. Select the subject Security & Privacy >> Identity theft / Account takeover.
https://support.skype.com/support_request
4. You can also contact your bank to inform or alert them of the incident if there is a payment method registered in your Skype account. They may also be able to provide you with additional suggestions, advice, or options.
III. User Can Not Access Account (Password Has Been Changed) – Registered Email Address Has Also Been Changed.
Run a full anti-virus scan (and other security scans available in your computer). This may help to detect and remove any elements that the hacker may have used in gaining access to your account.
2. If your account has a billing or purchase history in the last 6 months, you can request for a new password without the need of your registered email address. just click the link below;
https://login.skype.com/account/password-automation
After acquiring a new password, you can proceed in changing the registered email address to your own email address;
https://support.skype.com/en/faq/FA96/How-do-I-change-my-email-address-or-add-another-email-address-...
3. Contact Skype to report the incident. They may be able to provide you with further explanation, clarification and helpful advice. They will most likely ask you to provide some details in order for them to verify that you are the real account owner. Select subject/topic Security & Privacy >> Identity theft / Account takeover.
https://support.skype.com/support_request
4. You can also contact your bank to inform or alert them of the incident if there is a payment method registered in your Skype account. They may also be able to provide you with additional suggestions, advice, or options.
5. If your account has no recent purchase, it may no longer be possible to retrieve your account. Still you can try to contact Skype to know if you have other possible options.
Note: If for some reason the links to contact customer support don't work, you can also send an email to [email protected]
Useful Links
A. Protecting your Computer
http://www.skype.com/intl/en-gb/security/online-safety/#protecting
B. Skype Security - Protecting your online safety, security and privacy.
http://www.skype.com/intl/en/security/
C. What can I do if someone has taken over my account? (from support.skype.com)
https://support.skype.com/en-us/faq/FA10920/What-can-I-do-if-someone-has-taken-over-my-account;jsess...
D. How can I contact Skype Customer Service?
https://support.skype.com/en/faq/FA1170/How-can-I-contact-Skype-Customer-Service
CONTACT SKYPE CUSTOMER SERVICE | HOW TO RECORD SKYPE VIDEO CALLS | HOW TO HANDLE SUPICIOUS CALLS AND MESSAGES | WINDOWS PROBLEMS TROUBLESHOOTING | SKYPE DOWNLOAD LINKS
MORE TIPS, TRICKS AND UPDATES AT
skypefordummies.blogspot.comSkype is useless for this.
They will claim that you the user are responsible, and that they don't need to do anyhing.
So....
Do not allow Skype to autorefill your account when it runs low on balance, and do not store a creditcard, or other payment info with them.
Each user is liable for whatever the hackers can steal.
As this is from recent personal experience, I recommend you to never keep payment information on file with Skype.
Maybe you are looking for
-
Hi, I am trying to use oracle apex to edit an excel file in some specific columns. For that I am using JavaScript with pl/sql. I've tried it in apex.oracle.com, and worked. But know I want to do it in my database and the same code doesn't work. Do I
-
Fresh EnterPrise One 9.0 (@MSSQL) installation and security server error
Hello! I've managed to complete Standalone installation without any issues (Win XP SP2 EN) but I have encountered a problem with first login. After entering the password I'm receiving following message: "waiting for security server" and then: "unable
-
I have just loaded pse8 ( legitimate) on a new 10 inch screen laptop. When I open a photo to editor from organizer, it skips the raw interface altogether and opens directly in the editor screen. Is this to do with screen size? I have pse8 on my 17 in
-
What APN and settings do I use the iPad 2 T Mobile 3G connectivity
hello got my nano SIM from my iPad 2 from T Mobile and I like to know what are the APN settings I should use I can get 3G connectivity.
-
Tax value on Outline Agreement
I am very new to the concept of purchasing and outline agreements and below are some questions. Please help. Should there be a tax value on outline agreements trxncode me32K? Are they attached to purchase orders? and if so, how do you find out the PO