Skip to Main Content

Integration

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Oracle 11g SOA Composite application failing to run when invoked by PowerShell script.

2734595Mar 14 2017 — edited Mar 28 2017

I am getting an error with .ps1 (PowerShell) script that is designed to invoke an Oracle 11g (11.1.1.7) One-Way (async.persist) SOA Composite application.

Note:  This job is already deployed to the Enterprise Manager and when "tested" it works fine - but it throws errors when I try to run the SOA application via a PowerShell script.  I need to kick-off the job via .ps1 script because my company's Enterprise Scheduler needs to target that in order to invoke (unable to target it directly).

.ps1 script logic:

#Requires -version 2.0

$error.clear()

$URI="http://WN04CC.amer.qahomedepot.com:8001/soa-infra/services/ImagingApps/UmRmViewReport/bpelprocess_client_ep?WSDL"

$Proxy=New-WebServiceProxy -uri $URI

$Proxy.process('UMRM')

return $error.Count

$x = $host.UI.RawUI.ReadKey("NoEcho,IncludeKeyDown")

.ps1 script error:

Cannot convert argument "process1", with value: "ABUMRM", for "process" to type "Microsoft.PowerShell.Command

s.NewWebserviceProxy.AutogeneratedTypes.WebServiceProxy1ort_bpelprocess_client_ep_WSDL.process": "Cannot

convert the "ABUMRM" value of type "System.String" to type "Microsoft.PowerShell.Commands.NewWebserviceProxy.

AutogeneratedTypes.WebServiceProxy1ort_bpelprocess_client_ep_WSDL.process"."

At H:\MaestroScripts\UMRmViewReport.ps1:5 char:1

+ $Proxy.process('ABUMRM')

+ ~~~~~~~~~~~~~~~~~~~~~~~~

    + CategoryInfo          : NotSpecified: (:) [], MethodException

    + FullyQualifiedErrorId : MethodArgumentConversionInvalidCastArgument

1

Error in soa.out log that correlates to this:

Message Level

1

Composite Name

UmRmViewReport

Relationship ID

0

Component

soa_server1

Module

  • oracle.integration.platform.blocks.soap
HostWN04CC
Host IP Address
  1. 172.20.167.204
User<anonymous>
Thread ID[ACTIVE].ExecuteThread: '18' for queue: 'weblogic.kernel.Default (self-tuning)'
ECIDb20c57bebeab828f:2459c541:15ac911249f:-7ffd-0000000000002e63
MessageError during retrieval of test page or composite resource
Supplemental Detail
  • oracle.fabric.common.FabricException: Failed to concatanate the following 2 urls: home= "null" and relative="SCA-INF/classes".: no protocol: SCA-INF/classes
    at oracle.fabric.common.metadata.MetadataManagerImpl.resolve(MetadataManagerImpl.java:341)
    at oracle.fabric.composite.model.CompositeModel.getClassLoaderFiles(CompositeModel.java:575)
    at oracle.fabric.composite.model.CompositeModel.getCompositeClassloader(CompositeModel.java:278)
    at oracle.integration.platform.blocks.soap.FabricProviderServlet.doGet(FabricProviderServlet.java:340)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:301)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:119)
    at java.security.AccessController.doPrivileged(Native Method)
    at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:324)
    at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:460)
    at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:103)
    at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:171)
    at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:163)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3730)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3696)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2273)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2179)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1490)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
    Caused by: java.net.MalformedURLException: no protocol: SCA-INF/classes
    at java.net.URL.<init>(URL.java:585)
    at java.net.URL.<init>(URL.java:482)
    at oracle.fabric.common.metadata.MetadataManagerImpl.resolve(MetadataManagerImpl.java:338)
    ... 29 more

Strangely there is another report job (which is what the above mentioned SOA composite application is) that works just fine using the same PowerShell script - aside from the WSDL URI path in the script above ... obviously.


If anyone can shed light on what is causing this job to fail when being invoked from the .ps1 script mentioned above ... I would greatly appreciate it.

Kind regards.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 25 2017
Added on Mar 14 2017
3 comments
563 views