JavaHelp not rendering HTML when run from Fatjar

I'm experiencing a strange problem with JavaHelp: when I run my app from Eclipse and open JavaHelp, the html help pages render just fine. If I Fatjar the app and run it from the fatjar, however, then when I open the JavaHelp, my html help pages are displayed as raw text, HTML tags and all. For some reason it's not rendering the HTML. I'm guessing that maybe the fatjar is messing up the JEditorPane's ability to detect the content-type of the help pages, but I have no idea how to fix it if that's the case.
I'm using a plain vanilla HelpSet file, pretty much straight out of the JavaHelp User's Guide.
Anyone have any idea what might be causing this or how I might fix it/work around it? Has anyone else seen this problem before?

For whatever it's worth, I am seeing this problem as well. It doesn't seem to have to do with FatJar, as I'm seeing it when I simply do the following:
    HelpSet helpSet = null;
    final ClassLoader cl = this.getClass().getClassLoader();
    try {
      helpSet = new HelpSet(null, HelpSet.findHelpSet(this.getClass().getClassLoader(), "IdeHelp.hs")); // XXX bogus for now
    } catch (final Exception kaboom) {
      helpSet = null;
    if (helpSet != null) {
      final HelpBroker helpBroker = helpSet.createHelpBroker();
      final ActionListener helpItemActionListener = new CSH.DisplayHelpFromSource(helpBroker);
      final JMenuItem primaryHelpItem = new JMenuItem("Help\u2026");
      primaryHelpItem.addActionListener(helpItemActionListener);
      helpMenu.add(primaryHelpItem);
    }I suspect it's a problem with the classloader, but I haven't dug to find out what exactly.
Best,
Laird

Similar Messages

  • Class not being created when running from jar

    Hi all,
    Tech info first:
    IDE: Sun Java Studio Enterprise 8
    Plaform: windows xp
    I have created a Swing app, that connects to a com port(using the RXTXcomm). now, when I run the app in the IDE, everything is fine and dandy, but, when I run the jar file, the application loads, but the class in the app which deals with the com port is not created. here is the code:
        private static void createAndShowGUI() {
            //Make sure we have nice window decorations.
            JFrame.setDefaultLookAndFeelDecorated(true);
            Main receiver = new Main();
            receiver.getPropertiesFromFile();
            //Create and set up the window.
            frame = new JFrame("R�FILOG RFID Empf�nger");
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            frame.setContentPane(receiver.mainPanel);
            frame.setJMenuBar(receiver.createMenuBar());
            frame.addWindowListener(receiver);
            frame.setLocationByPlatform(true);
            //Display the window.
            frame.pack();
            frame.setVisible(true);
            portListener = new RFIDReaderComm(receiver, "COM3");
            portListener.getConfiguration();        
        public static void main(String[] args) {
            //Schedule a job for the event-dispatching thread:
            //creating and showing this application's GUI.
            javax.swing.SwingUtilities.invokeLater(new Runnable() {
                public void run() {
                    createAndShowGUI();   
    portListener in the createAndShowGUI() function is an interface level parameter and is the class that is not being created. There is no error message.
    If I move the two lines that deal with the port listener before the frame.pack() line, then the GUI is not even loaded, and when I view the processes in the task manager, the process starts and then quits without anything becoming visible. So from this I guess there is a problem with creating the class when running from a jar, but without any error messages, I have not a clue where to start...can anyone help?
    thanks in advance.

    Well, some more info, so maybe someone can come up with some tips for me...this is really important, and any help is greatly appreciated.
    This is obviously a classpath problem. After running the my jar file with java -jar I finally got the error NoClassDefFoundError
    Kind of obvious I suppose. But, I cannot seem to get the two jar files I need into the classpath. I have tried the following:
    Updating my computers CLASSPATH with the relevant paths - not working
    Trying to get the Sun Java Studio Enterprise to build the required jar files into the final package - cannot get this to work
    Tried updating the manifest.mf in the following way:
    Created a text file Manifest.txt with the lines:
    Class-Path: RXTXcomm.jar
    Class-Path: BrowserLauncher2-10rc4.jar
    ran the command (in the same directory as Manifest.txt):
    jar cfm RUFILOGScanner.jar Manifest.txt classes/*.class
    but this does not work either. When I run: jar tf RUFILOGScanner.jar all I get is:
    META-INF/
    META-INF/MANIFEST.MF
    classes/
    classes/CRCCalculator.class
    classes/Main$1.class
    classes/Main.class
    classes/RFIDReaderComm.class
    classes/URLDialog$1.class
    classes/URLDialog$2.class
    classes/URLDialog.class
    the classes I want added are not there. Plus, (I think this is because I am running SE8) the manifest.mf is not in a folder called META-INF. In fact, I have no folder called META-INF. Is this significant?
    Please, can anyone help me?

  • VO substitution not taking effect when running from Jdev

    Hi,
    I made a VO substition. However, when running the page from Jdev, the substition is not in effect. When I press "about this page" I see the original view objects - not my own.
    I have verified that my .jpx file contains the substitution.
    I have tried followed the instructions in the OAF user guide and added -Djbo.project=<myprojectname> to the project runtime java options.
    However - if deploying the jpx file on the server with jpximport, the substitution is working. But why is it necessary to deploy that substition on the server when running locally. Also, that should not be necessary according to the user guide.
    Any ideas?

    When running locally u don't need to dceploy substitution on server.You only need to add substitutions in jdev and added -Djbo.project=<myprojectname>
    Note that
    the Name value is the .jpx file name without the .jpx extension (for example, ExtendLabSolutions). Be
    sure to include a space between any existing options and the new option.Also confirm u have put correct jpx file name.
    When I press "about this page" I see the original view objects - not my own.
    This is because about this page must be picking VO definations from DB, and since ur extended files are not in jdev... it will not reflect here.--Mukul                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • BeanInfo not being found when running from a JSP in WebLogic 6.1

    Hi,
    I wrote a BeanInfo base class for dynamically building HTML Tables using an array of beans. I wrote the code and tested it all using the command line and verified that the Beans were dynamically loading and displaying based upon the rules I had defined in the base class. Basically I was using the Introspector to find the class. When I transfered the code into a JSP running on WebLogic 6.1 it is never finding my BeanInfo. I even tried having the end BeanInfo be the bean itself (Had the Bean extend the BeanInfo). Still didn't find it and keeps giving me the default (or GenericBeanInfo) class to represent my Bean when calling the Introspector.getBeanInfo. I am making sure that my Introspector.setBeanInfoSearchPath is being done correctly. Like I said it is working ont the command line.
    Why is the Introspector not finding the correct BeanInfo class for my Bean when I do it inside of a JSP?

    Never mind, I figured out what is wrong. It always returns the GenericBeanInfo but it still goes throught the motions of calling the underlying BeanInfo.
    So, ignoe. I can't delete the topic.

  • RTF template does not format properly when run from Concurent Manager

    Hi
    I have complex RTF template; many stuff in are in header in word table format,body section again fields are in table format and Footer again in word table format.
    When I run BI Publisher report as concurrent request half the content like header and footer are not displayed. I can see copmlete report when I preview using XML data in word. Is there any limitaions that certan fonts, word format features not supported in RTP template. What is the best way to put header, body and footen in main body area rather using Header and Footer features of word?
    Thanks and regards

    You can use the start:body etc syntax to move your header/footer into the main part of the document. This way you can use form fields.
    Regards,
    Gareth

  • Subreport not displayed when Run from SAP Business One

    We have a crystal report that displays a subreport when it is run from within the Crystal 2008 Designer but not when run from within SAP. Has anybody else seen this error? We have tried importing it into SAP and checking the connections of the report and subreport etc but to no avail.

    Sastry,
    The main report is a document layout with the sub report linked into it using the DocEntry key field from SAP. The subreport should display data based on that link.
    This main report only has the one sub report and when you preview in Crystal it returns data, when you preview using the same criteria but inside of SAP, it is not displayed.
    Thanks
    Mark

  • Create trigger not audited when run from sql developer Version 3.2.20.09

    Creating or editing a trigger is not being stored in the audit table when run from sql developer.
    Here is a sample script to show the issue:
    Grant Connect,create table,create trigger To testuser Identified By testuser;
    create table testuser.testtab(t1 number);
    Select Count(*) From Dba_Audit_Trail Where Owner='TESTUSER';
    CREATE OR REPLACE TRIGGER testuser.testtab_bi_trg BEFORE
      Insert
          ON testuser.testtab FOR EACH ROW
    begin
      null;
    end;
    Select Count(*) From Dba_Audit_Trail  Where Owner='TESTUSER';
    drop user testuser cascade;
    If I run the script from sql developer the CREATE TRIGGER statement does not get audited.
    If I run the script from sql plus or All Arround Automations PL/SQL Developer the CREATE TRIGGER statement does get audited.
    If I edit the trigger from sql developer the CREATE TRIGGER statement does not get audited.
    If I edit the trigger from  All Arround Automations PL/SQL Developer the CREATE TRIGGER statement does get audited.

    DoyleFreeman wrote:
    Not sure what you mean by "perform the audit".
    Have you tested my script? Does the "Select Count(*) From Dba_Audit_Trail  Where Owner='TESTUSER';" increment by 1 after each of the ddl statements or only after the Create table statement.
    Your question doesn't have ANYTHING to do with sql developer and should be posted in the Database General forum
    https://forums.oracle.com/community/developer/english/oracle_database/general_questions
    Yes - and it works just fine once you ENABLE AUDITING. Your scripIt  does NOT include the statements or code used to ENABLE auditing and, specifically, enable auditing for triggers.
    Auditing doesn't just 'happen'; you have to enable it and you have to specify any non-default auditing that you want to perform.
    Have you read any of the extensive documentation about auditing to learn how to use it?
    See the Database Security Guide
    http://docs.oracle.com/cd/E11882_01/network.112/e16543/auditing.htm
    Also see 'Auditing Functions, Procedures, Packages, and Triggers
    http://docs.oracle.com/cd/E11882_01/network.112/e16543/auditing.htm#BCGBEAGC
    And see the AUDIT statement in the SQL language doc for how to specify auditing of specific operations.
    http://docs.oracle.com/cd/E11882_01/server.112/e26088/statements_4007.htm
    Select count(*) From Dba_Audit_Trail  Where (Owner='SCOTT' or username = 'SCOTT')
    and action_name = 'CREATE TRIGGER';
    COUNT(*)
    0
    audit create trigger by scott
    CREATE OR REPLACE TRIGGER emp_copy_bi_trg BEFORE
      Insert
          ON emp_copy FOR EACH ROW
    begin
      null;
    end;
    Select count(*) From Dba_Audit_Trail  Where (Owner='SCOTT' or username = 'SCOTT')
    and action_name = 'CREATE TRIGGER';
    COUNT(*)
    1

  • ZBook 17 g2 - poor DPC Latency performance when running from z Turbo Drive PCIe SSD

    I'm setting up a new zBook 17 g2 and am getting very poor DPC latency performance (> 6000 us) when running from the PCIe SSD. I've re-installed the OS (Win 7 64 bit) on both the PCIe SSD and a SATA HDD and the DPC latency performance is fine when running from the HDD (50 - 100 us) but horrible when running from the PCIe SSD (> 6000 us).  I've updated the BIOS and tried every combination of driver and component enabling/disabling I can think of.  The DPC latency is extremely high from the initial Windows install with no drivers installed.  Adding drivers seems to have no effect on the DPC latency. Before purchasing the laptop I found this review: http://www.notebookcheck.net/Review-HP-ZBook-17-E9X11AA-ABA-Workstation.106222.0.html where the DPC latency measurement (middle of the page) looks OK.  Of course, this is the prior version of the laptop and I believe it does not have the PCIe SSD.  Combining that with the fact that I get fine performance when running from the HDD I am led to believe that the PCIe SSD is the cause of the problem. Has anyone found a solution to this problem?  As it stands right now my zBook is not usable for digital audio work when running from the PCIe SSD.  But it cost me a lot of money so I'd sure like to use it...! Thanks, rgames

    Hi mooktank, No solution yet but, as of about six weeks ago, HP at least acknowledged that it's a problem (finally).  I reproduced it perfectly on another zBook 17 g2 and another PCIe SSD in the same laptop and HP was able to reproduce the problem as well.  So the problem is clearly in the BIOS or with some driver related to the PCIe SSD.  It could also be with the firmware in the drive, itself, but I can't find any other PCIe drives in the 60 mm form factor.  So there's no way to see if a differnt type of drive would fix the problem. My suspicion is that it's related to the PCIe sleep states - those are known to cause exactly these types of problems because the drive takes quick "naps" to save power and there's a delay when it is told to wake back up.  That delay causes a delay in the audio buffer that results in pops/crackles/stutters that would never be noticed doing other tasks like video editing or CAD work .  So it's a problem specific to folks who need low-latency audio performance (very few apps require low latency audio - video editing, for example, uses huge buffers with relatively high latency).  A lot of desktops offer a BIOS option to disable those sleep states but no such option exists in HP's BIOS for that laptop.  In theory you can do it from within Windows but it doesn't have an effect on my system.  That might be one of those options that Windows allows you to change but that actually has no effect. One workaround is to disable CPU throttling.  That makes the CPU run at full speed all the time and, I believe, also disables the PCIe and other sleep states.  When I disable CPU throttling, DPC latency goes back to normal.  However, the CPU is then running full-speed all the time so your battery life basically goes to nothing and the laptop gets *very* hot. Clearly that is not necessary because the laptop runs fine from the SATA SSD.  HP needs to fix the latency problem associated with the PCIe drive. The next logical step is to provide a BIOS update that provides a way to disable the PCIe sleep states without disabling CPU throttling, like on many desktop systems.  The bad news is that HP tech support is not very technical, so it takes forever for them to figure out what I'm talking about.  It took a couple months for them to start using the DPC Latency checker. Hopefully there will be a fix at some point... in the meantime, I hope that HP sends me a check for spending so much time educating their techs on how computers work.  And for countless hours lost re-installing different OSes only to show that the performance is exactly the same as shown in the DPC Latency checker. rgames

  • Opening Excel Workbook Fails when run from Scheduled Task on Windows Server 2008 Rw

    Hi,
    I have a little vbs script that instantiates the Excel.Application object and then opens a work book to perform some tasks on it. The script runs fine when run from the command line. When I attempt to run it as a scheduled task (it is supposed to update
    data that is pulled from a SQL Server at regular intervals), it fails with the following error:
    Microsoft Office Excel cannot access the file 'c:\test\SampleWorkbook.xlsm'. There are several possible reasons: .....
    The file does exist. The path reported in the error is correct. The account under which the task is running is the same account I use to run it from the command line. User Account Control is not enabled, and the task is set up to run with highest privileges.
    When I run the same script through the Task Scheduler from a Windows Server 2003 machine, it works without issue.
    I was just wondering if somebody on this forum has run into a similar issue in connection with Windows Server 2008 R2 and figured out what the magic trick is to make it work. I'm sure it is rights related, but I haven't quite figured out what which rights
    are missing.
    Thanks in advance for any advice you may have.

    This is truly killing me ... trying to get it working on Windows Server 2012 without success.
    I desperately need to automate running Excel macros in a "headless" environment, that is non-interactive, non-GUI, etc.
    I can get it to work using Excel.Application COM, either via VBScript or Powershell, successfully on many other Windows systems  in our environment - Windows Server 2008 R2, Windows 7 (32-bit), etc.,  -BUT-
    The two servers we built out for running our automation process are Windows Server 2012 (SE) - and it just refuses to run on the 2012 servers - it gives the messages below from VBScript and PowerShell, respectively- 
    I have tried uninstalling and re-installing several different versions of Microsoft Excel (2007 Standard, 2010 Standard, 2010 Professional Plus, 32-bit vs. 64-bit, etc.), but it makes no difference.
    Would be extremely grateful if any one out there has had any success in running Excel automation on Server 2012 in a non-interactive environment that they could share.
    ( I have tried adding the "%windir%\syswow64\config\systemprofile\desktop"
    folder, which did fix the issue for me when testing on Windows Server 2008 R2, but sadly did not resolve it on Windows Server 2012 )
    [VBScript error msg]
    Z:\TestExcelMacro.vbs(35, 1) Microsoft Office Excel: Microsoft Office Excel cannot
    access the file 'Z:\TestExcelMacro.xlsm'. There are several possible reasons:
    • The file name or path does not exist.
    • The file is being used by another program.
    • The workbook you are trying to save has the same name as a currently open work
    [Powershell error msg]
    Exception calling "Add" with "0" argument(s): "Microsoft Office Excel cannot open or save any more documents because th
    ere is not enough available memory or disk space.
     To make more memory available, close workbooks or programs you no longer need.
     To free disk space, delete files you no longer need from the disk you are saving to."
        + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
        + FullyQualifiedErrorId : ComMethodTargetInvocation
    You cannot call a method on a null-valued expression.
        + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
        + FullyQualifiedErrorId : InvokeMethodOnNull

  • Bug?: layers.add() is not working properly when invoked from menu (ID/CS6/Win7)

    Hello Devs,
    I am facing a mysterious issue with the layers.add() method.
    I am trying to create n number of layers for my document. So I have decided to create a menu for this.
    I have creatd two scripts
    1. For creating menu & menu action,
    2. Actual script that creates n number of layers.
    When I run the script #2 direclty from ESTK it works fine.
    Now when I try to invoke the same script from the Menu it is not working fine. Only the last layer is created.
    Script 1: LayerPopupMenuAction
    #target indesign
    #targetengine createLayerset
    var layerTemplateScript = File(File(getActiveScriptPath()).parent.fsName+"/IntializeTemplate.jsx");
    var initTemplateHandler = {
        'beforeDisplay' : function(ev)
                ev.target.enabled = (app.documents.length>0);
        'onInvoke' : function()
                app.doScript(layerTemplateScript, ScriptLanguage.JAVASCRIPT, undefined, UndoModes.FAST_ENTIRE_SCRIPT, "Initialize Script");
    var layerMenuAction = app.scriptMenuActions.add("&Create Layer Set");
    for(var init_ev in initTemplateHandler) {
        layerMenuAction.eventListeners.add(init_ev, initTemplateHandler[init_ev]);
    var refMenuItem = app.menus.item("$ID/LayerPanelPopup");
    refMenuItem.menuItems.add(layerMenuAction, LocationOptions.AFTER, refMenuItem.menuItems.item(2));
    function getActiveScriptPath() {
        // This function returns the path to the active script, even when running from ESTK
        try {
            return app.activeScript;
        } catch(e) {
            return e.fileName;
    Script 2: IntializeTemplate
    #target indesign
    if (app.documents.length == 0){
        alert("Please open a document and try again", "Document Error", true);
        exit();
    var templateDoc = app.activeDocument;
    var layerNameArray = ["Fixed_Static_Assets", "Absolute_User_Assets", "Relative_User_Assets"];
    CreateLayers(layerNameArray);
    alert("Initialization Successful");
    //--------------------------------FUNCTIONS ARE DEFINED HERE--------------------------------
    function CreateLayers(LayerNameList){
        var layerListLength = LayerNameList.length;
        var layerObject;
        for (var ln=0; ln<layerListLength; ln++){
            layerObject = templateDoc.layers.itemByName(LayerNameList[ln]);
            if (layerObject.isValid==false){
                layerObject = templateDoc.layers.add({name:LayerNameList[ln]});
                //$.writeln('Layer Creation: ' + layerObject.isValid + ' for '+layerObject.name);
        //Merger Default Layer with the bottom layer:
        var defaultLayer = templateDoc.layers.itemByName("Layer 1");
        if(defaultLayer.isValid==true){
            //$.writeln('Default is Valid and will be merged with top most layer');
            layerObject.merge([defaultLayer]);
    Any help / guidance on this regard will be much helpful.
    @Marijan Tompa [tomaxxi]: I googled for the solution and noticed that you have already worked on similar type of script. Please help me if you can.
    Thanks
    Green4ever

    Hi Green4ever,
    At a very first sight I'd suspect UndoModes.FAST_ENTIRE_SCRIPT which, as you may know, can deeply scramble script steps, especially when a try...catch is in use.
    Try to replace FAST_ENTIRE_SCRIPT by ENTIRE_SCRIPT and tell us.
    @+
    Marc

  • Jdbc connection blocks when run from jar

    The following code establishes a connection EXCEPT when run from within a jar file:
    String jdbcDriverName = "oracle.jdbc.driver.OracleDriver";
    String dbConnectionURL = "jdbc:oracle:thin:@192.168.2.7:1521:PRISM";
    String userName = "mdo";
    String password = "mdpass";
    // Load the JDBC driver and create a connection to the database
    Class.forName( jdbcDriverName );
    OracleDataSource dataSource = new OracleDataSource();
    dataSource.setURL( dbConnectionURL );
    dataSource.setUser( userName );
    dataSource.setPassword( password );
    connection = dataSource.getConnection();
    When run from a jar file, the application does not execute beyond the line:
    connection = dataSource.getConnection();
    No exceptions are thrown, it just appears that getConnection never returns.
    Do I need to do anything different to execute this code from within a jar file?
    Thanks in advance,
    Phil
    <><

    When building the JAR file, I inadvertently included files from two Oracle JDBC driver versions (1.2 and 1.4). I was building a single jar file with all files in it.
    I am guessing same named files existed in both driver JARs and caused "confussion" when combined into the single JAR.
    Still, I would have expected an exception to be thrown or a null connection to be returned instead if the thread just blocking.
    Thanks for all replies,
    Phil
    <><

  • Scim makes leafpad take a while to load, except when run from terminal

    Leafpad normally loads up in an instant. But with scim running (More specifically with the required environment variables exported. Scim simply running without the environment variables does not cause the problem, but then scim does not work.), although it shows up immediately, the scrollbar, menubar etc are greyed out for a few seconds and the program cannot be used until it is fully loaded.
    I'm sure this is specifically a leafpad problem, because there is no noticable lag in other programs. (Mousepad for example is fine.) However, the fact that it loads immediately when run from a terminal scares me. Why doesn't gmrun (and the fvwm menu) work just like a terminal? Is there a possible fix to this problem?

    droog wrote:
    I'm not having this problem as far as i can see, I use fvwm and scim already so installed leafpad to test and it starts instantly from fvwm's menu or terminal.
    from gmrun leafpad starts instantly too so maybe i'm missing something.
    what are you exporting?
    Just the normal:
    export XMODIFIERS=@im=SCIM
    export GTK_IM_MODULE="scim"
    export QT_IM_MODULE="scim"

  • Java application behaving differently when run from netbeans

    Hi,
    When i run my program from netbeans it receives packets from ip addresses which are not in my subnet
    but when i run it from outside netbeans it doesn't receives packets from ip addresses which are not in my subnet.
    Can anybody explains why my application is showing different behavior when run from netbeans and when run independently?
    Thanks.

    Bingo! My script started the rmiregistry and continued on to start the servers. Apparently, it was too quick. I put a 10 second delay after the rmiregistry startup and all is working as it should.
    Thanks for your help. You get the Duke dollars if I can figure out how that works.

  • Issue with Enter-PSSession when running from the shell and via script

    Hello
    Can someone please help me with the following issue
    If I open the PowerShell console and do the following
    Enter-PSSession -computername Server1
    "This is a test" > C:\Log.txt
    Exit-PSSession
    It works e.g. the Log.txt file is create as expected on Server1
    However if I put the exact same command in a script and execute the script.
    ./TestScript.ps1
    The Log.txt file is created on my Client (e.g. PC) and not the Server1
    I also tried using $Session = New-PSSession -ComputerName Server1 etc.....
    then Enter-PSSession -Session $Session
    I also tried Enter-PSSession etc....
    Start-Sleep -seconds 60
    "This is a test" > C:\Log.txt
    Exit-PSSession
    Again no luck when running from shell all OK, then executing as a script (again from the command line) files is created on client
    Any ideas why this is happening please and how to resolve, I am using PowerShell v4 on the client and PowerShell v2 on the Server
    Thanks
    AAnotherUser__
    AAnotherUser__

    No, the command is explicitly designed for interactive use, not within a script. If you see
    http://technet.microsoft.com/en-us/library/hh849707.aspx you'll even see it clearly state that it "Starts an interactive session with a remote computer".
    There are quite a few threads elsewhere on the same subject, all of which say the same thing, for instance
    http://powershell.com/cs/blogs/tips/archive/2010/11/15/enter-pssession-do-s-and-don-ts.aspx and
    http://powershell.org/wp/forums/topic/running-multiple-remote-commands-with-enter-pssession/ and
    http://blogs.technet.com/b/heyscriptingguy/archive/2009/10/29/hey-scripting-guy-october-29-2009.aspx and
    http://social.technet.microsoft.com/Forums/scriptcenter/en-US/7e89b957-ff5b-42c4-b107-d7e18752fcf1/enterpssession-within-a-script
    So when you run it interactively, you've started the interactive connection to the remote computer and are now running the relevant commands on that machine. When you run it from the script it starts the remote connection, but crucially it doesn't use that
    new connection, the script is still being run in the current local session.
    When you think about it makes sense. Using the Invoke-command method you're connecting to a remote machine, sending the script block to the remote machine, and then running that block of code on the remote machine. The remote machine only knows about the
    code you send it, not the rest of the script (which is why if you use variables you have to pass them to invoke-command otherwise they won't be available to the script block on the remote machine. Conversely, when you use the Enter-PSSession method, you've
    connected to the remote machine, but you haven't passed any code to it. At that point you're on the remote machine, but it has no way to know what you want it to do since your script code is on the local machine. It can then either return to the local
    machine and run the next line of code locally (which it does), or sit there connected to the remote machine waiting input that will never come (which would be even less useful).

  • Failed to initialize  Databank exception when run from OLT

    HI All,
    I've created a script with an associated databank,that runs perfectly fine when run from OpenScript. But when I run from OLT, the following waring is encountered.
    Start failure message from agent "OLT Server": oracle.oats.common.databank.DatabankException: Failed to initialize Databank 'Forms.forms'
    Stopped Autopilot because of error on agent "OLT Server".
    Name of my DB is : forms
    and Script name is :Forms
    Please let me know the solution for this.
    Regards,
    Karthik
    Edited by: user777720 on May 21, 2013 5:00 AM

    Have you tried changing the parameter in the Assets/Databank "Save Path" from "Relative to current script" to "Relative to a repository"?
    Regards, Ian.

Maybe you are looking for

  • Travel time not showing on iPhone

    When I setup a calendar event with a location I am able to get the travel time to show up on Calendar on the Mac. However when the event syncs to my iPhone the travel times DO NOT appear in the Calendar App. Any suggestions ?

  • How to Clear Cache for an Old Static File in Shared Components

    Hello, I am using Apex 4.1.1.00.23, HTTP Server with mod_plsql, and Oracle Database 10.2.0.5.0. My situation is as follow: I have a CSS static file in the shared components that is used in different applications. I recently modified the CSS file, but

  • Macbook Air runs slow and very hot!

    The lastest version of MBA (2010), suddenly the fan runs and hot, then every programs are working slowly. Everytime, click something, the rainbow circle mark shows up and spins. I tried to cool the fan off using cooling fan (connected MBA), my brothe

  • Problem loading from an attached MovieClip

    Project: Flash Professional CS5.5 | AS3 Platform: Mac OSX Lion Hello: I have a projector that calls on an attached movieclip with the following function: function fbtnclicka(e:MouseEvent):void{ var mc:moduleexit_mc=new moduleexit_mc(); The functions

  • Photos downloaded from my camera get stored in PhotoStream

    Some of my recent photos downloaded from my camera (not from my Iphone) got stored into "PhotoStream2 and into "Events", how can I avoir having them going to PhotoStream ? Shouldn't it be only pictures takes from my Iphone that go to Photostream ? Th