Child class not called at run time labview

I'm developing a large application using a few Class.
In development mode, everything works fine.  When I build the application and run the executable, one of my child class is not called at all.  In some of the methods of that child class I have checked the option in "Window Appearance" to show the Front Panel when VI Load.  The VI show it self but is not executing.  The run button is in a state that indicate there is no top vi calling it.
I have played whit Execution : Preallocated clone reentrant execution and General: Separate compiled code from source file.
And I set them back to default.
Two days lost trying to figure what append to my application.
Please Help.
Nitrof

Hi Nitrof,
Check out this excerpt straight from the NI Training Manual on object-oriented programming (image attached). There's a chance that the child classes aren't being included in the build. They need to be included somewhere in the application VI so that the Application Builder knows to include the class in the build.
Also check out this forum that sounds like it's describing a similar problem: http://forums.ni.com/t5/LabVIEW/Problems-with-dyna​mic-class-load-in-executable/m-p/2139116
Hope this helps!
Alexandra
National Instruments
Applications Engineer
Attachments:
Forum1937225.png ‏146 KB

Similar Messages

  • Imported Jar file not loaded at run time ORA-105100

    Oracle 9iDS forms Version 9.0.2.9.0
    Oracle 9iAS Release 2
    I have imported java classes from a jar file into my form. I have it working in client server. Added the entries to the classpath in the default.env and system environment variable for development of the form and for execution.
    Moved the jar file, form and testing html to the application server. Modified the classpath in the default.env file. Tested the form. Got the ORA-105100 error. MetaLink note 261650.1 states that error frm-40735 When-Button-Pressed triger raised exception ORA-105100 if calling a java function from a jar file. Cause: Jar file not loaded at run time. Solution: add in your default.env CLASSPATH parameter your jar file including the whole directory of the jar file location. That has been done and the OC4J has been restarted. Still get error.
    Oracle support has not been able to give me much help as of yet. Does anyone have any further ideas, or documentation that I can read to help get this working?
    Thanks in advance for any assistance that is offered.

    Hey people any clues?

  • ICO file not displaying at run time?

    Hello Experts,
    I an using fusion 11.1.2.1 32 bit. I have Copied the Icons as well as GIF files in C:\Oracle\Middleware\Oracle_FRHome1\forms\java folder.
    At button property i set Iconic to yes
    and file = addrow
    Icon not display at run time.
    but when i set file = abc.GIF
    image is displaying at run time.
    My doubt is that ICO file not displaying at run time while GIF file are displaying.
    Do i need to change configuration ?
    Please do the needful.
    Thanks
    Yash

    Hi Yash,
    First Try this steps
    To resolve this issue, follow these steps:
    Double-click My Computer, and then click Options on the View menu.
    Verify that the Icon file type appears on the File Types tab. If the Icon file type does not appear in the Registered File Types box, skip to step 10.
    Click Icon in the Registered File Types box, and then click Edit.
    Verify that the following settings exist, and then click OK:
    The Description Of Type box contains Icon.
    If there is a Confirm Open After Download check box, it should be selected.
    If the settings do not appear exactly as listed in step 4, click Remove, click Yes, and then click OK. If the settings do appear as listed in step 4, skip to step 10.
    Click New Type.
    In the Description Of Type box, type Icon.
    In the Associated Extension box, type ICO.
    Click OK, and then click Close.
    Use Registry Editor to view theHKEY_CLASSES_ROOT\.icokey, and then verify that the default string contains the following value:icofileIf the .ico key does not exist, create it, and then insert the value listed above. If any other values exist in the .ico key, delete them.
    Use Registry Editor to view theHKEY_CLASSES_ROOT\icofilekey, and then verify that the default string contains the following value:iconIf the icofile key does not exist, create it, and then insert the value listed above. If any other values exist, delete them.
    Create a new key in the icofile key called DefaultIcon , and type %1 as this key's default value.
    Quit Registry Editor, and then restart your computer.
    Second Try this
    Simple way
    Copy your images to:
    1
    c:\Oracle\Middleware\as_1\forms\java\ 
    Notes:
    - Icon files may not be supported.
    - In case of a Java security issue when using gif images, you will need to create a jar file and sign it with oracles sign-tool (see below, point 6).
    - In case you having trouble with oracle’s sign-tool, do it directly with java’s
    Recommended way
    1. Create a “icons” folder and place all your gifs in there
    i.e. “c:\Oracle\Middleware\as_1\forms\java\<icons>”
    2. From within icons folder make a jar file of all the gif images:
    1
    jar -cvf frmicons.jar *.gif 
    3. Copy this new jar into “c:\Oracle\Middleware\as_1\forms\java\”
    4. Edit/update formsweb.cfg file:
    path = c:\Oracle\Middleware\user_projects\domains\<my_domain>\config\fmwconfig\servers\WLS_FORMS\applications\formsapp_11.1.1\config\formsweb.cfg  …to update/include:
    1
    2
    3
    4
    5
    6
    7
    8
    9
    # Forms applet parameter 
    codebase=/forms/java
    # Forms applet parameter
    imageBase=codebase
    # Forms applet archive setting for other clients (Sun Java Plugin...etc)
    archive=frmall.jar,frmicons.jar
    # Forms applet archive setting for JInitiator
    archive_jini=frmall_jinit.jar,frmicons.jar
    5. Edit/update Registry.dat file:
    path = c:\Oracle\Middleware\user_projects\domains\<my_domain>\config\fmwconfig\servers\WLS_FORMS\applications\formsapp_11.1.1\config\forms\registry\oracle\forms\registry\Registry.dat
    1
    2
    default.icons.iconpath=icons/ 
    default.icons.iconextension=gif
    At this point your icons should work normally, but if you get a security check of Java for gif files then proceed to the next step to fix this. TIP: May need to restart the weblogic/forms server for changes to take effect.
    6. Sign your jar file with oracles sign_webutil.bat sign-tool.
    path = c:\Oracle\Middleware\asinst_1\bin\sign_webutil.bat
    Firstly, you need to edit the sign_webutil.bat as follows:
    1
    2
    3
    SET KEYSTORE_PASSWORD=my_password 
    SET JAR_KEY=webutil2 # will need to change for every run
    SET JAR_KEY_PASSWORD=my_password
    Secondly, set the environment path and finally run the command:
    1
    2
    3
    set path=c:\Oracle\Middleware\as_1\jdk\bin 
    cd c:\Oracle\Middleware\asinst_1\bin\
    sign_webutil c:\Oracle\Middleware\as_1\forms\java\my_icons.jar
    This will create your signed jar file. Once initialized from the web-app it should ask the user to “Trust” the certificate and never prompt again.
    Other issues you may encounter and may need to edit/update the following files/registry entries as well:
    formsweb.cfg
    path = c:\Oracle\Middleware\user_projects\domains\<my_domain>\config\fmwconfig\servers\WLS_FORMS\applications\formsapp_11.1.1\config\formsweb.cfg
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    # Forms applet parameter 
    codebase=/forms/java
    # Forms applet parameter
    imageBase=codebase
    # Forms applet archive setting for other clients (Sun Java Plugin, ...etc)
    archive=frmall.jar, my_icons.jar
    ...or
    # Forms applet archive setting for JInitiator
    archive_jini=frmall_jinit.jar, my_icons.jar
    Registry.dat
    path = c:\Oracle\Middleware\user_projects\domains\<my_domain>\config\fmwconfig\servers\WLS_FORMS\applications\formsapp_11.1.1\config\forms\registry\oracle\forms\registry\Registry.dat
    1
    2
    default.icons.iconpath=/forms/java 
    default.icons.iconextension=gif
    Registry entries:
    1
    2
    UI_ICON:<path_to_icons_dir> 
    UI_ICON_EXTENSION: "gif": ".gif" "ico": ".ico"
    Credits and further information can be tracked for icons issue here and for jar file creation here.
    Hope this will help.

  • The Apache axis2 jar files are not taking at run time

    While running the application I was getting the following errors. The error is getting at run time only. It has compiled successfully.
    It ran under eclipse without any issues. But with Apache axis we are getting following error trace while uploading to server. The Apache axis2 jar files are not taking at run time.But compiling successfully.
    The application is running under Oracle R12 server.I didn't find any option to set class path for run time in R12 server.
    Using Java version is 1.6 and Apache axis2.1.6.2
    Error trace:
    Exception :java.lang.NoClassDefFoundError: Could not initialize class org.apache.axis2.description.AxisService
    Error : java.lang.NoClassDefFoundError: Could not initialize class org.apache.axis2.description.AxisService
    com.rightnow.ws.wsdl.RightNowSyncServiceStub.populateAxisService(RightNowSyncServiceStub.java:41)
    com.rightnow.ws.wsdl.RightNowSyncServiceStub.(RightNowSyncServiceStub.java:636)
    com.rightnow.ws.wsdl.RightNowSyncServiceStub.(RightNowSyncServiceStub.java:625)
    com.rightnow.ws.wsdl.RightNowSyncServiceStub.(RightNowSyncServiceStub.java:673)
    com.rightnow.ws.wsdl.RightNowSyncServiceStub.(RightNowSyncServiceStub.java:665)
    com.rightnow.ws.util.ContactUtils.initializeService(ContactUtils.java:57)
    somejsp.jspService(_somejsp.java:189)
    com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
    oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:473)
    oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
    oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
    oracle.apps.jtf.base.session.ReleaseResFilter.doFilter(ReleaseResFilter.java:26)
    com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
    oracle.apps.fnd.security.AppsServletFilter.doFilter(AppsServletFilter.java:318)
    com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:642)
    com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:391)
    com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:908)
    com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:458)
    com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:313)
    com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:199)
    oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
    com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
    java.lang.Thread.run(Thread.java:619)

    Hello,
    I too am trying to use Axis2 application in R12. But getting the following error:
    java.lang.classCastException: com.sun.xml.messaging.saaj.soap.ver1_1.SoapMessageFactory1_1Impl cannot be cast to oracle.webservices.soap.VersionedMessageFactory
    If I run the application standalone from java command line it works fine. I think the error could be because of some oracle app jars getting picked up inatead of my application jars. How to make sure that my application jars get picked up instead of oracle jars
    I tried loading my jar file and then setting it as contextClassLoader using "Thread.currentThread().setContextClassLoader", but this did not help.
    Can you please let me know what can be tried to fix this
    Thanks
    Srikanth

  • Error in http call soap run time exception

    Hi All,
    we are facing an issue whenever we are sending the file using soap protocal.
    the issue here is.
    when one user trying to send files he is getting error in http call soap run time exception.
    when he try to login to other PC then he can able to send the file without any exception.
    we have checked the local setting and coockies.
    any one please help me.
    Regards,
    Vishal Kommera

    Its not in the notepad file but when I open it in internet explorer etc it appears... But cant see the '-' in the internal table though.
    I have also found one interesting this, when i pass the XML directly i.e hard code it  there is no exception caused...
    Edited by: sk123456 on Oct 19, 2009 9:05 AM
    Edited by: sk123456 on Oct 19, 2009 9:07 AM

  • FRM-40031 is not a forms run time file

    FRM-40031 is not a forms run time file
    Hello,
    I'm using forms 6i and developed and compiled and ran the form successfully without any errors.
    I registered in Oracle Apps 11.5 but at the time if accessing the form, I'm getting the above error.
    Any help would be highly appreciated. Thanks.

    Hello,
    this is the space
    SQL Developer (Not for general SQL/PLSQL questions)
    Your question most likely belongs to Forms
    so please mark this thread as answered and post agaim in the Forms forum.
    Regards
    Marcus

  • LabVIEW 2009 3D Plot has no Loose Fit property and Axis AutoScale does not function at run time ?

    I cannot find a Loose Fit property for the new 3D plots (waterfall, ribbon) in LV 2009.  As a result, my data range of 1402 to 1407 ends up on a Z axis range of 1400 to 1500 and looks like a flat line.
    The Z Active Axis properties Range Maximum and Range Minimum can be used to set the range but the Z Axis Autoscale property had to be changed to False using either the front panel Plot Properties at edit time or using the Range Auto Scale property at run time on the block diagram.  It could not be changed at run time by popping up on either the plot border or on the Color Palette.
    In edit mode, R-clicking on the Color Palette's AutoScale Z did not make that property toggle or stick and did not change its function.
    At run time, there are two AutoScale Z selections shown.  One along with the X and Y scales and another by itselfat the bottom.  Again, clicking the one that is part of the X and Y axis did not make its setting stick and did not have an effect.  What does happen though is that the other AutoScale Z shown at the bottom of the Color Pallete popup does toggle its state.  But clicking on the AutoScale Z shown at the bottom does not toggle its state.
    The grey border region of the plot area contains at run time, popup setting for X,Y and Z AutoScale that likewise have no effect.
    Or am I missingsomething ?
    Message Edited by SteveP on 08-15-2009 07:55 PM
    Attachments:
    LV 2009 3D Plot Axis Autoscale.vi ‏18 KB

    Steve,
    you should be able to successfully change the scales based on the min and max values as long as you explicitly turn off autoscale. In your program, I just right-clicked the  Range Auto Scale property selected "change to write", then made a control so that I could set the value myself. Clean up the broken wires, and the program runs like it's supposed to - resetting it's scale range: 
    is this the result you wanted? 
    Misha

  • Missing vi.lib files in Run-Time LabVIEW 2012

    Hi
    I've got a problem executing VI's under RT in LabVIEW 2012.
    Our system consist of multiple independent modules which are opened and run from a Manager VI. VI paths to the modules are read from an .ini file by the Manager VI.
    We have build a single executable (RT Launcher) that takes the path of the Manager VI as argument (Attachment : RT Launcher.png).
    The RT Launcher is placed in the ..\National Instruments\LabVIEW 2012 folder as the LabVIEW.exe.
    The RT Launcher is called from the CLI.
    "C:\Program Files\National Instruments\LabVIEW 2012\RT Launcher.exe" "C:\Workspace\Labview\Manager.vi"
    This will run the Manager.vi in the RunTime Environment and the Manager.vi will open the .ini file and execute the Module VI's one by one.
    By calling the RT Launcher.exe from the same folder as the LabVIEW.exe, the search paths should be the same.
    The system worked fine in LabVIEW 2010.
    The Manager VI is opened with broken arrow and the errors indicate that vi.lib sub VIs are missing (attachment : Manager VI errors.png)
    I know there are issues regarding object cache and separated compiled code from LV2010 -> LV2011 -> LV2012, but simply can't figure out how to come around this problem.
    Can anyone explain the difference and how to solve the problem ?
    Thanks
    Regards Kahr
    Certified LabVIEW Architect
    CIM A/S
    Solved!
    Go to Solution.
    Attachments:
    RT Launcher.png ‏68 KB
    Manager VI errors.png ‏35 KB

    Hi Kahr.
    It sounds like you are making some dynamic calls to VI's, eg. by using 'Open VI Reference'. My answer is based on that assumption. 
    You are absolutely right. In LabVIEW2010 we introduced a function called 'Separating Compiled Code from VI'. At that time none of the VIs from VI.lib had that option enabled. In LabVIEW2011, many VI's in VI.lib have, by default, a separation of compiled code and VI. This option cannot be changed (greyed out) for these VI's as well. This feature was introduced in order to simplify source code control.
    Separating Compiled Code from VIs and Other File Types
    The drawback is, that it is no longer possible to call VI's dynamically from an application (executable), when this option in enabled, since the compiled code no longer exists. The method of calling a VI dynamically from an application has been (and still is) used to make some kind of a plug-and-play architecture, meaning we have one EXE-file that only gets distributed once and a set of subVI's that gets redistributed according to new versions (new features added to the subVI), meaning we can make changes in the subVI without having to redistribute the EXE-file.
    With the release of LabVIEW2011 and LabVIEW2012 we can no longer distribute VI's that uses functions from vi.lib, this also include DAQmx calls even though the DAQmx driver is installed.
    The simple explaining is, that it has never been intended that VI's got distributed. Eg, when Microsoft is making a new software update for Windows7, they don't send out the source code to all the users.
    The solution is therefore to wrap up the source code into 'something' that includes all the compiled files. In LabVIEW we do that in a couple of different ways.
    1) Include the VI's in the EXE-file.
    When building the application, we have the option to include files, that normally is not included in builds. If we call a SubVI dynamically this will not automatically be included! However, the drawback of this method is, that if you need to change  something in one of your SubVI's, you would need to build and distribute the entire application. Thereby, we are not making use of the plug-and-play architecture that we originally wanted. However, this method will fix the error.
    Error 1003 When Using VI Server in a LabVIEW Application
    2) Now, if we still want the plug-and-play architecture in LabVIEW2011+2012 (and this will properly be the same for the next many released of LabVIEW), this can still easily be achieved by making a Source Distribution. When we make a Source Distribution, we can include the VI's from VI.lib and thereby the compiled code. When using this method, two important things should be remembered:
    a) Make the files into a LLB file. This will pack all the VI's into one single file, that is easy to distribute.
    Go to Destinations ==> Destination Type ==> LLB.
    b) Make sure not to 'Exclude files from vi.lib', as this method will then simply not work.
    Go to Additional Exclusions ==> Remove checker mark in 'Exclude files from vi.lib'.
    How Can I Call a VI Dynamically from an Executable Without Including Those VIs in the Build?
    I have made a small example to demonstrate this:
    Example: Using vi.lib
    This example has two mainVIs and two EXE-applications. Build the two EXE-files, but do NOT build the source distribution yet.
    1) Main(IncludeSubInExE). This version has included the subVI in the build distribution for the EXE-file. When running this EXE everything works fine, even when calling the subVI dynamically. However, since the subVI is build into the exe, we would have to redistribute the exe for every new version of the subVI. This breaks the hole idea.
    2) Main. The subVI is no longer included in the build. When running and trying to call the subVI, you will get this error (on both your developer and run-time machine):
    Now, build the Source Distribution and run this EXE again. The exe is running perfectly with no errors.
    I hope this answers your question.
    Best Regards
    Alex E. Petersen
    Certified LabVIEW Developer (CLD)
    Application Engineer
    Image House PantoInspect
    Attachments:
    Using vi.lib.zip ‏83 KB

  • Child class not acessing correct var value

    I have 3 classes in different files:
    Test.java:
    public class Test {
    public Test() {
    public static void main(String[] args) {
    Jog t = new Jog();
    t.ini();
    Jok.java:
    class Jok extends Jog{
    public Jok(){}
    protected void pum(){
    System.out.println(configP);
    class Jog{
    protected int configP=1;
    public Jog(){
    public void ini(){
    configP = 5;
    Jok j = new Jok();
    j.pum();
    My problem is that it looks like the var configP inside the class Jok is set with the value it was initialized and not the value it should be: 5, as set in the method ini of Jog...
    Being Jok a child class of Jog i expect configP to be available with the correct value and i don't understand why this doesn't happen...
    Any theory behind Java OO-Programing i'm missing? should this happen?
    how to access configP in Jok class with the correct value? creating a getConfig in the Jog file and then calling it in the child class like: super.getConfig() also doesn't return the right value(5)? what is happening?
    thanks in advance for your time

    thanks for your code change but as you can guess this was a problem in a bigger project i have where i can't do that solution.
    Let me explain better my problem:
    my understanding of java is that the child inherits the vars of the super class.
    I have a super class that has a var configP, it's set for the default value 1, sometime in this class i change the value of this var, inside this class i print that value, it changes correctly.
    I then create the object of the child class and inside it i print the var configP. configP in the super class is now with the value 5, because I changed to it but in the child class the value is the default 1. At the time i created the child object the value was already 5.
    I now this is wrong but i can't understand why it's wrong in theory..
    (if i change the configP in the construtor of the super class, the value is correctly displayed inside the child class)

  • Load Jar and access a class in jar at run time

    I need help from you.
    How to load a Jar and access a class in the jar at run time?
    When i try the following code it works fine while running in Java (Jdk1.5).If iam running the same code in servlet,ClassCastException occurs.
    Error Message : ClassCastExcption : jartest1 cannot be cast to Thing
    test.jar contains jartest.class and Thing.class
    jartest1.java
    try{
    File file =new File("test.jar");
    String lcStr ="jartest";
    URL jfile = new URL("jar", "", "file:" + file.getAbsolutePath() +"!/");
    URLClassLoader cl = URLClassLoader.newInstance(new URL[] { jfile });
    Class loadedClass = cl.loadClass(lcStr);
    Thing t=(Thing)loadedClass.newInstance();
    t.execute();
    catch(Exception e)
    System.err.println(e);
    Thing.java
    public interface Thing
    void execute();
    jartest.java
    public class jartest implements Thing
    public void exceute()
    System.out.println("Welcome");
    Thanks and Regards
    V.Senthil Kumar
    Edited by: senthilv_sun on Dec 16, 2008 8:30 PM

    senthilv_sun wrote:
    I need help from you.
    How to load a Jar and access a class in the jar at run time?
    When i try the following code it works fine while running in Java (Jdk1.5).If iam running the same code in servlet,ClassCastException occurs.
    Error Message : ClassCastExcption : jartest1 cannot be cast to ThingPresumably we can only hope that that is a transciption error. It always helps to use copy and past actual errors and code rather than manually typing them.
    test.jar contains jartest.class and Thing.classWrong.
    The interface class and plugable class must not be in the same jar.
    A plugable interface requires two components
    - Interface (generic sense)
    - Functional components.
    The Interface must be independant (own jar) so that it is available to the framework (user of plugin) and to the functional components. And the plugable component must not be on the java class path.
    This also means that we know for certain that the plugable component is also on the system class path. That is a bad idea as well.
    Given that it is pretty pointless to even speculate as to why this error is showing up. Create the correct jar layout. Test using the command line. Then test using servlets. Insure that the plugable jar is NOT on the java classpath for both tests.

  • Enhanced view class not calling

    Hi,
    I've enhanced a search view and redefined the search event handler method. But when i execute the application, it is not calling my enhanced view controller implementation class. the system always call standard view controller class. could anybody explain the reason for it?
    Best Regards,
    Kumar

    Hi,
    Check the enhancement set to client mapping in sm30 (BSPWDV_EHSET_ASG)..Enhacement set should be mapped to client in which you are running the application..
    Also you can check in component_loading default implement, there it should read z-controller instead of standard class.
    Cheers,
    Sumit Mittal

  • Sequence will not validate with run time prompts in business rules

    I am in Hyperion Planning v 1.1.1.3, with Workforce initialized. I am creating a sequence of business rules. The rules use run time prompts within them and validate when used on their own. However, when I insert them in a sequence the sequence will not validate, apparently due to the run time prompts.
    The sequence returns the error: Cannot calculate. Essbase Error(1200323): Error parsing formula for [FIX STATEMENT] (line 7): expression expected after [(].
    Line 7 in the business rule is as follows:
    FIX ([rtpYear],[rtpScenario],[rtpVer],[rtpCC],[rtpBU],[rtpEmp])
    The problem is not isolated to this business rule, it occurs with any rule I try.
    Can sequences function with run time prompts in the included business rules?
    Stephen

    I have figured out that if any rtp is hidden in the business rule, the sequence will not validate. Is this expected behavior for sequences?
    Additionally, hiding the variables in the sequence has no effect if the variables are not hidden in the rule. When launched from a menu in a web form, the user is prompted for values for all variables (except for the Execution Database Name) although they are prepopulated based on the members in the POV, Page, etc. Is this also expected behavior?
    I also find that it won't validate if "Merge launch variables" is selected (I have included rules associated with different plan types and with different dimensionality, so this may be expected). The user is prompted to provide values for every variable in each rule in the sequence, many of them duplicates (though, again, they are prepopulated based on members in the form).
    Stephen

  • Shutdown class not called?

    I'm using WLS 8.1.0.0 (no SP) on Solaris.
    It appears my shutdown class, which implements T3ShutdownDef, doesn't get called
    at all during shutdown, "graceful" or not. Here is the entry in config.xml:
    <ShutdownClass
    ClassName="my.package.MyShutdown"
    Name="MyShutdown" Targets="MyServer"/>
    The first line MyShutdown::shutdown is
    System.out.println("[MyShutdown::shutdown] called.");
    I don't see it or anything else following this.
    TIA,
    Bill

    Hello
    I was expecting to be able to do clean-up (using a
    shutdown hook) when my application was terminated by
    a ctrl-c with the following code. But if the process
    is busy doing something (and not sleeping as is the
    case in all examples I've been able to find) the VM
    will not run it's hooks, so it seems.
    Am I missing something??
    public class ShutdownHook
    public static void main(String[] args)
    Runtime.getRuntime().addShutdownHook( new
    ook( new Thread() { public void run() {
    System.out.println("shutdown"); }});
    for (int j = 0; j < 10000; j++)
    System.out.println("run");
    // if the sleep is uncommented ctrl-c
    ented ctrl-c will work (99% of the time or so)
    // Thread.sleep(100);
    Regards,
    JesperHow are you able to hit ctrl-c before that application exits? The loop without a sleep will execute in less than one second.
    Kaj

  • Swf containing my classes not shown when runned on a server

    Hi everyone,
    I hope you can help me!
    I am trying to show my swf on my localhost server, and everyting looks just great when adding a simple box in my main file.
    However, the problem commes when creating the same box in a class and the call that class from the main file. Running it
    locally from my machine everything looks as it should, however when trying to run the swf from my localhost server nothing is
    beeing showed..soo what am I doing wrong here?
    I really hope you can help me!!

    For the first approach you need to have the flv and the swf loaded to the server, and the two javascript files that the html page indicates...
    If the swf file is in a different directory than the html page, then you may need to adjust the url you use to target the flv.  It should be specified as if the swf file is in the same folder as the html page.  So if the html page uses "images/pagepeak2-1.swf" to load the swf, then the swf would have to use "images/pagepeak2_3.flv" to load the flv if the flv is also in the images folder.  The alternative would be to not change the coding and move the flv to the html page's folder.

  • Jframe not loading at run time

    I am creating a Jframe to fetch the details from the user which has certain questions and all the answers in form of radio button. It doesot give any error at compile time. but the container is blank during runtime. I am using box class and buttongroup. here is the sample code. Please advise.
    import java.util.*;
    import java.awt.*;
    import java.awt.event.ActionListener.*;
    import javax.swing.*;
    import javax.swing.event.*;
    import javax.swing.table.*;
    import javax.swing.border.*;
    import java.applet.*;
    public class exam extends JFrame
    public static void main(String[] args)
    JFrame.setDefaultLookAndFeelDecorated(true);
    JFrame frame = new JFrame("NPDT");
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    Container content = frame.getContentPane();
    frame.setSize(800,800);
    ButtonGroup group = new ButtonGroup();
    ButtonGroup group1 = new ButtonGroup();
    ButtonGroup group2 = new ButtonGroup();
    JLabel businesslabel = new JLabel("1. What type of business are you in?");
    Box vbox = Box.createVerticalBox();
    vbox.add(businesslabel);
    vbox.add(Box.createVerticalStrut(5));
    JRadioButton edurb= new JRadioButton("Education");
    JRadioButton financerb= new JRadioButton("Financial");
    JRadioButton healthrb= new JRadioButton("Health Care");
    JRadioButton mediarb= new JRadioButton("Media");
    JRadioButton otherrb= new JRadioButton("Other");
    group.add(edurb);
    group.add(financerb);
    group.add(healthrb);
    group.add(mediarb);
    group.add(otherrb);
    vbox.add(edurb);
    vbox.add(financerb);
    vbox.add(healthrb);
    vbox.add(mediarb);
    vbox.add(otherrb);
    JLabel branchlabel = new JLabel("2. Do you have more than one branch?");
    Box vbox1 = Box.createVerticalBox();
    vbox1.add(branchlabel);
    vbox1.add(Box.createVerticalStrut(5));
    JRadioButton yesrb= new JRadioButton("Yes");
    JRadioButton norb= new JRadioButton("No");
    group1.add(yesrb);
    group1.add(norb);
    vbox1.add(yesrb);
    vbox1.add(norb);
    JLabel growthlabel = new JLabel("3. What is the percentage of expected growth?");
    Box vbox2 = Box.createVerticalBox();
    vbox2.add(growthlabel);
    vbox2.add(Box.createVerticalStrut(5));
    JRadioButton lessrb= new JRadioButton("< 30");
    JRadioButton medrb= new JRadioButton("31 - 50");
    JRadioButton morerb= new JRadioButton("51 - 60");
    JRadioButton greatrb= new JRadioButton(">60");
    group2.add(lessrb);
    group2.add(medrb);
    group2.add(morerb);
    group2.add(greatrb);
    vbox2.add(lessrb);
    vbox2.add(medrb);
    vbox2.add(morerb);
    vbox2.add(greatrb);
    Box finalbox=Box.createVerticalBox();
    finalbox.add(vbox(Box.createVerticalStrut(50)));
    finalbox.add(vbox1(Box.createVerticalStrut(50)));
    finalbox.add(vbox2(Box.createVerticalStrut(50)));
    content.add(finalbox, BorderLayout.CENTER);
    frame.setVisible(true);
    }

    It doesot give any error at compile time.it did for me, but after fix it displayed OK when run (java 1.5.0_05)

Maybe you are looking for

  • Itunes 7 and Internet Explorer 7

    Loaded Itunes 7 and IE7 will not open another TAB, it merely stays stuck "connecting" then trying to get out of it IE7 stops responding and then IE7 quits. Gone thru several XP restores and have isolated it to eliminate everything but loading Itunes

  • Multiple planned orders for a requirement

    Hi,        We have PPDS MRP with NEW shelflife w/ lot size profle run for product and produces multiple planned orders for the the requirements. I have a requirement of 4,750 and 14,976 in the system and available stock 86,966. The system creates two

  • What does "tradedoubler" actually do?

    Every time I click on a link that opens the App store on my iPhone - for instance, in one of those "free apps" applications, it goes via Safari. In that short moment that the Safari window floats by, I can see that it goes to a "tradedoubler" link. I

  • My Iphone doesn't want to pre-order.

    One week ago I wanted to pre-order new Daft Punk album in Itunes. pushed the button, but I didn't have money on the card, so I couldn't do it. Today I put some money to the card, pushed the "pre-order" button on the Random Access Memories album and..

  • Connecting the Management Studio to the Azure database

    I am very new to Azure.  I have created a virtual machine and a database.  I can access the database from with Azure, but when I try to access it using SQLServer2012, I get the message of the standard can not connect. I believe I have set up the fire