WLST in embedded mode

Hi,
I am trying to implement wlst in embedded mode to automate few setup creations in weblogic administration server.I have added the required jars in class path and tried to run the code.But the WLSTInterprester failed to instantiate and threw below excpetion:
Exception in thread "main" java.lang.NullPointerException
  at java.io.File.<init>(Unknown Source)
  at weblogic.management.utils.PDevHelper.getUpgradeLaunchLocation(PDevHelper.java:77)
  at weblogic.management.utils.PDevHelper.getPDevClassLoader(PDevHelper.java:36)
  at weblogic.management.scripting.utils.WLSTUtil.setupOffline(WLSTUtil.java:226)
  at weblogic.management.scripting.utils.WLSTInterpreter.<init>(WLSTInterpreter.java:134)
  at weblogic.management.scripting.utils.WLSTInterpreter.<init>(WLSTInterpreter.java:76)
  at com.ncr.main.EmbeddedWLST.<init>(EmbeddedWLST.java:11)
  at com.ncr.main.EmbeddedWLST.main(EmbeddedWLST.java:27)
Please help me  in resolving this issue.
Thanks in advance

Think I've figured it out, you must define weblogic.home to point to an valid home. I was using JDeveloper 11.1.1.6 to extract the jars from, but for a quick test pointed to a 11.1.1.7 WLS home and it worked. This got me past the NullPointerException,  I just kept adding jars to fix the ClassDefNotFound exceptions till it ran clean; so this is the minimal set that ran my script
This is my java command line (obviously broken down for readability).
java -cp
./bin:
./lib:
./lib/jython.jar:
./lib/wlfullclient.jar:
./lib/com.oracle.cie.comdev_6.3.0.0.jar:
./lib/com.oracle.cie.config-wls_7.1.0.0.jar:
./lib/com.oracle.cie.config_7.1.0.0.jar:
./lib/com.bea.core.xml.xmlbeans_2.1.0.0_2-5-1.jar:
./lib/com.oracle.cie.config-wls-schema_10.3.4.0.jar:
./lib/com.oracle.cie.wizard_6.1.0.0.jar
-Dprod.props.file=./lib/props.txt
-Dbea.home=
-Dweblogic.home=/Users/xxxxxx/Projects/WebLogicServer/
com.testing.wlst.WLST
This was the output
Connecting to t3://el01cn06:7599 with userid weblogic ...
Successfully connected to Admin Server 'AdminServer' that belongs to domain 'dev-web'.
Warning: An insecure protocol was used to connect to the
server. To ensure on-the-wire security, the SSL port or
Admin port should be used instead.
There are 10 server(s) in cluster: web-cluster
States of the servers are
el01cn06-web08---SHUTDOWN
el01cn06-web09---SHUTDOWN
el01cn06-web10---SHUTDOWN
el01cn06-web01---RUNNING
el01cn06-web02---SHUTDOWN
el01cn06-web03---SHUTDOWN
el01cn06-web04---SHUTDOWN
el01cn06-web05---SHUTDOWN
el01cn06-web06---SHUTDOWN
el01cn06-web07---SHUTDOWN
This is my embedded WLST class (hacked from an example I found via the Google Institute Of Technology)
package com.testing.wlst;
import java.util.*;
import weblogic.management.scripting.utils.WLSTInterpreter;
import org.python.util.InteractiveInterpreter;
public class WLST
   static InteractiveInterpreter interpreter = new WLSTInterpreter();
   private static void connect()
      StringBuffer buffer = new StringBuffer();
      buffer.append("connect('weblogic','NoneOfYourBiz','t3://el01cn06:7599')");
      interpreter.exec(buffer.toString());
   private static void status()
      StringBuffer buffer = new StringBuffer();
      buffer.append("state('web-cluster','Cluster')");
      interpreter.exec(buffer.toString());
   public static void main(String[] args)
      connect();
      status();

