1 Reply Latest reply: Dec 5, 2012 4:33 AM by 977884 RSS

    Remote Server - WLST Deployment adapter error

    977884
      Hi everyone.

      I have a issue I hope you can help with.

      The task: To use a Python script to create a FTP Adapter / DbAdapter connection to a remote server.

      The problem: Script works fine with WebLogic working on localhost but gives <b>error with any remote server including Virtual Machine</b>

      The area of code concerned:

      FTPappPath=get('/AppDeployments/FtpAdapter/PlanPath')
                print(FTPplanPath)
                FTPplanPath=get('/AppDeployments/FtpAdapter/SourcePath')
                print(FTPsrcPath)
                print '--------Start loadApplication-------'
                myPlan=loadApplication(FTPsrcPath, FTPplanPath)

      When deploying to any server except localhost, it fails at the last line in the above.. "loadApplication" . I have checked and the FTPplanPath and FTPappPath are correct when looking at the print statement.

      The error:

      java.io.IOException: Exception in AppMerge flows' progression
      at weblogic.deploy.api.internal.utils.AppMerger.getMergedApp(AppMerger.j
      ava:70)
      at weblogic.deploy.api.model.internal.WebLogicDeployableObjectFactoryImp
      l.createDeployableObject(WebLogicDeployableObjectFactoryImpl.java:181)
      at weblogic.deploy.api.model.internal.WebLogicDeployableObjectFactoryImp
      l.createDeployableObject(WebLogicDeployableObjectFactoryImpl.java:163)
      at weblogic.deploy.api.tools.SessionHelper.initialize(SessionHelper.java
      :727)
      at weblogic.deploy.api.tools.SessionHelper.initializeConfiguration(Sessi
      onHelper.java:556)
      at weblogic.deploy.api.tools.SessionHelper.initializeConfiguration(Sessi
      onHelper.java:544)
      at weblogic.deploy.api.tools.SessionHelper.initializeConfiguration(Sessi
      onHelper.java:627)
      at weblogic.deploy.api.tools.SessionHelper.initializeConfiguration(Sessi
      onHelper.java:608)
      at weblogic.management.scripting.JSR88DeployHandler.loadApplication(JSR8
      8DeployHandler.java:173)
      at weblogic.management.scripting.WLScriptContext.loadApplication(WLScrip
      tContext.java:787)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
      java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.python.core.PyReflectedFunction.__call__(Unknown Source)
      at org.python.core.PyMethod.__call__(Unknown Source)
      at org.python.core.PyObject.__call__(Unknown Source)
      at org.python.core.PyObject.invoke(Unknown Source)
      at org.python.pycode._pyx16.loadApplication$11(<iostream>:290)
      at org.python.pycode._pyx16.call_function(<iostream>)
      at org.python.core.PyTableCode.call(Unknown Source)
      at org.python.core.PyTableCode.call(Unknown Source)
      at org.python.core.PyTableCode.call(Unknown Source)
      at org.python.core.PyFunction.__call__(Unknown Source)
      at org.python.pycode._pyx15.createFTPAdapter$2(C:\Users\xxx\Desktop
      \NEW xx SCRIPTS\FTPAdapterScript - Manual\CreateFtpAdapter.py:34)
      at org.python.pycode._pyx15.call_function(C:\Users\xxx\Desktop\NEW
      xx SCRIPTS\FTPAdapterScript - Manual\CreateFtpAdapter.py)
      at org.python.core.PyTableCode.call(Unknown Source)
      at org.python.core.PyTableCode.call(Unknown Source)
      at org.python.core.PyFunction.__call__(Unknown Source)
      at org.python.pycode._pyx15.main$3(C:\Users\xxx\Desktop\NEW xx SCRI
      PTS\FTPAdapterScript - Manual\CreateFtpAdapter.py:64)
      at org.python.pycode._pyx15.call_function(C:\Users\xxx\Desktop\NEW
      xx SCRIPTS\FTPAdapterScript - Manual\CreateFtpAdapter.py)
      at org.python.core.PyTableCode.call(Unknown Source)
      at org.python.core.PyTableCode.call(Unknown Source)
      at org.python.core.PyFunction.__call__(Unknown Source)
      at org.python.pycode._pyx15.f$0(C:\Users\xxx\Desktop\NEW xx SCRIPTS
      \FTPAdapterScript - Manual\CreateFtpAdapter.py:68)
      at org.python.pycode._pyx15.call_function(C:\Users\daljxxxbain\Desktop\NEW
      xx SCRIPTS\FTPAdapterScript - Manual\CreateFtpAdapter.py)
      at org.python.core.PyTableCode.call(Unknown Source)
      at org.python.core.PyCode.call(Unknown Source)
      at org.python.core.Py.runCode(Unknown Source)
      at org.python.util.PythonInterpreter.execfile(Unknown Source)
      at weblogic.management.scripting.WLST.main(WLST.java:124)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
      java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at weblogic.WLST.main(WLST.java:29)
      Caused by: weblogic.utils.compiler.ToolFailureException: Exception in AppMerge f
      lows' progression
      at weblogic.application.compiler.AppMerge.merge(AppMerge.java:172)
      at weblogic.deploy.api.internal.utils.AppMerger.merge(AppMerger.java:88)

      at weblogic.deploy.api.internal.utils.AppMerger.getMergedApp(AppMerger.j
      ava:63)
      ... 45 more
      Caused by: weblogic.utils.compiler.ToolFailureException: [J2EE:160106]ERROR: The
      source file, '\u01\app\oracle\product\fmw\Oracle_SOA1\soa\connectors\FtpAdapter
      .rar', could not be found.
      at weblogic.application.compiler.flow.PrepareInputFlow.prepareInput(Prep
      areInputFlow.java:99)
      at weblogic.application.compiler.flow.PrepareInputFlow.compile(PrepareIn
      putFlow.java:41)
      at weblogic.application.compiler.FlowDriver$FlowStateChange.next(FlowDri
      ver.java:69)
      at weblogic.application.utils.StateMachineDriver.nextState(StateMachineD
      river.java:52)
      at weblogic.application.compiler.FlowDriver.nextState(FlowDriver.java:36
      )
      at weblogic.application.compiler.FlowDriver$CompilerFlowDriver.compile(F
      lowDriver.java:96)
      at weblogic.application.compiler.AppMerge.runBody(AppMerge.java:157)
      at weblogic.utils.compiler.Tool.run(Tool.java:158)
      at weblogic.utils.compiler.Tool.run(Tool.java:115)
      at weblogic.application.compiler.AppMerge.merge(AppMerge.java:169)
      ... 47 more
      ----Failed---


      I dont know why the it says the FtpAdapter.rar can not be found when its there. What can I try? I have searched Google but nothing helps!!

      Thanks

      Edited by: 974881 on Dec 4, 2012 6:14 AM