OSB Xquery problem

Hi ,
Here is my Problem.
Suppose I have 100 elements in request.
I service called out a particular service and it sends me back 20 elements updated with some values.
I do not want to replace (element) with (element) TWENTY TIMES.
I donot want to do that. Is there any other way ..

Can you try this :
<getWidgetsResponse>
          <getWidgetsResult>           
for $widget in $yourwidgetresponseelement/widgets/widget
return
<widget>
<widgetnumber> { data($widget/widgetnumber) }</widgetnumber>
<widgetclass> { data($widget/widgetclass) }</widgetclass>
</widget>
          </getWidgetsResult>
</getWidgetsResponse>
          or change the
          { data($widget/widgetnumber) }</widgetnumber> }
{ data($widget/widgetclass) }</widgetclass> }
in
          $widget/widgetnumber
               $widget/widgetclass
Good luc.
havent tested it, but should be something like this

Similar Messages

  • OSB Branch Problem

    Hi there,
    I have created a set of Business Services backed by SOAP services and then Proxy Services for each (3). The three Proxy Services are then configured in a new "Wrapper" Proxy Service which uses one of the Request Parameters to do a Branch. The Branch will then drop to a route/routing for each original Proxy Service backed by a Business Service. This is a content based routing scheme.
    I have successfully tested the 3 Proxy Services. When I run the "Wrapper" service the OSB server has an error:
    Sep 2, 2009 12:46:09 AM MDT> <Error> <OSB Kernel> <BEA-382016> <Failed to instantiate router for service ProxyService zzzz PoC1 OSB/ProxyService/getZzzzzzzzzzzService: com.bea.wli.sb.management.BrokerManagementException: com.bea.wli.sb.stages.StageException: The xquery cannot have an unbound current node.
    com.bea.wli.sb.management.BrokerManagementException: com.bea.wli.sb.stages.StageException: The xquery cannot have an unbound current node.
         at com.bea.wli.sb.pipeline.BranchNode.<init>(BranchNode.java:89)
         at com.bea.wli.sb.pipeline.RouterCompiler.compileNode(RouterCompiler.java:129)
         at com.bea.wli.sb.pipeline.RouterCompiler.compileFlow(RouterCompiler.java:115)
         at com.bea.wli.sb.pipeline.Router.<init>(Router.java:135)
         at com.bea.wli.sb.pipeline.RouterCompiler.compileRouter(RouterCompiler.java:89)
         Truncated. see log file for complete stacktrace
    com.bea.wli.sb.stages.StageException: The xquery cannot have an unbound current node.
         at com.bea.wli.sb.stages.expressions.ExpressionHelper.validateXQuery(ExpressionHelper.java:481)
         at com.bea.wli.sb.stages.expressions.ExpressionHelper.validate(ExpressionHelper.java:59)
         at com.bea.wli.sb.stages.expressions.ExpressionHelper.getExecutor(ExpressionHelper.java:325)
         at com.bea.wli.sb.stages.expressions.ExpressionBuilderImpl.getExecutor(ExpressionBuilderImpl.java:151)
         at com.bea.wli.sb.stages.expressions.ExpressionBuilderImpl.getExecutor(ExpressionBuilderImpl.java:143)
         Truncated. see log file for complete stacktrace
    My questions:
    #1) - any ideas on the way to fix the error ?
    #2) - When I can do a basic invocation for the Wrapper Proxy Service I will then need to map the "Wrapper" Request (parameters) to the individual Proxy Request that is routed to (they have different WSDLs / signatures) AND then do the mapping on the Result (Response). I was planning to do an "Assign/Replace" but have not been successful yet. Any ideas on this?
    All hints are appreciated.
    Thanks,
    David.

    Hi there,
    I have solved everything but the Branching Issue. I added Branching at the end and it causes an Error of "UNBOUND CURRENT NODE". You can see my Proxy Service below:
    <Sep 8, 2009 5:55:26 AM MDT> <Error> <OSB Kernel> <BEA-382018> <Unable to generate runtime for router configuration: <ser:router xmlns:ser="http://www.bea.com/wli/sb/services" xmlns:tran="http://www.bea.com/wli/sb/transports" xmlns:env="http://www.bea.com/wli/config/env" xmlns:http="http://www.bea.com/wli/sb/transports/http" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:con="http://www.bea.com/wli/sb/pipeline/config" xmlns:con1="http://www.bea.com/wli/sb/stages/config" xmlns:con2="http://www.bea.com/wli/sb/stages/transform/config" xmlns:con3="http://www.bea.com/wli/sb/stages/logging/config" xmlns:con4="http://www.bea.com/wli/sb/stages/routing/config">
    <con:pipeline type="request" name="PipelinePairNode1_request">
    <con:stage name="AssignPresentBy">
    <con:context>
    <con1:varNsDecl namespace="http://www.abcd.ca/TicketRedemptionRequestSchema" prefix="tic"/>
    </con:context>
    <con:actions>
    <con2:assign varName="presentBy">
    <con1:id>_ActionId-5723152188531464211-2ff2ab54.1239606fa8b.-7efc</con1:id>
    <con2:expr>
    <con1:xqueryText>fn:data($body/parameters/tic:present_by)</con1:xqueryText>
    </con2:expr>
    </con2:assign>
    </con:actions>
    </con:stage>
    </con:pipeline>
    <con:pipeline type="response" name="PipelinePairNode1_response"/>
    <con:flow>
    <con:pipeline-node name="PipelinePairNode1">
    <con:request>PipelinePairNode1_request</con:request>
    <con:response>PipelinePairNode1_response</con:response>
    </con:pipeline-node>
    <con:branch-node type="condition" name="PresentByBranch">
    <con:context>
    <con1:varNsDecl namespace="http://www.abcd.ca/TicketRedemptionRequestSchema" prefix="tic"/>
    <con1:varNsDecl namespace="http://abcd.ca/TicketRedemptionResultSchema" prefix="tic1"/>
    </con:context>
    <con:branch-table variable="presentBy">
    <con:xpath>
    <con1:xpathText>./text()</con1:xpathText>
    </con:xpath>
    <con:branch name="VrtBranch">
    <con:operator>equals</con:operator>
    <con:value>vrt</con:value>
    <con:flow>
    <con:route-node name="VrtRoute">
    <con:context>
    <con1:userNsDecl namespace="ld:logical/ticket_redemption_by_vrt_ws" prefix="ns"/>
    <con1:varNsDecl namespace="http://www.abcd.ca/TicketRedemptionRequestSchema" prefix="tic"/>
    <con1:varNsDecl namespace="http://abcd.ca/TicketRedemptionResultSchema" prefix="tic1"/>
    </con:context>
    <con:actions>
    <con4:route>
    <con1:id>_ActionId-7257948572351663971-4dcedc82.12399512af2.-7f6c</con1:id>
    <con4:service ref="abcd-PoC1-OSB/BusinessService/ticket_redemption_by_vrt" xsi:type="ref:BusinessServiceRef" xmlns:ref="http://www.bea.com/wli/sb/reference"/>
    <con4:operation>getTicketRedemptionByVrt</con4:operation>
    <con4:outboundTransform>
    <con2:assign varName="trRequest">
    <con1:id>_ActionId-7257948572351663971-4dcedc82.12399512af2.-7f6b</con1:id>
    <con2:expr>
    <con1:xqueryTransform>
    <con1:resource ref="abcd-PoC1-OSB/xquery/ticketRedemptionVrtRequest"/>
    <con1:param name="ticketRedemptionRequest1">
    <con1:path>$body</con1:path>
    </con1:param>
    </con1:xqueryTransform>
    </con2:expr>
    </con2:assign>
    <con3:log>
    <con1:id>_ActionId-7257948572351663971-4dcedc82.12399512af2.-7f6a</con1:id>
    <con3:logLevel>error</con3:logLevel>
    <con3:expr>
    <con1:xqueryText>$body</con1:xqueryText>
    </con3:expr>
    <con3:message>AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA</con3:message>
    </con3:log>
    <con2:replace varName="body">
    <con1:id>_ActionId-7257948572351663971-4dcedc82.12399512af2.-7f69</con1:id>
    <con2:location>
    <con1:xpathText>./*</con1:xpathText>
    </con2:location>
    <con2:expr>
    <con1:xqueryText>$trRequest</con1:xqueryText>
    </con2:expr>
    </con2:replace>
    <con3:log>
    <con1:id>_ActionId-7257948572351663971-4dcedc82.12399512af2.-7f68</con1:id>
    <con3:logLevel>error</con3:logLevel>
    <con3:expr>
    <con1:xqueryText>$body</con1:xqueryText>
    </con3:expr>
    <con3:message>BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB</con3:message>
    </con3:log>
    </con4:outboundTransform>
    <con4:responseTransform>
    <con2:assign varName="trResponse">
    <con1:id>_ActionId-7257948572351663971-4dcedc82.12399512af2.-7f67</con1:id>
    <con2:expr>
    <con1:xqueryTransform>
    <con1:resource ref="abcd-PoC1-OSB/xquery/ticketRedemptionVrtResponse"/>
    <con1:param name="getTicketRedemptionByVrtResponse1">
    <con1:path>$body/ns:getTicketRedemptionByVrtResponse</con1:path>
    </con1:param>
    </con1:xqueryTransform>
    </con2:expr>
    </con2:assign>
    <con3:log>
    <con1:id>_ActionId-7257948572351663971-4dcedc82.12399512af2.-7f66</con1:id>
    <con3:logLevel>error</con3:logLevel>
    <con3:expr>
    <con1:xqueryText>$body</con1:xqueryText>
    </con3:expr>
    <con3:message>CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC</con3:message>
    </con3:log>
    <con2:replace varName="body">
    <con1:id>_ActionId-7257948572351663971-4dcedc82.12399512af2.-7f65</con1:id>
    <con2:location>
    <con1:xpathText>./*</con1:xpathText>
    </con2:location>
    <con2:expr>
    <con1:xqueryText>$trResponse</con1:xqueryText>
    </con2:expr>
    </con2:replace>
    <con3:log>
    <con1:id>_ActionId-7257948572351663971-4dcedc82.12399512af2.-7f64</con1:id>
    <con3:logLevel>error</con3:logLevel>
    <con3:expr>
    <con1:xqueryText>$body</con1:xqueryText>
    </con3:expr>
    <con3:message>DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD</con3:message>
    </con3:log>
    </con4:responseTransform>
    </con4:route>
    </con:actions>
    </con:route-node>
    </con:flow>
    </con:branch>
    <con:default-branch>
    <con:flow>
    <con:route-node name="DefaultRoute">
    <con:context/>
    <con:actions>
    <con4:route>
    <con1:id>_ActionId-7257948572351663971-4dcedc82.12399512af2.-7ef6</con1:id>
    <con4:service ref="abcd-PoC1-OSB/BusinessService/ticket_redemption_by_asset" xsi:type="ref:BusinessServiceRef" xmlns:ref="http://www.bea.com/wli/sb/reference"/>
    <con4:outboundTransform>
    <con3:log>
    <con1:id>_ActionId-7257948572351663971-4dcedc82.12399512af2.-7ed6</con1:id>
    <con3:logLevel>error</con3:logLevel>
    <con3:expr>
    <con1:xqueryText>$body</con1:xqueryText>
    </con3:expr>
    <con3:message>ZZZZZZZZZZZZZZZZZZZ D E F A U L T ZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZZ</con3:message>
    </con3:log>
    </con4:outboundTransform>
    <con4:responseTransform/>
    </con4:route>
    </con:actions>
    </con:route-node>
    </con:flow>
    </con:default-branch>
    </con:branch-table>
    </con:branch-node>
    </con:flow>
    </ser:router>>
    com.bea.wli.sb.management.BrokerManagementException: com.bea.wli.sb.stages.StageException: The xquery cannot have an unbound current node.
         at com.bea.wli.sb.pipeline.BranchNode.<init>(BranchNode.java:89)
         at com.bea.wli.sb.pipeline.RouterCompiler.compileNode(RouterCompiler.java:129)
         at com.bea.wli.sb.pipeline.RouterCompiler.compileFlow(RouterCompiler.java:115)
         at com.bea.wli.sb.pipeline.Router.<init>(Router.java:135)
         at com.bea.wli.sb.pipeline.RouterCompiler.compileRouter(RouterCompiler.java:89)
         Truncated. see log file for complete stacktrace
    com.bea.wli.sb.stages.StageException: The xquery cannot have an unbound current node.
         at com.bea.wli.sb.stages.expressions.ExpressionHelper.validateXQuery(ExpressionHelper.java:481)
         at com.bea.wli.sb.stages.expressions.ExpressionHelper.validate(ExpressionHelper.java:59)
         at com.bea.wli.sb.stages.expressions.ExpressionHelper.getExecutor(ExpressionHelper.java:325)
         at com.bea.wli.sb.stages.expressions.ExpressionBuilderImpl.getExecutor(ExpressionBuilderImpl.java:151)
         at com.bea.wli.sb.stages.expressions.ExpressionBuilderImpl.getExecutor(ExpressionBuilderImpl.java:143)
         Truncated. see log file for complete stacktrace
    If you have any ideas on how to debug this itb would be much appreciated!
    Thanks,
    David.

  • In OSB , xquery issue with large volume data

    Hi ,
    I am facing one problem in xquery transformation in OSB.
    There is one xquery transformation where I am comparing all the records and if there are similar records i am clubbing them under same first node.
    Here i am reading the input file from the ftp process. This is perfectly working for the small size input data. When there is large input data then also its working , but its taking huge amount of time and the file is moving to error directory and i see the duplicate records created for the same input data. I am not seeing anything in the error log or normal log related to this file.
    How to check what is exactly causing the issue here,  why it is moving to error directory and why i am getting duplicate data for large input( approx 1GB).
    My Xquery is something like below.
    <InputParameters>
                    for $choice in $inputParameters1/choice              
                     let $withSamePrimaryID := ($inputParameters1/choice[PRIMARYID eq $choice/PRIMARYID])                
                     let $withSamePrimaryID8 := ($inputParameters1/choice[FIRSTNAME eq $choice/FIRSTNAME])
                     return
                      <choice>
                     if(data($withSamePrimaryID[1]/ClaimID) = data($withSamePrimaryID8[1]/ClaimID)) then
                     let $claimID:= $withSamePrimaryID[1]/ClaimID
                     return
                     <ClaimID>{$claimID}</ClaimID>                
                     else
                     <ClaimID>{ data($choice/ClaimID) }</ClaimID>

    HI ,
    I understand your use case is
    a) read the file ( from ftp location.. txt file hopefully)
    b) process the file ( your x query .. although will not get into details)
    c) what to do with the file ( send it backend system via Business Service?)
    Also noted the files with large size take long time to be processed . This depends on the memory/heap assigned to your JVM.
    Can say that is expected behaviour.
    the other point of file being moved to error dir etc - this could be the error handler doing the job ( if you one)
    if no error handlers - look at the timeout and error condition scenarios on your service.
    HTH

  • OSB XQuery Maps

    Greetings!
    1]. I use OSB 10.3 with Eclipse (OSB Workshop that comes with OSB 10.3 installabe) IDE for doing mapping.
    I draw lines from Source to Target structure in XQuery Transformation. I see the source code getting build. When I close the XQuery and open it again in the IDE, I see all the source to target lines in the design view disappear. However the source code is still there. Any ideas what might be wrong here?
    2] In my XQuery transformation target structure for elements when I mounse over I see the Nodename, Namespace prefix and Namespace URI. However for some elements I see the namespace URI but no namespace prefix. This is causing problem because in the source code and in the output it produces there are elements without namespace prefix rendering the output invalid. I cant think of why for some elements there are no namespace prefixes. Any advise?
    Only think I can think of is that the target structure seem to have a cyclic reference in the schema.. pls see below example. Is this a problem?
    <a:element1>
    <b:element2>
    <a:element3>
    </b:element>
    </a:element1>
    3] I generated XQuery using mapforce for a map and when I tried to use it in OSB, it errored stating Recursive XQueryies are not supported in OSB. Any thots?
    Thanks in advance

    +2] In my XQuery transformation target structure for elements when I mounse over I see the Nodename, Namespace prefix and Namespace URI. However for some elements I see the namespace URI but no namespace prefix. This is causing problem because in the source code and in the output it produces there are elements without namespace prefix rendering the output invalid. I cant think of why for some elements there are no namespace prefixes. Any advise?+
    Only think I can think of is that the target structure seem to have a cyclic reference in the schema.. pls see below example. Is this a problem?
    +<a:element1>+
    +<b:element2>+
    +<a:element3>+
    +</b:element>+
    +</a:element1>+
    Schema cyclic reference was causing the problem with empty namespace. I had to go in to the XQuery and manually add the namespace and prefic and qualify the elements. After this data gets mapped

  • Xquery problems

    hi,
    i'm using xquery.jar and have encountered some problems while checking the xquery-use-cases (http://www.w3.org/TR/xmlquery-use-cases/).
    currently i do not use a DBConnection but read data from a file.
    while some of the first queries work, most don't:
    XMP Q4,Q6,Q7,Q8,Q9,Q10,Q12 do fail for different reasons.
    ('distinct-value', 'local-name', XQueryException: 1, ..)
    is there a list which features are supported by xquery.jar?
    is there any date or version when xquery will be implemented into the ORACLE DB?
    best regards
    peter
    ps: sorry for crossposting. but i'm quite sure it fit's into both forums.

    Hi Mathias,
    That was a good suggestion.
    I have already tried it and OSB gives the following error (same for element(*, xs:base64Binary) selector) :
    *{bea-err}SYS001: This functionality has not been implemented (sorry)*
    I see this error message every time i do an xquery operation that does a comparison or selection on the base xsd type of elements.
    But "instance of" does not give this error it just doesent seem to work.
    This seems to indicate that Oracle OSB doesnt support these kind of operations, even though their documentation seems to indicate otherwise.
    Regards
    Timm

  • OSB - XQuery - line 7, col 2: {err}FORG0005: expected exactly 1 item, got 0

    Hi,
    I am trying to execute the below sample XQuery. Eclipse designer does not show any error. However on executing the XQuery, I get the following error "+Error executing the XQuery transformation: line 7, column 2: {err}FORG0005: expected exactly one item, got 0 items+". Appreciate your help.
    xquery version "1.0" encoding "UTF-8";
    declare namespace xf = "http://tempuri.org/OSB%20Project%201/Ids/";
    declare function xf:Ids()
    as element() {*
    *     let $abc := <catalog><product dept="MEN"><number>784</number><name language="en">Cotton Dress Shirt</name><colorChoices>white gray</colorChoices><desc>Our favorite shirt!</desc></product></catalog>*
    *     for $product in $abc/catalog/product*
    *     let $name := $product/name*
    *     where $product/@dept = "ACC"*
    *     order by $name*
    *     return $name*
    xf:Ids()

    Thanks, for the answer.
    I just tweeked my XQuery:Var = $abc a little and ended up with same issue. Request your help again.
    xquery version "1.0" encoding "UTF-8";
    declare namespace xf = "http://tempuri.org/OSB%20Project%201/Ids/";
    declare function xf:Ids() as element(*)? {
    let $abc := +<catalog><product dept="MEN" xmlns="http://datypic.com/prod"><number>784</number><name language="en">Cotton Dress Shirt</name><colorChoices>white gray</colorChoices><desc>Ou<i>favorite</i> shirt! </desc></product><product dept="ACC"><number>563</number><name language="en">Floppy Sun Hat</name></product><product dept="ACC"><number>443</number><name language="en">Deluxe Travel Bag</name></product><product dept="MEN"><number>784</number><name language="en">Cotton Dress Shirt</name><colorChoices>white gray</colorChoices><desc>Ou<i>favorite</i> shirt! </desc></product><product dept="WMN"><number>557</number><name language="en">Fleece Pullover</name><colorChoices>navy black</colorChoices></product></catalog>+
    --(:<catalog><product dept="ACC"><number>784</number><name language="en">Cotton Dress Shirt</name><colorChoices>white gray</colorChoices><desc>Our favorite shirt!</desc></product></catalog>:)--
    for $product in $abc/product
    let $name := $product/name
    where $product/@dept = "ACC"
    order by $name
    return $name
    xf:Ids()

  • XQuery problem in WorkShop for Linux distributions

    Hi,
    I'm tryng to start a new xQuery Transformation with WorkShop (version 9.2.1) in a Linux fedora 6 machine, but fail in error.
    This is the ../.metadata/.log portion of logfile:
    =============================================================================
    Prova di lancio per nuovo xQuery
    =============================================================================
    !ENTRY org.eclipse.osgi 2007-01-16 11:20:46.68
    !MESSAGE An error occurred while automatically activating bundle com.bea.wli.ide.mapper (427).
    !STACK 0
    org.osgi.framework.BundleException: Exception in com.bea.wli.ide.mapper.MapperPlugin.start() of bundle com.bea.wli.ide.mapper.
    at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:1013)
    at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:969)
    at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:316)
    at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:264)
    at org.eclipse.core.runtime.adaptor.EclipseClassLoader.findLocalClass(EclipseClassLoader.java:116)
    at org.eclipse.osgi.framework.internal.core.BundleLoader.findLocalClass(BundleLoader.java:337)
    at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:389)
    at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:350)
    at org.eclipse.osgi.framework.adaptor.core.AbstractClassLoader.loadClass(AbstractClassLoader.java:78)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    at org.eclipse.osgi.framework.internal.core.BundleLoader.loadClass(BundleLoader.java:275)
    at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:227)
    at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1248)
    at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:152)
    at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:142)
    at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:129)
    at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:48)
    at org.eclipse.ui.internal.WorkbenchPlugin$1.run(WorkbenchPlugin.java:240)
    at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
    at org.eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlugin.java:236)
    at org.eclipse.ui.internal.dialogs.WorkbenchWizardElement.createExecutableExtension(WorkbenchWizardElement.java:118)
    at org.eclipse.ui.internal.dialogs.WorkbenchWizardElement.createWizard(WorkbenchWizardElement.java:276)
    at org.eclipse.ui.internal.dialogs.NewWizardNewPage$6.createWizard(NewWizardNewPage.java:724)
    at org.eclipse.ui.internal.dialogs.WorkbenchWizardNode$2.run(WorkbenchWizardNode.java:145)
    at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1044)
    at org.eclipse.core.runtime.Platform.run(Platform.java:783)
    at org.eclipse.ui.internal.dialogs.WorkbenchWizardNode$1.run(WorkbenchWizardNode.java:128)
    at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
    at org.eclipse.ui.internal.dialogs.WorkbenchWizardNode.getWizard(WorkbenchWizardNode.java:125)
    at org.eclipse.jface.wizard.WizardSelectionPage.getNextPage(WizardSelectionPage.java:101)
    at org.eclipse.ui.internal.dialogs.WorkbenchWizardSelectionPage.getNextPage(WorkbenchWizardSelectionPage.java:99)
    at org.eclipse.jface.wizard.WizardDialog.nextPressed(WizardDialog.java:747)
    at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:345)
    at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:556)
    at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:90)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1021)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2867)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2572)
    at org.eclipse.jface.window.Window.runEventLoop(Window.java:809)
    at org.eclipse.jface.window.Window.open(Window.java:787)
    at org.eclipse.ui.actions.NewWizardAction.run(NewWizardAction.java:181)
    at org.eclipse.jface.action.Action.runWithEvent(Action.java:996)
    at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:538)
    at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:488)
    at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:400)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1021)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2867)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2572)
    at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1699)
    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:367)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143)
    at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:103)
    at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:226)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:376)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:163)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.eclipse.core.launcher.Main.invokeFramework(Main.java:334)
    at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
    at org.eclipse.core.launcher.Main.run(Main.java:973)
    at org.eclipse.core.launcher.Main.main(Main.java:948)
    Caused by: javax.swing.UnsupportedLookAndFeelException: [The Mapper Look and Feel - com.bea.wli.ide.mapper.util.MapperLookAndFeel] not supported on this platform
    at javax.swing.UIManager.setLookAndFeel(UIManager.java:428)
    at com.bea.wli.ide.mapper.MapperPlugin.start(MapperPlugin.java:60)
    at org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleContextImpl.java:994)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:988)
    ... 65 more
    Root exception:
    javax.swing.UnsupportedLookAndFeelException: [The Mapper Look and Feel - com.bea.wli.ide.mapper.util.MapperLookAndFeel] not supported on this platform
    at javax.swing.UIManager.setLookAndFeel(UIManager.java:428)
    at com.bea.wli.ide.mapper.MapperPlugin.start(MapperPlugin.java:60)
    at org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleContextImpl.java:994)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:988)
    at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:969)
    at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:316)
    at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:264)
    at org.eclipse.core.runtime.adaptor.EclipseClassLoader.findLocalClass(EclipseClassLoader.java:116)
    at org.eclipse.osgi.framework.internal.core.BundleLoader.findLocalClass(BundleLoader.java:337)
    at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:389)
    at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:350)
    at org.eclipse.osgi.framework.adaptor.core.AbstractClassLoader.loadClass(AbstractClassLoader.java:78)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
    at org.eclipse.osgi.framework.internal.core.BundleLoader.loadClass(BundleLoader.java:275)
    at org.eclipse.osgi.framework.internal.core.BundleHost.loadClass(BundleHost.java:227)
    at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadClass(AbstractBundle.java:1248)
    at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:152)
    at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:142)
    at org.eclipse.core.internal.registry.ConfigurationElement.createExecutableExtension(ConfigurationElement.java:129)
    at org.eclipse.core.internal.registry.ConfigurationElementHandle.createExecutableExtension(ConfigurationElementHandle.java:48)
    at org.eclipse.ui.internal.WorkbenchPlugin$1.run(WorkbenchPlugin.java:240)
    at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
    at org.eclipse.ui.internal.WorkbenchPlugin.createExtension(WorkbenchPlugin.java:236)
    at org.eclipse.ui.internal.dialogs.WorkbenchWizardElement.createExecutableExtension(WorkbenchWizardElement.java:118)
    at org.eclipse.ui.internal.dialogs.WorkbenchWizardElement.createWizard(WorkbenchWizardElement.java:276)
    at org.eclipse.ui.internal.dialogs.NewWizardNewPage$6.createWizard(NewWizardNewPage.java:724)
    at org.eclipse.ui.internal.dialogs.WorkbenchWizardNode$2.run(WorkbenchWizardNode.java:145)
    at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1044)
    at org.eclipse.core.runtime.Platform.run(Platform.java:783)
    at org.eclipse.ui.internal.dialogs.WorkbenchWizardNode$1.run(WorkbenchWizardNode.java:128)
    at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
    at org.eclipse.ui.internal.dialogs.WorkbenchWizardNode.getWizard(WorkbenchWizardNode.java:125)
    at org.eclipse.jface.wizard.WizardSelectionPage.getNextPage(WizardSelectionPage.java:101)
    at org.eclipse.ui.internal.dialogs.WorkbenchWizardSelectionPage.getNextPage(WorkbenchWizardSelectionPage.java:99)
    at org.eclipse.jface.wizard.WizardDialog.nextPressed(WizardDialog.java:747)
    at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:345)
    at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:556)
    at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:90)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1021)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2867)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2572)
    at org.eclipse.jface.window.Window.runEventLoop(Window.java:809)
    at org.eclipse.jface.window.Window.open(Window.java:787)
    at org.eclipse.ui.actions.NewWizardAction.run(NewWizardAction.java:181)
    at org.eclipse.jface.action.Action.runWithEvent(Action.java:996)
    at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:538)
    at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:488)
    at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:400)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1021)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2867)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2572)
    at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1699)
    at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:367)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143)
    at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:103)
    at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:226)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:376)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:163)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at org.eclipse.core.launcher.Main.invokeFramework(Main.java:334)
    at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
    at org.eclipse.core.launcher.Main.run(Main.java:973)
    at org.eclipse.core.launcher.Main.main(Main.java:948)
    Is there someone that can help me?
    Regards
    Benedetto

    I'm running IBM WebSphere Development's Development Studio Client for the iSeries 5.1.2. and I'm all of sudden receiving this same message...
    JVMXM004: JVM is performing abort shutdown sequence
    JVMDG217: Dump Handler is Processing a Signal - Please Wait.
    JVMDG303: JVM Requesting Java core file
    JVMDG304: Java core file written to
    C:\WDSC512WS\Workspace\CMRWITEST\javacore.20041210.080731.3332.txt
    JVMDG215: Dump Handler has Processed Exception Signal 11.
    When I look at the javacore.20041210.080731.3332.txt file, to tell the truth, I can't make heads or tails of what the problem really is.
    If anyone can help or at the very least, head me down some path to troubleshoot it would be greatly appreciated.

  • How to use typeswitch in osb xquery ?

    Hi all,
    I couldnt understand the syntax of the x query type switch used in osb.Can anybody kindly explain it or give links to examples.
    typeswitch (())
    case $case-var as element(*) return ()
    default ()
    1) what should be given inside the typeswitch (()) ?
    2) what should be given as this variable $case-var ?
    3) what is the meaning of sequence type element(*) ?
    4) Is the typeswitch in x query used to avoid multiple nested if or is it something else ?
    Thank you.
    Edited by: Arun Vikram on Jul 18, 2010 11:47 PM
    Edited by: Arun Vikram on Jul 19, 2010 12:00 AM

    Hi Arun,
    See the section "2.11 Operations on Datatypes" of below doc -
    http://www.w3.org/TR/2001/WD-xquery-20010607/
    typeswitch is explained with an example in this section. typeswitch is similar concept as "switch" in Java.
    1) what should be given inside the typeswitch (()) ?The expression whose dynamic type is being tested.
    2) what should be given as this variable $case-var ?Each CASE clause specifies the name of a type, which must be a subtype of the static type of the operand expression, followed by a RETURN expression.
    3) what is the meaning of sequence type element(*) ?Any XML node
    4) Is the typeswitch in x query used to avoid multiple nested if or is it something else ?As said,The typeswitch expression of XQuery allows users to write queries that are sensitive to dynamic type, yes it helps to avoid multiple nested if to fulfill this use case.
    Regards,
    Anuj
    Edited by: Anuj Dwivedi, TCS on Jul 19, 2010 12:32 PM

  • OSB, xquery and Assign issue

    Hello all
    I have an issue that I cannot quite understand...
    I have a very simple proxy service, that I would like to receive an xml of this form:
    <SO so_att1="soatt" xsi:noNamespaceSchemaLocation="Split.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
         <MLI mli_att1="mli1att">
              <LI li_att1="li1_att1">
                   <name>String</name>
                   <value>String</value>
                   <action>String</action>
              </LI>
              <LI li_att1="li2_att1">
                   <name>String</name>
                   <value>String</value>
                   <action>String</action>
              </LI>
              <LI li_att1="li3_att1">
                   <name>String</name>
                   <value>String</value>
                   <action>String</action>
              </LI>
              <LI li_att1="li4_att1">
                   <name>String</name>
                   <value>String</value>
                   <action>String</action>
              </LI>
              <LI li_att1="li5_att1">
                   <name>String</name>
                   <value>String</value>
                   <action>String</action>
              </LI>
              <name>String</name>
              <value>String</value>
              <action>String</action>
         </MLI>
    </SO>
    in order to transform it to a general data model of this form:
    <CDM>
         <Item so_att="soatt" mli_att="mli1att">
              <name>MLI1_name</name>
              <value>MLI1_value</value>
              <action>MLI1_action</action>
         </Item>
         <Item so_att="soatt" mli_att="mli1att" li_att="li1att">
              <name>LI1_name</name>
              <value>LI1_value</value>
              <action>LI1_action</action>
         </Item>
         <Item so_att="soatt" mli_att="mli1att" li_att="li2att">
              <name>LI2_name</name>
              <value>LI2_value</value>
              <action>LI2_action</action>
         </Item>
         <Item so_att="soatt" mli_att="mli1att" li_att="li3att">
              <name>LI3_name</name>
              <value>LI3_value</value>
              <action>LI3_action</action>
         </Item>
         <Item so_att="soatt" mli_att="mli1att" li_att="li4att">
              <name>LI4_name</name>
              <value>LI4_value</value>
              <action>LI4_action</action>
         </Item>
         <Item so_att="soatt" mli_att="mli1att" li_att="li5att">
              <name>LI5_name</name>
              <value>LI5_value</value>
              <action>LI5_action</action>
         </Item>
    </CDM>
    The common idea is to split the XML in to pieces with attributes inheritance. I have created 3 Assign actions. the 1st one has the xquery for seperating the MLI nodes with the correct attribues:
    for $i in (1 to fn:count($body/MLI))
    return
    <Item so_att1 = "{ data($body/@so_att1) }"
    mli_att1 = "{ data($body/MLI[$i]/@mli_att1) }">
    for $name in $body/MLI[$i]/name
    return
    <name>{ data($name) }</name>
    for $value in $body/MLI[$i]/value
    return
    <value>{ data($value) }</value>
    for $action in $body/MLI[$i]/action
    return
    <action>{ data($action) }</action>
    </Item>
    And it is saved in variable MLI
    The 2nd one is similar to this and saves to variable LI while the 3rd assign concats the variables like this: fn:concat('<CDM>', $MLI, $LI, '</CDM>') and saves in new variable...
    My problem comes, when I run on server the proxy. It is echoing (of course, cause there is no routing) but the incoming message passes only from third assign, ignoring the first and the second... Any idea why this is happening? The xqueries while tested inside the XQuery editor, works like charm...
    Thank you in advance

    Not sure if this is what you mean, but if you want to store elements in a variable during your XQuery you can use the "let" command.
    This way you can use them during your Xquery but it doesn't replace the Assign or Replace action in your message flow.
    let $x := 1
    let $y := $x + 1

  • OSB 11g - problem in workshop

    Hello,
    I have a problem with new OSB 11g in my workshop - it doesn't start properly - log:
    !ENTRY com.bea.workshop.wls.core 1 2000 2011-01-07 12:10:36.178
    !MESSAGE Server watcher[Oracle WebLogic Server 11g v10.3 at localhost]:running Weblogic detected, validating...
    !ENTRY com.bea.workshop.wls.core 1 2000 2011-01-07 12:10:36.191
    !MESSAGE Cannot load com.bea.plateng.domain.DomainInfoHelper: java.lang.ClassNotFoundException: com.bea.plateng.domain.DomainInfoHelper
    !ENTRY com.bea.workshop.wls.core 1 2000 2011-01-07 12:10:36.192
    !MESSAGE Cannot load com.bea.plateng.domain.DomainInfoHelper: java.lang.ClassNotFoundException: com.bea.plateng.domain.DomainInfoHelper
    !ENTRY com.bea.workshop.wls.core 4 4 2011-01-07 12:10:39.647
    !MESSAGE Cannot establish connection to deployment manager.Anonymous attempt to get to a JNDI resource
    To avoid security lockout, Server watcher will NOT attempt to reconnect the server. If you change username/password, please restart Eclipse.
    !ENTRY com.bea.workshop.wls.core 4 4000 2011-01-07 12:10:39.748
    !MESSAGE Another server (or another process) is running on the same TCP/IP port '7011'.
    !ENTRY org.eclipse.wst.server.core 4 0 2011-01-07 12:10:40.175
    !MESSAGE Server Oracle WebLogic Server 11g v10.3 at localhost failed to start.
    ... workshop then thinks, that WLS didn't start, but in fact it is running on the background.
    (Nothing else is running on the port 7011 and I've also tried some else ports.)
    I've got: wls 1033, osb 11.1.1.3.0, workshop 10.3
    Thank you very much for any help.

    Windows 7 64bit I was expecting this answer. On windows 7, to start eclipse, right click on eclipse.exe and select "Run as Administrator" option
    Regards,
    Anuj

  • OSB: xquery as input to xquery

    Hi
    i have stored an xml as xquery. <customer><name>swa</name><name>neh</name></customer>
    i have written another xquery (named result.xquery) which takes input from above xml and produces result. ex: if (data($customer/name)='swa' then 'osb' else '')
    i am assigning customer.xquery to a variable CUSTOMER and applying result transformation.
    since my xml (customer.xquery) is static and reside within OSB only, can i pass it to result.xquery without assigning it to CUSTOMER.
    In short can I pass an xquery as an input to another xquery?
    p.s.: Issue may seem trivial, but in my case i need to get quite a lot static xmls in code and i am instructed not to use java callout.

    In short can I pass an xquery as an input to another xquery?No. You cannot do so.
    i am assigning customer.xquery to a variable CUSTOMER and applying result transformation.Actually when you are assigning a XQuery into variable then OSB internally executes the XQuery and assigns the output of XQuery to the variable. So your variable does not actually hold the reference of the XQuery rather it holds the output of XQuery which you are passing as input to another XQuery.
    You may consider storing mappings into DB and use result caching feature with JCA DB adapter BS to retrieve the mapping's value at runtime.
    Regards,
    Anuj

  • Xquery Problem for for takes really long time

    I am having problems with an issue using doing an xml xQuery from Oxygen to a dbxml database.
    I can't list the code because it is quite detailed and on a secure computer, but the concept is simple.
    I have an xquery that looks like this:
    Bunch of let statements
    <results>
    Let $y := "one"
    For $thing in $list_of_things
    More let statements
    Where ....
    Return
    Html and more embedded xquery expressions including for, where etc.
    </results>
    I run a query with $y := "one" as above and it takes 1.5 seconds.
    If I modify the query slightly by replacing the "let $y := "one" with an additional "for" it takes 250 seconds, though the results are the same as before.
    Why did it take so long?
    All I did was add the for which only has one item in it so it should do the same thing?!
    Modified Query
    Bunch of let statements
    <results>
    For $y in ("one")
    For $thing in $list_of_things
    More let statements
    Where ....
    Return
    Html and more embedded xquery expressions including for, where etc.
    </results>
    Thanks for any help anyone can offer, Curt

    Curt, perhaps you'd need to provide a bit more relevant detail and in simpler form in order to get a helpful answer. On the face of it, changing let to for in that position might have an impact simply because you are changing a simple variable assignment followed by a for clause to a nested for...for clause. Is your "one" value a dummy for demonstration purposes or the actual value in your code? On the face of it, it looks like for each loop of the first for, you'd be repeating the execution of all the subsequent code. Without more context it's difficult to judge what would happen exactly.
    I suspect that if it's XQuery you're needing help with you'll get more responses on a dedicated forum. For help with DBXML performance issues you're probably going to need to tell people about your indices and be more explicit about their relationship to your query, in order for them to understand the problem.
    If that's not helpful just review your code again and continue experimenting.
    Tim

  • OSB XQuery Issue

    Hi,
    I have an xml A containing 100 elements.
    I have an xml B containing 500 elements out of which 75 are mandatory while rest are optional.
    I am transforming from xml A to xml B using XQuery Transformation.
    While transforming, the mandatory ones in xml B are coming perfectly, but the optional ones are coming empty.
    For example:
    Incoming xml:
    <Name>
    <FirstName>John</FirstName>
    </Name>
    Expected Response:
    <NAME>
    <FNAME>John</FNAME>
    </NAME>
    If element <FirstName> is not present I get the empty node in my transformed xml.
    Eg.
    <NAME>
    <FNAME/>
    </NAME>
    Is there any way to avoid the empty node tag without specifically adding IF ELSE conditions.
    I am working on OSB 11.1.1.5
    Please help.
    Regards,
    Karthik

    Hi Karthik,
    There is no if/then/else in xquery, in xquery you use FLOWR.
    http://www.w3schools.com/xquery/xquery_flwor.asp
    <NAME>
    for $a in (/Name/FirstName)
    return
    <FNAME>data($a)</FNAME>
    </NAME>This will omit the FNAME if there is no FirstName...
    Note that I didn't verify the syntax, but I think you'll get the idea...
    Cheers,
    Vlad

  • OSB connection problem

    I am having problems with a particular client. I removed the host and tried to add it again. MKHOST does not complete "Info: waiting for host to update certification status..."
    enabled debug on the client and admin server . The server is reporting the following error:
    host hostname failed trust checks, component observiced on fd 9 - identity of host is suspect (OSB network security manager)
    This client used to work without any problems....
    Any ideas? there are no firewalls between the osb admin and client server...
    Regards

    date is in synch...
    client observiced log file:
    2012/01/03.15:11:51 Received request from supported client version 100300 for component obtool from host UUID=5a764f22-310e-102e-b8d9-dfce1af60819
    admin server observiced log file:
    2012/01/03.15:41:43 Received request from supported client version 100300 for component observiced from host hostname
    2012/01/03.15:41:43 host hostname failed trust checks, component observiced on fd 8 - identity of host is suspect (OSB network security manager)
    No more info....(the fd value changes, sometimes its 8,9 or 10)

  • OSB - XQuery - Sample Switch Case

    Hi,
    Can some one pls give me a sample XQ, with Switch Case statement in it, which [Syntax] works in OSB.
    Regards,
    Kaleem...

    I am really afraid that OSB 11g supports XQuery 1.0
    http://download.oracle.com/docs/cd/E21764_01/doc.1111/e15867/xquery.htm
    while the switch statement is introduced only in XQuery 1.1
    http://www.w3.org/TR/2009/WD-xquery-11-20091215/#id-switch
    for the time being, you will have to resort to a cascade of if - then - else :o(

Maybe you are looking for