Weblogic - backslashes in EL expressions

I'm working on deploying ADF 10.1.3.4 apps to WLS 10.3.3 and have found that any backslashes in the EL expressions cause errors. For example, it doesn't like one quite common EL expression on ADF tables to handle the empty condition: emptyText="#{bindings.ViewObj1.viewable ? '\No rows yet.\' : \'Access Denied.\'}"
Removing the backslashes does correct the error. But has anyone come up with a way to avoid having to do this?

Hi,
#{row.matchedYN eq 'Y' ? 'image/check.png' ; 'image/warning.png'}Should be
#{row.matchedYN eq 'Y' ? 'image/check.png' : 'image/warning.png'}-Arun

Similar Messages

  • Backslash in query expression in LS2 with oData

    Hi together,
    we just migrated a LS project to v2 and came across the following problem: A query to a service (attached to LS) fails, the query condition is 'IFB\i10600' (user name with domain). We get the error 'Bad Request - Error in query syntax' - during processing
    the backslash in the query is converted to a '/', so the complete service call is
    GET /ActiveDirectoryData.svc/Users('IFB/i10600') which fails with the above error.
    To make it clearer: The domain\username string is used as foreign key in several tables and then used in the service call.
    If I execute the query manually with ../Users('IFB%5Ci10600')  (backslash replaced with HTML equivalent) the query is execuded without error, BUT: How can I get the LS data service to do the same? (In LS1 this worked without problems.)
    Generally, LS2 treats these special characters correctly in it's oData calls, as far as I see in a simple test project; what's the difference with the service call here?
    Thanks and best regards
    Robert

    Hi Beth / Robert,
    We have the same problem with "\" and 'Bad Request - Error in query syntax'
    Fix would be very helpful.
    Thanks.

  • Error when using Weblogic Http PubSub

    Hi,
    I am using Weblogic 10.3 with Weblogic Http PubSub with JMS. Weblogic doesn't start if configuration file WEB-INF/weblogic.xml contains the following tag:
    <wls:container-descriptor>
         <wls:prefer-web-inf-classes>true</wls:prefer-web-inf-classes>
    </wls:container-descriptor>
    Here follows the stack trace:
    <16-mar-2010 16.40.31 CET> <Error> <HTTP Pubsub Server JMS support> <BEA-2152102> <Cannot initialize topic listener for JMS channel
    javax.jms.InvalidSelectorException: weblogic.messaging.kernel.InvalidExpressionException: Expression : "$002Freps$0030$002FsendImportCCData IS NOT NULL"
         at weblogic.jms.dispatcher.DispatcherAdapter.convertToJMSExceptionAndThrow(DispatcherAdapter.java:110)
         at weblogic.jms.dispatcher.DispatcherAdapter.dispatchSync(DispatcherAdapter.java:45)
         at weblogic.jms.client.JMSSession.consumerCreate(JMSSession.java:2914)
         at weblogic.jms.client.JMSSession.setupConsumer(JMSSession.java:2687)
         at weblogic.jms.client.JMSSession.createConsumer(JMSSession.java:2628)
         Truncated. see log file for complete stacktrace
    javax.jms.InvalidSelectorException: weblogic.messaging.kernel.InvalidExpressionException: Expression : "$002Freps$0030$002FsendImportCCData IS NOT NULL"
         at weblogic.jms.dispatcher.Request.handleThrowable(Request.java:87)
         at weblogic.jms.dispatcher.Request.getResult(Request.java:52)
         at weblogic.messaging.dispatcher.Request.wrappedFiniteStateMachine(Request.java:1124)
         at weblogic.messaging.dispatcher.DispatcherImpl.syncRequest(DispatcherImpl.java:184)
         at weblogic.messaging.dispatcher.DispatcherImpl.dispatchSync(DispatcherImpl.java:219)
         Truncated. see log file for complete stacktrace
    javax.jms.InvalidSelectorException: weblogic.messaging.kernel.InvalidExpressionException: Expression : "$002Freps$0030$002FsendImportCCData IS NOT NULL"
         at weblogic.jms.dispatcher.DispatcherAdapter.convertToJMSExceptionAndThrow(DispatcherAdapter.java:110)
         at weblogic.jms.dispatcher.DispatcherAdapter.dispatchSync(DispatcherAdapter.java:45)
         at weblogic.jms.frontend.FEConsumer.<init>(FEConsumer.java:259)
         at weblogic.jms.frontend.FESession$2.run(FESession.java:989)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
         Truncated. see log file for complete stacktrace
    javax.jms.InvalidSelectorException: weblogic.messaging.kernel.InvalidExpressionException: Expression : "$002Freps$0030$002FsendImportCCData IS NOT NULL"
         at weblogic.jms.dispatcher.Request.handleThrowable(Request.java:87)
         at weblogic.jms.dispatcher.Request.getResult(Request.java:52)
         at weblogic.messaging.dispatcher.Request.wrappedFiniteStateMachine(Request.java:1124)
         at weblogic.messaging.dispatcher.DispatcherImpl.syncRequest(DispatcherImpl.java:184)
         at weblogic.messaging.dispatcher.DispatcherImpl.dispatchSync(DispatcherImpl.java:219)
         Truncated. see log file for complete stacktrace
    javax.jms.InvalidSelectorException: weblogic.messaging.kernel.InvalidExpressionException: Expression : "$002Freps$0030$002FsendImportCCData IS NOT NULL"
         at weblogic.jms.backend.BETopicImpl.activateSubscriptionQueue(BETopicImpl.java:225)
         at weblogic.jms.backend.BETopicImpl.createConsumer(BETopicImpl.java:373)
         at weblogic.jms.backend.BESessionImpl.createBEConsumer(BESessionImpl.java:390)
         at weblogic.jms.backend.BESessionImpl.createConsumer(BESessionImpl.java:400)
         at weblogic.jms.backend.BESessionImpl.invoke(BESessionImpl.java:297)
         Truncated. see log file for complete stacktrace
    >
    <16-mar-2010 16.40.31 CET> <Error> <HTTP Pubsub Server> <BEA-2150029> <ControllerServlet initialization failed: Cannot create JMS ChannelManager [com.bea.httppubsub.jms.internal.JmsChannelManagerImpl].
    java.lang.RuntimeException: Cannot create JMS ChannelManager [com.bea.httppubsub.jms.internal.JmsChannelManagerImpl].
         at com.bea.httppubsub.internal.ChannelManagerFactoryImpl.createJmsChannelManager(ChannelManagerFactoryImpl.java:54)
         at com.bea.httppubsub.internal.ChannelManagerFactoryImpl.<init>(ChannelManagerFactoryImpl.java:27)
         at com.bea.httppubsub.internal.PubSubServerFactoryImpl.createPubSubServer(PubSubServerFactoryImpl.java:116)
         at com.bea.httppubsub.internal.PubSubServerFactoryImpl.createPubSubServer(PubSubServerFactoryImpl.java:60)
         at com.bea.httppubsub.servlet.ControllerServlet.init(ControllerServlet.java:171)
         Truncated. see log file for complete stacktrace
    java.lang.reflect.InvocationTargetException
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
         at com.bea.httppubsub.internal.ChannelManagerFactoryImpl.createJmsChannelManager(ChannelManagerFactoryImpl.java:51)
         Truncated. see log file for complete stacktrace
    java.lang.RuntimeException: [HTTP Pubsub Server JMS support:2152102]Cannot initialize topic listener for JMS channel
    javax.jms.InvalidSelectorException: weblogic.messaging.kernel.InvalidExpressionException: Expression : "$002Freps$0030$002FsendImportCCData IS NOT NULL"
         at weblogic.jms.dispatcher.DispatcherAdapter.convertToJMSExceptionAndThrow(DispatcherAdapter.java:110)
         at weblogic.jms.dispatcher.DispatcherAdapter.dispatchSync(DispatcherAdapter.java:45)
         at weblogic.jms.client.JMSSession.consumerCreate(JMSSession.java:2914)
         at weblogic.jms.client.JMSSession.setupConsumer(JMSSession.java:2687)
         at weblogic.jms.client.JMSSession.createConsumer(JMSSession.java:2628)
         at weblogic.jms.client.JMSSession.createConsumer(JMSSession.java:2617)
         at weblogic.jms.client.WLSessionImpl.createConsumer(WLSessionImpl.java:908)
         at com.bea.httppubsub.jms.internal.TopicListener.initialize(TopicListener.java:52)
         at com.bea.httppubsub.jms.internal.JmsChannelManagerImpl.initJmsTopicListeners(JmsChannelManagerImpl.java:68)
         at com.bea.httppubsub.jms.internal.JmsChannelManagerImpl.<init>(JmsChannelManagerImpl.java:37)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
         at com.bea.httppubsub.internal.ChannelManagerFactoryImpl.createJmsChannelManager(ChannelManagerFactoryImpl.java:51)
         at com.bea.httppubsub.internal.ChannelManagerFactoryImpl.<init>(ChannelManagerFactoryImpl.java:27)
         at com.bea.httppubsub.internal.PubSubServerFactoryImpl.createPubSubServer(PubSubServerFactoryImpl.java:116)
         at com.bea.httppubsub.internal.PubSubServerFactoryImpl.createPubSubServer(PubSubServerFactoryImpl.java:60)
         at com.bea.httppubsub.servlet.ControllerServlet.init(ControllerServlet.java:171)
         at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:283)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(Unknown Source)
         at weblogic.servlet.internal.StubSecurityHelper.createServlet(StubSecurityHelper.java:64)
         at weblogic.servlet.internal.StubLifecycleHelper.createOneInstance(StubLifecycleHelper.java:58)
         at weblogic.servlet.internal.StubLifecycleHelper.<init>(StubLifecycleHelper.java:48)
         at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:521)
         at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:1893)
         at weblogic.servlet.internal.WebAppServletContext.loadServletsOnStartup(WebAppServletContext.java:1870)
         at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1790)
         at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:2999)
         at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1371)
         at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:468)
         at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:204)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
         at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60)
         at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:200)
         at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:117)
         at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:204)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
         at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60)
         at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:27)
         at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:635)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
         at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:212)
         at weblogic.application.internal.EarDeployment.activate(EarDeployment.java:16)
         at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:162)
         at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:79)
         at weblogic.deploy.internal.targetserver.BasicDeployment.activate(BasicDeployment.java:184)
         at weblogic.deploy.internal.targetserver.BasicDeployment.activateFromServerLifecycle(BasicDeployment.java:361)
         at weblogic.management.deploy.internal.DeploymentAdapter$1.doActivate(DeploymentAdapter.java:51)
         at weblogic.management.deploy.internal.DeploymentAdapter.activate(DeploymentAdapter.java:196)
         at weblogic.management.deploy.internal.AppTransition$2.transitionApp(AppTransition.java:30)
         at weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps(ConfiguredDeployments.java:233)
         at weblogic.management.deploy.internal.ConfiguredDeployments.activate(ConfiguredDeployments.java:169)
         at weblogic.management.deploy.internal.ConfiguredDeployments.deploy(ConfiguredDeployments.java:123)
         at weblogic.management.deploy.internal.DeploymentServerService.resume(DeploymentServerService.java:173)
         at weblogic.management.deploy.internal.DeploymentServerService.start(DeploymentServerService.java:89)
         at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Caused by: javax.jms.InvalidSelectorException: weblogic.messaging.kernel.InvalidExpressionException: Expression : "$002Freps$0030$002FsendImportCCData IS NOT NULL"
         at weblogic.jms.dispatcher.Request.handleThrowable(Request.java:87)
         at weblogic.jms.dispatcher.Request.getResult(Request.java:52)
         at weblogic.messaging.dispatcher.Request.wrappedFiniteStateMachine(Request.java:1124)
         at weblogic.messaging.dispatcher.DispatcherImpl.syncRequest(DispatcherImpl.java:184)
         at weblogic.messaging.dispatcher.DispatcherImpl.dispatchSync(DispatcherImpl.java:219)
         at weblogic.jms.dispatcher.DispatcherAdapter.dispatchSync(DispatcherAdapter.java:43)
         ... 58 more
    Caused by: javax.jms.InvalidSelectorException: weblogic.messaging.kernel.InvalidExpressionException: Expression : "$002Freps$0030$002FsendImportCCData IS NOT NULL"
         at weblogic.jms.dispatcher.DispatcherAdapter.convertToJMSExceptionAndThrow(DispatcherAdapter.java:110)
         at weblogic.jms.dispatcher.DispatcherAdapter.dispatchSync(DispatcherAdapter.java:45)
         at weblogic.jms.frontend.FEConsumer.<init>(FEConsumer.java:259)
         at weblogic.jms.frontend.FESession$2.run(FESession.java:989)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
         at weblogic.security.service.SecurityManager.runAs(Unknown Source)
         at weblogic.jms.frontend.FESession.consumerCreate(FESession.java:985)
         at weblogic.jms.frontend.FESession.invoke(FESession.java:2931)
         at weblogic.messaging.dispatcher.Request.wrappedFiniteStateMachine(Request.java:961)
         ... 61 more
    Caused by: javax.jms.InvalidSelectorException: weblogic.messaging.kernel.InvalidExpressionException: Expression : "$002Freps$0030$002FsendImportCCData IS NOT NULL"
         at weblogic.jms.dispatcher.Request.handleThrowable(Request.java:87)
         at weblogic.jms.dispatcher.Request.getResult(Request.java:52)
         at weblogic.messaging.dispatcher.Request.wrappedFiniteStateMachine(Request.java:1124)
         at weblogic.messaging.dispatcher.DispatcherImpl.syncRequest(DispatcherImpl.java:184)
         at weblogic.messaging.dispatcher.DispatcherImpl.dispatchSync(DispatcherImpl.java:219)
         at weblogic.jms.dispatcher.DispatcherAdapter.dispatchSync(DispatcherAdapter.java:43)
         ... 68 more
    Caused by: javax.jms.InvalidSelectorException: weblogic.messaging.kernel.InvalidExpressionException: Expression : "$002Freps$0030$002FsendImportCCData IS NOT NULL"
         at weblogic.jms.backend.BETopicImpl.activateSubscriptionQueue(BETopicImpl.java:225)
         at weblogic.jms.backend.BETopicImpl.createConsumer(BETopicImpl.java:373)
         at weblogic.jms.backend.BESessionImpl.createBEConsumer(BESessionImpl.java:390)
         at weblogic.jms.backend.BESessionImpl.createConsumer(BESessionImpl.java:400)
         at weblogic.jms.backend.BESessionImpl.invoke(BESessionImpl.java:297)
         at weblogic.messaging.dispatcher.Request.wrappedFiniteStateMachine(Request.java:961)
         ... 71 more
    If I remove the tags above, everything works correctly. I cannot understand what is the problem.
    I am adding Weblogic Http PubSub to an existent application (so I do not know why tags have been inserted).
    Does anyone can help me understand this problem?
    Thanks in advance.
    Regards,
    Giuseppe

    Hi Giuseppe --
    I would open a service request with Oracle support for this.
    -steve-

  • Custom Tag not evaluating expression in attribute

    I have a custom tag that needs to take dynamic values in the attributes, but I can't seem to get the values "interpreted" correctly. I have the <rtexprvalue> tag set to "true" in my .tld file, which I thought was the only thing that was needed in order to accomplish what I am trying to do. However, that does not seem to be the case.
    I am using WebLogic (8.1.4) and their <netui> tags, along with JSTL tags (1.0).
    An example of what my code looks like is the following:
    <test:myTag id="1" idx="<netui:content value='{container.index}' />">
        <netui:select ... />
    </test:myTag>and
    <c:set var="myIdx" value="<netui:content value='{container.index}' />" />
    <test:myTag id="1" idx="<c:out value='${myIdx}' />">
        <netui:select ... />
    </test:myTag>Neither of the above approaches has worked. In my code for my Tag.java file, I get the literal string values of <netui:content value='{container.index}' /> and <c:out value='${myIdx}' />, respectively, in my idx property.
    Can someone give me any hints as to what I may be doing wrong?
    Thanks.

    Shouldnt that be
    <netui:content value='${container.index}' />Actually, weblogic does not use the '$' prefix before
    their expressions. Fine. Which in turn means weblogic has some custom expression evaluator.
    Note weblogic 8.1
    as a container doesnt implicitly supportexpressions
    and you have to build in that feature into yourtag
    library.Are you referring to the 'isELIgnored' attribute when
    you mentioned the above statement? If not, can you
    explain what you meant by "build that feature into
    your tag library"?
    It's like this - expression language is supported by default in all containers that implement the j2ee 1.4 spec (servlet 2.4/jsp 2.0). Additionally you should also declare your web application to adhere to the 2.4 standards (through the schema definition in web.xml). In applications that refer to the 2.3 dtd but are run on a 2.4 compliant container you can set the 'isELIgnored' attribute to false and use EL. This works because your container anyways supports it.
    If your container doesnt provide support for EL (outside the jstl tags) as is the case with weblogic 8.1, then you can still use expressions by using something like the [url http://jakarta.apache.org/commons/el/]apache common evaluator  package. The difference being that you will have to call the evaluator classes to evaluate the attribute.
    Are there any alternatives that I could use to
    accomplish what I am trying to do?Did the above answer your question?
    ram.

  • Javax.jms.InvalidSelectorException occurs when upgrade to weblogic 12c

    Recently, our team upgrade weblogic server from 11g to 12c,  some errors occur when start web application in weblogic domain.
    The error is related to message driven bean,  below is the part of  ejb-jar.xml definition:
      <message-driven id="message-driven_1">
          <description>Message Driven Bean</description>
          <display-name>Message Configuration (MDB)</display-name>
          <ejb-name>Logger</ejb-name>
          <ejb-class>com.logging.mdb.Logger</ejb-class>
          <messaging-type>javax.jms.MessageListener</messaging-type>
          <transaction-type>Container</transaction-type>
          <message-destination-type>javax.jms.Queue</message-destination-type>
          <activation-config>
                <activation-config-property>
                    <activation-config-property-name>messageSelector</activation-config-property-name>
                    <activation-config-property-value>DELIVERY='IMMEDIATE'</activation-config-property-value>
                </activation-config-property>
                <activation-config-property>
                    <activation-config-property-name>acknowledgeMode</activation-config-property-name>
                    <activation-config-property-value>Auto-acknowledge</activation-config-property-value>
                </activation-config-property>
                <activation-config-property>
                     <activation-config-property-name>destinationType</activation-config-property-name>
                     <activation-config-property-value>javax.jms.Queue</activation-config-property-value>
                </activation-config-property>
          </activation-config>
      </message-driven>
    When start application below errors show up:
    <Dec 18, 2013 6:24:05 AM PST> <Warning> <EJB> <SLC02PGO> <AdminServer> <[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'> <<anonymous>> <> <> <1387376645415> <BEA-010061> <The Message-Driven EJB Logger is unable to connect to the JMS destination edx/queue/logger. The Error was:
    javax.jms.InvalidSelectorException: weblogic.messaging.kernel.InvalidExpressionException: Expression : "DELIVERY='IMMEDIATE'"
    Nested exception: javax.jms.InvalidSelectorException: weblogic.messaging.kernel.InvalidExpressionException: Expression : "DELIVERY='IMMEDIATE'"
    Nested exception: javax.jms.InvalidSelectorException: weblogic.messaging.kernel.InvalidExpressionException: Expression : "DELIVERY='IMMEDIATE'"
    Nested exception: javax.jms.InvalidSelectorException: weblogic.messaging.kernel.InvalidExpressionException: Expression : "DELIVERY='IMMEDIATE'"
    Nested exception: javax.jms.InvalidSelectorException: weblogic.messaging.kernel.InvalidExpressionException: Expression : "DELIVERY='IMMEDIATE'"
    ####<Dec 18, 2013 6:24:15 AM PST> <Warning> <EJB> <SLC02PGO> <AdminServer> <[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'> <<anonymous>> <> <> <1387376655414> <BEA-010096> <The Message-Driven EJB MessageDispatcher is unable to connect to the JMS destination or bind to JCA resource adapter edx.queue.outbound. The onnection failed after 124 attempts. The MDB will attempt to reconnect/rebind every 10 seconds. This log message will repeat every 600 seconds until the condition clears.>
    It works well in weblogic 11g,   not sure whether there's any changes in weblgic 12c.
    I'm appreciate if there's someone can help me on this issue.
        <message-driven id="message-driven_1">
          <description>Message Driven Bean</description>
          <display-name>Message Configuration (MDB)</display-name>
          <ejb-name>Logger</ejb-name>
          <ejb-class>com.edocs.fs.logging.mdb.Logger</ejb-class>
          <messaging-type>javax.jms.MessageListener</messaging-type>
          <transaction-type>Container</transaction-type>
          <message-destination-type>javax.jms.Queue</message-destination-type>
          <activation-config>
            <activation-config-property>
              <activation-config-property-name>messageSelector</activation-config-property-name>
              <activation-config-property-value>DELIVERY='IMMEDIATE'</activation-config-property-value>
            </activation-config-property>
            <activation-config-property>
              <activation-config-property-name>acknowledgeMode</activation-config-property-name>
              <activation-config-property-value>Auto-acknowledge</activation-config-property-value>
            </activation-config-property>
            <activation-config-property>
              <activation-config-property-name>destinationType</activation-config-property-name>
              <activation-config-property-value>javax.jms.Queue</activation-config-property-value>
            </activation-config-property>
          </activation-config>
          <resource-ref id="ResRef_Logger_1">
            <res-ref-name>jdbc/LoggerDataSource</res-ref-name>
            <res-type>javax.sql.DataSource</res-type>
            <res-auth>Container</res-auth>
          </resource-ref>
        </message-driven>

    Hi,
    I debug the application, I found my @ViewScoped ManagedBeans, they're recreated after you click a button or select a item in combobox
    Here is a piece of code:
        @PostConstruct
        public void resolveEntity() {
            Object sEntity = FacesContext.getCurrentInstance().getExternalContext().getSessionMap().get("entity");
            entity = (BctTbOportunidade) sEntity;
             FacesContext.getCurrentInstance().getExternalContext().getSessionMap().remove("entity");
            if (entity == null) {
                entity = new BctTbOportunidade();
    I use @postConstruct to get a entity from another page in sessionMap(I set a item from a table and use this method to modify a entity in a other page).
    When I click a button or select a item in combobox in same page @PostConstruct method is called but values are lost. No Exceptions are thrown by server.
    I found a artice written by BalluC that some versions of jsf 2.1 has this behavior The BalusC Code: The benefits and pitfalls of @ViewScoped
    I already configured my web.xml to set false javax.faces.PARTIAL_STATE_SAVING 
    But this behavior continues.
    The jsf version deployed in my weblogic 12c is 2.1.7.

  • Creating a Global Role using weblogic.Admin command

    Hi,
    Does anyone have an example of creating a global role using the weblogic.Admin commands? I think I have to use the INVOKE command with the DefaultRoleMapper and createRole method, but I'm not quite sure what the rest of the syntax is.
    Thanks,
    Gabriel

    Gabriel,
    The following works for me:
    weblogic.Admin -url t3://localhost:80 -username weblogic -password weblogic INVOKE -mbean "Security:Name=myrealmDefaultRoleMapper" -method createRole "" "MyGlobalRole" "Grp(Administrators)" ""
    The null first parameter identifies this role as a global role.
    The second param is the name of the role.
    The third parameter is the policy expression. Here, I've mapped the role to the Administrators group. You can also map it to users or a combo of the two. For example, to map it to the "weblogic" user, use "Usr(weblogic)" as the policy expression. If you leave this parameter empty, the role will be created but will not be mapped to anything.
    I'm not sure what the fourth parameter is for. It's not defined in the RoleEditorMBean docs but not including it causes an error. I suspect it's a description field because WLS does not seem to care what you put there.
    HTH,
    Mike

  • To check the weblogic edition.

    Hi,
    Could anyone pls help me to find out the weblogic edition (stardard / enterprise / express). tried with java weblogic.version with verbose, displays the patch and verion,. no clue.
    BEA\weblogic92\server\bin>java weblogic.version -verbose
    WebLogic Server Temporary Patch for 8065523 Wed Oct 14 15:00:06 IST 2009
    WebLogic Temporary Patch for CR303287 Thu Feb 8 17:55:36 2007
    WebLogic Server 9.2 MP1 Sun Jan 7 00:56:31 EST 2007 883308
    Thanks
    Kishore.

    Hi all,
    Even I Couldn't get any information about the weblogic edition we are using. We are always bothered about the version while installing weblogic and which can be found through various commands.
    But I want to know which edition we use as there are different types of editions mentioned for weblogic even in the WEBLOGIC SITE.
    Can anyone please help with this query,
    Regards,
    Rahul.

  • Using Scriptlet expressions as attribute values in taglibs

    Hi,
              While calling a custom tag in a JSP page that has attributes set up to
              accept scriptlet expressions in the TLD, a space is required before and
              after the variable like in <abc:xyz attr1=<%= xyz %> />
              otherwise, the JSP page does not compile. Using Weblogic 5.1.0 SP5 on
              Windows NT.
              

    Runtime expression values work fine. Sounds like an unbalanced tag problem.
              Inproperly quoted strings?
              "Jason Southern" <[email protected]> wrote in message
              news:3c644246$[email protected]..
              >
              > I'm running WL6.1 SP1 on Windows 2000 and I cannot seem to get WebLogic to
              handle
              > runtime expression values for taglib attributes. I'm using a standard
              container
              > tag (no empty body) and I receive the following error:
              >
              > Parsing of JSP File '/file.jsp' failed:
              > no corresponding open tag for tag extension close: //[ null;
              >
              > I have the declared the the tag attribute in the TLD to allow for runtime
              expressions
              > in the TLD (<rtexprvalue>true</rtexprvalue>).
              >
              > Anyone else had this problem. Is this a known bug?
              >
              > "Suneel Parthasarathy" <[email protected]> wrote:
              > >Hi,
              > >While calling a custom tag in a JSP page that has attributes set up to
              > >accept scriptlet expressions in the TLD, a space is required before and
              > >after the variable like in <abc:xyz attr1=<%= xyz %> />
              > >otherwise, the JSP page does not compile. Using Weblogic 5.1.0 SP5 on
              > >Windows NT.
              > >
              > >
              >
              

  • WebLogic 9 and Antlr problem with JMS Messages

    Hi all,
    I'm facing a problem and your help would be very appreciated.
    We've got an EAR application deployed on a WebLogic 9.x. As we use Hibernate3, when we put it into WebLogic 10, we needed to add "antlr" library to our "weblogic-application.xml" as "prefer-application-packages" (This is because of the well-known error of ClassNotFoundException of the HqlToken class).
    The version of Antlr we have is 2.7.7, and works perfectly in WebLogic 10.
    Now, we want to have an EAR that can be installed in both WebLogic 9.x and 10. But we're getting a fatal exception when we want to create a JMS consumer with a JMS selector in WebLogic 9.x(this is for listening only for the message we need in the queue).
    So, in WebLogic 10 it works with "antlr" in the prefer-application-packages, but in WebLogic 9.x doesn't. And if we don't put it there, it works in WL 9 but not in WL 10.
    The best would be to have the library in the weblogic-application.xml so WebLogic put our library first in the classpath. But in WL 9 we've got this exception:
    javax.jms.InvalidSelectorException: weblogic.messaging.kernel.InvalidExpressionException: Expression : "invocationId = '124567585'"
         at weblogic.jms.dispatcher.DispatcherAdapter.convertToJMSExceptionAndThrow(DispatcherAdapter.java:110)
         at weblogic.jms.dispatcher.DispatcherAdapter.dispatchSync(DispatcherAdapter.java:45)
         at weblogic.jms.client.JMSSession.consumerCreate(JMSSession.java:2659)
         at weblogic.jms.client.JMSSession.setupConsumer(JMSSession.java:2432)
         at weblogic.jms.client.JMSSession.createConsumer(JMSSession.java:2379)
         at weblogic.jms.client.JMSSession.createConsumer(JMSSession.java:2359)
         at weblogic.jms.client.WLSessionImpl.createConsumer(WLSessionImpl.java:800)
         at crm.appl.cat.CatUtil.enviarMensajeSync(CatUtil.java:244)
         at crm.appl.cat.mar.CatMessageReceiver.receive(CatMessageReceiver.java:571)
         at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:176)
         at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:275)
         at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:133)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:225)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:127)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
         at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:496)
         at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:245)
         at crm.appl.cat.mar.CatServlet.service(CatServlet.java:108)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:225)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:127)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at crm.appl.cat.mar.CatFilter.doFilter(CatFilter.java:33)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3212)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:1983)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1890)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1344)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
    Caused by: javax.jms.InvalidSelectorException: weblogic.messaging.kernel.InvalidExpressionException: Expression : "invocationId = '124567585'"
         at weblogic.jms.dispatcher.Request.handleThrowable(Request.java:63)
         at weblogic.jms.dispatcher.Request.getResult(Request.java:51)
         at weblogic.messaging.dispatcher.Request.wrappedFiniteStateMachine(Request.java:895)
         at weblogic.messaging.dispatcher.DispatcherImpl.dispatchSync(DispatcherImpl.java:178)
         at weblogic.jms.dispatcher.DispatcherAdapter.dispatchSync(DispatcherAdapter.java:43)
         ... 35 more
    Caused by: javax.jms.InvalidSelectorException: weblogic.messaging.kernel.InvalidExpressionException: Expression : "invocationId = '124567585'"
         at weblogic.jms.dispatcher.DispatcherAdapter.convertToJMSExceptionAndThrow(DispatcherAdapter.java:110)
         at weblogic.jms.dispatcher.DispatcherAdapter.dispatchSync(DispatcherAdapter.java:45)
         at weblogic.jms.frontend.FEConsumer.<init>(FEConsumer.java:255)
         at weblogic.jms.frontend.FESession$2.run(FESession.java:966)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
         at weblogic.jms.frontend.FESession.consumerCreate(FESession.java:962)
         at weblogic.jms.frontend.FESession.invoke(FESession.java:2824)
         at weblogic.messaging.dispatcher.Request.wrappedFiniteStateMachine(Request.java:759)
         ... 37 more
    Caused by: javax.jms.InvalidSelectorException: weblogic.messaging.kernel.InvalidExpressionException: Expression : "invocationId = '124567585'"
         at weblogic.jms.dispatcher.Request.handleThrowable(Request.java:63)
         at weblogic.jms.dispatcher.Request.getResult(Request.java:51)
         at weblogic.messaging.dispatcher.Request.wrappedFiniteStateMachine(Request.java:895)
         at weblogic.messaging.dispatcher.DispatcherImpl.dispatchSync(DispatcherImpl.java:178)
         at weblogic.jms.dispatcher.DispatcherAdapter.dispatchSync(DispatcherAdapter.java:43)
         ... 44 more
    Caused by: javax.jms.InvalidSelectorException: weblogic.messaging.kernel.InvalidExpressionException: Expression : "invocationId = '124567585'"
         at weblogic.jms.backend.BEQueueImpl.createFilterExpression(BEQueueImpl.java:155)
         at weblogic.jms.backend.BEQueueImpl.createConsumer(BEQueueImpl.java:182)
         at weblogic.jms.backend.BESessionImpl.createBEConsumer(BESessionImpl.java:368)
         at weblogic.jms.backend.BESessionImpl.createConsumer(BESessionImpl.java:378)
         at weblogic.jms.backend.BESessionImpl.invoke(BESessionImpl.java:289)
         at weblogic.messaging.dispatcher.Request.wrappedFiniteStateMachine(Request.java:759)
         ... 46 more
    Check that "invocationId" is a JMS String Property that we're adding in the messages. Our same source code works perfect in WL 9 without "antlr" as an prefered application package. You know that in WL 9, the antlr library was bundled into the weblogic.jar, so WL has it in his System classpath.
    Someone has an idea how we can solve this? The final solution may be having 2 EARs (one for WL 9 and one for WL 10, with the only change of the weblogic-application.xml), but it's not a nice solution.
    Thank you a lot in advance.
    Ariel Cassan
    Argentina

    Hi all,
    I'm facing a problem and your help would be very appreciated.
    We've got an EAR application deployed on a WebLogic 9.x. As we use Hibernate3, when we put it into WebLogic 10, we needed to add "antlr" library to our "weblogic-application.xml" as "prefer-application-packages" (This is because of the well-known error of ClassNotFoundException of the HqlToken class).
    The version of Antlr we have is 2.7.7, and works perfectly in WebLogic 10.
    Now, we want to have an EAR that can be installed in both WebLogic 9.x and 10. But we're getting a fatal exception when we want to create a JMS consumer with a JMS selector in WebLogic 9.x(this is for listening only for the message we need in the queue).
    So, in WebLogic 10 it works with "antlr" in the prefer-application-packages, but in WebLogic 9.x doesn't. And if we don't put it there, it works in WL 9 but not in WL 10.
    The best would be to have the library in the weblogic-application.xml so WebLogic put our library first in the classpath. But in WL 9 we've got this exception:
    javax.jms.InvalidSelectorException: weblogic.messaging.kernel.InvalidExpressionException: Expression : "invocationId = '124567585'"
         at weblogic.jms.dispatcher.DispatcherAdapter.convertToJMSExceptionAndThrow(DispatcherAdapter.java:110)
         at weblogic.jms.dispatcher.DispatcherAdapter.dispatchSync(DispatcherAdapter.java:45)
         at weblogic.jms.client.JMSSession.consumerCreate(JMSSession.java:2659)
         at weblogic.jms.client.JMSSession.setupConsumer(JMSSession.java:2432)
         at weblogic.jms.client.JMSSession.createConsumer(JMSSession.java:2379)
         at weblogic.jms.client.JMSSession.createConsumer(JMSSession.java:2359)
         at weblogic.jms.client.WLSessionImpl.createConsumer(WLSessionImpl.java:800)
         at crm.appl.cat.CatUtil.enviarMensajeSync(CatUtil.java:244)
         at crm.appl.cat.mar.CatMessageReceiver.receive(CatMessageReceiver.java:571)
         at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:176)
         at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:275)
         at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:133)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:225)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:127)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
         at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:496)
         at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:245)
         at crm.appl.cat.mar.CatServlet.service(CatServlet.java:108)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:225)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:127)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at crm.appl.cat.mar.CatFilter.doFilter(CatFilter.java:33)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3212)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:1983)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1890)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1344)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
    Caused by: javax.jms.InvalidSelectorException: weblogic.messaging.kernel.InvalidExpressionException: Expression : "invocationId = '124567585'"
         at weblogic.jms.dispatcher.Request.handleThrowable(Request.java:63)
         at weblogic.jms.dispatcher.Request.getResult(Request.java:51)
         at weblogic.messaging.dispatcher.Request.wrappedFiniteStateMachine(Request.java:895)
         at weblogic.messaging.dispatcher.DispatcherImpl.dispatchSync(DispatcherImpl.java:178)
         at weblogic.jms.dispatcher.DispatcherAdapter.dispatchSync(DispatcherAdapter.java:43)
         ... 35 more
    Caused by: javax.jms.InvalidSelectorException: weblogic.messaging.kernel.InvalidExpressionException: Expression : "invocationId = '124567585'"
         at weblogic.jms.dispatcher.DispatcherAdapter.convertToJMSExceptionAndThrow(DispatcherAdapter.java:110)
         at weblogic.jms.dispatcher.DispatcherAdapter.dispatchSync(DispatcherAdapter.java:45)
         at weblogic.jms.frontend.FEConsumer.<init>(FEConsumer.java:255)
         at weblogic.jms.frontend.FESession$2.run(FESession.java:966)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
         at weblogic.jms.frontend.FESession.consumerCreate(FESession.java:962)
         at weblogic.jms.frontend.FESession.invoke(FESession.java:2824)
         at weblogic.messaging.dispatcher.Request.wrappedFiniteStateMachine(Request.java:759)
         ... 37 more
    Caused by: javax.jms.InvalidSelectorException: weblogic.messaging.kernel.InvalidExpressionException: Expression : "invocationId = '124567585'"
         at weblogic.jms.dispatcher.Request.handleThrowable(Request.java:63)
         at weblogic.jms.dispatcher.Request.getResult(Request.java:51)
         at weblogic.messaging.dispatcher.Request.wrappedFiniteStateMachine(Request.java:895)
         at weblogic.messaging.dispatcher.DispatcherImpl.dispatchSync(DispatcherImpl.java:178)
         at weblogic.jms.dispatcher.DispatcherAdapter.dispatchSync(DispatcherAdapter.java:43)
         ... 44 more
    Caused by: javax.jms.InvalidSelectorException: weblogic.messaging.kernel.InvalidExpressionException: Expression : "invocationId = '124567585'"
         at weblogic.jms.backend.BEQueueImpl.createFilterExpression(BEQueueImpl.java:155)
         at weblogic.jms.backend.BEQueueImpl.createConsumer(BEQueueImpl.java:182)
         at weblogic.jms.backend.BESessionImpl.createBEConsumer(BESessionImpl.java:368)
         at weblogic.jms.backend.BESessionImpl.createConsumer(BESessionImpl.java:378)
         at weblogic.jms.backend.BESessionImpl.invoke(BESessionImpl.java:289)
         at weblogic.messaging.dispatcher.Request.wrappedFiniteStateMachine(Request.java:759)
         ... 46 more
    Check that "invocationId" is a JMS String Property that we're adding in the messages. Our same source code works perfect in WL 9 without "antlr" as an prefered application package. You know that in WL 9, the antlr library was bundled into the weblogic.jar, so WL has it in his System classpath.
    Someone has an idea how we can solve this? The final solution may be having 2 EARs (one for WL 9 and one for WL 10, with the only change of the weblogic-application.xml), but it's not a nice solution.
    Thank you a lot in advance.
    Ariel Cassan
    Argentina

  • XML Message Body Selector in Automation

    Hi,
    I'm having some trouble implementing a XML Message Body Selector in an automated task. I'm running OSM 7.2.0.7 in a Unix environment and using Design Studio 7.2.1.
    I'm sendind in my request to an external system a request tthe following string: OSM-TaskName-%{CARTRIDGE_VERSION}
    <Request>
        <Header>
            <dueDate>20131128</dueDate>
            <application>OSM-MSS_Lookup-1.0.0.0.5</application>
        </Header>
    </Request>
    The response of MSS is:
    <Response>
        <Header>
            <dueDate>20131128</dueDate>
            <application>OSM-MSS_Lookup-1.0.0.0.5</application>
        </Header>
    In the selector I've tried different XPath expressions:
    Select:
    /*[local-name() ='Response']/*[local-name()='Header']/*[local-name()='application']/text()
    *[local-name() ='Responset']/*[local-name()='Header']/*[local-name()='application']/text()
    //*[local-name() ='Response']/*[local-name()='Header']/*[local-name()='application']/text()
    /*[local-name() ='Response']/*[local-name()='Header']/*[local-name()='application']
    *[local-name() ='Response']/*[local-name()='Header']/*[local-name()='application']
    //*[local-name() ='Response']/*[local-name()='Header']/*[local-name()='application']
    /Response/Header/application
    /Response/Header/application/text()
    Compare: OSM-MSS_Lookup-%{CARTRIDGE_VERSION}
    I keep getting the following error in the log file for the differente selectors:
    ####<Nov 28, 2013 10:34:31 AM CST> <Info> <oms> <hostname> <SOM_ManagedServer_1> <[ACTIVE] ExecuteThread: '3' for queue: 'weblogic.kernel.Default (self-tuning)'
    > <sceadmin> <BEA1-49AB960B7AE5258D5CC8> <0710a255d6bbb54d:-1d6ed94c:142960580fb:-8000-0000000000026363> <1385656471431> <BEA-000000> <api.e:
            namespace/version: SOM_Cartridge/1.0.0.0.5
            automator type: taskAutomator
            plugin JNDI name: MSS_Lookup.automatedtask.somprovisioning.MSS_LookupReceiverBean
            plugin class name: oracle.communications.ordermanagement.automation.plugin.XQueryReceiver
            run plugin as: oms-automation   receiver:
                    type: external
                    JMS source: sky/MSS/Product/WebServiceResponseQueue
                    message [property|body] selector: JMS_BEA_SELECT('xpath', '/*[local-name() ='Response']/*[local-name()='Header']/*[local-name()='application']')='OSM-MSS_Lookup-1.0.0.0.5'
    ####<Nov 28, 2013 10:34:31 AM CST> <Warning> <EJB> <hostname> <SOM_ManagedServer_1> <[ACTIVE] ExecuteThread: '7' for queue: 'weblogic.kernel.Default (self-tuning)'> <oms-automation> <> <0710a255d6bbb54d:-1d6ed94c:142960580fb:-8000-000000000002650a> <1385656471454> <BEA-010061> <The Message-Driven EJB: MSS_Lookup.automatedtask.somprovisioning.MSS_LookupReceiverBeanMDB is unable to connect to the JMS destination: sky/MSS/Product/WebServiceResponseQueue. The Error was:
    javax.jms.InvalidSelectorException: weblogic.messaging.kernel.InvalidExpressionException: Expression : "JMS_BEA_SELECT('xpath', '/*[local-name() ='Response']/*[local-name()='Header']/*[local-name()='application']')='OSM-MSS_Lookup-1.0.0.0.5'"
    Nested exception: javax.jms.InvalidSelectorException: weblogic.messaging.kernel.InvalidExpressionException: Expression : "JMS_BEA_SELECT('xpath', '/*[local-name() ='Response']/*[local-name()='Header']/*[local-name()='application']')='OSM-MSS_Lookup-1.0.0.0.5'"
    I would appreciate any help or ideas.
    Cheers

    Hi,
    Could you confirm on below:
    1 ) Are you using multiple automation plug-in external event receivers in the same automation task ?
    2 ) And are you having the default Correlation Message property set to 'JSMCorrelationID' in external event receiver?
    If your answer for the first question is No, they i would suggest to use Correlation XML Body as
    *[local-name() ='Response']/*[local-name()='Header']/*[local-name()='application']
    The value of the field(application) in request must match the value of the field in response, in your case it is matching. And you will be reading this correlation id in response processing xquery.
    Regards
    Srinivas

  • Error in the Logical dataservice for ODSI

    Hi Mike,
    I have created a Physical dataservice(calling function from database ) as sample.ds and Logical layer as SampleTest1.ds
    SampleTest1.ds : -
    xquery version "1.0" encoding "UTF-8";
    (::pragma xfl <x:xfl xmlns:x="urn:annotations.ld.bea.com"><creationDate>2010-11-09T12:43:51</creationDate></x:xfl> ::)
    declare namespace tra= "ld:Physical/sample";
    declare namespace tns="ld:Logical/REAFirmInfo/sampleTest1";
    (::pragma function <f:function kind="library" visibility="public" isPrimary="false" xmlns:f="urn:annotations.ld.bea.com"/>::)
    declare function tns:getTrueTradeName($busId as xs:integer) as xs:string ? {
    for $busname in tra:get_trade_name($busId)
    return
    $busname
    I am getting the following error.
    com.bea.dsp.das.exception.DASException: weblogic.xml.query.exceptions.XQueryStaticException: ld:Logical/REAFirmInfo/sampleTest1.ds, line 13, column 5: {bea-err}FUNC001: "{ld:Physical/sample}get_trade_name": unbound external function. Improper use of the user-defined SQL function {ld:Physical/sample}get_trade_name
         at com.bea.dsp.das.ejb.EJBClient.invokeOperation(EJBClient.java:160)
         at com.bea.dsp.das.DataAccessServiceImpl.invokeOperation(DataAccessServiceImpl.java:171)
         at com.bea.dsp.das.DataAccessServiceImpl.invoke(DataAccessServiceImpl.java:122)
         at com.bea.dsp.ide.xquery.views.test.QueryExecutor.invokeFunctionOrProcedure(QueryExecutor.java:113)
         at com.bea.dsp.ide.xquery.views.test.XQueryTestViewContent.getFunctionExecutionResult(XQueryTestView.java:1041)
         at com.bea.dsp.ide.xquery.views.test.XQueryTestViewContent.executeFunction(XQueryTestView.java:1176)
         at com.bea.dsp.ide.xquery.views.test.XQueryTestViewContent.widgetSelectedImpl(XQueryTestView.java:1866)
         at com.bea.dsp.ide.xquery.views.test.XQueryTestViewContent.access$300(XQueryTestView.java:174)
         at com.bea.dsp.ide.xquery.views.test.XQueryTestViewContent$3.run(XQueryTestView.java:1594)
         at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
         at com.bea.dsp.ide.xquery.views.test.XQueryTestViewContent.widgetSelectedBusy(XQueryTestView.java:1597)
         at com.bea.dsp.ide.xquery.views.test.XQueryTestViewContent.widgetSelected(XQueryTestView.java:1560)
         at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:227)
         at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
         at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
         at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3687)
         at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3298)
         at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2389)
         at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
         at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219)
         at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
         at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289)
         at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461)
         at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
         at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:106)
         at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:169)
         at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)
         at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)
         at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
         at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
         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:597)
         at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:508)
         at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
         at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
         at org.eclipse.equinox.launcher.Main.eclipse_main(Main.java:1148)
         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:597)
         at com.m7.installer.util.NitroxMain$1.run(NitroxMain.java:33)
         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:199)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
         at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
    Caused by: weblogic.xml.query.exceptions.XQueryStaticException: ld:Logical/REAFirmInfo/sampleTest1.ds, line 13, column 5: {bea-err}FUNC001: "{ld:Physical/sample}get_trade_name": unbound external function. Improper use of the user-defined SQL function {ld:Physical/sample}get_trade_name
         at weblogic.xml.query.compiler.FirstOrderExpression.codeGenImpl(FirstOrderExpression.java:539)
         at weblogic.xml.query.compiler.Expression.codeGenCommonImpl(Expression.java:553)
         at weblogic.xml.query.compiler.FirstOrderExpression.codeGenImpl(FirstOrderExpression.java:503)
         at weblogic.xml.query.compiler.Expression.codeGenCommonImpl(Expression.java:553)
         at weblogic.xml.query.compiler.QueryAssassinExpression.codeGenImpl(QueryAssassinExpression.java:61)
         at weblogic.xml.query.compiler.Expression.codeGenCommonImpl(Expression.java:553)
         at weblogic.xml.query.compiler.Expression.codeGen(Expression.java:545)
         at weblogic.xml.query.xdbcimpl.XqueryStatement.codeGen(XqueryStatement.java:314)
         at weblogic.xml.query.xdbcimpl.AbstractStatement.compile(AbstractStatement.java:285)
         at weblogic.xml.query.xdbcimpl.AbstractStatement.prepare(AbstractStatement.java:253)
         at weblogic.xml.query.xdbcimpl.XQueryPreparedStatementImpl.init(XQueryPreparedStatementImpl.java:77)
         at weblogic.xml.query.xdbcimpl.XQueryPreparedStatementImpl.<init>(XQueryPreparedStatementImpl.java:64)
         at weblogic.xml.query.xdbcimpl.XDBCConnection.prepareStatement(XDBCConnection.java:117)
         at com.bea.ld.server.XQuery.createPrototype(XQuery.java:64)
         at com.bea.ld.server.XQuery.<init>(XQuery.java:57)
         at com.bea.ld.server.XStatement.newInstance(XStatement.java:46)
         at com.bea.ld.server.QueryEngine.makeXQueryPlan(QueryEngine.java:79)
         at com.bea.ld.server.QueryEngine.makePlan(QueryEngine.java:56)
         at com.bea.ld.EJBRequestHandler.invokeQueryInternal(EJBRequestHandler.java:544)
         at com.bea.ld.EJBRequestHandler.invokeOperationInternal(EJBRequestHandler.java:478)
         at com.bea.ld.EJBRequestHandler.invokeOperation(EJBRequestHandler.java:323)
         at com.bea.ld.ServerBean.executeOperationStreaming(ServerBean.java:84)
         at com.bea.ld.Server_ydm4ie_EOImpl.executeOperationStreaming(Server_ydm4ie_EOImpl.java:496)
         at com.bea.ld.Server_ydm4ie_EOImpl_WLSkel.invoke(Unknown Source)
         at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:589)
         at weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef.java:230)
         at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:477)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
         at weblogic.security.service.SecurityManager.runAs(Unknown Source)
         at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:473)
         at weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.java:118)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Kindly help on this issue.

    since the function is defined in your db, it only makes sense in a query that gets data from you database
    the xquery for that would be something like ...
    for $business_row in BUSINESS_TABLE()
    where $business_row/BUS_ID = $mycode
    return
    get_trade_name( $business_row/BUS_ID )
    then ODSI can generate the sql ...
    select get_trade_name ( BUS_ID ) from BUSINESS_TABLE where BUS_ID = ?

  • External Resource JAR configuration in BPM Enterprise

    I have External resource(a JAR file) in my BPM Studio. This External JAR calls some web service and gets data. Everything is working fine when I run from BPM Studio with its in bulit Derby engine and all.
    The same BPM project I exported by using the 3rd option(Include Versionable libraries only - Recommended for publishing with Enterprise).
    I have configured BPM enterprise by using weblogic server and Oracle express as engine also. Deployed newly exported project. Everything works fine except getting following error while calling JAR which in turn call web services.
    I am getting following error in Engine.
    ===================================================================================
    The task could not be successfully executed. Reason: 'java.lang.NoClassDefFoundError: org/alfresco/sample/webservice/ContentReadAndWrite'. Caused by: org/alfresco/sample/webservice/ContentReadAndWrite fuego.lang.ComponentExecutionException: The task could not be successfully executed. Reason: 'java.lang.NoClassDefFoundError: org/alfresco/sample/webservice/ContentReadAndWrite'. at fuego.server.execution.EngineExecutionContext.invokeMethodAsCil(EngineExecutionContext.java:1094) at fuego.server.execution.EngineExecutionContext.runCil(EngineExecutionContext.java:1280) at fuego.server.execution.microactivity.ComponentExecutionMicroActivity.runCil(ComponentExecutionMicroActivity.java:126) at fuego.server.execution.microactivity.ComponentExecutionMicroActivity.execute(ComponentExecutionMicroActivity.java:84) at fuego.server.execution.microactivity.MicroActivityEngineExecutionHandler.executeActivity(MicroActivityEngineExecutionHandler.java:57) at fuego.server.execution.ImmediateActivity.execute(ImmediateActivity.java:42) at fuego.server.execution.DefaultEngineExecution$AtomicExecutionTA.runTransaction(DefaultEngineExecution.java:304) at fuego.transaction.TransactionAction.startNestedTransaction(TransactionAction.java:527) at fuego.transaction.TransactionAction.startTransaction(TransactionAction.java:548) at fuego.transaction.TransactionAction.start(TransactionAction.java:212) at fuego.server.execution.DefaultEngineExecution.executeImmediate(DefaultEngineExecution.java:123) at fuego.server.execution.DefaultEngineExecution.executeAutomaticWork(DefaultEngineExecution.java:62) at fuego.server.execution.EngineExecution.executeAutomaticWork(EngineExecution.java:42) at fuego.server.execution.ToDoItem.executeAutomaticWork(ToDoItem.java:251) at fuego.ejbengine.ItemExecutionBean$1.execute(ItemExecutionBean.java:212) at fuego.server.execution.DefaultEngineExecution$AtomicExecutionTA.runTransaction(DefaultEngineExecution.java:304) at fuego.transaction.TransactionAction.startBaseTransaction(TransactionAction.java:470) at fuego.transaction.TransactionAction.startTransaction(TransactionAction.java:551) at fuego.transaction.TransactionAction.start(TransactionAction.java:212) at fuego.server.execution.DefaultEngineExecution.executeImmediate(DefaultEngineExecution.java:123) at fuego.server.execution.EngineExecution.executeImmediate(EngineExecution.java:66) at fuego.ejbengine.ItemExecutionBean.processMessage(ItemExecutionBean.java:198) at fuego.ejbengine.ItemExecutionBean.onMessage(ItemExecutionBean.java:110) at weblogic.ejb.container.internal.MDListener.execute(MDListener.java:466) at weblogic.ejb.container.internal.MDListener.transactionalOnMessage(MDListener.java:371) at weblogic.ejb.container.internal.MDListener.onMessage(MDListener.java:327) at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:4547) at weblogic.jms.client.JMSSession.execute(JMSSession.java:4233) at weblogic.jms.client.JMSSession.executeMessage(JMSSession.java:3709) at weblogic.jms.client.JMSSession.access$000(JMSSession.java:114) at weblogic.jms.client.JMSSession$UseForRunnable.run(JMSSession.java:5058) at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:516) at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201) at weblogic.work.ExecuteThread.run(ExecuteThread.java:173) Caused by: java.lang.NoClassDefFoundError: org/alfresco/sample/webservice/ContentReadAndWrite at oracle.ExpenseReport.Default_1_0.Instance.CIL_checkCompanyPolicy1(Instance.xcdl) 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:597) at fuego.server.execution.EngineExecutionContext.invokeMethodAsCil(EngineExecutionContext.java:1085) ... 33 more
    ==================================================================================
    Did I missed configuring something in Enterprise? Any other ideas?

    Hi,
    You could either try marking the External Resource(s) with the Jar files as versionable or copy the Jar files to these directories:
    <Enterprise Home Directory>/enterprise/webapps/webconsole/WEB-INF/lib
    <Enterprise Home Directory>/enterprise/ext
    Dan

  • Problem using selector string in JMSn receiver

    Hi
    We are creating own JMS Queues in our code, and are using the message selector clause to distinguish between the messages.
    We are using Weblogic version 9.1.
    Although, this works when it is a standalone application (i.e when have two files to send and receive from the JMS Queue), but however the same logic fails when we integrate this with our existing code deployed on WebLogic.
    In our code, we initially receive messages from IBM MQ, before passing it onto the JMS Queue.
    On the receiver side, we use the selector clause to separate the messages.
    The code snippet is as below:
    Here we are doing the steps necessary to receive message from the weblogic queue. But we are getting exception at line createReceiver(this.queue, strQuery); The exception is in the file attached.
    ctx = getInitialContext(WEBLOGICURL);
    System.out.println("this.connectionFactoryString: \r" +
    this.connectionFactoryString);
    this.qconFactory = (QueueConnectionFactory) ctx.lookup(this.connectionFactoryString);
    System.out.println("this.qconFactory: \r" + this.qconFactory);
    this.qcon = this.qconFactory.createQueueConnection();
    System.out.println("this.qcon: \r" + this.qcon);
    this.qsession = this.qcon.createQueueSession(false,Session.AUTO_ACKNOWLEDGE);
    System.out.println("this.qsession: \r" + this.qsession);
    this.queue = (Queue) ctx.lookup(this.queueName);
    System.out.println("this.queue: \r" + this.queue);
    // Note find out whether we are getting this
    final String strQuery;
    strQuery = "JmsConductorID = '1234'";
    System.out.println(
    "strQuery in jmsReceive()of LTDSRequest.java: \r" + strQuery);
    this.qreceiver = this.qsession.createReceiver(this.queue, strQuery);
    System.out.println("Receiver created "+qreceiver);
    this.qreceiver.setMessageListener(this);
    this.qcon.start();
    javax.jms.InvalidSelectorException: weblogic.messaging.kernel.InvalidExpressionException: Expression : "JmsConductorID = '1234'"
    at weblogic.jms.dispatcher.DispatcherAdapter.convertToJMSExceptionAndThrow(DispatcherAdapter.java:110)
    at weblogic.jms.dispatcher.DispatcherAdapter.dispatchSync(DispatcherAdapter.java:45)
    at weblogic.jms.client.JMSSession.consumerCreate(JMSSession.java:2473)
    at weblogic.jms.client.JMSSession.createConsumer(JMSSession.java:2231)
    at weblogic.jms.client.JMSSession.createReceiver(JMSSession.java:2102)
    at weblogic.jms.client.WLSessionImpl.createReceiver(WLSessionImpl.java:866)
    at com.mycom.dep.myfunc.Request.init(Request.java:203)
    at com.mycom.dep.myfunc.Request.<init>(Request.java:151)
    at jrockit.reflect.NativeConstructorInvoker.newInstance([Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)
          at jrockit.reflect.InitialConstructorInvoker.newInstance([Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)
          at java.lang.reflect.Constructor.newInstance([Ljava.lang.Object;I)Ljava.lang.Object;(Unknown Source)
          at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:82)
          at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:78)
          at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:156)
          at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:683)
          at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:621)
          at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
          at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:245)
          at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:141)
          at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:242)
          at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:156)
          at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:246)
          at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:128)
          at org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:324)
          at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:97)
          at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:683)
    Please can someone help?
    Regards,
    Prasad                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    In SQL*Plus you SET DEFINE OFF like this:
    SQL> set define off
    SQL> select 'S&R' from dual;
    'S&
    S&R(can't help you with Toad)

  • Variable in regex replace pattern

    Hi,
    I need to use a variable in a regex replace pattern - how can I do it? Specifically, I need to pass arguments to a shell script that then uses that argument in a replace pattern:
    #!/bin/bash
    #$1 now holds the argument
    sed 's/searchpattern/replace_pattern_with_variable$1/g' file1 > file2
    when I run this, the replace pattern uses $1 as a literal string "$1" and not the variable value. How can I change this?
    Thanks!
    Ingo

    Hi Ingo,
       As Vid points out, the issue is that single quotes protect strings from shell interpretation. You need to have the dollar sign, '$', visible to the shell or it won't read what follows as a variable name. Using double quotes works because the shell "reads through" those.
       However, complex regular expressions can contain lots of characters that the shell interprets. These can be quoted individually by backslashes but the use of backslashes in regular expressions is complex enough without the addition of shell interpretation. I find it easiest to keep the single quotes and only expose the part of the string that the shell needs to interpret.
       The shell doesn't have a special string concatenation character. All you have to do is to put the strings beside each other with nothing in between and the shell will concatenate them. Therefore it's possible to write your example as:
    sed 's/searchpattern/replace_pattern_with_variable'${1}'/g' file1 > file2
    That is, one closes the single quote right before the variable and then resumes it immediately afterward. The shell will put these quoted strings together with the contents of the variable just as it would with double quotes but you still enjoy the protection of single quotes around the rest of the string!
    Gary
    ~~~~
       P.S. Perl's master plan (or what passes for one) is to take
       over the world like English did. Er, as English did...
          -- Larry Wall in <[email protected]>

  • Error trying to deploy a ODSI project

    Hi,
    I upgraded a ALDSP 2.5 code base to Oracle 10gR3 version of ODSI.
    I encountered errors ni the schemas for namespace , so i went back and check honour the schemas in the preference of IDE.
    So most of my editors errors went away , i tried to clean the project and build it...seemed to be fine.
    Now when i tried to deploy to a ALDSP Domain , i got the following error
    com.bea.dsp.management.exceptions.ManagementException: Deployment unit validation failed. Cause: Unexpected union member node kind: 4100 found in node: element SOME_ID { {http://www.w3.org/2001/XMLSchema}integer }
         at com.bea.dsp.management.session.impl.SessionMBeanImpl.validate(SessionMBeanImpl.java:407)
         at com.bea.dsp.management.session.impl.SessionMBeanImpl.deploy(SessionMBeanImpl.java:220)
         at com.bea.dsp.management.session.impl.SessionMBeanImpl.importJar(SessionMBeanImpl.java:182)
         at com.bea.dsp.management.session.impl.DataspaceSynchronizedSessionMBeanImpl.importJar(DataspaceSynchronizedSessionMBeanImpl.java:28)
         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:597)
         at com.bea.dsp.management.log.wrapper.LoggingWrapperFactory$ErrorLoggingInvocationHandler.invoke(LoggingWrapperFactory.java:55)
         at $Proxy49.importJar(Unknown Source)
         at com.bea.dsp.management.session.impl.SecureSessionMBeanImpl.importJar(SecureSessionMBeanImpl.java:35)
         at com.bea.dsp.management.session.impl.BroadcastingSessionMBeanImpl.importJar(BroadcastingSessionMBeanImpl.java:37)
         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:597)
         at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:93)
         at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:27)
         at com.sun.jmx.mbeanserver.MBeanIntrospector.invokeM(MBeanIntrospector.java:208)
         at com.sun.jmx.mbeanserver.PerInterface.invoke(PerInterface.java:120)
         at com.sun.jmx.mbeanserver.MBeanSupport.invoke(MBeanSupport.java:262)
         at javax.management.StandardMBean.invoke(StandardMBean.java:391)
         at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)
         at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)
         at weblogic.management.jmx.mbeanserver.WLSMBeanServerInterceptorBase$16.run(WLSMBeanServerInterceptorBase.java:447)
         at weblogic.management.jmx.mbeanserver.WLSMBeanServerInterceptorBase.invoke(WLSMBeanServerInterceptorBase.java:445)
         at weblogic.management.mbeanservers.internal.SecurityInterceptor.invoke(SecurityInterceptor.java:443)
         at weblogic.management.mbeanservers.internal.AuthenticatedSubjectInterceptor$10$1.run(AuthenticatedSubjectInterceptor.java:582)
         at weblogic.management.mbeanservers.internal.AuthenticatedSubjectInterceptor$10.run(AuthenticatedSubjectInterceptor.java:580)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
         at weblogic.management.mbeanservers.internal.AuthenticatedSubjectInterceptor.invoke(AuthenticatedSubjectInterceptor.java:573)
         at weblogic.management.jmx.mbeanserver.WLSMBeanServer.invoke(WLSMBeanServer.java:307)
         at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1426)
         at javax.management.remote.rmi.RMIConnectionImpl.access$200(RMIConnectionImpl.java:72)
         at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1264)
         at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1366)
         at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:788)
         at javax.management.remote.rmi.RMIConnectionImpl_WLSkel.invoke(Unknown Source)
         at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:589)
         at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:477)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
         at weblogic.security.service.SecurityManager.runAs(Unknown Source)
         at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:473)
         at weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.java:118)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Caused by: java.lang.IllegalStateException: Unexpected union member node kind: 4100 found in node: element SOME_ID { {http://www.w3.org/2001/XMLSchema}integer }
         at weblogic.xml.query.types.DataTypeVisitor.unwrapUnionMember(DataTypeVisitor.java:270)
         at weblogic.xml.query.types.DataTypeVisitor.unwrapAlt(DataTypeVisitor.java:277)
         at weblogic.xml.query.types.DataTypeVisitor.unwrapUnionMember(DataTypeVisitor.java:267)
         at weblogic.xml.query.types.DataTypeVisitor.extractSimpleContentFromSequenceItem(DataTypeVisitor.java:192)
         at weblogic.xml.query.types.DataTypeVisitor.extractSimpleContentFromSequence(DataTypeVisitor.java:147)
         at weblogic.xml.query.types.DataTypeVisitor.extractSimpleContentFromSequenceItem(DataTypeVisitor.java:163)
         at weblogic.xml.query.types.DataTypeVisitor.extractSimpleContentFromSequence(DataTypeVisitor.java:147)
         at weblogic.xml.query.types.DataTypeVisitor.extractSimpleContentFromSequenceItem(DataTypeVisitor.java:163)
         at weblogic.xml.query.types.DataTypeVisitor.extractSimpleContentFromSequence(DataTypeVisitor.java:147)
         at weblogic.xml.query.types.DataTypeVisitor.extractSimpleContentFromSequenceItem(DataTypeVisitor.java:163)
         at weblogic.xml.query.types.DataTypeVisitor.extractSimpleContentFromSequence(DataTypeVisitor.java:147)
         at weblogic.xml.query.types.DataTypeVisitor.extractSimpleContentFromSequenceItem(DataTypeVisitor.java:163)
         at weblogic.xml.query.types.DataTypeVisitor.extractSimpleContentFromSequence(DataTypeVisitor.java:147)
         at weblogic.xml.query.types.DataTypeVisitor.extractSimpleContentFromSequenceItem(DataTypeVisitor.java:163)
         at weblogic.xml.query.types.DataTypeVisitor.extractSimpleContentFromSequence(DataTypeVisitor.java:147)
         at weblogic.xml.query.types.DataTypeVisitor.extractSimpleContentFromSequenceItem(DataTypeVisitor.java:163)
         at weblogic.xml.query.types.DataTypeVisitor.extractSimpleContentFromSequence(DataTypeVisitor.java:147)
         at weblogic.xml.query.types.DataTypeVisitor.extractSimpleContentFromSequenceItem(DataTypeVisitor.java:163)
         at weblogic.xml.query.types.DataTypeVisitor.extractSimpleContentFromSequence(DataTypeVisitor.java:147)
         at weblogic.xml.query.types.DataTypeVisitor.extractSimpleContentFromSequenceItem(DataTypeVisitor.java:163)
         at weblogic.xml.query.types.DataTypeVisitor.extractSimpleContentFromSequence(DataTypeVisitor.java:147)
         at weblogic.xml.query.types.DataTypeVisitor.extractSimpleContentFromSequenceItem(DataTypeVisitor.java:163)
         at weblogic.xml.query.types.DataTypeVisitor.extractSimpleContentFromSequence(DataTypeVisitor.java:147)
         at weblogic.xml.query.types.DataTypeVisitor.extractSimpleContentFromSequenceItem(DataTypeVisitor.java:163)
         at weblogic.xml.query.types.DataTypeVisitor.extractSimpleContentFromSequence(DataTypeVisitor.java:147)
         at weblogic.xml.query.types.DataTypeVisitor.extractSimpleContentFromSequenceItem(DataTypeVisitor.java:163)
         at weblogic.xml.query.types.DataTypeVisitor.extractSimpleContentFromSequence(DataTypeVisitor.java:147)
         at weblogic.xml.query.types.DataTypeVisitor.extractSimpleContentFromSequenceItem(DataTypeVisitor.java:163)
         at weblogic.xml.query.types.DataTypeVisitor.extractSimpleContentFromSequence(DataTypeVisitor.java:147)
         at weblogic.xml.query.types.DataTypeVisitor.extractSimpleContentFromSequenceItem(DataTypeVisitor.java:163)
         at weblogic.xml.query.types.DataTypeVisitor.extractSimpleContentFromSequence(DataTypeVisitor.java:147)
         at weblogic.xml.query.types.DataTypeVisitor.extractSimpleContentFromSequenceItem(DataTypeVisitor.java:163)
         at weblogic.xml.query.types.DataTypeVisitor.extractSimpleContentFromSequence(DataTypeVisitor.java:147)
         at weblogic.xml.query.types.DataTypeVisitor.extractSimpleContentFromSequenceItem(DataTypeVisitor.java:163)
         at weblogic.xml.query.types.DataTypeVisitor.extractSimpleContentFromSequence(DataTypeVisitor.java:147)
         at weblogic.xml.query.types.DataTypeVisitor.extractSimpleContentFromSequenceItem(DataTypeVisitor.java:163)
         at weblogic.xml.query.types.DataTypeVisitor.extractSimpleContentFromSequence(DataTypeVisitor.java:147)
         at weblogic.xml.query.types.DataTypeVisitor.extractSimpleContentFromSequenceItem(DataTypeVisitor.java:163)
         at weblogic.xml.query.types.DataTypeVisitor.extractSimpleContentFromSequence(DataTypeVisitor.java:147)
         at weblogic.xml.query.types.DataTypeVisitor.visit(DataTypeVisitor.java:125)
         at weblogic.xml.query.types.XQueryTypeElementNode.visit(XQueryTypeElementNode.java:96)
         at weblogic.xml.query.types.XQueryTypeNode.visit(XQueryTypeNode.java:613)
         at weblogic.xml.query.types.XQueryType.visit(XQueryType.java:1598)
         at weblogic.xml.query.types.PolymorphicFunctions$Data.typeCheck(PolymorphicFunctions.java:374)
         at weblogic.xml.query.types.PolymorphicFunctions$LazyProxy.typeCheck(PolymorphicFunctions.java:590)
         at weblogic.xml.query.compiler.FirstOrderExpression.typeCheckNoCache(FirstOrderExpression.java:275)
         at weblogic.xml.query.compiler.Expression.typeCheck(Expression.java:329)
         at weblogic.xml.query.compiler.ConvertSimpleOperandExpression.typeCheckNoCache(ConvertSimpleOperandExpression.java:109)
         at weblogic.xml.query.compiler.Expression.typeCheck(Expression.java:329)
         at weblogic.xml.query.compiler.TypeMatchExpression.typeCheckNoCache(TypeMatchExpression.java:134)
         at weblogic.xml.query.compiler.Expression.typeCheck(Expression.java:329)
         at weblogic.xml.query.compiler.FirstOrderExpression.typeCheckNoCache(FirstOrderExpression.java:269)
         at weblogic.xml.query.compiler.Expression.typeCheck(Expression.java:329)
         at weblogic.xml.query.compiler.ForLetVariable.typeCheckNoCache(ForLetVariable.java:131)
         at weblogic.xml.query.compiler.Expression.typeCheck(Expression.java:329)
         at weblogic.xml.query.compiler.GeneralFLWGDORExpression.typeCheckClauseList(GeneralFLWGDORExpression.java:416)
         at weblogic.xml.query.compiler.GeneralFLWGDORExpression.typeCheckNoCache(GeneralFLWGDORExpression.java:400)
         at weblogic.xml.query.compiler.Expression.typeCheck(Expression.java:329)
         at weblogic.xml.query.compiler.NodeConstructor.typeCheckNoCache(NodeConstructor.java:276)
         at weblogic.xml.query.compiler.Expression.typeCheck(Expression.java:329)
         at weblogic.xml.query.compiler.NodeConstructor.typeCheckNoCache(NodeConstructor.java:276)
         at weblogic.xml.query.compiler.Expression.typeCheck(Expression.java:329)
         at weblogic.xml.query.compiler.TypeMatchExpression.typeCheckNoCache(TypeMatchExpression.java:134)
         at weblogic.xml.query.compiler.Expression.typeCheck(Expression.java:329)
         at weblogic.xml.query.compiler.TypeChecker.typeCheck(TypeChecker.java:72)
         at weblogic.xml.query.compiler.TypeChecker.typeCheck(TypeChecker.java:99)
         at com.bea.dsp.context.load.Loader.typeCheckOperators(Loader.java:1248)
         at com.bea.dsp.context.load.Loader.loadNormalizedFunctions(Loader.java:1174)
         at com.bea.dsp.context.load.Loader.load(Loader.java:341)
         at com.bea.ld.context.ApplicationContext.loadFunctionCollection(ApplicationContext.java:584)
         at com.bea.dsp.management.validation.common.DataSpaceBuilder.buildFunctionCollection(DataSpaceBuilder.java:316)
         at com.bea.dsp.management.validation.common.DataSpaceBuilder.buildFunctionCollections(DataSpaceBuilder.java:292)
         at com.bea.dsp.management.validation.common.DataSpaceBuilder.build(DataSpaceBuilder.java:224)
         at com.bea.dsp.management.validation.common.DataSpaceBuilder.build(DataSpaceBuilder.java:172)
         at com.bea.dsp.management.validation.ValidationService.validate(ValidationService.java:31)
         at com.bea.dsp.management.session.impl.SessionMBeanImpl.validate(SessionMBeanImpl.java:403)
         ... 45 more
    Error occurred trying to deploy dataspace Sample_DataSpace to server Oracle WebLogic Server v10.3 at localhost
    I even tried to export an DataSpace Artifacts jar & tried to deploy in odsi console instead of IDE.
    I got same problem in the console.
    Deployment unit validation failed. Cause: Unexpected union member node kind: 4100 found in node: element SOME_ID { {http://www.w3.org/2001/XMLSchema}integer }
    Not sure if i am missing anything.
    Any help appreciated.
    Thanks
    Karthik
    Edited by: karpra on Jul 29, 2009 11:43 AM
    Edited by: karpra on Jul 29, 2009 11:46 AM

    I figured out the problem
    I was trying to join two tables one table A has a field some_id as integer & other table B has a field as decimal.
    The code was like this
    for $A in tableA
    for $B in tableB
    where $A/some_id = $B/some_id.
    Explicit casting was not done in the code in ALDSP 2.5
    The fixed code looked like this
    for $A in tableA
    for $B in tableB
    where $A/some_id = xs:integer($B/some_id)
    This kind of eliminated the union member 4100 issue and i was able to navigate to the deployment process.
    Though to figure out the problem i had to use trial and error methodology over 45 *.ds files and narrowed down to one file having problems.
    Thanks
    Karthik

Maybe you are looking for

  • ADF independent transactions

    Hi all, I'm trying to implement independent transactions in JSF/ADF. At the next lines I'll try to explain the process that I have followed: - First of all we know there are two ways to obtain independent transactions (e.g. different executions of th

  • Can't install a trial version of RoboHelp 11.

    There's always an error at the Initializing stage. It tells me to restart and turn off firewalls, etc., but I can't turn off Windows Defender.

  • How to enter non-ASCII symbols in a JTextArea

    A user asked me a question today that I have been unable to answer from a Google search or review of the Java documentation. If an application has a JTextArea and the user operating an American-style keyboard wishes to enter a non-ASCII character (a

  • CLIENT_SEND_FAILED HTTP ERROR 500 Internal Server Error

    Hello Experts,     I have a scenario from Proxy->SOAP.  I am facing the below error.  I have many other Scenarios from Proxy -> SOAP all of them are working fine except this. I am using NW07_06_REL With SP 06 <?xml version="1.0"; encoding="UTF-8" sta

  • Pictures or menus are cutting in a middle of screen in Ipod 30Gb??

    When I have charging the upload vs 7.00 of Apple site, before buy it, my Ipod 30Gb show the sceen with a slow lateral move toward left? Imposible to see pictures normally, because there are cutting in two parts; I reload it completly, but the problem