WLST in embedded mode

Hello

I'm currently implementing wlst in embedded mode to automate a few creations of administration weblogic server configuration. I added the required jars in the classpath and tried to run the code. But the WLSTInterprester does not instantiate and threw under the exception:

Exception in thread "main" java.lang.NullPointerException

in 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)

to weblogic.management.scripting.utils.WLSTInterpreter. < init > (WLSTInterpreter.java:134)

to weblogic.management.scripting.utils.WLSTInterpreter. < init > (WLSTInterpreter.java:76)

to com.ncr.main.EmbeddedWLST. < init > (EmbeddedWLST.java:11)

at com.ncr.main.EmbeddedWLST.main(EmbeddedWLST.java:27)

Please help me solve this problem.

Thanks in advance

Think that I thought about it, you must set weblogic.home to point to a valid home. I was using JDeveloper 11.1.1.6 to extract the jars, but for a quick test, said a House WLS 11.1.1.7 and it worked. This got me past the NullPointerException, I just kept adding jars to correct exceptions ClassDefNotFound until he ran clean; Therefore, the minimum set that took my script

It comes to my java command line (obviously split 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

It is the output

T3 connection: / / el01cn06:7599 with username weblogic...

Connected to the Server Admin "AdminServer" which belongs to the domain "dev-web"

WARNING: A non-secure protocol was used to connect to the

Server. To ensure the safety of on-the-wire, the SSL port or

Admin port should be used instead.

There are 10 or clustered servers: web-cluster

States of the servers are

el01cn06-web08 - STOP

el01cn06-web09 - STOP

el01cn06-web10 - STOP

el01cn06-web01 - running

el01cn06-web02 - STOP

el01cn06-web03 - STOP

el01cn06-web04 - STOP

el01cn06-web05 - STOP

el01cn06-web06 - STOP

el01cn06-web07 - STOP

It's my embedded WLST class (hacked an example that I found through the Google Technology Institute)

package com.testing.wlst;

Import Java.util;

Import weblogic.management.scripting.utils.WLSTInterpreter;

Import org.python.util.InteractiveInterpreter;

public class WLST

{

public static InteractiveInterpreter interpreter = new WLSTInterpreter();

private static Sub connect()

{

StringBuffer buffer = new StringBuffer();

buffer. Append ("Connect('weblogic','NoneOfYourBiz','t3://el01cn06:7599')");

Interpreter.exec (buffer. ToString());

}

status() private static Sub

{

StringBuffer buffer = new StringBuffer();

buffer. Append ("State ('web-cluster', 'Cluster')");

Interpreter.exec (buffer. ToString());

}

Public Shared Sub main (String [] args)

{

Connect();

Status();

}

}

Tags: Fusion Middleware

Similar Questions

  • Windows Media Player 12 Windows 7 don't play AVCHD (.mts) video in embedded mode, but in normal view fact

    I encountered a problem with WMP 12 on Windows 7 involved in reading the files in AVCHD format.  When running in 'normal' from Windows Explorer mode, WMP opens the video file and the rear plays beautifully.  However, I'm building an application with embedded WMP.  When you run WMP within the application (c#), AVCHD even plays audio but no video.

    I've seen this type of problem before with regard to audio playback of mp4 files in WMP to integrated mode: the forbidden MP4 audio playback license when it is run in embedded mode but played the audio fine at the launch of the Explorer of WMP.  I was able to solve this problem by using a 3rd party codec pack.

    In this case, I tried a number of K-Lite packs, etc., but to no avail.  My problem persists.  I think maybe I have an issue of licensing of the same with a SONY CODEC type and the State in which WMP is playing files, but I was still able to track him down.

    Any ideas?

    Hi Jon,

    Apology for a late reply.

    As you use Windows Media Player in an embedded application, I would ask you even post in the MSDN forum. Here is the link to post this query:

    https://social.msdn.Microsoft.com/forums/Windowsdesktop/en-us/home?category=windowsdesktopdev

    Feel free to send more requests to Windows.

  • JavaFX 8 embedded Mode

    Hi all!

    I'm always looking using Java + 8 JavaFX for an integrated X 86 device. I found that there is a mode, described here (30 UI on embedded platforms (exit 8) controls), which includes a screen keyboard and a modified style (embdedded.css), which is suitable for integrated devices with a touch screen. Is it possible to activate this mode manually? I tried to connect a touchscreen to a windows 7 PC, but I don't you the integrated keyboard or GUI style incorporated.

    Best regards

    Stefan

    With all the usual warnings about "unsupported features", you can use the following system properties:

    com.sun.javafx.virtualKeyboard, which can be set to 'none', 'javafx', or 'native '. If the value is javafx, you get an emulation of a VK.

    com Sun.JavaFX.Touch, which is "true" or "false". It is he who will cause the (misnamed) embedded.css stylesheet to use.

  • Java API - mode incorporated

    Hello
    I am trying to run simple Java API program (just to connect and the cube list) in embedded mode, which means that I am executing the program of Java on Essbase server. This means that I don't need to provider's server (I hope that my interpretation is correct). I can compile the program successfully, however when I tried to run it it retrun error below.
    Error: Unable to connect to the Server.Make provider ensure that access code settings are correct and the server of the provider is running.

    Can someone throw light why it's fast to the server of the provider.

    Thank you

    In addition, you must have the following jar files in your classpath:

    cpld14.jar
    ess_es_server.jar
    ess_japi.jar
    log4j - 1.2.8.jar

    In addition, you must set the ESS_ES_HOME Java System property using the-d option of java. Here is a link to the documentation that can help: [http://download.oracle.com/docs/cd/E12825_01/epm.111/aps_admin/frameset.htm?ch04s02.html].

    Tim Tow
    Applied OLAP, Inc.

  • Help on vSphere 6 upgrade with a SSO strategy internal-&gt; external PSC

    I would ask an idea and help on what and how to revamp our vsphere infrastructure.

    We have an environment that grow very fast in the last 2 years... from a Center unique vcenter/infrastructure for our server environment us growth data center 2 main + 1 small site with a 2nd arriving within a few months, and probably a good number of branches.

    Our main data center 2 are configured with vCenter 3 5.5:

    (1) our main Server vCenter

    (2) our Horizon vCenter for VDI

    (3) a vCenter dedicated to a separate set of servers for a specific project

    All the vCenter are now 5.5u2, but in the past our VDI vSphere still was 5.0, while the rest was upgaded to 5.1 and 5.5.

    The 3) is an environment dedicated with some software/configuration that could conflict or be managed in a way different from our current infrastructure (this ban could remain in an earlier more time for example).

    All these vCenter are configured with a SSO Multisite separated by the environment, so we have a Multisite SSO for server, 1 for VDI and 1 to 3).

    Our vCenter have the PSO and all integrated services in the windows server and a database of separate SQL Server for each of them.

    Verification of certain documents on the vSphere 6 that I noticed that it seems that we have a setup that has somehow changed and thinking about the future and the implementation of new products, I would like to understand how we could manage these infrastructure and how we can join it.

    In this document http://KB.VMware.com/selfservice/microsites/search.do?language=en_US & cmd = displayKC & externalId = 2108548 it seems that manage sites that have integrated the PSC and vCenter Server on the same host is not a recommended way, thinking at least about our vCenter Server main (2 different in 2 sites) infrastructure, we must separate the PSC making external.

    Should we move the SSO outside our 5.5 infrastructure server now before moving on to 6 so that we could improve PSC external SSO and just update our vCenter server or there's a way during the upgrade to the PSC on an external server (such as installing on a new server and migrate SSO to external PSC)?

    Think in the future, we probably want to unify the PSC and use the same servers PSC (2 ha with a LB probably in each site). It is possible during the upgrade a server vcenter Server to migrate from the SSO server/PSC is using another?

    If you want to go out of style incorporated into the external PSC; currently during the upgrade you can not change this IE if it integrated with 5.5 and then it will continue in embedded mode. Future update could be an option / tool to move to external embedded mode PSC post upgrade (this tool is nevertheless do you updated or not; deployment embedded 6.0 can be converted into vCenter pointing to external PSC).

    From now on if you want to pass to the external PSC mode then to 5.5 installation embedded itself move first on external SSO. You can do this by installing separate SSO and re - point your existing inventory, webclient and VC than SSO service. Below KB provides details on the re-score-

    http://KB.VMware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalID=2033620

    Once you are done with the re - verse you can start the upgrade with PSC external.

  • Configuration of ODI use Installation of Fusion Middleware OBIA 11.1.1.7.1

    Hello

    I try to install 11.1.1.7.1 OBIA in Windows 2008.

    All right, upgraded weblogic to 10.3.6

    When I run the following command create the portfolio files.

    The command used:

    c:\Middleware\Oracle_BI1\common\bin\wlst.cmd

    embedded c:\Middleware\Oracle_BI1\bifoundation\install\createJPSArtifactsODI.py - ADMIN_USER

    _Name weblogic - DOMAIN_HOSTNAME localhost - DOMAIN_PORT 7001 - DOMAIN_HOME_

    PATH c:\Middleware\user_projects\domains\bifoundation_domain

    The error:

    WLS: / offline > C:\Middleware\Oracle_BI1\bifoundation\install\createJPSArtifactsOD
    Integrated I.py - weblogic ADMIN_USER_NAME - DOMAIN_HOSTNAME obia111171w64 - d
    N_PORT 7001-DOMAIN_HOME_PATH C:\Middleware\user_projects\domains\bifoundation_
    field
    Traceback (innermost last):
    (no object code) on line 0
    File "", line 1
    E C:\Middleware\Oracle_BI1\bifoundation\install\createJPSArtifactsODI.py
    mbedded - weblogic ADMIN_USER_NAME - DOMAIN_HOSTNAME obia111171w64 - DOMAIN_PORT
    7001 DOMAIN_HOME_PATH C:\Middleware\user_projects\domains\bifoundation_domain

    ^
    SyntaxError: invalid syntax
    WLS: / offline >

    I tried following still errors

    Java weblogic. C:\Middleware\Oracle_BI1\bifoundation\install\createJPSArtifactsODI.py embedded WLST-- ADMIN_USER_NAME weblogic-- DOMAIN_HOSTNAME-obia111171w64 - DOMAIN_PORT 7001-- DOMAIN_HOME_PATH C:\Middleware\user_projects\domains\bifoundation_domain

    from the command prompt, I get this error

    C:\Middleware\user_projects\domains\bifoundation_domain > java weblogic. WLST C:\Mi
    integrated ddleware\Oracle_BI1\bifoundation\install\createJPSArtifactsODI.py - SMA
    WebLogic IN_USER_NAME - DOMAIN_HOSTNAME obia111171w64 - DOMAIN_PORT 7001-d
    N_HOME_PATH C:\Middleware\user_projects\domains\bifoundation_domain

    WebLogic Scripting Tool (WLST) initializing...

    Welcome to WebLogic Server Administration Shell scripts

    Help() type help on the available commands

    Problem call WLST - Traceback (innermost last):
    File "C:\Middleware\Oracle_BI1\bifoundation\install\createJPSArtifactsODI.py"
    line 93, in?
    File "C:\Middleware\Oracle_BI1\bifoundation\install\apps_commonUtils.py", line
    107, parseCommandlineArgs
    File C:\MIDDLE~1\WLSERV~1.3\common\wlst\modules\jython-modules.jar\Lib/getopt «»
    ' $py.class ', line 74, in getopt
    File C:\MIDDLE~1\WLSERV~1.3\common\wlst\modules\jython-modules.jar\Lib/getopt «»
    ' $py.class ', line 124, in do_shorts
    File C:\MIDDLE~1\WLSERV~1.3\common\wlst\modules\jython-modules.jar\Lib/getopt «»
    ' $py.class ', line 139, in short_has_arg
    UnicodeError: ascii coding error: ordinal not in range (128)

    Request:

    Spent a lot of time in troubleshooting, I have rebuilt the image from scratch, reinstalled. Still the same error at this stage. I'm not able to go forward on this step.

    If the problem is not resolved, could you please give another way of "ODI of configuration to use Fusion Middleware"

    Thank you in advance.

    Praveen - Alamuru

    has got the problem solved

    Change the contents of C:\Middleware\utils\config\10.3\setHomeDirs.cmd

    From:

    Set MW_HOME = @ MW_HOME

    FOR %% i in ('% MW_HOME %') SET MW_HOME = %% ~ FSI

    Set WL_HOME = @ WL_HOME

    FOR %% i in ('% WL_HOME %') SET WL_HOME = %% ~ FSI

    TO

    Set MW_HOME = % MW_HOME %

    FOR %% i in ('% MW_HOME %') SET MW_HOME = %% ~ FSI

    Set WL_HOME = % WL_HOME %

    FOR %% i in ('% WL_HOME %') SET WL_HOME = %% ~ FSI

    Rerun the script patch to set the variables correctly

    CD c:\Middleware\Oracle_BI1\biapps\tools\bin

    Perl APPLY_PATCHES.pl apply_patches_import.txt

    Then go to

    c:\Middleware\Oracle_BI1\common\bin\

    Run the following command

    WLST.cmd embedded c:\Middleware\Oracle_BI1\bifoundation\install\createJPSArtifactsODI.py - ADMIN_USER_NAME - DOMAIN_HOSTNAME ibmdemo - DOMAIN_PORT 7001 weblogic - DOMAIN_HOME_PATH c:\Middleware\user_projects\domains\bifoundation_domain

    Hope this helps

    -Praveen

  • WebLogic 10.3.5.0 will not stop or start propperly after upgrade Jdev

    Greetings,

    Our developers have installed Weblogic with Jdeveloper. Now, I'm trying to set up a production environment and use only the version of the ADF.
    DOWNLOAD, ADF runtime is available in version 11.1.1.6 only.
    With that, I was able to start and stop WebLogic, connect to the console via http or https.

    Now, I did the upgrade to ADF 11.1.2.3 using $MW_HOME/wlserver_10.3/common/bin/config.sh.
    The weblogic process starts, but the console is not displayed. Not on the client, not the server (Oracle Linux 6.3).
    When I use stopWebLogic.sh to stop WebLogic, I get:

    means: PermGen space.

    I put the MaxPermSpace in setDomainEnv.sh to 4096 m. It always seems that the MaxPermSize value is not used.
    After this error, the java process remains. The process of java:

    Oracle 29419 29366 18 15:54 pts/4 00:00:43 /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre/bin/java-Xms1024m-Xmx5120m-Dweblogic.Name=AdminServer-Djava.security.policy=/u01/Middleware/wlserver_10.3/server/lib/weblogic.policy-Dweblogic.ProductionModeEnabled=true-da-Dplatform.home=/u01/Middleware/wlserver_10.3-Dwls.home=/u01/Middleware/wlserver_10.3/server-Dweblogic.home=/u01/Middleware/wlserver_10.3/server-Dcommon.components.home=/u01/Middleware/oracle_common-Djrf.version=11.1.1-Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.Jdk14Logger-Ddomain.home=/u01/Middleware/user_projects/domains/base_domain-Djrockit.optfile=/u01/Middleware/oracle_common/modules/oracle.jrf_11.1.1/jrocket_optfile.txt-Doracle.server.config.dir=/u01/Middleware/user_projects/ domaines/base_domain/config/ fmwconfig/serveurs/AdminServer-Doracle.domain.config.dir=/u01/Middleware/user_projects/domains/base_domain/config/fmwconfig-Digf.arisidbeans.carmlloc=/u01/Middleware/user_projects/domains/base_domain/config/fmwconfig/carml-Digf.arisidstack.home=/u01/Middleware/user_projects/domains/base_domain/config/fmwconfig/arisidprovider-Doracle.security.jps.config=/u01/Middleware/user_projects/domains/base_domain/config/fmwconfig/jps-config.xml-Doracle.deployed.app.dir=/u01/Middleware/user_projects/domains/base_domain/servers/AdminServer/tmp/_WL_user-Doracle.deployed.app.ext=/--Dweblogic.alternateTypesDirectory=/u01/Middleware/oracle_common/modules/oracle.ossoiap_11.1.1 , /u01/Middleware/oracle_common/modules/oracle.oamprovider_11.1.1-Djava.protocol.handler.pkgs=oracle.mds.net.protocol-Dweblogic.jdbc.remoteEnabled=false-Dweblogic.management.discover=true-Dwlw.iterativeDev=false-Dwlw.testConsole=false-Dwlw.logErrorsToConsole=false-Dweblogic.ext.dirs=/u01/Middleware/patch_wls1035/profiles/default/sysext_manifest_classpath weblogic. Server

    Java $ [oracle@OL-WLS-PRI] - version
    Java version "1.6.0_24".
    OpenJDK (IcedTea6 1.11.9) runtime environment (rhel - 1.57.1.11.9.el6_4 - x86_64)
    OpenJDK 64-bit Server VM (build 20, 0 - b12, mixed mode)


    I am new to WebLogic.
    What can I check to the cause of this?
    After the start, newspapers shut up.

    The server has 8 GB of memory fysical.

    Java takes up 1, 6 GB of memory.

    Any help is very appreciated.

    Hello

    Didi you follow all the steps in the following link. (What about orders---> upgradeADF)

    http://www.Oracle.com/technetwork/developer-tools/jdev/11gr2update3-1851251.html#11.1.2.3.0ShermanUpdate3-ReleaseNotesREPOSITORY-deployment

    Download and install WLS 10.3.6. Download and install the Application Developer 11.1.1.6. For more information, see the Oracle Fusion Middleware Installation Planning Guide.
    Run the Configuration Wizard of Fusion Middleware and create a new domain or extend an existing domain using the form of statement TOGETHER, EM + GOSA field template.
    Download the Opatch beams 11.1.2.3.0 and use the opatch tool to apply the patches (see install the Patch below).
    Stop servers to domain target.
    Run the command "upgradeADF" of WLST in offline mode (see run the commands below).
    Restart the servers.

    Nilum.

  • Flash integrated into Facebook videos do not 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 a copy on Malwarebytes Anti-Malware to protect me against viruses and malware, and my IT Department confirms that there is no malware infection plays a role here.

    However, I feel something weird and very frustrating reading all Adobe Flash videos that are embedded inside Facebook.com, including those that are shared from YouTube. Opening of the same YouTube video on YouTube.com does not produce the same behavior - videos YouTube ALWAYS play well on YouTube.com (whether embedded or full-screen), but NEVER play fine when they are integrated within a Facebook post.

    NOTE: The same videos work EXACTLY as PLANNED for Firefox and Google Chrome, so this seems to be a problem specific to IE. It started at the time where I was running IE10 and continued to IE11 wire.

    Here is what is happening in the two Internet Explorer 10 and 11:

    1. In my Facebook News feed, I search for a video I want to watch. Before pressing Play, I still see a shot of the video with the play icon transposed on the top of the image.
    2. I click on the play icon to play the video in embedded mode of Facebook (where I can see the other news messages above and below the video).
    3. The image disappears and turns white (no borders, just white). Along the bottom edge of the video is a bar containing the play/pause, volume, maximize buttons etc. Behind these buttons, I can see a view faded still - moving on the lower edge of the video, but the rest of the video area is completely white.
    4. I hear audio that plays, even if I can't see one frame other than the lower edge, that I have just described.
    5. If I click the maximize button on the lower right part of the video, the clip opens to fill the screen and all of a sudden, the video image appears and runs as expected.
    6. If I press ESC to exit the view to enlarge it, returns to the screen (with the video back to the context of RSS) Facebook integrated, but the image turns white again just as in step 3, with audio that plays again as in step 4.
    7. Make a right-click on the offending video brings up a menu drop-down indicating that the video is to use Adobe Flash Player 14.0.0.145.

    Other videos shared on Facebook, like those of vimeo.com, play without any problem in the Facebook.com even news from view, regardless of whether they are built-in or mode full screen. Only the videos using Adobe Flash Player seem to be affected here.

    I tried the following:

    • Uninstalled Adobe Flash Player. Reset. Open Facebook.com, you can find the video in the news feed, which indicates that the Adobe Flash must be installed. Click on the link provided and install Adobe Flash on adobe.com. Return to the video in my RSS on facebook.com and click play. Same behavior such as described above - no change.
    • Addition of facebook.com and youtube.com to my list of Trusted Sites. No change.
    • Addition of facebook.com and youtube.com to view Internet Explorer compatibility, you exit all instances of the browser, has reopened. No change.
    • Checked for unusual browser - nothing found extensions.
    • Cleared web cache, deleted cookies, resets the browsers to default and no advanced - settings default settings unchanged
    • Updates of Windows - all upgrades are underway.
    • Ran full scans with Malwarebytes and Microsoft Security Essentials. No malware or the problems detected. No problem found with roguekiller, adwcleaner and other related malware either tools.

    Any suggestions for me here? I really just click Play to see the video, as anyone can. FYI, all the other computers (Vista, Windows 7 and Windows 8) on my network play these same videos and IE9, IE10, IE11 without the problems I am having with this one. Of course, I'd appreciate any help you can offer!

    This not the time.  It is not ideal, but you have two options to work, which is better than nothing.

    In all likelihood, content providers will have to change the code to meet IE11 and superior.  I spent a lot of time this week examine some technical tips that we put together for the developers, but the long and less, is that IE wants developers to stop writing the code that handles the IE differently from other browsers.

    IE has a history of not working exactly as the other browsers, and for a variety of reasons (including how JavaScript and Flash communicate with each other), the developers as normal practice wrote a lot of code to deal specifically with these quirks in Internet Explorer.

    Out of this impossible situation where they want the markup to be the same for all browsers, but having all this code specifically targeted on the IE due the long legacy to be problematic for web developers, IE masquerades as something else and disables features such as conditional comments that target IE code.

    The net result is that a lot of things is broken in IE11.  We work closely with Microsoft to be good partners and to help in this transition with some technical modifications on our end, but developers will have to change their code and/or update the underlying libraries everywhere on the web.  This will not happen from one day to the next.  Large suppliers of content with more resources will likely exceed the speed of small sites with less developers, but it will be months or years before it shakes.

  • Javafx 2.0 deployment request to the server web and accsess by URL

    Hi all

    I built a JavaFx 2.0 using Netbeans 7.1 application. He created an html file, a jar jnlp file a file with the name of the project. Now, I want to deploy my application on a server for example glassfish or tomcat so that any user can access the URL.

    Is it possible to deploy the application on the server. If so, how?

    I found a link
    http://docs.Oracle.com/JavaFX/2.0/deployment/deploy_overview.htm
    Here he described various mode of executions. In a run mode it say that we can launch the application from a remote server using Web Start. But I'm not able to get the steps how to achieve this.


    Thank you
    Vikas

    You deploy a client application via a network, you cannot be sure that the computer that is running the client application will have the configuration property file in the location you are trying to access (unless your application he wrote). Even if the file is there that you must sign your application deployed to have access to it, which is usually an unnecessary hassle.

    As an aside, use the code format specifiers (see thread sticky at the top of the forums) to apply inlining code in forum posts because it makes the code more readable.
    -----
    For that to work, you must package configuration properties inside your pot with the rest of your resources, then you can load it via:

    pro.load(LoginPage.class.getResourceAsStream("config/config.properties");
    

    OR, if you can't bundle configuration properties in the pot, for example because you want to vary the configuration regardless of deployment of a new pot, you can host on your Web server configuration to a relative location where host you your application and get it from here:

    HostServices hosting = getHostServices();
    pro.load(new URL(hosting.resolveURI(hosting.getDocumentBase(), "config/config.properties")).openStream());
    

    For example, if the application jar is located in the ROOT/webapps of tomcat directory, and you want to access config/config.properties using HostServices, then place config.properties in the webapps/ROOT/config/config.properties

    Now, if you have specific user rather that wide application configuration, you will need to implement a web service for storing specific user configuration and to read and write from that or you need read and write the configuration of the user on the local drive by using the jnlp FileService for unsigned application , or any where on the disk if you have a signed application.

    However, it seems that your configuration is to store only a hostname, the port and service network app path. If you can make the path to the app for your network service in relation to where you deploy your application and save the relative path as a constant in your application, you could get only the information of:

    HostServices hosting = getHostServices();
    URL serviceURL = new URL(hosting.resolveURI(hosting.getDocumentBase(), APP_PATH));
    ServiceCommunicator.HOSTNAME = serviceURL.getHost();
    ServiceCommunicator.PORT = serviceURL.getPort();
    ServiceCommunicator.SERVER_APP_PATH = serviceURL.getPath();
    

    In this way, you wouldn't have to define, maintain and load a separate config.properties file.
    In addition, with the path of the service against your deployment application facilitates application host elsewhere and denies the need to sign the application for network services to work when the application is deployed in embedded mode webstart or browser.

    Published by: jsmith on January 20, 2012 01:11
    I thought that you could load a properties with just a url string, but it must in fact be a stream, so I've updated the call to load the properties in order to take a course of water.
    Has changed

    pro.load(hosting.resolveURI(hosting.getDocumentBase(), "config/config.properties");
    

    TO

    pro.load(new URL(hosting.resolveURI(hosting.getDocumentBase(), "config/config.properties")).openStream());
    
  • Maximum number of outdated lines

    Hello

    I'm using Smart View (Hyperion 11.1.2.1) where large data must be retrieved. But during the extraction, I get the error message "error Essbase (1020011): maximum number of lines [5000] exceeded." I modified the file essbase.properties as below.

    ################################################################################
    # Properties file used by ANALYTIC PROVIDER SERVICES
    # The version 11.1.2.1.00 - Talleyrand SP1
    ################################################################################

    # Use / for separator.

    # Data used in embedded mode JAPI directory
    # Specifies the location of the folder that contains the file domain.db
    # If the FMV - DESS_ES_HOME option points to a HPS installation directory and domain.db
    # beneath ESS_ES_HOME/data, this entry is not necessarily present.
    # else, specify the location of doamin.db here.
    # system.dataDir =

    # Specifies values for the Essbase Server network connection
    # APS will try netConnectRetry times to connect to an Essbase server.
    olap.server.netRetryCount = 1200
    olap.server.netConnectRetry = 3
    olap.server.netDelay = 1200
    olap.server.netSocketTimeOut = 1200
    # Specifies the maximum rows/columns for dataquery grid. a value of 0 indicates no limit.
    service.olap.dataQuery.grid.maxRows = 10000
    service.olap.dataQuery.grid.maxColumns = 255

    # Record Configuration - logging.xml moved

    # Maximum downtime for HPS sessions (in minutes)
    System.session.Timeout = 60

    # system.faultTolerance
    # retryTime - Maximum number of times to retry
    system.faultTolerance.retryTime = 10

    # monitorInterval - interval schedule thread to monitor the cluster components.
    term # in seconds
    system.cluster.monitorInterval = 30

    ################################################################################
    # BEGIN: Specific properties of Smartview
    ################################################################################
    SmartView.System.checkforspecialchars = true
    smartview.webservice.autoadd.EssbaseLocalhost.server = true
    SmartView.WebService.autoDeploy.force = false
    SmartView.WebService.autoDeploy.Warn = false
    SmartView.WebService.gzip.compression.Disable = false
    ################################################################################
    # At the END: specific properties of Smartview
    ################################################################################

    After doing this, I restarted the service - "Hyperion - Web Application Services Provider". I still get the same error in Smart View.

    Please let know us if I missed something.

    Thank you.

    Edited by: user13325223 January 6, 2012 12:39

    Have what place you updated of essbase.properties, as it exists in a number of places

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • Help with Essbase 9 and the Java API

    Hi, I am trying to connect to Essbase to a Java desktop app and I'm unable to do so. I need to know if I'm in principle do the right things and if I have the good environment set up.

    We have a server with Essbase version 9.3.1. We normally use essbase through the Excel add-in, and I already wrote it Excel applications that can use both the add-in and the Essbase API in VB. Now, I need to connect to Essbase but out of Excel and using the Java API. I have no idea what is APS don't my Essbase administrator.

    My request has the following (adapted from a post on this forum)-
    Public Shared Sub main (String [] args) {}
    String s_userName = 'user ';
    String s_password = "password";
    String s_olapSvrName = "ustca111";
    String s_provider = "http://localhost:13080/aps/JAPI ';
    try {}
    ESS IEssbase = IEssbase.Home.create (IEssbase.JAPI_VERSION);
    DOM IEssDomain = ess.signOn (s_userName s_password, s_provider, null, false);
    IEssOlapServer olapSvr = (s_olapSvrName) dom.getOlapServer;
    olapSvr.connect ();
    System.out.println ("connection to the server Analyic '" + olapSvr.getName () + "' has been a success.");
    olapSvr.disconnect ();
    } catch (EssException exp) {}
    System.out.println (exp.getMessage ());
    } }

    I'm running my app on my computer, not on the Essbase server, and the user name that I use is the same one I use (as a user of Essbase) through the Essbase Addin in Excel, not an admin login.

    When I run the application, I get:
    "Cannot connect to the Server.Make provider ensure that access code settings are correct and the server of the provider is running."

    Please can you confirm:
    (1) do I need an admin login for my client application to connect to the Essbase server or can I use a dial-up connection in normal play, like the one I use in Excel?
    (2) is the same provider regardless of the computer, i.e. "http://localhost:13080/aps/JAPI '; How can I know what this could be? Where can I get this information?
    (3) how can I make sure that the server is running the server needed 'provider', it's just a service that appears on the server services.msc? What should I ask the Essbase administrator for him to tell me what I need?

    Thank you very much.

    Leo

    Leo,

    You have APS and Shared Services running on your server? It would be the first question to answer. If you put in the url (http://localhost:13080/aps/JAPI, in your program) in a browser, you get a generic APS screen, or you get an error "page is not available. Unless you connect to APS that is running on the same computer that is running your Java application, the section 'localhost' should be the name of your APS Server.

    (1) for this Java program, you connect just to read only access that ID is OK
    (2) the supplier would be the same for every customer. The provider is the URL of your APS Server. Unless you run in embedded mode, you must APS to connect with the Essbase server. In embedded mode, you talk with the Essbase server, see [this thread | http://forums.oracle.com/forums/thread.jspa?messageID=3314485?].

    (3) APS - Analytic Provider Services, I'm not sure what it would show on a Windows Server. I suppose it would be something on Hyperion System 9 Analytic Provider Services. If you have installed APS, I would try the embedded road because it's the only way you will get to work.

    Published by: rjgideon on June 2, 2010 16:18

  • Read external MP3 too fast

    Hello
    I entered in a previous post and said that my external MP3 did not work with Flash 8.0. I tried a longer sound wave and what it seems to be that the sound wave is read back but at high speed, which is unintelligeble.

    The file MP3 must be converted or formatted in a certain way to use as an external MP3 player. I imported the exact same MP3 file and it works without problem in embedded mode.

    Thank you
    Hugh

    > I entered in a previous post and said that he did not work with my external MP3
    > Flash 8.0. I tried a longer sound wave and what it seems to be that the
    > sound wave is reading, but at a high speed, it is unintelligeble.
    >
    > The file MP3 must be converted or formatted in a certain way to use as
    > an external MP3 player. I imported the exact same MP3 file and it works without any
    > problem in embedded mode.

    Hello

    Audio that sound like Chipmunks is cause of inappropriate bitrate.

    It is preferable to use the mono sounds of 16-bit 22 kHz (stereo uses twice as much data as mono), but Flash can
    import two sounds 8-bit or 16-bit at frequencies of sampling of 44 kHz, 22 or 11.

    --
    Concerning

    Urami

    --

    Happy new year guys - all the best there is in the 2006 :)


    http://www.Flashfugitive.com


    http://www.Firefox.com

  • P50 of Lenovo's PowerPoint does not play the videos embeded extended screen mode

    I am using Lenovo P50 (i7, Quatro M1000M), Win10 - 64 bit and Office 2016. When you use Powerpoint in Extended projection mode embeded videos don't play. However, when I go to double projection mode it works fine, as expected.

    The drivers are up-to-date - verified by Lenovo System Update & Microsoft Update.

    No idea how to fix?

    Thanks in advance

    The same problem I had: to force the Nvidia to run. You can do this by disabling the iGPU Intel in the BIOS.

  • Embedded Python import questions (numpy, scipy, h5py) in release mode

    Background:

    I'm working on a scientific application that uses numpy/scipy (Python modules) in the backend for the calculation and h5py for data collection.  My application consists of a layer of UI in QML/C++ calling an embedded digital computations Python interpreter.

    I have compiled successfully cross - the following libraries:

    BLAS, LAPACK, HDF5, Python3.2, numpy, scipy and h5py

    The application under app/native directory structure is as follows:

    + assets

    + qm

    + usr

    + include

    + lib

    + pkgconfig

    + python3.2<- numpy/scipy/h5py="" exists="" within="" the="">

    libblas.so

    libgfortran.so.3

    libhdf5_hl.so.8

    libhdf5.so.8

    liblapack.so

    libpython3.2m.so

    libpython3.2m.so.1.0

    libpython3.so

    So far, I am able to run my application in debug mode and was able to import various Python modules (including plug-ins) without any problem.

    Problem:

    As I approach of realization, I started testing in release mode and noticed the following:

    (1) loading external libraries that are formatted in the works of the file bar (ie: I'm able to call BLAS/LAPACK Fortran libraries HDF5 routines).

    (2) run the Python interpreter works integrated (in the main thread or in a separate thread)

    So, I am able to confirm that the external libraries and the Python interpreter running in release mode, as well.

    Problems occur when I tried importing Python modules:

    (3) import builtin Python modules/packages works without problem

    (4) import of modules/packages with relative path fails.  Example, if I run the command:

    Import numpy

    This works in debug mode but not in release mode.  After further review, it seems that when importing packages, any import with relative path statement will fail.  In release mode, the example above does not have:

    Of. import scimath as emath

    However, the following statement works:

    from .scimath import *.

    I have two questions:

    (1) no assumption whether it is a problem of Python, is a matter of output mode?  I'm leaning toward release mode because the same application runs in debug mode.  I also looked at the python source code and could not see nothing esoteric files IO operations.

    2) based on the observation, it seems that relative paths are handled differently between the Debug and Release modes.  Could someone tell me please to some documentation explaining the differences?  And if there is no such thing as these documents, may provide a brief summary?

    Thank you

    Josh

    Ok.  I think just, I solved my problem.  I will list the observations of first and then another solution that could be useful to someone in a similar situation.

    Bottom Line Solution (if you don't want to read more):

    Apparently, I have compiled my LAPACK library with extended precision of point floating (128 bits) that are not supported on the Cortex A9.  I recompiled LAPACK with double precision.  Running and the import of the application in release mode now works.

    Interesting observations:

    At first, I thought that the dynamic library release mode handles loading differently than the debug mode, because during development, I never came across questions.  As a result, I decided to directly link all libraries that numpy using in my application (even if the application does not use them).  Compile and link all are perfect, but of course, during execution, the numpy failed to load module.

    So I decided to run it in debug as a validation test mode.  Surprisingly, the application will fail at the binding stage!  It gives symbols not try to call the extended precision of the XBLAS library routines (which, as mentioned previously, does not work on the Cortex A9).  At this point, I'm completely flabbergasted that I've been running the application using LAPACK in debug mode without ever seeing this message for almost a year.

    I wondered how is this possible?  I also use the linear algebra of scipy module, calling LAPACK/BLAS routines without problems during development.  In debug mode, I never see this failed or any message indicating that there are unresolved symbols in my the LAPACK library.  In addition, I cross check all calculations against MATLAB/Octave and they are correct.

    Conclusions:

    Here are my conclusions, and if a BlackBerry person can confirm, I'll be very grateful:

    (1) in the mode of publication, the dynamic linker will check each symbol in a shared runtime library.  If no symbol is not resolved regardless of whether your application is used or not, the library of loading will fail.  This does not work in debug mode.

    2) there is a potential bug (not sure) in the linker which also behaves differently between the debug mode and release mode.  In debug mode, the linker cannot link a shared library if no symbol cannot be resolved despite the executable not referencing them.  In release mode, the linker will not FAIL.

    If the two above are met, then I would make a suggestion to change behaviors such as build step and run step behaviors are aligned between them.  Please let me know if it's intentional or if I should file a bug report.

    Thank you
    Josh

    PS: Btw, I also built a Fortran cross compiler in case you're wondering how I managed to compile the BLAS and LAPACK for BlackBerry.

  • Blending modes within several compositions embedded layer - please help?

    I have a main composition that contains multiple embedded compositions.  Fairly typical workflow.

    Let's say that the main composition is called 'main_comp' and one of my embedded compositions is called "comp_A".

    In comp_A, I have a solid layer of black with a lensflare effect applied.  I have this set to 'Add' blend mode layer, so that all the black pixels are ignored.  This allows all images under this lensflare layer to show through.  This set works very well in comp_A.

    I integrate comp_A into my main_comp.  The 'Add' on my lensflare layer blending mode displays more correctly once inside main_comp.  The layer makes it totally opaque block anything in the main_comp below.

    I hope that makes sense.  If someone has the time to help, I can provide more information if necessary.  Thanks in advance.

    Press the "collapse of transformations/continuously Rasterize" for comp_A in your main comp - who could do.

Maybe you are looking for

  • wireless problem

    Hello got this laptop there are a few internet week was working fine then all of a sudden decided to keep disconnecting me every 5 minutes, sometimes does not allow me to reconnect and sometimes reconnection and say 'limited access' (but pages not lo

  • Cannot open a new meeting.

    When I open Windows Meeting Space and try to start a new meeting, it says "cannot open a new meeting because you have not enabled with valid IPv6 addresses network adapters. I went and watched the network cards I have and they say that IPv6 and IPv4

  • Inspiron 15 touch (3521) screen questions 2.

    Just bought the touch screen of Inspiron 3521.  Two questions: The touch screen requires a screen protector?  A lot of different answers.  Would like your opinion! The outside cover shows traces of fingers (even with clean hands).  Can we replace the

  • CSA for ICM/IPCC and SQL Backup Wizard

    I have CSA for ICM (version 4.5 - 1 build 639) installed on all our servers to the ICM. It prevents SQL to make its backups to a network share. I stop the CSA and backups work fine. Thus, the permissions aren't too bad on the share drive. The backup

  • HP-pavilion upgrade question

    I have a pavilion p6110t PC x64based (CTO) which was purchased in June 2009. It came with Vista and I upgraded to Windows 7 Home premium as soon as it was released in October 2009. I also added a 4 GB of RAM for a total of 7 GB. and I have svc. Pack1