Error converting DOM nodes into SOAP nodes
Hi,
i am doing an http call using http binding activity in oracle soa suite 11g.The http call requires some header information.When I pass the header information through headers in invoke activity and invoke the http call,I get an error " Error converting DOM nodes into SOAP nodes".What might be the reason and how to solve it.
Naresh
Hello,
It appears your code is trying to repeat messagePart itself. Split Joins strictly adheres to a WSDL definition for incoming and outgoing messages.
Instead of repeating <RootElement> which is defined as single occurance in your message definition within WSDL, you should find a way to tweak the WSDL to have "repetitive node which will become single message after split" within 1 Root element.
This will call for having need of implementing transformation within split join based on need of target input message. Below is the example:
WSDL contains:
<wsdl:message name="inputMessageName">
<wsdl:part name="partInput" element="rootElement"/>
</wsdl:message>
What your current xml structure is(please note how message itself is repeating below while it has been defined as single in wsdl, unfortunately there is nothing maxOccurs for message in WSDL definition , although you can define multiple parts but that is not case here):
<soap:Body>
<rootElement>
</rootElement>
<rootElement>
</rootElement>
<rootElement>
</rootElement>
</soap:Body>
What Split-Join expects(If you have existing wsdl then you need to tweak it to conform to below kind of structure then use transformation within split join to convert it into correct xml structure for outgoing):
<soap:Body>
<rootElement>
<repetitiveElementSpecificToIndividualSplitRequest/>
<repetitiveElementSpecificToIndividualSplitRequest/>
<repetitiveElementSpecificToIndividualSplitRequest/>
</rootElement>
</soap:Body>
I hope this helps.
Regards,
Ankit
Similar Messages
-
Error preverifying class javax.xml.soap.Node
Hi everybody,
I want to send SOAP messages from a mobile phone. So I use the J2ME Wireless Toolkit 2.2 and the packages saaj-api.jar and dom.jar. But when I build the project, I always have that error:
Error preverifying class javax.xml.soap.Node
java/lang/NoClassDefFoundError: org/w3c/dom/Node
Build failedI don't understand because the class Node is well included in the package dom.jar. Could everyone can help me please?
Thanks in advancehi ,I am also having the same problem.If u got the solution for that please tell me what can i do for those preverifying class error
-
Error converting CSV file into internal table
Hi,
I have to convert a large CSV file (>20.000 entries) into an internal table. I used FM GUI_UPLOAD to get a raw data table then convert this table using FM TEXT_CONVERT_CSV_TO_SAP.
But this does not seem to work properly: after 16.000 or so, the FM seems stuck as if in an endless loop.
Note that if I split the CSV file in several parts, the conversion runs successfully.
Is there any memory limit with this FM ?
Thanks,
FlorianFlorian Labrouche,
Instead of using two function modules, you can use 'TEXT_CONVERT_XLS_TO_SAP' function module once by specifying file name in that function module itself. It does not take much time.
Check the sample program.
report zvenkat-upload-xl no standard page heading.
"Declarations.
"types
types:
begin of t_bank_det,
pernr(8) type c,
bnksa(4) type c,
zlsch(1) type c,
bkplz(10) type c,
bkort(25) type c,
bankn(18) type c,
end of t_bank_det.
"work areas
data:
w_bank_det type t_bank_det.
"internal tables
data:
i_bank_det type table of t_bank_det.
" selection-screen
selection-screen begin of block b1 with frame title text_001.
parameters p_file type localfile.
selection-screen end of block b1.
"At selection-screen on value-request for p_file.
at selection-screen on value-request for p_file.
perform f4_help.
"Start-of-selection.
start-of-selection.
perform upload_data.
"End-of-selection.
end-of-selection.
perform display_data.
"Form f4_help
form f4_help .
data:
l_file_name like ibipparms-path .
call function 'F4_FILENAME'
exporting
program_name = syst-cprog
dynpro_number = syst-dynnr
field_name = 'P_FILE'
importing
file_name = l_file_name.
p_file = l_file_name.
endform. " f4_help
"Form upload_data
form upload_data .
type-pools:truxs.
data:li_tab_raw_data type truxs_t_text_data.
data:l_filename like rlgrap-filename.
l_filename = p_file.
call function 'TEXT_CONVERT_XLS_TO_SAP'
exporting
i_tab_raw_data = li_tab_raw_data
i_filename = l_filename
tables
i_tab_converted_data = i_bank_det
exceptions
conversion_failed = 1
others = 2.
if sy-subrc <> 0.
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
endif.
endform. " upload_data
" Form display_data
form display_data .
data: char100 type char100.
loop at i_bank_det into w_bank_det .
if sy-tabix = 1.
write w_bank_det.
write / '------------------------------------------------------------'.
else.
write / w_bank_det.
endif.
endloop.
endform. " display_data
Regards,
Venkat.O -
Critical Issue:-- Convert SOAP Attachment into SOAP Body
hi,
My requirment is
FTP----> SOAP synchronous.
In this one at SOAP receiver side SOAP request is an attachment file and response also I m getting as an attachment.
My problem is that I need to convert this SOAP response (attachment) in SOAP body so that I can map it with FTP datatype.
I used PayLoadSwapBean module but i m unable to convert this attachment into SOAP Body.
I just followed this blog
The specified item was not found.
May be i m not using this module in a proper mannner.
Can anybody explan it step by step.
Is there anyother solution for my problem..
<It is against the rules of Engagement to post a question with the catch of awarding points. Please refrain from the same.>
Thanks
Jaideep Jain
Edited by: Bhavesh Kantilal on Dec 3, 2008 10:26 AMhi stefan,
I m getting this error after using PayloadSwapBean.
com.sap.aii.af.ra.ms.api.DeliveryException: Object not found in lookup of payloadSwapBean
I m mentioning here the value of parameter name and value for this module:--
parameter name parameter value
swap.keyName payload-name
swap.keyValue MainAttachment
Can u suggest where i went wrong.....
Thanks
Jaideep
Edited by: Jaideep Baid on Dec 5, 2008 9:27 AM -
How can i add selected element from one node to other node
Hi All
I have below requirement.
Say In the view leftside Available Languages ItemList Box Rightside Available Languages ItemList Box and Add & Remove Buttons in the middle.
User selects languages from Available Languages ItemList Box clicks on add it will adds to the Available Languages Item List box and ViceVersa with Remove Button.
1) I have created 2 nodes 1) AvlLang 2) SelLang both contains two attributes Key and Value.
2) For AvlLang node, Property : Data Dictonary binded with table. Values are coming fine in Available Languages ItemList Box.
3) How can i add selected language into the node Available Languages.
Please provide the code snippet how to achieve this.
BR
X- CWHi Carlin,
Find below code to copy selected record from one node to another.
Here I am copying it_lips node into pack_mat node.
DATA: wa_temp TYPE REF TO if_wd_context_element,
lt_temp TYPE wdr_context_element_set,
count type c.
DATA : lo_nd_it_lips TYPE REF TO if_wd_context_node,
lo_el_it_lips TYPE REF TO if_wd_context_element,
ls_it_lips TYPE wd_this->Element_it_lips,
lt_it_lips TYPE wd_this->Elements_it_lips,
ls_unpack TYPE wd_this->Element_unpack,
lt_unpack TYPE wd_this->Elements_unpack.
* navigate from <CONTEXT> to <IT_LIPS> via lead selection
lo_nd_it_lips = wd_context->path_get_node( path = `ZRETURN_DEL_CHANGE.CHANGING_3.IT_LIPS` ).
CALL METHOD lo_nd_it_lips->get_selected_elements
RECEIVING
set = lt_temp.
* navigate from <CONTEXT> to <PACK_MAT> via lead selection
lo_nd_pack_mat = wd_context->get_child_node( name = wd_this->wdctx_pack_mat ).
LOOP AT lt_temp INTO wa_temp.
CALL METHOD wa_temp->get_static_attributes
IMPORTING
static_attributes = ls_it_lips.
ls_pack_mat-vgbel = ls_it_lips-vgbel.
ls_pack_mat-vgpos = ls_it_lips-vgpos.
append ls_pack_mat to lt_pack_mat.
CLEAR ls_pack_mat.
endloop.
lo_nd_pack_mat->bind_table( new_items = LT_PACK_MAT
SET_INITIAL_ELEMENTS = abap_true ).
Cheers,
Kris. -
XML: How to convert xml string into Node/Document
I have a string in xml form.
<name>
<first/>
<second/>
</name>
I want to convert this string into DOM Node or Document.
How can I do this?
Any help or pointer?
TIA
SachinTry this :
DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
DocumentBuilder db = dbf.newDocumentBuilder();
Document doc = db.parse(new org.xml.sax.InputSource(new StringReader(strXml)));Hope this helps. -
Error while binding data into Node which is Created Dynamically.
Hi All
We have a scenario , which is to create the Context and its attribute dynamically at runtime. When I create the context with structure. Using the method <b>create_nodeinfo_from_struct()</b>.here the attributes under the created node is automatically taken from the provided structure SPFLI.
cl_wd_dynamic_tool=>create_nodeinfo_from_struct(
parent_info = rootnode_info
node_name = DYN
structure_name = SPFLI
is_multiple = abap_true ).
Using the above method it is working fine and I could bind the value into the node.
But our scenario is to create context and its attributes without giving any predefined structure. We need to add attributes manually giving one by one.
For that I have used the method rootnode_info->add_new_child_node &
dyn_node->add_attribute( exporting attribute_info = ls_attribute ).
But am getting short dumb showing <b>Line types of an internal table and a work area not compatible.</b>
Please give me a solution..
I used the following code .
data:
rootnode_info type ref to if_wd_context_node_info,
dyn_node type ref to if_wd_context_node,
data :ls_attribute type wdr_context_attribute_info.
rootnode_info = wd_context->get_node_info( ).
call method rootnode_info->add_new_child_node
exporting
SUPPLY_METHOD =
SUPPLY_OBJECT =
DISPOSE_METHODS =
DISPOSE_OBJECT =
STATIC_ELEMENT_TYPE =
name = 'DYN'
is_mandatory = abap_false
is_mandatory_selection = abap_false
is_multiple = abap_true
is_multiple_selection = abap_false
is_singleton = abap_true
is_initialize_lead_selection = abap_true
STATIC_ELEMENT_RTTI =
is_static = abap_false
ATTRIBUTES =
receiving
child_node_info = node_nsp
ls_attribute-name = 'CARRID'.
ls_attribute-type_name = 'S_CARR_ID'.
ls_attribute-value_help_mode = '0'.
node_nsp->add_attribute( exporting attribute_info = ls_attribute ).
ls_attribute-name = 'CONNID'.
ls_attribute-type_name = 'S_CONN_ID'.
ls_attribute-value_help_mode = '0'.
node_nsp->add_attribute( exporting attribute_info = ls_attribute ).
DATA : BEGIN OF str,
carrid TYPE s_carr_id,
connid TYPE s_conn_id,
END OF str.
DATA : it_str LIKE TABLE OF str.
select carrid connid from spfli into corresponding fields of table it_str
dyn_node = wd_context->get_child_node( name = 'DYN' ).
dyn_node->bind_table( it_str ).
data: l_ref_cmp_usage type ref to if_wd_component_usage.
l_ref_cmp_usage = wd_this->wd_cpuse_alv_usage( ).
if l_ref_cmp_usage->has_active_component( ) is initial.
l_ref_cmp_usage->create_component( ).
endif.
data: l_ref_interfacecontroller type ref to iwci_salv_wd_table .
l_ref_interfacecontroller = wd_this->wd_cpifc_alv_usage( ).
l_ref_interfacecontroller->set_data(
r_node_data = dyn_node " Ref to if_Wd_Context_Node
Thanks in advance..
Nojish
Message was edited by:
nojish pHi Nojish.
I gues the error happens when you try to read the static attributes of an element of
you dynamic node. This does not work using your defined type str, cause with
get_static_attribute you only receive the static and not the dynamic attributes.
Static attributes are attributes that are defined at design time. Thats why the
structure does not match.
But you can use the following code to get your dynamic attributes, for example
getting the lead selection element and the attribute carrid:
dyn_node = wd_context->get_child_node( name = 'DYN' ).
lr_elelement = dyn_node->get_element( ).
lr_el->get_attribute(
EXPORTING
name = 'CARRID'
IMPORTING
value = lv_carrid
Hope this helps.
PS: Or do you get the reerror in above code? Your code works here. If so pls provide short dump.
Cheers,
Sascha
Message was edited by:
Sascha Dingeldey -
Converting xmlstring into a node-set
Hi,
Is there any xsl function which could take an xml string and convert into a node-set?
Or could any function be written to achieve this kind of result?
Thanks.Hi,
Seems no one understands my need in my post yet. Let me elaborate my requirement a little more...
Actually in my case, I used a variable to refer to a node set (in my actual implementation the conditions in the bracket [] are much much more complicated ), e.g.
<?variable:rows;”/ROWSET/ROW[SALARY>1000]”?>
And since the report involves a complex layout printed on pre-print forms which needs me to put the fields very precisely. I cannot use the For Each method but to extract the rows one by one, likes the following:
<?$rows[1]/ENAME?>
<?$rows[2]/ENAME?>
and put them on various position on the RTF Template.
So far so good, until I realized that the $rows node set is needed to be sorted according to ENAME.
Currently I can build a sorted list from $rows into another variable $sorted_rows as follows:
<xsl:variable name="sorted_rows"><xsl:for-each select="$rows"><xsl:sort select="ENAME"/><xsl:copy-of select="."/></xsl:for-each></xsl:variable>
But in $sorted_rows, it contains only one item which is the xml fragment of the sorted data, but not a node set.
So my question is, is there any way to convert this xml fragment into a node set so I can use the following to extract the fields?
<?$sorted_rows[1]/ENAME?>
<?$sorted_rows[2]/ENAME?>
Hope anyone can share with my some solution to this.
Thanks in advance,
Jonathan -
Reading XML file into Dynamic Node and Display its output as Table.
Hi All,
Following is the output of XML file:
<Company>
<Employee>
<Name>John</Name>
<Age>23</Age>
<***>Male</***>
<Location>Frankfurt</Location>
</Employee>
<Employee>
<Name>Tina</Name>
<Age>21</Age>
<***>Female</***>
<Location>Boston</Location>
</Employee>
<Department>
<Name>Sales</Name>
<HQ>Chicago</HQ>
<Emplyoees>2300</Employees>
</Department>
I'm able to read the output through DOM parser. But How do I convert this into dynamic node and display this in Web dynpro as Table?
Any pointers in this regard will be great help?
Thanks
SrikantHi Maksim,
I've used your example and its now helping as there is kind of agreement on that I'll be knowing the structure of Xml and I can fill the nodes.
But suppose if you have Xml has following structure :
<?xml version="1.0" encoding="utf-8"?><DATA>
<item><MAILERID TYPE="C" SIZE="000030">21</MAILERID><ORG_CODE TYPE="C" SIZE="000004">1232</ORG_CODE><EVENTID TYPE="C" SIZE="000015">CONTRACT</EVENTID><SUBSCR_VALUE TYPE="C" SIZE="000001">0</SUBSCR_VALUE></item>
<item><MAILERID TYPE="C" SIZE="000030">21</MAILERID><ORG_CODE TYPE="C" SIZE="000004">1232</ORG_CODE><EVENTID TYPE="C" SIZE="000015">CREDIT</EVENTID><SUBSCR_VALUE TYPE="C" SIZE="000001">0</SUBSCR_VALUE></item>
<item><MAILERID TYPE="C" SIZE="000030">21</MAILERID><ORG_CODE TYPE="C" SIZE="000004">1232</ORG_CODE><EVENTID TYPE="C" SIZE="000015">EMPRESS</EVENTID><SUBSCR_VALUE TYPE="C" SIZE="000001">0</SUBSCR_VALUE></item>
<item><MAILERID TYPE="C" SIZE="000030">21</MAILERID><ORG_CODE TYPE="C" SIZE="000004">1232</ORG_CODE><EVENTID TYPE="C" SIZE="000015">PAYMENT</EVENTID><SUBSCR_VALUE TYPE="C" SIZE="000001">0</SUBSCR_VALUE></item>
<item><MAILERID TYPE="C" SIZE="000030">21</MAILERID><ORG_CODE TYPE="C" SIZE="000004">1232</ORG_CODE><EVENTID TYPE="C" SIZE="000015">PRICE</EVENTID><SUBSCR_VALUE TYPE="C" SIZE="000001">0</SUBSCR_VALUE></item>
</DATA>
How we will do in this case?
Can we have something similar using DOM? Also what is the best method for displaying data being sent in form of XML. And generalize it for cases like this.
Thanks
Srikant -
Error 1077 in Sub VI chart node property code
Hi all,
I've finally worked out how to be able to change the data that is plotted in a strip chart, the code I have below works fine if it is added into my global loop, however it takes a lot of room and I'm trying to place it in a sub VI. However, when I do this I get the 1077 error on one of the property nodes, if I click ignore it moves onto the next node etc. I read in other posts that the problem had resulted from the order in which the code was executed, but I can't see where I could have gone wrong. If someone could point it out to me that would be great.
As for what this sub vi does, the max and min arrays store the max and min values of the y axes to be configured on the front panel, there is 6 strip charts and 20 data strands which can be plotted. When the user selects the data they want plotted in the strip chart, the property node of that strip chart is used to hide all the plots except the one selected and adjust the axes to the required scale. If someone could point out where I have gone wrong here that would be greatly appreciated!!
Stirling
Attachments:
Chart Config.png 47 KBI looked at simplifying your code as a challenge. Attached is a VI (LV 8.2.1) and a screenshot of the block diagram. Since I was creating from scratch, I didn't have your actual rings or waveform charts. I just created 2 rings and 2 waveform chart references. These can be scaled to as many as you need.
If this is going in a subVI, you may want to make the rings and references as arrays, so you won't need numerous connector terminals for each ring and reference control. If you do that, you can eliminate the build array functions for those before the loops. It would also make the subVI more scaleable.
I also broke the property nodes into 2 loops. As it was, you were setting the property nodes 20 times for each of 6 charts. Only the active plot and visible? needed to be looped through 20 times. The actYscale, Max, and Min were the same for each of the 20 iterations, so they only needed to be done once.
One other possibility would be to do a defer panel updates before, then allow them after the code, so there aren't as many screen refreshes while the loops iterate.
Message Edited by Ravens Fan on 08-18-2007 09:17 PM
Attachments:
Multi chart mod.vi 28 KB
Multi chart mod.png 11 KB -
Installing 11gR1 CRS and receive error when executing root.sh on 2nd node of 2 node cluster
This is the error from the execution of root.sh on 2nd node of 2 node RAC cluster:
dhzusbx98: /u01/app/crs # ./root.sh
WARNING: directory '/u01/app' is not owned by root
Checking to see if Oracle CRS stack is already configured
/etc/oracle does not exist. Creating it now.
Setting the permissions on OCR backup directory
Setting up Network socket directories
PROT-1: Failed to initialize ocrconfig
Failed to upgrade Oracle Cluster Registry configuration
dhzusbx98: /u01/app/crs #
This is what I find in the following log file: /u01/app/crs/log/dhzusbx98/client\ocrconfig_6422692.log
Oracle Database 11g CRS Release 11.1.0.6.0 - Production Copyright 1996, 2007 Ora cle. All rights reserved.
2015-02-11 11:21:07.384: [ OCRCONF][1]ocrconfig starts...
2015-02-11 11:21:07.388: [ OCRCONF][1]Upgrading OCR data
2015-02-11 11:21:07.455: [ OCROSD][1]utopen:7:failed to open OCR file/disk /dev /lnkocrd01CC3 , errno=16, os err string=Device busy
2015-02-11 11:21:07.465: [ OCRRAW][1]proprinit: Could not open raw device
2015-02-11 11:21:07.465: [ default][1]a_init:7!: Backend init unsuccessful : [26 ]
2015-02-11 11:21:07.467: [ OCRCONF][1]Exporting OCR data to [OCRUPGRADEFILE]
2015-02-11 11:21:07.467: [ OCRAPI][1]a_init:7!: Backend init unsuccessful : [33 ]
2015-02-11 11:21:07.467: [ OCRCONF][1]There was no previous version of OCR. erro r:[PROC-33: Oracle Cluster Registry is not configured]
2015-02-11 11:21:07.524: [ OCROSD][1]utopen:7:failed to open OCR file/disk /dev /lnkocrd01CC3 , errno=16, os err string=Device busy
2015-02-11 11:21:07.524: [ OCRRAW][1]proprinit: Could not open raw device
2015-02-11 11:21:07.524: [ default][1]a_init:7!: Backend init unsuccessful : [26 ]
2015-02-11 11:21:07.560: [ OCROSD][1]utopen:7:failed to open OCR file/disk /dev /lnkocrd01CC3 , errno=16, os err string=Device busy
2015-02-11 11:21:07.560: [ OCRRAW][1]proprinit: Could not open raw device
2015-02-11 11:21:07.560: [ OCRAPI][1]a_init:6b!: Backend init unsuccessful : [2 6]
2015-02-11 11:21:07.560: [ OCRCONF][1]Failed to initialized OCR context. error:[ PROC-26: Error while accessing the physical storage Operating System error [Devi ce busy] [16]]
2015-02-11 11:21:07.560: [ OCRCONF][1]Exiting [status=failed]...
dhzusbx98: /u01/app/crs/log/dhzusbx98/client #
dhzusbx98: /u01/app/crs/log/dhzusbx98/client #
dhzusbx98: /u01/app/crs/log/dhzusbx98/client #
dhzusbx98: /u01/app/crs/log/dhzusbx98/client # set -o vi
dhzusbx98: /u01/app/crs/log/dhzusbx98/client # cat ocrconfig_6422692.log
Oracle Database 11g CRS Release 11.1.0.6.0 - Production Copyright 1996, 2007 Oracle. All rights reserved.
2015-02-11 11:21:07.384: [ OCRCONF][1]ocrconfig starts...
2015-02-11 11:21:07.388: [ OCRCONF][1]Upgrading OCR data
2015-02-11 11:21:07.455: [ OCROSD][1]utopen:7:failed to open OCR file/disk /dev/lnkocrd01CC3 , errno=16, os err string=Device busy
2015-02-11 11:21:07.465: [ OCRRAW][1]proprinit: Could not open raw device
2015-02-11 11:21:07.465: [ default][1]a_init:7!: Backend init unsuccessful : [26]
2015-02-11 11:21:07.467: [ OCRCONF][1]Exporting OCR data to [OCRUPGRADEFILE]
2015-02-11 11:21:07.467: [ OCRAPI][1]a_init:7!: Backend init unsuccessful : [33]
2015-02-11 11:21:07.467: [ OCRCONF][1]There was no previous version of OCR. error:[PROC-33: Oracle Cluster Registry is not configured]
2015-02-11 11:21:07.524: [ OCROSD][1]utopen:7:failed to open OCR file/disk /dev/lnkocrd01CC3 , errno=16, os err string=Device busy
2015-02-11 11:21:07.524: [ OCRRAW][1]proprinit: Could not open raw device
2015-02-11 11:21:07.524: [ default][1]a_init:7!: Backend init unsuccessful : [26]
2015-02-11 11:21:07.560: [ OCROSD][1]utopen:7:failed to open OCR file/disk /dev/lnkocrd01CC3 , errno=16, os err string=Device busy
2015-02-11 11:21:07.560: [ OCRRAW][1]proprinit: Could not open raw device
2015-02-11 11:21:07.560: [ OCRAPI][1]a_init:6b!: Backend init unsuccessful : [26]
2015-02-11 11:21:07.560: [ OCRCONF][1]Failed to initialized OCR context. error:[PROC-26: Error while accessing the physical storage Operating System error [Device busy] [16]]
2015-02-11 11:21:07.560: [ OCRCONF][1]Exiting [status=failed]...
dhzusbx98: /u01/app/crs/log/dhzusbx98/client # cat /etc/oracle/ocr.loc
ocrconfig_loc=/dev/lnkocrd01CC3
local_only=FALSE
Can I just retry the root.sh on the 2nd node? or, do I have to do some sort of cleanup and then retry? Please advise.... Thanks, AdolfoAre you using raw disk devices for Oracle 11g RAC? You might want to move to ASM. For starters, your version, 11.1 is no longer fully supported by Oracle Corp. You'll need to be on 11.2.0.3 or higher to be supported. The 11.2.0.3 version loses Extended Support in August I think. The 11.2.0.4 version loses Extended Support in January. All of this means your production Oracle RAC database should be on the 12c version by January. And guess what? Oracle 12c RAC does not support raw disk devices.
Since you're starting with this cluster fresh, why not aim for a configuration that will allow you to go forth into the foreseeable future without major configuration changes?
Cheers,
Brian -
Hi all,
i would like to add datas into my xml model but i don't manage to do it.
Here is the context :
-I have an xml file which represents a tree
-When the xml model is loaded, i bound it to a tree
-Then i add nodes to my tree ( aNode.addNode(new Node ) )
When adding a node, i would like the node to be represented to my model;
e.g : before adding a node
<node name="node1">
<node name="node1_1"/>
<node name="node1_2"/>
</node>
after the node is added :
<node name="node1">
<node name="node1_1"/>
<node name="node1_2"/>
<node name="new node"/>
</node>
I have tried xml setProperty:
oModel.setProperty(myPath,data);
oModel.setProperty(myPath,data,oContext);
Can somebody help me to achieve this?
Thanks,
best regards,
MarcThanks for this fast reply, i try it and i come back to you
Edit :
Here is my xml file :
<?xml version="1.0" encoding="utf-8"?>
<objectSet version="1.2.3.4">
<aRoot code="testCode" reference="0123456789" description="TestDescription"
owner="Tester">
<component name="MyCompo1" type="MyCompo1Type">
<component name="MyCompo2" type="MyCompo2Type">
<property name="myProperty2-1" type="string" value="null" />
<property name="myProperty2-2" type="string" value="null" />
<property name="myProperty2-3" type="string" value="null" />
</component>
<component name="MyCompo3" type="MyCompo3Type">
<property name="myProperty3-1" type="string" value="null" />
</component>
</component>
</aRoot>
</objectSet>
I made a button with the fellowing function attached :
aTestFunction: function(oEvent){
console.log("Test");
var tree = this.byId("myTree");
var oModel = tree.getModel();
var pty = oModel.getProperty("/aRoot/MyCompo1"); // Empty; path is not good
var pty1 = oModel.getProperty("/aRoot/component");//something but only whitespaces when printing
console.log(pty);//empty
console.log(pty1);// a lot of whitespaces (9lines of different sizes)
pty1.push("node");//Error, pty1.push is not a function
oModel.setProperty("/aRoot/component",pty1);
The argument of pty1.push is not good, but the function cannot be even called.
Another try? -
A Cisco Stack 3750X switch report the following error message:
%UTIL-3-TREE: Data structure error--attempt to remove an unthreaded node from a tree.
every minute +-20 sec
Cisco IOS Software, C3750E Software (C3750E-IPBASEK9-M), Version 15.0(2)SE4, RELEASE SOFTWARE (fc1)
analog bug: https://tools.cisco.com/bugsearch/bug/CSCsz93221WS-C3750G-24PS-E C3750-IPBASEK9-M version 12.2(53)SE2
After implementing 802.1x with Avaya IP phones
%UTIL-3-TREE: Data structure error--attempt to remove an unthreaded node from a tree
Port then fails authentication and goes into vl-err-dis -
Separate deployments into each node of cluster - advisable?
Hi,
Having just launched our application to the public, we are still in stabilization mode and sometimes we come across a showstopper corner case during the day. The fix is usually pretty trivial and we are ready with a patch within an hour of discovery. However, it is difficult to obtain approval for deployment downtime of even 3 minutes and on a clustered environment, deployment takes as long as 5-7 minutes (2-3 minutes to undeploy existing EAR and 3-5 minutes more to deploy the new one). Precompiling JSPs may already take up to a minute or so. Usually my deployment command line looks like this:
$GLASSFISH_HOME/bin/asadmin undeploy --target=my-cluster my-ear-RELEASE-V1.02-20080123-0100; $GLASSFISH_HOME/bin/asadmin deploy --availabilityenabled=true --precompilejsp=true --enabled=true --target=my-cluster /tmp/my-ear-RELEASE-V1.02-20080123-0400.earAfter reading the deploy options more carefully, I figured that I can do a staggered deployment into each node (assuming 2 nodes in a cluster) like the following:
$GLASSFISH_HOME/bin/asadmin undeploy --target=my-instance-01 my-ear-RELEASE-V1.02-20080123-0100; $GLASSFISH_HOME/bin/asadmin deploy --availabilityenabled=true --precompilejsp=true --enabled=true --target=my-instance-01 /tmp/my-ear-RELEASE-V1.02-20080123-0400.ear
$GLASSFISH_HOME/bin/asadmin undeploy --target=my-instance-02 my-ear-RELEASE-V1.02-20080123-0100; $GLASSFISH_HOME/bin/asadmin deploy --availabilityenabled=true --precompilejsp=true --enabled=true --target=my-instance-02 /tmp/my-ear-RELEASE-V1.02-20080123-0400.earCan anybody advise if this is a good idea (practically speaking), considering the shared sessions which may run out of sync temporarily (I can imagine scenarios where session variables become invalid in a new deployment or even cause an error).
The SJSAS cluster is fronted by a SJSWS running in load balanced reverse proxy mode.
If this works out, it would save me and the help desk a lot of pressure from clients who are bumping into the bug during the entire day when we could have put in the fix early that morning itself.
Thanks!
WongHmmm... obviously I'm talking nonsense 'cos it's not possible to deploy to a single node of a cluster... I get an error the moment I try;
[bash ~] $GLASSFISH_HOME/bin/asadmin undeploy --target=app01-instance my-ear-RELEASE-V1.02-20080123-0100
CLI175 The target app01-instance is invalid. Valid target types are cluster, domain, unclustered server instance, domain administration server. -
TextArea-like control to add nodes into it?
Hi,
is there any possibility to make a TextArea-like control, where you can put JavaFX nodes into?
I am looking for a textarea like in Skype, where you can put Smileys into and even Quotes from other users and can continue typing before and after it.
I could imagine a StringConverter to convert a Node into String and vice versa.I'm not aware of an out-of-the-box component that can do this.
However, there is an effort underway to provide Rich Text controls to JavaFX, see: https://wikis.oracle.com/display/OpenJDK/Rich+Text
Maybe you are looking for
-
Can't run any JRE or JDK utilities-Win XP SP1
Hi I'm trying for quite a few days now but can't solve this problem. I installed the J2SDK 1.4.01 and sun 1 forte co-bundle which installed JRE 1.4.1 and Web Start. The installation goes fine but when I try to run any of the utilities I get a catastr
-
Does anyone know if there is a driver for the AMD PCnet family of PCI Ethernet devices on the SPARC architecture? I know that there is a Solaris driver available for Intel architecture from AMD but I can find no reference to a Sparc driver. If one do
-
[Not sure which forum this question really belongs in...] I'm trying to find out the semantics of umem_cache_alloc/umem_cache_free. In general I expect that buffers allocated from a umem_cache and then returned to the cache with umem_cache_free remai
-
Panther to tiger--lost airport recognition
Updgraded from panther to tiger on g4 powerbook 12"-- no longer recognizes its airport card. Help? Powerbook G4 12" Mac OS X (10.4.3)
-
Client can't edit site with Contribute CS3
I put a site online last week (www.dunelakeslodge.co.nz) and supplied my client with Contribute CS3 to update it, supplying her a connection key. She is connecting OK, but when she tries to edit a page she gets a message saying she "can't edit this p