Similar Messages

  • Exception in connect using WLST in Embedded Mode

    If I try to run the example for WLST in embedded mode, I get an exception during the connect:
    Connecting to t3://localhost:7001 with userid weblogic ...
    Successfully connected to Admin Server 'AdminServer' that belongs to domain 'TestDomain'.
    Warning: An insecure protocol was used to connect to the
    server. To ensure on-the-wire security, the SSL port or
    Admin port should be used instead.
    Exception in thread "main" Traceback (innermost last):
      File "<string>", line 1, in ?
      File "<iostream>", line 22, in connect
    WLSTException: 'Error occured while performing connect : Error connecting to the server Use dumpStack() to view the full stacktrace'The server in question is running, and the connect command from an interactive interpreter (from the commandline) works fine. I added a call to dumpStack() in a try-catch and got:
    This Exception occurred at Fri Sep 21 15:16:48 CEST 2007.
    java.lang.NullPointerException
         at com.sun.corba.se.impl.io.ValueHandlerImpl.writeReplace(ValueHandlerImpl.java:452)
         at com.sun.corba.se.impl.encoding.CDROutputStream_1_0.writeRMIIIOPValueType(CDROutputStream_1_0.java:761)
         at com.sun.corba.se.impl.encoding.CDROutputStream_1_0.write_value(CDROutputStream_1_0.java:850)
         at com.sun.corba.se.impl.encoding.CDROutputStream_1_0.write_value(CDROutputStream_1_0.java:864)
         at com.sun.corba.se.impl.encoding.CDROutputStream_1_0.write_value(CDROutputStream_1_0.java:659)
         at com.sun.corba.se.impl.encoding.CDROutputStream.write_value(CDROutputStream.java:232)
         at weblogic.management._RemoteMBeanServer_Stub.addNotificationListener(Unknown Source)
         at weblogic.management.scripting.WLSTHelper.addChangeListener(WLSTHelper.java:327)
         at weblogic.management.scripting.WLSTHelper.initConnections(WLSTHelper.java:315)
         at weblogic.management.scripting.WLSTHelper.connect(WLSTHelper.java:201)
         at weblogic.management.scripting.WLScriptContext.connect(WLScriptContext.java:60)
         at weblogic.management.scripting.utils.WLSTUtil.initializeOnlineWLST(WLSTUtil.java:121)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at org.python.core.PyReflectedFunction.__call__(PyReflectedFunction.java:160)
         at org.python.core.PyMethod.__call__(PyMethod.java:96)
         at org.python.core.PyObject.__call__(PyObject.java:248)
         at org.python.core.PyObject.invoke(PyObject.java:2016)
         at org.python.pycode._pyx6.connect$1(<iostream>:16)
         at org.python.pycode._pyx6.call_function(<iostream>)
         at org.python.core.PyTableCode.call(PyTableCode.java:208)
         at org.python.core.PyTableCode.call(PyTableCode.java:404)
         at org.python.core.PyTableCode.call(PyTableCode.java:274)
         at org.python.core.PyFunction.__call__(PyFunction.java:175)
         at org.python.pycode._pyx14.f$0(<string>:1)
         at org.python.pycode._pyx14.call_function(<string>)
         at org.python.core.PyTableCode.call(PyTableCode.java:208)
         at org.python.core.PyCode.call(PyCode.java:14)
         at org.python.core.Py.runCode(Py.java:1135)
         at org.python.core.Py.exec(Py.java:1157)
         at org.python.util.PythonInterpreter.exec(PythonInterpreter.java:137)
         at weblogic.management.scripting.utils.WLSTInterpreter.exec(WLSTInterpreter.java:367)
         at com.lmco.jsf.alis.obphm.afrs.weblogic.WLSTTest.connect(WLSTTest.java:40)
         at com.lmco.jsf.alis.obphm.afrs.weblogic.WLSTTest.main(WLSTTest.java:81)What am I doing wrong?

    public static void main(String[] args) throws
    Exception{
    Very bad programming practice!Not for a simple test program where you aren't going to do anything useful. In this case, it's exactly the right thing - as soon as the test hits an error, it falls over and dumps a stack trace, which is what it exists to do.
    In general, tho, you're correct, "throws Exception" loosens your contract to the point of meaninglessness.
    G

  • Running wlst command in embeded mode results in error for deleteMetadata()

    I need to use wlst command deleteMetadata() in embeded mode.
    I had followed instruction at http://download.oracle.com/docs/cd/E12840_01/wls/docs103/config_scripting/using_WLST.html, to import the wlst interpreter,
    The command I use is:
    deleteMetadata(application='SetupApp', server='FunctionalSetupServer_1', docs='/META-INF/**/adf-config.xml.xml', restrictCustTo='%')
    This command works fine in wlst interactive mode, but when I put it in java, it errors out with the following. Looks like the:
    Caused by: Traceback (innermost last):
    File "<string>", line 2, in ?
    NameError: deleteMetadata
    at org.python.core.Py.NameError(Unknown Source)
    at org.python.core.PyFrame.getglobal(Unknown Source)
    at org.python.core.PyFrame.getname(Unknown Source)
    at org.python.pycode._pyx11.f$0(<string>:2)
    at org.python.pycode._pyx11.call_function(<string>)
    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.core.Py.exec(Unknown Source)
    at org.python.util.PythonInterpreter.exec(Unknown Source)
    at weblogic.management.scripting.utils.WLSTInterpreter.exec(WLSTInterpreter.java:509)
    at oracle.as.install.famigratet2p.cli.cmd.CleanupAdfConfigXml.connect(CleanupAdfConfigXml.java:130)
    at oracle.as.install.famigratet2p.cli.cmd.CleanupAdfConfigXml.executeCmd(CleanupAdfConfigXml.java:77)
    at oracle.apps.fnd.provisioning.ovm.sdk.cli.FAOVMCLICmd.execute(FAOVMCLICmd.java:709)
    ... 2 more
    My code looks like this:
    import weblogic.management.scripting.utils.WLSTInterpreter;
    import org.python.util.InteractiveInterpreter;
    String conString = "connect('" + mTestAdminServerUserName + "','" +
    mTestAdminServerPassword + "','" + mTestAdminServerConnectString + "')\n";
    String delString="deleteMetadata(application='SetupApp',server='FunctionalSetupServer_1', docs='/META-INF/**/adf-config.xml.xml', restrictCustTo='%')\n";
    interpreter.exec(conString+delString);
    Connect() works fine, only failing at deleteMetadata. Is there another jar/library that I need to include?

    Try excuting the command below before invoking MDS commands:
    interpreter.execfile($MW_HOME/oracle_common/common/wlst/mdsWLSTCommands.py);
    Thanks,
    --Daniel                                                                                                                                                                                                                                                                                                                                   

  • Calling custom wlst command in embedded mode

    Hi,
    Please give any idea how to call custom wlst command (Oracle Access Manager related wlst command) in embedded mode.
    can we call /Oracle_IAM/common/bin/wlst.sh using java weblogic.WLST ?
    thanks

    thanks for quick reply
    i have to write a script which will register a OAM agent and create OAM Server (OAM related WLST custom command), all command comes under Fusinn Middleware product and for executing that command we have to run the wlst.sh file from <Oracle_Common>/common/bin, here if i run help('oam') command it shows all oam related command but when i run the wlst using java weblogic.WLST then it does not show any oam command because this call wlst from /WL_Home/common/bin, so i want to call that custom oam related wlst command by using java weblogic.WLST so that i can call my .py script as java weblogic.WLST *.py or in java class using WLSTInterpreter.

  • How to use Derby database in embedded mode in WebLogic 12c?

    I have a JavaEE-6 application that uses Derby database in embedded mode. It uses JPA for persistence. Everything works fine in Glassfish but now I am trying to port it to WebLogic 12c and having issues setting up Derby database in WLS in embedded mode. The derby setup in WLS asks for Host/port and does not have the embedded mode option. Any help is appreciated.
    -Prantor

    I'm pretty sure this is the wrong forum. "Oracle Application Server" is iAS, not WebLogic.

  • Enabling Commenting Tools in embedded mode

    We have own plug-in which provides collaboration capabilities for reviewing documents introducing custom annotations with categorization based on standard Acrobat annotation feature. However Commenting tool is not available in post 6 Acrobat versions when Acrobat runs in embedded mode. I suspect that Adobe suppressed the feature to avoid competition from similar to our solutions. Adobe also discontinued earlier Acrobat versions so our big customers have quite serious problem now, because they can't buy newer Acrobat . . So I am interested if somebody from Adobe senior level engineering or sales reads the forum and can contact me to resolve the issue. Again if some developers know how to enable Commenting tool from plug-in when Acrobat is running embedded, then please share your experience.

    I'm not certain drog is going to get what he want here. It sounds like he doesn't want to write a plugin to create Adobe annotations, but rather his plugin is capturing annotation information when the Adobe tools place and/or modify annotations.
    That's not going to work in a browser unless Adobe changes what's allowed in the browser. If I'm not mistaken, Adobe tools will not create or modify annotations when the PDF is viewed in a browser. The user can always save the file to disk and open it directly with Acrobat (or Reader if it's comment enabled) to get access to the Adobe commenting tools.
    Perhaps that's what drog should do - have his plugin give instructions to the user to save to disk and open directly with Acrobat/Reader. It's fairly simple to recognize when the PDF is viewed in a browser. If this approach is not acceptable to his workflow, then drog is going to have to re-invent the wheel and write a custom annotation handler to add/modify annotations.
    Hope this helps

  • Windows Media Player 12, Windows 7 does not play AVCHD (.mts) video in embedded mode, but does in normal mode

    I've run into a problem with WMP 12 on Windows 7 involved in playback of AVCHD files.  When run in 'normal' mode from Windows Explorer, WMP opens the video file and plays it back beautifully.  However, I'm building an application with
    WMP embedded.  When running WMP from within the application (c#), the same AVCHD plays audio but no video.
    I've seen this type of problem before with respect to audio playback of mp4 files in WMP from embedded-mode:  the MP4 license prohibited audio playback when run from embedded mode but played the audio fine when WMP was launched from explorer.
     I was able to solve this particular problem by using a 3rd party codec pack.
    In this case, I've tried a number of packs K-Lite, etc., but to no avail.  My problem persists.  I suspect perhaps I've encountered a similar licensing-type issue with a SONY CODEC and the state in which WMP is playing back files but I
    have not yet been able to track it down.
    Any ideas?

    Hello,
    It seems that you are using the Windows Media Player control in a window form forum, 
    as far as I know, the Windows Media Player control does not raise an exception when it encounters an error such as an invalid URL. Instead, it signals an event. Please try to set an event to try to catch the expcetion as described in the link below:
    http://msdn.microsoft.com/en-us/library/windows/desktop/dd562851(v=vs.85).aspx
    Regards.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to start wlst in online mode

    I'm a first time user of 'wlst' ;-)
    I installed the WebLogic Server 9.1 on the HP-UX PA-RISC platform and is running in a production environment.
    I can start 'wlst' offline on HP-UX but don't know how to switch back to the online mode.
    I'd like to find out if 'wlst' online mode is supported on HP-UX. If it supports on HP-UX, can someone let me know how to start 'wlst' in online mode?
    Thanks!
    Pearl

    When you first invoke WLST, by default you are in "offline" mode. Once you are connected to a server you will be in "online" mode.
    Thanks,
    -satya
    BEA Blog: http://dev2dev.bea.com/blog/sghattu/

  • Starting WLST in Interactive mode

    I am having a lot of trouble starting WLST in Interactive mode. I am running setWLEnv.sh and then using the command java weblogic.WLST and I get the following error.
    root@esrsqa1 bin# ./setWLSEnv.sh
    CLASSPATH=/opt/bea/patch_wlw1001/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/opt/bea/patch_wls1001/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/opt/bea/jrockit_150_11/lib/tools.jar:/opt/bea/wlserver_10.0/server/lib/weblogic_sp.jar:/opt/bea/wlserver_10.0/server/lib/weblogic.jar:/opt/bea/modules/features/weblogic.server.modules_10.0.1.0.jar:/opt/bea/modules/features/com.bea.cie.common-plugin.launch_2.1.2.0.jar:/opt/bea/wlserver_10.0/server/lib/webservices.jar:/opt/bea/modules/org.apache.ant_1.6.5/lib/ant-all.jar:/opt/bea/modules/net.sf.antcontrib_1.0b2.0/lib/ant-contrib.jar:
    PATH=/opt/bea/wlserver_10.0/server/bin:/opt/bea/modules/org.apache.ant_1.6.5/bin:/opt/bea/jrockit_150_11/jre/bin:/opt/bea/jrockit_150_11/bin:/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/opt/oracle_client/product/11.1.0/client_1/bin:/root/bin
    Your environment has been set.
    root@esrsqa1 bin#
    root@esrsqa1 bin#
    root@esrsqa1 bin#
    root@esrsqa1 bin# java Weblogic.WLST
    Exception in thread "main" java.lang.NoClassDefFoundError: Weblogic.WLST
    at gnu.java.lang.MainThread.run(libgcj.so.7rh)
    Caused by: java.lang.ClassNotFoundException: Weblogic.WLST not found in gnu.gcj.
    runtime.SystemClassLoader{urls=[file:./], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}
    at java.net.URLClassLoader.findClass(libgcj.so.7rh)
    at java.lang.ClassLoader.loadClass(libgcj.so.7rh)
    at java.lang.ClassLoader.loadClass(libgcj.so.7rh)
    at gnu.java.lang.MainThread.run(libgcj.so.7rh)
    I can use WLST just fine if I pass it a python script but it will not work interactively. I am using WLST in my startup and shutdown scripts and they work flawlessly. Does anybody have any ideas?
    Thanks,
    Scott
    Edited by: carters2 on Apr 2, 2009 6:46 AM
    Edited by: carters2 on Apr 2, 2009 6:49 AM

    Team,
    As per the instructions, I have changed the port from 7001 to 10003
    java weblogic.WLST
    wls:/offline> connect()
    Please enter your username [weblogic] : weblogic
    Please enter your password [weblogic] : weblogic
    Please enter your server URL [t3://localhost:7001] : t3://localhost:7001
    Connecting to t3://localhost:7001 with userid weblogic ...
    edit()
    startEdit()
    cd ('Servers/AdminServer')
    cmo.setListenPort(9999)
    save()
    activate()
    When I tried to start the server, I am receiving the following error
    May 4, 2010 4:15:41 PM EDT> <Info> <WebLogicServer> <BEA-000377> <Starting WebLogic Server with Java HotSpot(TM) Client VM Version 10.0-b19 from Sun
    Microsystems Inc.>
    <May 4, 2010 4:15:42 PM EDT> <Info> <Management> <BEA-141107> <Version: WebLogic Server Temporary Patch for 380194 Fri Oct 24 13:20:13 IST 2008
    WebLogic Server Temporary Patch for 8408837 Fri Apr 03 17:01:18 EDT 2009
    WebLogic Server Temporary Patch for CR378781, CR380313 Fri Sep 19 13:34:16 PDT 2008
    WebLogic Server Temporary Patch for CR381056 Mon Oct 06 10:48:50 EDT 2008
    WebLogic Server Temporary Patch for CR374413, CR378680 Tue Sep 02 09:55:36 PDT 2008
    WebLogic Server Temporary Patch for CR378102 Wed Sep 10 23:28:48 PDT 2008
    WebLogic Server Temporary Patch for CR378741 Tue Sep 09 13:08:51 PDT 2008
    WebLogic Server 10.3 Fri Jul 25 16:30:05 EDT 2008 1137967 >
    <May 4, 2010 4:15:43 PM EDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING>
    <May 4, 2010 4:15:43 PM EDT> <Info> <WorkManager> <BEA-002900> <Initializing self-tuning thread pool>
    <May 4, 2010 4:15:44 PM EDT> <Notice> <Log Management> <BEA-170019> <The server log file C:\bea\user_projects\domains\osb_domain\servers\AdminServer\l
    ogs\AdminServer.log is opened. All server side log events will be written to this file.>
    <May 4, 2010 4:15:44 PM EDT> <Critical> <WebLogicServer> <BEA-000362> <Server failed. Reason:
    There are 1 nested errors:
    java.net.UnknownHostException: aaa.bbb.org:10003
    at java.net.Inet4AddressImpl.lookupAllHostAddr(Native Method)
    at java.net.InetAddress$1.lookupAllHostAddr(InetAddress.java:849)
    at java.net.InetAddress.getAddressFromNameService(InetAddress.java:1200)
    at java.net.InetAddress.getAllByName0(InetAddress.java:1153)
    at java.net.InetAddress.getAllByName(InetAddress.java:1083)
    at java.net.InetAddress.getAllByName(InetAddress.java:1019)
    at java.net.InetAddress.getByName(InetAddress.java:969)
    at weblogic.rjvm.JVMID.setLocalID(JVMID.java:201)
    at weblogic.rjvm.RJVMService.setJVMID(RJVMService.java:48)
    at weblogic.rjvm.RJVMService.start(RJVMService.java:30)
    at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
    How do I start the server now?

  • Web publishing tool, I can't show the panel in embedded mode.

    I don't know what happen but I have try every thing and still without the possibility to make a preview of my VI in the "web publishing tool" and also can't show the panel in embedded mode.
    I can see the preview in the browser but it remain forever "downloading panel" and nothing more else happen.
    Please help me because I don't find any explanation to this problem in Google.
    Additional information:
    1) I am using Labview professional development system 8.2 under Windows XP SP3 (it was the same under SP2), also in vista ultimate.
    2) In the attachment I show that I'm using Mozilla Firefox but is the same problem under IE.

    I don't think the preview ever shown an image.
    Ton
    Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
    Nederlandse LabVIEW user groep www.lvug.nl
    My LabVIEW Ideas
    LabVIEW, programming like it should be!

  • Unable to run the 9.3 JAVA API in "embedded" mode without APS installed

    <p>Hello,</p><p> </p><p>I'm trying to run the 9.3 JAVA API in "embedded" modewithout APS installed.</p><p> </p><p>I first used build Build <b>242</b> which was supplied with 9.3beta. This worked great and exactly the way I wanted to.</p><p>Now I'm trying to do the same with the production release of 9.3JAPI which is (to my knowledge) build <b>305</b>. With build 305I'm not able to connect to Essbase without APS installed.</p><p> </p><p>The reason I do not want to install APS is because I'm runningthe Java code from with an Oracle database (the JAPI jars areloaded into the database)</p><p> </p><p>Please see below loglines (running the sampleConnect.class):</p><p> </p><p><span style=" text-decoration: underline;"><b>Build 242 (whichworks ok)</b></span></p><p>Java(TM) 2 Runtime Environment, Standard Edition (build1.4.2_06-b03)<br>Java HotSpot(TM) Client VM (build 1.4.2_06-b03, mixed mode)<br>WARN [main]: - Time: Mon Feb 12 08:53:24 CET 2007, AnalyticProvider Services - Release 9.3.0.0 Build 242<br>Copyright (c) 1991-2006 Hyperion Solutions Corporation. All rightsreserved.<br>connection mode : EMBEDDED<br>WARN [main]: - Time: Mon Feb 12 08:53:25 CET 2007, connection mode: EMBEDDED<br>essbase.properties: essbase.properties<br>WARN [main]: - Time: Mon Feb 12 08:53:25 CET 2007,essbase.properties: essbase.properties<br>domain.db location: ./domain.db<br>WARN [main]: - Time: Mon Feb 12 08:53:25 CET 2007, domain.dblocation: ./domain.db<br>WARN [main]: - Time: Mon Feb 12 08:53:25 CET 2007,cluster.monitor.interval : 30</p><p>INFO [main]: - Time: Mon Feb 12 08:53:25 CET 2007,<br>[Mon Feb 12 08:53:25 CET 2007] - Service using EMBEDDED<br>Request: sign on (from user Administrator session number 5178)<br>INFO [main]: - Time: Mon Feb 12 08:53:25 CET 2007,<br>[Mon Feb 12 08:53:25 CET 2007] - Service using EMBEDDED<br>Request: get my analytics mode (from user Administrator sessionnumber 5178)<br>INFO [main]: - Time: Mon Feb 12 08:53:25 CET 2007,<br>[Mon Feb 12 08:53:25 CET 2007] - Service using EMBEDDED<br>Request: (from user '**aps_profile is Enabled**' session numberfalse)<br>INFO [main]: - Time: Mon Feb 12 08:53:25 CET 2007,<br>[Mon Feb 12 08:53:25 CET 2007] - Service using EMBEDDED<br>Request: connect to olap service (from user Administrator sessionnumber 5178)<br>INFO [main]: - Time: Mon Feb 12 08:53:25 CET 2007,<br>[Mon Feb 12 08:53:25 CET 2007] - Service using EMBEDDED<br>Request: (from user '**aps_profile is Enabled**' session numberfalse)<br>Connection to Analyic server '10.130.60.78' was successful.<br>INFO [main]: - Time: Mon Feb 12 08:53:25 CET 2007,<br>[Mon Feb 12 08:53:25 CET 2007] - Service using EMBEDDED<br>Request: sign off (from user Administrator session number 5178)<br>Process exited with exit code 0.<br></p><p> </p><p><span style=" text-decoration: underline;"><b>Build 305 (whichdoes not work ok)</b></span></p><p>Java(TM) 2 Runtime Environment, Standard Edition (build1.4.2_06-b03)<br>Java HotSpot(TM) Client VM (build 1.4.2_06-b03, mixed mode)<br>WARN [main]: - Time: Mon Feb 12 08:54:28 CET 2007, AnalyticProvider Services - Release 9.3.0.0 Build 305<br>Copyright (c) 1991-2006 Hyperion Solutions Corporation. All rightsreserved.<br>connection mode : EMBEDDED<br>WARN [main]: - Time: Mon Feb 12 08:54:28 CET 2007, connection mode: EMBEDDED<br>essbase.properties: essbase.properties<br>WARN [main]: - Time: Mon Feb 12 08:54:28 CET 2007,essbase.properties: essbase.properties<br>domain.db location: ./domain.db<br>WARN [main]: - Time: Mon Feb 12 08:54:28 CET 2007, domain.dblocation: ./domain.db<br>WARN [main]: - Time: Mon Feb 12 08:54:28 CET 2007,cluster.monitor.interval : 30</p><p>INFO [main]: - Time: Mon Feb 12 08:54:28 CET 2007,<br>[Mon Feb 12 08:54:28 CET 2007] - Service using EMBEDDED<br>Request: sign on (from user Administrator session number 68529)<br>INFO [main]: - Time: Mon Feb 12 08:54:28 CET 2007,<br>[Mon Feb 12 08:54:28 CET 2007] - Service using EMBEDDED<br>Request: get my analytics mode (from user Administrator sessionnumber 68529)<br>INFO [main]: - Time: Mon Feb 12 08:54:28 CET 2007,<br>[Mon Feb 12 08:54:28 CET 2007] - Service using EMBEDDED<br>Request: connect to olap service (from user Administrator sessionnumber 68529)<br>Error: Cannot connect to olap service. null<br>INFO [main]: - Time: Mon Feb 12 08:54:28 CET 2007,<br>[Mon Feb 12 08:54:28 CET 2007] - Service using EMBEDDED<br>Request: sign off (from user Administrator session number68529)<br>Process exited with exit code 1.</p>

    <p>Hello,</p><p> </p><p>I'm trying to run the 9.3 JAVA API in "embedded" modewithout APS installed.</p><p> </p><p>I first used build Build <b>242</b> which was supplied with 9.3beta. This worked great and exactly the way I wanted to.</p><p>Now I'm trying to do the same with the production release of 9.3JAPI which is (to my knowledge) build <b>305</b>. With build 305I'm not able to connect to Essbase without APS installed.</p><p> </p><p>The reason I do not want to install APS is because I'm runningthe Java code from with an Oracle database (the JAPI jars areloaded into the database)</p><p> </p><p>Please see below loglines (running the sampleConnect.class):</p><p> </p><p><span style=" text-decoration: underline;"><b>Build 242 (whichworks ok)</b></span></p><p>Java(TM) 2 Runtime Environment, Standard Edition (build1.4.2_06-b03)<br>Java HotSpot(TM) Client VM (build 1.4.2_06-b03, mixed mode)<br>WARN [main]: - Time: Mon Feb 12 08:53:24 CET 2007, AnalyticProvider Services - Release 9.3.0.0 Build 242<br>Copyright (c) 1991-2006 Hyperion Solutions Corporation. All rightsreserved.<br>connection mode : EMBEDDED<br>WARN [main]: - Time: Mon Feb 12 08:53:25 CET 2007, connection mode: EMBEDDED<br>essbase.properties: essbase.properties<br>WARN [main]: - Time: Mon Feb 12 08:53:25 CET 2007,essbase.properties: essbase.properties<br>domain.db location: ./domain.db<br>WARN [main]: - Time: Mon Feb 12 08:53:25 CET 2007, domain.dblocation: ./domain.db<br>WARN [main]: - Time: Mon Feb 12 08:53:25 CET 2007,cluster.monitor.interval : 30</p><p>INFO [main]: - Time: Mon Feb 12 08:53:25 CET 2007,<br>[Mon Feb 12 08:53:25 CET 2007] - Service using EMBEDDED<br>Request: sign on (from user Administrator session number 5178)<br>INFO [main]: - Time: Mon Feb 12 08:53:25 CET 2007,<br>[Mon Feb 12 08:53:25 CET 2007] - Service using EMBEDDED<br>Request: get my analytics mode (from user Administrator sessionnumber 5178)<br>INFO [main]: - Time: Mon Feb 12 08:53:25 CET 2007,<br>[Mon Feb 12 08:53:25 CET 2007] - Service using EMBEDDED<br>Request: (from user '**aps_profile is Enabled**' session numberfalse)<br>INFO [main]: - Time: Mon Feb 12 08:53:25 CET 2007,<br>[Mon Feb 12 08:53:25 CET 2007] - Service using EMBEDDED<br>Request: connect to olap service (from user Administrator sessionnumber 5178)<br>INFO [main]: - Time: Mon Feb 12 08:53:25 CET 2007,<br>[Mon Feb 12 08:53:25 CET 2007] - Service using EMBEDDED<br>Request: (from user '**aps_profile is Enabled**' session numberfalse)<br>Connection to Analyic server '10.130.60.78' was successful.<br>INFO [main]: - Time: Mon Feb 12 08:53:25 CET 2007,<br>[Mon Feb 12 08:53:25 CET 2007] - Service using EMBEDDED<br>Request: sign off (from user Administrator session number 5178)<br>Process exited with exit code 0.<br></p><p> </p><p><span style=" text-decoration: underline;"><b>Build 305 (whichdoes not work ok)</b></span></p><p>Java(TM) 2 Runtime Environment, Standard Edition (build1.4.2_06-b03)<br>Java HotSpot(TM) Client VM (build 1.4.2_06-b03, mixed mode)<br>WARN [main]: - Time: Mon Feb 12 08:54:28 CET 2007, AnalyticProvider Services - Release 9.3.0.0 Build 305<br>Copyright (c) 1991-2006 Hyperion Solutions Corporation. All rightsreserved.<br>connection mode : EMBEDDED<br>WARN [main]: - Time: Mon Feb 12 08:54:28 CET 2007, connection mode: EMBEDDED<br>essbase.properties: essbase.properties<br>WARN [main]: - Time: Mon Feb 12 08:54:28 CET 2007,essbase.properties: essbase.properties<br>domain.db location: ./domain.db<br>WARN [main]: - Time: Mon Feb 12 08:54:28 CET 2007, domain.dblocation: ./domain.db<br>WARN [main]: - Time: Mon Feb 12 08:54:28 CET 2007,cluster.monitor.interval : 30</p><p>INFO [main]: - Time: Mon Feb 12 08:54:28 CET 2007,<br>[Mon Feb 12 08:54:28 CET 2007] - Service using EMBEDDED<br>Request: sign on (from user Administrator session number 68529)<br>INFO [main]: - Time: Mon Feb 12 08:54:28 CET 2007,<br>[Mon Feb 12 08:54:28 CET 2007] - Service using EMBEDDED<br>Request: get my analytics mode (from user Administrator sessionnumber 68529)<br>INFO [main]: - Time: Mon Feb 12 08:54:28 CET 2007,<br>[Mon Feb 12 08:54:28 CET 2007] - Service using EMBEDDED<br>Request: connect to olap service (from user Administrator sessionnumber 68529)<br>Error: Cannot connect to olap service. null<br>INFO [main]: - Time: Mon Feb 12 08:54:28 CET 2007,<br>[Mon Feb 12 08:54:28 CET 2007] - Service using EMBEDDED<br>Request: sign off (from user Administrator session number68529)<br>Process exited with exit code 1.</p>

  • Domain creation using WLST offline mode

    Hi,
    We are migrating from WL8.1SP5 to WL10MP2. After reading through the various options (WLST online, WLST offline, WLST.configToScript(), and Configuration Wizard) , I have concluded that we will use WLST in offline mode to create domains in our prod, qa, and dev environments. In 8.1 I had a silent script that would create domains for me repeatedly in any environment very easily. I want to map this script into the corresponding SOME_NAME.py script to be used for WL10MP2 domain.
    I have the BEA provided basicWLSDomain.py (please see below) script. I have difficulty in understanding more than half of that script! I know the basic concept is to traverse the MBean tree and creat and/or set parameters. But I do not know which MBean I will need to modify/create.
    Example 1:
    readTemplate("C:/bea/wlserver_10.0/common/templates/domains/wls.jar")
    cd('Servers/AdminServer')
    Q1] I went through http://e-docs.bea.com/wls/docs90/wlsmbeanref/core/index.html but could not find either ServersMBean or AdminServerMBean.
    Example 2:
    cd('/')
    create('myJMSServer', 'JMSServer')
    cd('/')
    create('myJmsSystemResource', 'JMSSystemResource')
    cd('JMSSystemResource/myJmsSystemResource/JmsResource/NO_NAME_0')
    Q2] What is a JMSSystemResource? (If I remember correctly, there is no such thing in WL8.1)
    Q3] What is JmsResource?
    Example 3:
    cd('/')
    create('myDataSource', 'JDBCSystemResource')
    cd('JDBCSystemResource/myDataSource/JdbcResource/myDataSource')
    create('myJdbcDriverParams','JDBCDriverParams')
    cd('JDBCDriverParams/NO_NAME_0')
    set('DriverName','com.pointbase.jdbc.jdbcUniversalDriver')
    set('URL','jdbc:pointbase:server://localhost/demo')
    set('PasswordEncrypted', 'PBPUBLIC')
    set('UseXADataSourceInterface', 'false')
    create('myProps','Properties')
    cd('Properties/NO_NAME_0')
    create('user', 'Property')
    cd('Property/user')
    cmo.setValue('PBPUBLIC')
    cd('/JDBCSystemResource/myDataSource/JdbcResource/myDataSource')
    create('myJdbcDataSourceParams','JDBCDataSourceParams')
    cd('JDBCDataSourceParams/NO_NAME_0')
    set('JNDIName', java.lang.String("myDataSource_jndi"))
    cd('/JDBCSystemResource/myDataSource/JdbcResource/myDataSource')
    create('myJdbcConnectionPoolParams','JDBCConnectionPoolParams')
    cd('JDBCConnectionPoolParams/NO_NAME_0')
    set('TestTableName','SYSTABLES')
    Q4] Can you please explain the above snippet line by line?
    Q5] Why are certain attributes set like this --- set('TestTableName','SYSTABLES') while certain attributes like below are set like this -- myq.setJNDIName('jms/myqueue')?
    Example 4:
    myq=create('myQueue','Queue')
    myq.setJNDIName('jms/myqueue')
    myq.setSubDeploymentName('myQueueSubDeployment')
    cd('/')
    cd('JMSSystemResource/myJmsSystemResource')
    create('myQueueSubDeployment', 'SubDeployment')
    Q6] What us a SubDeployment?
    I apologize for the long question. I would greatly appreciate any help!
    Thanks!
    Edited by: user10045656 on Oct 29, 2008 11:03 AM
    Edited by: user10045656 on Oct 29, 2008 11:06 AM

    1 - What is the best way to create a schema, for reporting application, during automated domain build process as we need to create new domains from the script and also be able to start and deploy applications on it. which will also require to have db schema for reporting application.
    My suggestion would be to execute the scripts under /neelapu/bea/post31/RC4-samples/osb_10.3/dbscripts/oracle/*.sql with your automated process. OSB requires two simple tables WLI_QS_REPORT_DATA and WLI_QS_REPORT_ATTRIBUTE.
    If reporting is not required then we can modify (I guess) in wlst offline mode to delete the below applications from domain.
    <app-deployment>
    <name>JMS Reporting Provider</name>
    <target>osb_server1</target>
    <module-type>ear</module-type>
    <source-path>/neelapu/bea/xyz/load4/Oracle_OSB1/lib/common/jmsreportprovider.ear</source-path>
    <deployment-order>125</deployment-order>
    <security-dd-model>DDOnly</security-dd-model>
    </app-deployment>
    <app-deployment>
    <name>Message Reporting Purger</name>
    <target>osb_server1</target>
    <module-type>ear</module-type>
    <source-path>/neelapu/bea/xyx/load4/Oracle_OSB1/lib/common/msgpurger.ear</source-path>
    <deployment-order>126</deployment-order>
    <security-dd-model>DDOnly</security-dd-model>
    </app-deployment>
    Thanks
    Manoj

  • Executing WLST scripts through InstallAnyWhere Java code

    We are trying to execute WLST scripts (embedded java mode) through custom Java class of the InstallAnywhere. We could not able to succeed in that, gives error "Weblogic.Home" not found. After passing this parameter we got "WLST_offline" class not found. We have included Weblogic.jar & config.jar in the Insatllanywhere Path, now we are getting NPE in readTemplate command.
    Suggest us the right way to do so.
    Thanks

    Typically the environment is set up using a Domain's setDomainEnv.cmd or setDomainEnv.sh scripts, you may want to see if there is anything obvious in the script environment setup that you are missing.

  • How do you switch between web server snapshot jpg and png modes?

    I read in another forum a posting by "NathanK" stating:
    "The snapshot feature of the web server can
    generate images either as png or jpg. In LabVIEW 8.6 and later, the
    default which is generated by the web publishing tool is the png
    format. In this mode everything happens in memory so there is no
    snapshot image file generated.
    In the jpg mode there is a
    temporary file, however it is not always the same file and the file is
    deleted after it is uploaded to the client. I would not recommend
    trying to use this programmatically.
    If you need more
    control over a snapshot of a front panel (and you are using 8.6), I
    would recommend making a custom web service that takes a picture of a
    VI's front panel and returns it to the client. Then you would have
    control over the image."
    I am currently using the web publishing tool snapshot feature with an EXE program written in LV8.6.  However, each time a browser accesses the html file, the EXE file's memory grows by 72KB (this happens with my custom EXE program and with LabVIEW.exe when running the VI in development mode).  I'm assuming this is the png that is generated each time a snapshot is taken, but the program never de-allocated the memory and the program eventually crashes.  I'm aslo assuming that if I switch to "JPG mode", the web server will generate a temporary file and eventually delete it, elminating the memory leak.  The problem is, I don't know how to change the modes from png (default) to jpg.

    I am and have been using the .snap function on many applications since LabVIEW 6.1.  It's very simple, easy to use, does exactly what I want it to do, and is still in the documentation of LabVIEW 8.6, 2009 and 2009 SP1 as being supported. 
    If I am not mistaken, don't you need to have the LabVIEW runtime engine on the target system to use embedded mode?  I don't want to have to try and keep everybody who wants to see a screenshot of my program to have to have a run-time engine installed.  For one reason, I don't know everybody who wants to monitor our system and they literally can be anywhere in the world if the VPN to our network.  Second, those who I do know would would have me install it for them.  Third, why go "backwards" in capability...everybody would ask me "Why do we have to do this now?..we never had to do it before", and I don't want to use my time/energy at work to explain why NI cannot fix a memory leak that has been identified in at least the last 3 versions of LabVIEW and is still not fixed. 
    I had been using either LV 6.1 or 7.1 for a good part of 10 years and had very few problems with them (BTW, DAQmx is the greatest thing every put on a computer EVER).  I finally make the transitioin and start using LV 8.6 on a major test platform last year, got to the very end of it and find this out.  <sigh!>
    It is funny (maybe not), but my work around feels like I just changed the floormats in my Toyota car to keep it from "crashing".
    However, if I am mistaken and you do NOT need to use LV runtime engine for embedded mode, ignore everything I wrote above and please let me know that this is the case and I will look into it.

  • Flash videos embedded in Facebook don't appear when played

    My computer is running Windows 7 Home Premium 64-bit, Internet Explorer 11, and Adobe Flash Player 14.0.0.145. I have Microsoft Security Essentials and an activated copy of Malwarebytes Anti-Malware protecting me from viruses and malware, and my IT department confirms that there is no malware infection playing a role here.
    I am, however, having an odd and very frustrating problem with playing all Adobe Flash videos which are embedded inside of Facebook.com, including those which are shared from YouTube. Opening the same YouTube video in YouTube.com does not produce the same behavior - YouTube videos ALWAYS play fine on YouTube.com (whether embedded or full-screen), but NEVER play fine when they are embedded inside of a Facebook post.
    NOTE: The same videos work EXACTLY AS EXPECTED in Firefox and Google Chrome, so this seems to be an IE-specific issue. This started back when I was running IE10 and has continued over into IE11.
    Here is what happens in both Internet Explorer 10 and 11:
    In my Facebook news feed, I locate a video I would like to watch. Before pressing Play, I see a still shot from the video with the Play icon transposed on top of the picture.
    I click the Play icon to play the video in Facebook's embedded mode (where I can see other news feed messages above and below the video).
    The picture disappears and turns to white (no borders, just white). Along the bottom edge of the video is a bar containing the play/pause, volume, maximize, etc. buttons. Behind these buttons I can see a faded-yet-moving view of the bottom edge of the video, but the rest of the video area is completely white.
    I hear the audio playing, even though I can't see any picture other than that lower edge I just described.
    If I click the maximize button at the bottom right edge of the video, the video opens to fill the screen and the video picture suddenly appears and runs as expected.
    If I press ESC to get out of maximize view, the embedded Facebook screen (with the video again back to the news feed context) returns, but the picture goes white again just as in step 3, with the audio still playing as in step 4.
    Right clicking on the offending video brings up a drop-down menu indicating that the video is using Adobe Flash Player 14.0.0.145.
    Other videos shared in Facebook, like those from vimeo.com, play without any problem in the same Facebook.com news feed view, regardless of whether they are in embedded or in full-screen mode. Only videos using Adobe Flash Player seem affected here.
    I have tried the following:
    Uninstalled Adobe Flash Player. Reboot. Open Facebook.com, find the video in the news feed, which indicates that Adobe Flash must be installed. Click the link provided and install Adobe Flash from adobe.com. Return to the video in my news feed on facebook.com and click play. Same behavior as described above - no change.
    Added facebook.com and youtube.com to my Trusted Sites list. No change.
    Added facebook.com and youtube.com to IE's compatibility view, exited all instances of the browser, reopened. No change.
    Checked for unusual browser add-ons - none found.
    Cleared web cache, deleted cookies, reset browsers to default settings and default advanced settings - no change
    Checked Windows Updates - all updates are current.
    Ran full scans of Microsoft Security Essentials and Malwarebytes. No malware or issues found. No issues found with roguekiller, adwcleaner, and other malware-related tools either.
    Any suggestions for me here? I'd really just like to click Play and see the embedded video like everybody else can. FYI, all other computers (running Vista, Windows 7, and Windows 8) on my network play these same videos in IE9, IE10, and IE11 without the problems I'm having with this one. I'd sure appreciate any help you can offer!

    Not that the moment.  It's not ideal, but you have two working options, which is better than none. 
    In all likelihood, the content providers are going to have to change code to accommodate IE11 and higher.  I spent a bunch of time this week reviewing some technical guidance that we're putting together for developers, but the long and short of it is that IE wants to developers to stop writing code that handles IE differently than other browsers. 
    IE has a history of not exactly working like other browsers, and for a multitude of reasons (including how JavaScript and Flash communicate to each other), developers as a standard practice wrote a lot of code to specifically handle these quirks in IE.
    To get out of this impossible position where they want markup to be the same for all browsers, but having all of this code targeted specifically at IE because of the long legacy of being problematic for web developers, IE masquerades as something else and disables features like conditional comments that allowed code to target IE.
    The net result is that a lot of stuff is broken in IE11.  We're working closely with Microsoft to be good partners and help them through this transition with a few technical changes on our end, but developers are going to have to change their code and/or update the underlying libraries all over the web.  This is not going to happen overnight.  Big content providers with more resources will probably move faster than smaller sites with less developers, but it's going to be months or years before all of this shakes out.

Maybe you are looking for

  • Rc.shutdown doesn't seem to umount the filesystems correctly

    The problem is that each time I shutdown/reboot, there's a message saying "Unmounting Non-API Filesystems" failed, and the next time system boots, fsck will recover journal. I looked into etc/rc.shutdown, found that it calls umount_all in etc/rc.d/fu

  • Jsp:useBean and definition of bean inside jsp:declaration

    I use the following code where I define a bean in jsp:declaration Its name is localBean. the problem is that jsp:useBean causes a crash and my page is not working without understanding why. When I replace the localBean in the jsp:useBean with another

  • Add dynamic buttons to each report row and bind the row data to buttons specific to that row

    I have a page with a form at the top and a report at the bottom which is tied to a table. I need to add a pair of buttons for each row of the table and add dynamic actions for these buttons. I need to submit the data corresponding to the row to a RES

  • Is there a command cheatsheet for personalization server?

    Hello, I am having trouble understanding how different commands work to forward a page. Is there a simple cheat sheet that explains when to use different commands? Here are some examples: How do I forward control to a standalone JSP page? Currently f

  • Lightroom 5 - HTML5 Galleries

    I need a tidy little gallery for my website that'll play well on iOS. I know LR5 has these as templates but as there's a mixture of regular html and flash and given that html5 has all the gifts that flash has, How cal I find out what's exactly html5