Invoking a method on an URL request?

i want to invoke a method of a class on an URL request,such that the method can navigate the control to number of other pages .

Implement a Filter.

Similar Messages

  • Encoding the URL request

    Could you plz assist me how encode the URL request that is getting from the client.The query about discarding a session is as follows
    (1)What will happened when employing invalidate() method of a session.
    (2) What is the distinguishing of invalidate() and logout if both has performed that all of the user's session will have been expired if we invoke anyone

    Making some guesses here.
    The invalidate() method does what it says: it invalidates the session. Most HttpSessionMethods will throw an IllegalStateException if called on an invalid session.
    There is no method or event that causes a "logout". It's something you have to do programmatically using the invalidate() method. Or the session could timeout in which case also it becomes invalid ( which is basically done by the container as opposed to you calling invalidate() )
    About URL encoding: do you mean URL rewriting which appends a session id to the URL to be used in case cookies are disabled? Then you need encodeURL() and encodeRedirectURL(). Working with the session with rewriting of URLs is exactly the same for you ( in your code ) as it is normally.
    If you mean making a safe URL, you need URLEncoder: http://java.sun.com/j2se/1.4.2/docs/api/java/net/URLEncoder.html
    I hope I got something right here.

  • Invoke a method in JSP from applet?

    Hi,
    Does anyone know how to invoke a method defined in JSP when a button within an applet is clicked?
    Thanks in advance.

    Hi
    What you are trying is basically an Applet to Servlet communication. This is definitely possible. To perform a GET to a Servlet create a URL object with the request parameters included. Create a URLConnection by opening a connection to the URL object. Then access the ServletInputStream to get the reply from the Servlet.
    To perform POST the process is similar but remember to set the DoInput and DoOutput properties of the URLConnection object to true.
    Obtain the ServletInputStream and ServletOutputStream to recieve and send Data.
    Keep me posted on your progress!
    Good Luck!
    Eshwar Rao
    Developer Technical Support
    Sun microsystems inc.
    http://www.sun.com/developers/support

  • How to get a LabVIEW class object to expose an invoke-node method?

    Hi,
          I like the property/invoke-node "paradigm" used for interacting with "objects".  Can LabVIEW-class objects expose their properties and methods this way?  Can one or more LabVIEW-class objects be compiled into a library or "assembly" (or other distrubution format) that allows the property/invoke-node usage?
    I've looked at (but not completely understood) "Creating LabVIEW Classes".  Have also searched for related posts.
    The pic below shows an invoke node wired to a class with a Public VI "VAT.Status.Hello.vi".  I'd like to see VAT.Status.Hello show-up as a Method.  (I just tried "Select Method", and selected "VAT.Status.Hello.vi" but dialog's "OK" button stays greyed-out.)
    Cheers.
    Message Edited by tbd on 03-29-2007 03:15 PM
    "Inside every large program is a small program struggling to get out." (attributed to Tony Hoare)
    Attachments:
    VATStat.JPG ‏54 KB

    Hi Aristos,
          Thanks for the reply!  It was a bit dissappointing, though.
    It appears the LabVIEW-class object will be moving away from (what seems to me) a convenient object-interface presented by the invoke-node/method paradigm - which allows us to interface with a large set of "objects" (.NET, ActiveX, LabVIEW GUI, VISA Resource, ?) in a similar manner and independent of the object's origin.  Being able to read the methods and parameters that appear in these nodes is also helpful for understanding diagram logic!
    I do like the option of dropping a friendly "VI looking" icon on the diagram, but perhaps an optional - even default - VI-icon representation for a class-object invoke-node is feasible - so the LabVIEW class-object could be the more generic object first, but with a traditional-G representation(?)
    Given the answer "We would like, someday, to support the property node"
    and "in the next version of LV, wiring the LV class to the property/invoke nodes will break the wire so we'll avoid confusion in the future",
    ... I guess you'll break the wire in the next version, but (perhaps) allow it again - if support of the property node is ever implemented?
    Regards.
    P.S. For the record, huge THANKS to whoever it was that straightened-out enumerated-types (somewhere) between LV4.1 and LV6.1.  Every time I add or remove an enumeration in a typedef, I silently give thanks to the bright and thoughtful soul(s) who made this valuable tool work so well!
    Hello. This is your friendly neighborhood R&D guy for LabVIEW classes.
    Regarding your request about property and invoke nodes as relates to LV classes....
    Short story: We would like, someday, to support the property node. We have no intention of ever supporting the invoke node.
    Long story: As we were creating LV classes, we had to evaluate the right programming interface for these things. We wanted LV classes to behave as new data types in LV. A developer should be able to create a LV class, then give it to someone who doesn't even know OO programming, and that second programmer could use the new data type without learning a lot of new concepts. From this principle, we held fast to the idea that the programming interface should be subVI calls whereever possible. The invoke node is really nothing more than a VI minus the icon. If you want, you can popup on any subvi node and uncheck the option "View as Icon". This will make the node display in a way that has the terminals listed as text, like the invoke node. So, at the end of the day, the invoke node is simply a subroutine call in LV that is language dependent, as opposed to the language independent iconography of LV generally.
    The property node is a slightly different story -- the functionality of a property node is actually different than an invoke node as its terminals are various subsets of the properties available, not a fixed list of parameters like the invoke node. The property node provides a nice interface for setting multiple properties in a block and only having to check a single error return. Very friendly. Our intent is to allow you to create a VI that has 5 terminals: object in, object out, error in, error out, and either a single input or a single output of your chosen type. VIs with this conpane could be marked as "properties" of the class and would show up when you wire the class wire to the property node. We would call the subVIs behind the scenes as needed to get/set the properties.
    This is on the longer term roadmap because it is "syntactic sugar" -- it sweetens the programming style, but it is not necessary to program effectively. You can get the same effect by writing those same VIs and stringing them along on a block diagram "railroad track" style. We'll probably get around to it in three or four versions of LV -- there are some major user requests that impact functionality that have to get done first.
    PS -- in the next version of LV, wiring the LV class to the property/invoke nodes will break the wire so we'll avoid confusion in the future of people thinking there's a way to use these nodes.
    Message Edited by Aristos Queue on 04-02-2007 09:56 AM
    Message Edited by tbd on 04-03-2007 12:39 PM
    "Inside every large program is a small program struggling to get out." (attributed to Tony Hoare)

  • Odata JDBC Service: getting NullPointerException: while trying to invoke the method

    Hi,
    I am testing OData, for that I followed the steps given in this tutorial:
    http://scn.sap.com/community/developer-center/mobility-platform/blog/2014/06/10/creating-an-odata-service-based-on-sap-gateway-soap-jdbc-and-jpa-data-sources-ba
    It wasn't working as it should, so to understand it better, I created a new project with Stock table only.
    Manually entered all it's properties and then deploy it.
    Issue1: when I create a JDBC connection to connect with derby database, The driver field has maximum limit and whole driver string is not copied. Attached is the screen shot.
    Where as I need to enter: org.apache.derby.jdbc.ClientDriver.
    Issue 2: I can't test the connection from here, weather it's working fine or not ?
    Issue 3:
    When I deploy the project and test the result, I get the Stock Service, But when I try to run this, I get nullpointer exception.
    URL: http://localhost:8080/gateway/odata/sap/WSTest1;v=1
    Response:
    <?xml version="1.0" encoding="utf-8"?>
    <service xml:base="http://localhost:8080/gateway/odata/sap/WSTest1;v=1/" xmlns="http://www.w3.org/2007/app" xmlns:atom="http://www.w3.org/2005/Atom">
      <workspace>
       <atom:title>Default</atom:title>
       <collection href="StockSet">
       <atom:title>StockSet</atom:title>
       </collection>
      </workspace>
    </service>
    Now I need to run StockSet, so next url to access the stock list,
    to get stocks:
    http://localhost:8080/gateway/odata/sap/WSTest1;v=1/SAP/StockSet
    Now I get the following response:
        <?xml version="1.0" ?>
        <error xmlns="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata">
        <code>
        </code>
        <message xml:lang="en">java.lang.NullPointerException: while trying to invoke the method java.lang.Object.hashCode() of a null object loaded from local variable 'k'</message>
        </error>
    I am not able to figure out, why I am getting this error and how to fix it.
    All I want is to create a ODAta on ESPM_STOCK sample table given in example.
    Looking forward to hear from you.
    Thanks.

    Waqas Sadiq
    Issue1: when I create a JDBC connection to connect with derby database, The driver field has maximum limit and whole driver string is not copied. Attached is the screen shot.
    Are you working on SMP3.0 (lower version than SP03)?
    If yes, then there is character restriction in SMP3.0 (SP00, SP01), maximum length for a database driver is 25 characters.
    e.g. if driver name is oracle.jdbc.driver.OracleDriver but when you enter this, then you will see onlyoracle.jdbc.driver.Oracle
    Until unless we pass the correct driver value things will not work. there is a workaround for this. You create a desitnation with restricted character length.
    You would be seeing a property file for each created destination underC:\SAP\MobilePlatform3\Server\config_master\service.destinations\destinations
    Go there and open the created "OracleDB" and edit the "DriverName" to the full string:oracle.jdbc.driver.OracleDriver
    Please go through this blog for more understanding:
    http://scn.sap.com/community/developer-center/mobility-platform/blog/2014/01/09/how-to-connect-an-oracle-db-with-integration-gateway-in-smp3
    Note: seems this problem has been resolved in SMP3 SP03
    Issue 2: I can't test the connection from here, weather it's working fine or not ?
    I didnt find a way to test a destination. So you have to be sure about what all values you are entering.
    Once you are done with Destination creation, map it to the respective deployed service under "services" tab.
    Issue 3: When I deploy the project and test the result, I get the Stock Service, But when I try to run this, I get nullpointer exception
    Make sure you have corrected "Database driver" name manually. And then check if you are facing same issue.
    Does this URL expect any input parameters?
    http://localhost:8080/gateway/odata/sap/WSTest1;v=1/SAP/StockSet
    Regards,
    JK

  • Need to invoke bean method prior to initial page

    I have a web application with a default welcome page (index.jsp) that automatically forwards to a page with JSF tags in it (home.jsp). I use:
    <jsp:forward page="home.faces" />to accomplish this. This works fine for rendering the JSF tags in the page as long as the page does not need data from the server.
    However, this is not the case. I need to have a backing bean method invoked as follows:
      // ActionListener handler.
      public void retrievePagerList(ActionEvent event) {
        if (logger.isDebugEnabled()) {
          logger.debug("In retrievePagerList method of backing PagerBean.");
        try {
          setPagers(PagerDAO.selectAll());
        catch (SQLException e) {
          logger.error("Error retrieving list of pagers: ", e);
      public void setPagers(List pagers) {
        this.pagers = pagers;
        if (logger.isDebugEnabled()) {
          logger.debug("Number of pagers set: " + pagers.size());
      }I want to load a list of objects from the database so that the initial page shown to the users has a list of pagers displayed as follows:
    <f:view>
      <h:form>
      <h:dataTable styleClass="dataTable"
                   value="#{pagerBean.pagers}"
                   var="pager">
        <h:column>
        <h:commandLink id="editPager"
                       title="Edit Pager"
                       value="Edit"
                       action="edit"
                       actionListener="#{pagerBean.editPager}">
        </h:commandLink>
        </h:column>
        <h:column>
          <h:outputText value="#{pager.pagerType}"/>
        </h:column>
        <h:column>
          <h:outputText value="#{pager.pagerName}"/>
        </h:column>
      </h:dataTable>
      </h:form>
    </f:view>How can I accomplish this? I cannot seem to find a way to have a backing bean method invoked to put objects into the request (or session scope) in order for the initial JSP to display properly.

    jsf 1.2 will contains beforePhaseListener attribute for f:view that allows to call some code before page is loaded. For the current jsf version, it is usually recommended to register your own phase listener that is invoked "before Render Response" phase.
    Sergey : jsfTutorials.net

  • Invoking java methods from C/C++ on the machine with different JREs

    I implemented Windows NT Service instantiating JVM and invoking several java methods. Everything works but I have an issue with running the service on the machine where multiple different versions of JRE have been installed. The service is calling java methods that require JRE 1.3 or later so I wrote the code that is setting system PATH from within the service based on the configuration stored in the external file. The problem is that the service requires jvm.dll to be in the PATH prior lunching it since this library is instantiated through the implicit linking. When I put jvm.dll in the same path as the service binary I can lunch it but JNI_CreateJavaVM fails and returns -1. This happens even if JRE 1.3 is in the system PATH prior lunching the service.
    Everything works if the system PATH contains references to JRE 1.3 and jvm.dll is removed from the service's directory.
    I am looking for an advice on what is the proper way to deal with invoking java methods from the C/C++ executable in the environment with different versions of JRE.
    Thanks, Kris.

    Here's a way I have done what you are asking about:
    What you want to do is make all of your linking happen at runtime, rather than at compile time. This way, you can edit the PATH variable before the jvm.dll gets loaded.
    Following is some code that I used to handle a dll of my own in this manner. You can decide if you want to write a "wrapper" dll, or if you find it simpler to approach the jvm.dll in this way.
    // Define pointer type for DLL entry point.
         typedef void JREPDLL_API (*EXECUTEREQUEST)(char*, Arguments&);
    // Set up path, load dll, and pass everything off to it.
    HINSTANCE javaServer = javaServer = LoadLibrary("jrepdll.dll");
    if (javaServer != NULL) {
    EXECUTEREQUEST executeRequest = (EXECUTEREQUEST)GetProcAddress(javaServer, "ExecuteRequest");
    if (executeRequest != NULL) {
    if (argc == 1)
         // Execute the request.
         executeRequest("-run", args);
    else
         // Execute the request.
         executeRequest("-console", args);
    Here's some code for how to edit the PATH:
              // Edit the PATH environment variable so that we use our private java.
    char *appendPt;
    char *newPath;
    char *path;
              char tmp[_MAX_PATH];
              // Get the current PATH variable setting.
    path = getenv("PATH");
              // Allocate space for an edited path setting.
              if (path != NULL)
                   newPath = (char*)malloc((_MAX_PATH * 2) + strlen(path));
              else
                   newPath = (char*)malloc((_MAX_PATH * 2));
              // Get upper part of path to desired directories.
              strcpy(tmp, filepath);
              appendPt = strstr(tmp, "dbin\\jreplicator");
              appendPt[0] = '\0';
    sprintf(newPath, "PATH=%sjava\\jre1.2.2\\bin;%sjava\\jre1.2.2\\bin\\classic", tmp, tmp);
    // Append the value of the existing PATH environment variable.
    // If there is anything, append it.
    if (path != NULL) {
         strcat(newPath, ";");
         strncat(newPath, path, (sizeof(newPath) - strlen(newPath) - 2));
    // Set new PATH value.
    _putenv(newPath);
              free(newPath);

  • How to invoke a method in application module or view objects interface?

    Hi,
    perhaps a stupid RTFM question, but
    How can i invoke a method that i have published in the application modules or view objects interfaces using uiXml with BC4J?
    Only found something how to invoke a static method (<ctrl:method class="..." method="..." />) but not how to call a method with or without parameters in AM or VO directly with a uix-element.
    Thanks in advance, Markus

    Thanks for your help Andy, but i do not understand why this has to be that complicated.
    Why shall i write a eventhandler for a simple call of a AM or VO method? That splatters the functionality over 3 files (BC4J, UIX, handler). Feature Request ;-)?
    I found a simple solution using reflection that can be used at least for parameterless methods:
    <event name="anEvent">
      <bc4j:findRootAppModule name="MyAppModule">
         <!-- Call MyAppModule.myMethod() procedure. -->
          <bc4j:setPageProperty name="MethodName" value="myMethod"/>
          <ctrl:method class="UixHelper"
                  method="invokeApplicationModuleMethod"/>
       </bc4j:findRootAppModule>
    </event>The UixHelper method:
      public static EventResult invokeApplicationModuleMethod( BajaContext context,
                                                               Page page,
                                                               PageEvent event ) {
        String methodName = page.getProperty( "MethodName" );
        ApplicationModule am = ServletBindingUtils.getApplicationModule( context );
        Method method = null;
        try {
          method = am.getClass(  ).getDeclaredMethod( methodName, null );
        } catch( NoSuchMethodException e ) {
          RuntimeException re = new RuntimeException( e );
          throw re;
        try {
          method.invoke( am, null );
        } catch( InvocationTargetException e ) {
          RuntimeException re = new RuntimeException( e );
          throw re;
        } catch( IllegalAccessException e ) {
          RuntimeException re = new RuntimeException( e );
          throw re;
        return null;
      }Need to think about how to handle parameters and return values.
    Btw. Do i need to implement the EventHandler methods synchronized?
    Regards, Markus

  • Huge delay after "liveconnect: Invoking JS method: document"

    Hi,
    We're trying to deply an application which uses a Java applet on the (browser) client. All went well in v.1.4.2, but when I switched to v1.5.0_02 I had serious delay on starting the applet.
    Turning on level 5 (output is at the end)in the console shows there is a delay of sometimes more then 60 seconds between "liveconnect: Invoking JS method: document" and "liveconnect: Invoking JS method: URL".
    After "liveconnect: Invoking JS method: document" CPU goes up to about 50-60% for approx. 5 seconds. It then goes up to 100% for about a minute. Once Java continues, everything works fine. However, startup times of more then a minute is just not acceptable to our customers and most will probably close/kill their browser before that.
    Can anyone of you tell me what is exactly going on during "liveconnect: Invoking JS method: document" and why that could take so much CPU and about a minute. It is even before loading the actual JAR file, so I do not suspect the applet itself.
    Environment:
    Sun plugin v1.5.0_02
    MS IE 6.0 on WinXP SP2
    Trace level set to 5: all ... completed.
    basic: Registered modality listener
    liveconnect: Invoking JS method: document
    [ [ [ -o-o-o-o-o-o- here is the huge delay -o-o-o-o-o-o- ] ] ]
    liveconnect: Invoking JS method: URL
    basic: Referencing classloader: sun.plugin.ClassLoaderInfo@4204, refcount=1
    network: Connecting http://*****/forms90/java/splash_et.gif with proxy=HTTP @ /194.159.73.69:8080
    basic: Loading applet ...
    basic: Initializing applet ...
    basic: Starting applet ...
    network: Connecting http://*****/forms90/java/f90all.jar with proxy=HTTP @ /194.159.73.69:8080
    basic: Loading http://*****/forms90/java/f90all.jar from cache
    basic: Reading cached JAR file from JRE 1.5 release
    basic: Certificates for http://*****/forms90/java/f90all.jar is read from JAR cache

    Java Plug-in 1.5.0_03
    Using JRE version 1.5.0_03 Java HotSpot(TM) Client VM
    User home directory = C:\Documents and Settings\Wilfred
    c: clear console window
    f: finalize objects on finalization queue
    g: garbage collect
    h: display this help message
    l: dump classloader list
    m: print memory usage
    o: trigger logging
    p: reload proxy configuration
    q: hide console
    r: reload policy configuration
    s: dump system and deployment properties
    t: dump thread list
    v: dump thread stack
    x: clear classloader cache
    0-5: set trace level to <n>
    Trace level set to 5: all ... completed.
    basic: Registered modality listener
    liveconnect: Invoking JS method: document
    Dump thread stack ...
    Full thread dump Java HotSpot(TM) Client VM (1.5.0_03-b07 mixed mode):
    "Thread-2" prio=5 tid=0x04f43d28 nid=0x704 runnable [0x064ef000..0x064efb68]
         at sun.plugin.com.DispatchClient.nativeInvoke(Native Method)
         at sun.plugin.com.DispatchClient.invoke(Unknown Source)
         at sun.plugin.javascript.ocx.JSObject.invoke(Unknown Source)
         - locked <0x10a19758> (a sun.plugin.javascript.ocx.JSObject)
         at sun.plugin.javascript.ocx.JSObject.getMember(Unknown Source)
         at sun.plugin.AppletViewer.getDocumentBase(Unknown Source)
         - locked <0x10a19778> (a java.lang.Object)
         at sun.plugin.AppletViewer.getCodeBase(Unknown Source)
         - locked <0x10a19908> (a java.lang.Object)
         at sun.plugin.AppletViewer.createClassLoader(Unknown Source)
         at sun.plugin.AppletViewer.appletInit(Unknown Source)
         at sun.plugin.viewer.LifeCycleManager.initAppletPanel(Unknown Source)
         at sun.plugin.viewer.IExplorerPluginObject$Initer.run(Unknown Source)
    "TimerQueue" daemon prio=5 tid=0x04f9d998 nid=0x410 in Object.wait() [0x05b7f000..0x05b7fbe8]
         at java.lang.Object.wait(Native Method)
         - waiting on <0x109f3438> (a javax.swing.TimerQueue)
         at javax.swing.TimerQueue.run(Unknown Source)
         - locked <0x109f3438> (a javax.swing.TimerQueue)
         at java.lang.Thread.run(Unknown Source)
    "AWT-EventQueue-0" prio=7 tid=0x04f83e18 nid=0xdc8 in Object.wait() [0x059bf000..0x059bfc68]
         at java.lang.Object.wait(Native Method)
         - waiting on <0x1089a910> (a java.awt.EventQueue)
         at java.lang.Object.wait(Unknown Source)
         at java.awt.EventQueue.getNextEvent(Unknown Source)
         - locked <0x1089a910> (a java.awt.EventQueue)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)
    "ConsoleWriterThread" daemon prio=7 tid=0x04f834f0 nid=0xe6c in Object.wait() [0x058bf000..0x058bfce8]
         at java.lang.Object.wait(Native Method)
         - waiting on <0x10911098> (a java.lang.Object)
         at java.lang.Object.wait(Unknown Source)
         at com.sun.deploy.util.ConsoleTraceListener$ConsoleWriterThread.run(Unknown Source)
         - locked <0x10911098> (a java.lang.Object)
    "AWT-EventQueue-1" prio=7 tid=0x04f0bc48 nid=0x8e4 runnable [0x057bf000..0x057bfd68]
         at sun.plugin.JavaRunTime.dumpAllStacks(Native Method)
         at sun.plugin.util.PluginConsoleController.dumpAllStacks(Unknown Source)
         at com.sun.deploy.util.ConsoleWindow$1.actionPerformed(Unknown Source)
         at javax.swing.JComponent$ActionStandin.actionPerformed(Unknown Source)
         at javax.swing.SwingUtilities.notifyAction(Unknown Source)
         at javax.swing.JComponent.processKeyBinding(Unknown Source)
         at javax.swing.KeyboardManager.fireBinding(Unknown Source)
         at javax.swing.KeyboardManager.fireKeyboardAction(Unknown Source)
         at javax.swing.JComponent.processKeyBindingsForAllComponents(Unknown Source)
         at javax.swing.JComponent.processKeyBindings(Unknown Source)
         at javax.swing.JComponent.processKeyEvent(Unknown Source)
         at java.awt.Component.processEvent(Unknown Source)
         at java.awt.Container.processEvent(Unknown Source)
         at java.awt.Component.dispatchEventImpl(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.KeyboardFocusManager.redispatchEvent(Unknown Source)
         at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(Unknown Source)
         at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(Unknown Source)
         at java.awt.DefaultKeyboardFocusManager.pumpApprovedKeyEvents(Unknown Source)
         at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(Unknown Source)
         at java.awt.DefaultKeyboardFocusManager.dispatchEvent(Unknown Source)
         at java.awt.Component.dispatchEventImpl(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Window.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.SequencedEvent.dispatch(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)
    "traceMsgQueueThread" daemon prio=5 tid=0x04eecf48 nid=0xb48 in Object.wait() [0x055bf000..0x055bfa68]
         at java.lang.Object.wait(Native Method)
         - waiting on <0x108a59c8> (a java.util.ArrayList)
         at java.lang.Object.wait(Unknown Source)
         at com.sun.deploy.util.Trace$TraceMsgQueueChecker.run(Unknown Source)
         - locked <0x108a59c8> (a java.util.ArrayList)
         at java.lang.Thread.run(Unknown Source)
    "AWT-Windows" daemon prio=7 tid=0x04ee6920 nid=0xd88 runnable [0x053af000..0x053afae8]
         at sun.awt.windows.WToolkit.eventLoop(Native Method)
         at sun.awt.windows.WToolkit.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    "AWT-Shutdown" prio=5 tid=0x04ee6538 nid=0x414 in Object.wait() [0x052af000..0x052afb68]
         at java.lang.Object.wait(Native Method)
         - waiting on <0x108a5618> (a java.lang.Object)
         at java.lang.Object.wait(Unknown Source)
         at sun.awt.AWTAutoShutdown.run(Unknown Source)
         - locked <0x108a5618> (a java.lang.Object)
         at java.lang.Thread.run(Unknown Source)
    "Java2D Disposer" daemon prio=10 tid=0x04edf6b0 nid=0xff8 in Object.wait() [0x051af000..0x051afbe8]
         at java.lang.Object.wait(Native Method)
         - waiting on <0x108a56a0> (a java.lang.ref.ReferenceQueue$Lock)
         at java.lang.ref.ReferenceQueue.remove(Unknown Source)
         - locked <0x108a56a0> (a java.lang.ref.ReferenceQueue$Lock)
         at java.lang.ref.ReferenceQueue.remove(Unknown Source)
         at sun.java2d.Disposer.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    "Low Memory Detector" daemon prio=5 tid=0x01a7c278 nid=0xf44 runnable [0x00000000..0x00000000]
    "CompilerThread0" daemon prio=10 tid=0x01a7aea8 nid=0xecc waiting on condition [0x00000000..0x04c7f6cc]
    "Signal Dispatcher" daemon prio=10 tid=0x01a7a230 nid=0x3bc runnable [0x00000000..0x00000000]
    "Finalizer" daemon prio=9 tid=0x01a71670 nid=0x5f0 in Object.wait() [0x04a7f000..0x04a7fa68]
         at java.lang.Object.wait(Native Method)
         - waiting on <0x108a5848> (a java.lang.ref.ReferenceQueue$Lock)
         at java.lang.ref.ReferenceQueue.remove(Unknown Source)
         - locked <0x108a5848> (a java.lang.ref.ReferenceQueue$Lock)
         at java.lang.ref.ReferenceQueue.remove(Unknown Source)
         at java.lang.ref.Finalizer$FinalizerThread.run(Unknown Source)
    "Reference Handler" daemon prio=10 tid=0x01a701e0 nid=0xf54 in Object.wait() [0x0497f000..0x0497fae8]
         at java.lang.Object.wait(Native Method)
         - waiting on <0x108a5550> (a java.lang.ref.Reference$Lock)
         at java.lang.Object.wait(Unknown Source)
         at java.lang.ref.Reference$ReferenceHandler.run(Unknown Source)
         - locked <0x108a5550> (a java.lang.ref.Reference$Lock)
    "main" prio=5 tid=0x019afd10 nid=0x718 runnable [0x00139000..0x0013da34]
         at sun.awt.windows.WComponentPeer.createPrintedPixels(Native Method)
         at sun.awt.windows.WComponentPeer.print(Unknown Source)
         at sun.awt.windows.WCanvasPeer.print(Unknown Source)
         at sun.awt.windows.WPanelPeer.print(Unknown Source)
         at java.awt.GraphicsCallback$PeerPrintCallback.run(Unknown Source)
         at sun.awt.SunGraphicsCallback.runOneComponent(Unknown Source)
         at java.awt.Component.printAll(Unknown Source)
         at java.awt.GraphicsCallback$PrintAllCallback.run(Unknown Source)
         at sun.awt.SunGraphicsCallback.runOneComponent(Unknown Source)
         at sun.awt.SunGraphicsCallback.runComponents(Unknown Source)
         at java.awt.Container.printComponents(Unknown Source)
         at sun.awt.windows.WEmbeddedFrame.print(Unknown Source)
    "VM Thread" prio=10 tid=0x01a6c098 nid=0xf68 runnable
    "VM Periodic Task Thread" prio=10 tid=0x01a7d450 nid=0x2ec waiting on condition
    Done.
    Dump thread stack ...
    Full thread dump Java HotSpot(TM) Client VM (1.5.0_03-b07 mixed mode):
    "Thread-2" prio=5 tid=0x04f43d28 nid=0x704 runnable [0x064ef000..0x064efb68]
         at sun.plugin.com.DispatchClient.nativeInvoke(Native Method)
         at sun.plugin.com.DispatchClient.invoke(Unknown Source)
         at sun.plugin.javascript.ocx.JSObject.invoke(Unknown Source)
         - locked <0x10a18428> (a sun.plugin.javascript.ocx.JSObject)
         at sun.plugin.javascript.ocx.JSObject.getMember(Unknown Source)
         at sun.plugin.AppletViewer.getDocumentBase(Unknown Source)
         - locked <0x10a18448> (a java.lang.Object)
         at sun.plugin.AppletViewer.getCodeBase(Unknown Source)
         - locked <0x10a185d8> (a java.lang.Object)
         at sun.plugin.AppletViewer.createClassLoader(Unknown Source)
         at sun.plugin.AppletViewer.appletInit(Unknown Source)
         at sun.plugin.viewer.LifeCycleManager.initAppletPanel(Unknown Source)
         at sun.plugin.viewer.IExplorerPluginObject$Initer.run(Unknown Source)
    "TimerQueue" daemon prio=5 tid=0x04f9d998 nid=0x410 in Object.wait() [0x05b7f000..0x05b7fbe8]
         at java.lang.Object.wait(Native Method)
         - waiting on <0x109f2530> (a javax.swing.TimerQueue)
         at javax.swing.TimerQueue.run(Unknown Source)
         - locked <0x109f2530> (a javax.swing.TimerQueue)
         at java.lang.Thread.run(Unknown Source)
    "AWT-EventQueue-0" prio=7 tid=0x04f83e18 nid=0xdc8 in Object.wait() [0x059bf000..0x059bfc68]
         at java.lang.Object.wait(Native Method)
         - waiting on <0x1089a910> (a java.awt.EventQueue)
         at java.lang.Object.wait(Unknown Source)
         at java.awt.EventQueue.getNextEvent(Unknown Source)
         - locked <0x1089a910> (a java.awt.EventQueue)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)
    "ConsoleWriterThread" daemon prio=7 tid=0x04f834f0 nid=0xe6c in Object.wait() [0x058bf000..0x058bfce8]
         at java.lang.Object.wait(Native Method)
         - waiting on <0x10910e78> (a java.lang.Object)
         at java.lang.Object.wait(Unknown Source)
         at com.sun.deploy.util.ConsoleTraceListener$ConsoleWriterThread.run(Unknown Source)
         - locked <0x10910e78> (a java.lang.Object)
    "AWT-EventQueue-1" prio=7 tid=0x04f0bc48 nid=0x8e4 runnable [0x057bf000..0x057bfd68]
         at sun.plugin.JavaRunTime.dumpAllStacks(Native Method)
         at sun.plugin.util.PluginConsoleController.dumpAllStacks(Unknown Source)
         at com.sun.deploy.util.ConsoleWindow$1.actionPerformed(Unknown Source)
         at javax.swing.JComponent$ActionStandin.actionPerformed(Unknown Source)
         at javax.swing.SwingUtilities.notifyAction(Unknown Source)
         at javax.swing.JComponent.processKeyBinding(Unknown Source)
         at javax.swing.KeyboardManager.fireBinding(Unknown Source)
         at javax.swing.KeyboardManager.fireKeyboardAction(Unknown Source)
         at javax.swing.JComponent.processKeyBindingsForAllComponents(Unknown Source)
         at javax.swing.JComponent.processKeyBindings(Unknown Source)
         at javax.swing.JComponent.processKeyEvent(Unknown Source)
         at java.awt.Component.processEvent(Unknown Source)
         at java.awt.Container.processEvent(Unknown Source)
         at java.awt.Component.dispatchEventImpl(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.KeyboardFocusManager.redispatchEvent(Unknown Source)
         at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(Unknown Source)
         at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(Unknown Source)
         at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(Unknown Source)
         at java.awt.DefaultKeyboardFocusManager.dispatchEvent(Unknown Source)
         at java.awt.Component.dispatchEventImpl(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Window.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)
    "traceMsgQueueThread" daemon prio=5 tid=0x04eecf48 nid=0xb48 in Object.wait() [0x055bf000..0x055bfa68]
         at java.lang.Object.wait(Native Method)
         - waiting on <0x108a59c8> (a java.util.ArrayList)
         at java.lang.Object.wait(Unknown Source)
         at com.sun.deploy.util.Trace$TraceMsgQueueChecker.run(Unknown Source)
         - locked <0x108a59c8> (a java.util.ArrayList)
         at java.lang.Thread.run(Unknown Source)
    "AWT-Windows" daemon prio=7 tid=0x04ee6920 nid=0xd88 runnable [0x053af000..0x053afae8]
         at sun.awt.windows.WToolkit.eventLoop(Native Method)
         at sun.awt.windows.WToolkit.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    "AWT-Shutdown" prio=5 tid=0x04ee6538 nid=0x414 in Object.wait() [0x052af000..0x052afb68]
         at java.lang.Object.wait(Native Method)
         - waiting on <0x108a5618> (a java.lang.Object)
         at java.lang.Object.wait(Unknown Source)
         at sun.awt.AWTAutoShutdown.run(Unknown Source)
         - locked <0x108a5618> (a java.lang.Object)
         at java.lang.Thread.run(Unknown Source)
    "Java2D Disposer" daemon prio=10 tid=0x04edf6b0 nid=0xff8 in Object.wait() [0x051af000..0x051afbe8]
         at java.lang.Object.wait(Native Method)
         - waiting on <0x108a56a0> (a java.lang.ref.ReferenceQueue$Lock)
         at java.lang.ref.ReferenceQueue.remove(Unknown Source)
         - locked <0x108a56a0> (a java.lang.ref.ReferenceQueue$Lock)
         at java.lang.ref.ReferenceQueue.remove(Unknown Source)
         at sun.java2d.Disposer.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    "Low Memory Detector" daemon prio=5 tid=0x01a7c278 nid=0xf44 runnable [0x00000000..0x00000000]
    "CompilerThread0" daemon prio=10 tid=0x01a7aea8 nid=0xecc waiting on condition [0x00000000..0x04c7f6cc]
    "Signal Dispatcher" daemon prio=10 tid=0x01a7a230 nid=0x3bc runnable [0x00000000..0x00000000]
    "Finalizer" daemon prio=9 tid=0x01a71670 nid=0x5f0 in Object.wait() [0x04a7f000..0x04a7fa68]
         at java.lang.Object.wait(Native Method)
         - waiting on <0x108a5848> (a java.lang.ref.ReferenceQueue$Lock)
         at java.lang.ref.ReferenceQueue.remove(Unknown Source)
         - locked <0x108a5848> (a java.lang.ref.ReferenceQueue$Lock)
         at java.lang.ref.ReferenceQueue.remove(Unknown Source)
         at java.lang.ref.Finalizer$FinalizerThread.run(Unknown Source)
    "Reference Handler" daemon prio=10 tid=0x01a701e0 nid=0xf54 in Object.wait() [0x0497f000..0x0497fae8]
         at java.lang.Object.wait(Native Method)
         - waiting on <0x108a5550> (a java.lang.ref.Reference$Lock)
         at java.lang.Object.wait(Unknown Source)
         at java.lang.ref.Reference$ReferenceHandler.run(Unknown Source)
         - locked <0x108a5550> (a java.lang.ref.Reference$Lock)
    "main" prio=5 tid=0x019afd10 nid=0x718 runnable [0x00139000..0x0013da34]
         at sun.awt.windows.WComponentPeer.createPrintedPixels(Native Method)
         at sun.awt.windows.WComponentPeer.print(Unknown Source)
         at sun.awt.windows.WCanvasPeer.print(Unknown Source)
         at sun.awt.windows.WPanelPeer.print(Unknown Source)
         at java.awt.GraphicsCallback$PeerPrintCallback.run(Unknown Source)
         at sun.awt.SunGraphicsCallback.runOneComponent(Unknown Source)
         at java.awt.Component.printAll(Unknown Source)
         at java.awt.GraphicsCallback$PrintAllCallback.run(Unknown Source)
         at sun.awt.SunGraphicsCallback.runOneComponent(Unknown Source)
         at sun.awt.SunGraphicsCallback.runComponents(Unknown Source)
         at java.awt.Container.printComponents(Unknown Source)
         at sun.awt.windows.WEmbeddedFrame.print(Unknown Source)
    "VM Thread" prio=10 tid=0x01a6c098 nid=0xf68 runnable
    "VM Periodic Task Thread" prio=10 tid=0x01a7d450 nid=0x2ec waiting on condition
    Done.
    Dump thread stack ...
    Full thread dump Java HotSpot(TM) Client VM (1.5.0_03-b07 mixed mode):
    "Thread-2" prio=5 tid=0x04f43d28 nid=0x704 runnable [0x064ef000..0x064efb68]
         at sun.plugin.com.DispatchClient.nativeInvoke(Native Method)
         at sun.plugin.com.DispatchClient.invoke(Unknown Source)
         at sun.plugin.javascript.ocx.JSObject.invoke(Unknown Source)
         - locked <0x10a18428> (a sun.plugin.javascript.ocx.JSObject)
         at sun.plugin.javascript.ocx.JSObject.getMember(Unknown Source)
         at sun.plugin.AppletViewer.getDocumentBase(Unknown Source)
         - locked <0x10a18448> (a java.lang.Object)
         at sun.plugin.AppletViewer.getCodeBase(Unknown Source)
         - locked <0x10a185d8> (a java.lang.Object)
         at sun.plugin.AppletViewer.createClassLoader(Unknown Source)
         at sun.plugin.AppletViewer.appletInit(Unknown Source)
         at sun.plugin.viewer.LifeCycleManager.initAppletPanel(Unknown Source)
         at sun.plugin.viewer.IExplorerPluginObject$Initer.run(Unknown Source)
    "TimerQueue" daemon prio=5 tid=0x04f9d998 nid=0x410 in Object.wait() [0x05b7f000..0x05b7fbe8]
         at java.lang.Object.wait(Native Method)
         - waiting on <0x109f2530> (a javax.swing.TimerQueue)
         at javax.swing.TimerQueue.run(Unknown Source)
         - locked <0x109f2530> (a javax.swing.TimerQueue)
         at java.lang.Thread.run(Unknown Source)
    "AWT-EventQueue-0" prio=7 tid=0x04f83e18 nid=0xdc8 in Object.wait() [0x059bf000..0x059bfc68]
         at java.lang.Object.wait(Native Method)
         - waiting on <0x1089a910> (a java.awt.EventQueue)
         at java.lang.Object.wait(Unknown Source)
         at java.awt.EventQueue.getNextEvent(Unknown Source)
         - locked <0x1089a910> (a java.awt.EventQueue)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)
    "ConsoleWriterThread" daemon prio=7 tid=0x04f834f0 nid=0xe6c in Object.wait() [0x058bf000..0x058bfce8]
         at java.lang.Object.wait(Native Method)
         - waiting on <0x10910e78> (a java.lang.Object)
         at java.lang.Object.wait(Unknown Source)
         at com.sun.deploy.util.ConsoleTraceListener$ConsoleWriterThread.run(Unknown Source)
         - locked <0x10910e78> (a java.lang.Object)
    "AWT-EventQueue-1" prio=7 tid=0x04f0bc48 nid=0x8e4 runnable [0x057bf000..0x057bfd68]
         at sun.plugin.JavaRunTime.dumpAllStacks(Native Method)
         at sun.plugin.util.PluginConsoleController.dumpAllStacks(Unknown Source)
         at com.sun.deploy.util.ConsoleWindow$1.actionPerformed(Unknown Source)
         at javax.swing.JComponent$ActionStandin.actionPerformed(Unknown Source)
         at javax.swing.SwingUtilities.notifyAction(Unknown Source)
         at javax.swing.JComponent.processKeyBinding(Unknown Source)
         at javax.swing.KeyboardManager.fireBinding(Unknown Source)
         at javax.swing.KeyboardManager.fireKeyboardAction(Unknown Source)
         at javax.swing.JComponent.processKeyBindingsForAllComponents(Unknown Source)
         at javax.swing.JComponent.processKeyBindings(Unknown Source)
         at javax.swing.JComponent.processKeyEvent(Unknown Source)
         at java.awt.Component.processEvent(Unknown Source)
         at java.awt.Container.processEvent(Unknown Source)
         at java.awt.Component.dispatchEventImpl(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.KeyboardFocusManager.redispatchEvent(Unknown Source)
         at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(Unknown Source)
         at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(Unknown Source)
         at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(Unknown Source)
         at java.awt.DefaultKeyboardFocusManager.dispatchEvent(Unknown Source)
         at java.awt.Component.dispatchEventImpl(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Window.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)
    "traceMsgQueueThread" daemon prio=5 tid=0x04eecf48 nid=0xb48 in Object.wait() [0x055bf000..0x055bfa68]
         at java.lang.Object.wait(Native Method)
         - waiting on <0x108a59c8> (a java.util.ArrayList)
         at java.lang.Object.wait(Unknown Source)
         at com.sun.deploy.util.Trace$TraceMsgQueueChecker.run(Unknown Source)
         - locked <0x108a59c8> (a java.util.ArrayList)
         at java.lang.Thread.run(Unknown Source)
    "AWT-Windows" daemon prio=7 tid=0x04ee6920 nid=0xd88 runnable [0x053af000..0x053afae8]
         at sun.awt.windows.WToolkit.eventLoop(Native Method)
         at sun.awt.windows.WToolkit.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    "AWT-Shutdown" prio=5 tid=0x04ee6538 nid=0x414 in Object.wait() [0x052af000..0x052afb68]
         at java.lang.Object.wait(Native Method)
         - waiting on <0x108a5618> (a java.lang.Object)
         at java.lang.Object.wait(Unknown Source)
         at sun.awt.AWTAutoShutdown.run(Unknown Source)
         - locked <0x108a5618> (a java.lang.Object)
         at java.lang.Thread.run(Unknown Source)
    "Java2D Disposer" daemon prio=10 tid=0x04edf6b0 nid=0xff8 in Object.wait() [0x051af000..0x051afbe8]
         at java.lang.Object.wait(Native Method)
         - waiting on <0x108a56a0> (a java.lang.ref.ReferenceQueue$Lock)
         at java.lang.ref.ReferenceQueue.remove(Unknown Source)
         - locked <0x108a56a0> (a java.lang.ref.ReferenceQueue$Lock)
         at java.lang.ref.ReferenceQueue.remove(Unknown Source)
         at sun.java2d.Disposer.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    "Low Memory Detector" daemon prio=5 tid=0x01a7c278 nid=0xf44 runnable [0x00000000..0x00000000]
    "CompilerThread0" daemon prio=10 tid=0x01a7aea8 nid=0xecc waiting on condition [0x00000000..0x04c7f6cc]
    "Signal Dispatcher" daemon prio=10 tid=0x01a7a230 nid=0x3bc runnable [0x00000000..0x00000000]
    "Finalizer" daemon prio=9 tid=0x01a71670 nid=0x5f0 in Object.wait() [0x04a7f000..0x04a7fa68]
         at java.lang.Object.wait(Native Method)
         - waiting on <0x108a5848> (a java.lang.ref.ReferenceQueue$Lock)
         at java.lang.ref.ReferenceQueue.remove(Unknown Source)
         - locked <0x108a5848> (a java.lang.ref.ReferenceQueue$Lock)
         at java.lang.ref.ReferenceQueue.remove(Unknown Source)
         at java.lang.ref.Finalizer$FinalizerThread.run(Unknown Source)
    "Reference Handler" daemon prio=10 tid=0x01a701e0 nid=0xf54 in Object.wait() [0x0497f000..0x0497fae8]
         at java.lang.Object.wait(Native Method)
         - waiting on <0x108a5550> (a java.lang.ref.Reference$Lock)
         at java.lang.Object.wait(Unknown Source)
         at java.lang.ref.Reference$ReferenceHandler.run(Unknown Source)
         - locked <0x108a5550> (a java.lang.ref.Reference$Lock)
    "main" prio=5 tid=0x019afd10 nid=0x718 runnable [0x00139000..0x0013da34]
         at sun.awt.windows.WComponentPeer.createPrintedPixels(Native Method)
         at sun.awt.windows.WComponentPeer.print(Unknown Source)
         at sun.awt.windows.WCanvasPeer.print(Unknown Source)
         at sun.awt.windows.WPanelPeer.print(Unknown Source)
         at java.awt.GraphicsCallback$PeerPrintCallback.run(Unknown Source)
         at sun.awt.SunGraphicsCallback.runOneComponent(Unknown Source)
         at java.awt.Component.printAll(Unknown Source)
         at java.awt.GraphicsCallback$PrintAllCallback.run(Unknown Source)
         at sun.awt.SunGraphicsCallback.runOneComponent(Unknown Source)
         at sun.awt.SunGraphicsCallback.runComponents(Unknown Source)
         at java.awt.Container.printComponents(Unknown Source)
         at sun.awt.windows.WEmbeddedFrame.print(Unknown Source)
    "VM Thread" prio=10 tid=0x01a6c098 nid=0xf68 runnable
    "VM Periodic Task Thread" prio=10 tid=0x01a7d450 nid=0x2ec waiting on condition
    Done.
    Dump thread stack ...
    Full thread dump Java HotSpot(TM) Client VM (1.5.0_03-b07 mixed mode):
    "Thread-2" prio=5 tid=0x04f43d28 nid=0x704 runnable [0x064ef000..0x064efb68]
         at sun.plugin.com.DispatchClient.nativeInvoke(Native Method)
         at sun.plugin.com.DispatchClient.invoke(Unknown Source)
         at sun.plugin.javascript.ocx.JSObject.invoke(Unknown Source)
         - locked <0x10a18428> (a sun.plugin.javascript.ocx.JSObject)
         at sun.plugin.javascript.ocx.JSObject.getMember(Unknown Source)
         at sun.plugin.AppletViewer.getDocumentBase(Unknown Source)
         - locked <0x10a18448> (a java.lang.Object)
         at sun.plugin.AppletViewer.getCodeBase(Unknown Source)
         - locked <0x10a185d8> (a java.lang.Object)
         at sun.plugin.AppletViewer.createClassLoader(Unknown Source)
         at sun.plugin.AppletViewer.appletInit(Unknown Source)
         at sun.plugin.viewer.LifeCycleManager.initAppletPanel(Unknown Source)
         at sun.plugin.viewer.IExplorerPluginObject$Initer.run(Unknown Source)
    "TimerQueue" daemon prio=5 tid=0x04f9d998 nid=0x410 in Object.wait() [0x05b7f000..0x05b7fbe8]
         at java.lang.Object.wait(Native Method)
         - waiting on <0x109f2530> (a javax.swing.TimerQueue)
         at javax.swing.TimerQueue.run(Unknown Source)
         - locked <0x109f2530> (a javax.swing.TimerQueue)
         at java.lang.Thread.run(Unknown Source)
    "AWT-EventQueue-0" prio=7 tid=0x04f83e18 nid=0xdc8 in Object.wait() [0x059bf000..0x059bfc68]
         at java.lang.Object.wait(Native Method)
         - waiting on <0x1089a910> (a java.awt.EventQueue)
         at java.lang.Object.wait(Unknown Source)
         at java.awt.EventQueue.getNextEvent(Unknown Source)
         - locked <0x1089a910> (a java.awt.EventQueue)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)
    "ConsoleWriterThread" daemon prio=7 tid=0x04f834f0 nid=0xe6c in Object.wait() [0x058bf000..0x058bfce8]
         at java.lang.Object.wait(Native Method)
         - waiting on <0x10910e78> (a java.lang.Object)
         at java.lang.Object.wait(Unknown Source)
         at com.sun.deploy.util.ConsoleTraceListener$ConsoleWriterThread.run(Unknown Source)
         - locked <0x10910e78> (a java.lang.Object)
    "AWT-EventQueue-1" prio=7 tid=0x04f0bc48 nid=0x8e4 runnable [0x057bf000..0x057bfd68]
         at sun.plugin.JavaRunTime.dumpAllStacks(Native Method)
         at sun.plugin.util.PluginConsoleController.dumpAllStacks(Unknown Source)
         at com.sun.deploy.util.ConsoleWindow$1.actionPerformed(Unknown Source)
         at javax.swing.JComponent$ActionStandin.actionPerformed(Unknown Source)
         at javax.swing.SwingUtilities.notifyAction(Unknown Source)
         at javax.swing.JComponent.processKeyBinding(Unknown Source)
         at javax.swing.KeyboardManager.fireBinding(Unknown Source)
         at javax.swing.KeyboardManager.fireKeyboardAction(Unknown Source)
         at javax.swing.JComponent.processKeyBindingsForAllComponents(Unknown Source)
         at javax.swing.JComponent.processKeyBindings(Unknown Source)
         at javax.swing.JComponent.processKeyEvent(Unknown Source)
         at java.awt.Component.processEvent(Unknown Source)
         at java.awt.Container.processEvent(Unknown Source)
         at java.awt.Component.dispatchEventImpl(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.KeyboardFocusManager.redispatchEvent(Unknown Source)
         at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(Unknown Source)
         at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(Unknown Source)
         at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(Unknown Source)
         at java.awt.DefaultKeyboardFocusManager.dispatchEvent(Unknown Source)
         at java.awt.Component.dispatchEventImpl(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Window.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)
    "traceMsgQueueThread" daemon prio=5 tid=0x04eecf48 nid=0xb48 in Object.wait() [0x055bf000..0x055bfa68]
         at java.lang.Object.wait(Native Method)
         - waiting on <0x108a59c8> (a java.util.ArrayList)
         at java.lang.Object.wait(Unknown Source)
         at com.sun.deploy.util.Trace$TraceMsgQueueChecker.run(Unknown Source)
         - locked <0x108a59c8> (a java.util.ArrayList)
         at java.lang.Thread.run(Unknown Source)
    "AWT-Windows" daemon prio=7 tid=0x04ee6920 nid=0xd88 runnable [0x053af000..0x053afae8]
         at sun.awt.windows.WToolkit.eventLoop(Native Method)
         at sun.awt.windows.WToolkit.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    "AWT-Shutdown" prio=5 tid=0x04ee6538 nid=0x414 in Object.wait() [0x052af000..0x052afb68]
         at java.lang.Object.wait(Native Method)
         - waiting on <0x108a5618> (a java.lang.Object)
         at java.lang.Object.wait(Unknown Source)
         at sun.awt.AWTAutoShutdown.run(Unknown Source)
         - locked <0x108a5618> (a jav

  • Convert SOAP XML message to invoke JMSTransportPortType method

    I want to invoke a WS method in JMSTransportPortType. However, the request is a SOAP XML message. I wonder if there is a convenient way to convert a SOAP XML message to invoke JMSTransportPortType method.

    Would really appreciate some help with this issue. Thanks!

  • Question on "How-to invoke a method once upon application start"

    Hello everyone.
    I'm trying to implement what the article "How-to invoke a method once upon application start" by Frank suggests.
    https://blogs.oracle.com/jdevotnharvest/entry/how_to_invoke_a_method
    Suppose that I'm having a single point of entry, so in my login.jpsx I have the below:
    <f:view beforePhase="#{login.onBeforePhase}">In the method "onBeforePhase" I have to pass the phaseEvent, since the signature is the following:
    public void onBeforePhase(PhaseEvent phaseEvent)but how do I know the phaseEvent when calling the login.onBeforePhase? How the call should be?
    Thanks a lot!
    ps. I'm using jDev 11.1.2.1.0

    You need not pass anything to this method , this method will get called before every Phase except ReStore View
    Just write the logic as Frank suggested for the phase in which you want the code to execute. You can get the PhaseId's like
    PhaseId.RENDER_RESPONSE
    public void onBeforePhase(PhaseEvent phaseEvent) {// from Frank's doc
    //render response is called on an initial page request
      if(phaseEvent.getPhaseId() == PhaseId.RENDER_RESPONSE){
    ... etc

  • Invoking ROA method "ReadObjects" via HMI

    Hi experts,
    When I'm try open the CChannel the PI 7.0 return this message.
    Attempt to access application REPOSITORY using Http Method Invocation (HMI) failed. Detailed information: Invoking ROA method "ReadObjects" via HMI ... FAILED due to following exception: Message: Connection to system REPOSITORY using application REPOSITORY lost. Detailed information: Error accessing "http://192.168.10.155:50500/rep/remoteobjectaccess/int?container=ejb" with user "PIDIRUSER". Response code is 401, response message is "Unauthorized" Stacktrace: com.sap.aii.utilxi.hmi.api.HmiCoreException: Connection to system REPOSITORY using application REPOSITORY lost. Detailed information: Error accessing "http://192.168.10.155:50500/rep/remoteobjectaccess/int?container=ejb" with user "PIDIRUSER". Response code is 401, response message is "Unauthorized" at com.sap.aii.utilxi.hmi.api.HmiCoreException.newCommunicationError(HmiCoreException.java:83) at com.sap.aii.utilxi.hmi.api.HmiHttpClientImpl.sendRequestAndReceiveResponseViaHttp(HmiHttpClientImpl.java:195) at com.sap.aii.utilxi.hmi.api.HmiHttpClientImpl.sendRequestAndReceiveResponse(HmiHttpClientImpl.java:105) at com.sap.aii.utilxi.hmi.api.HmiClientAdapter.invokeMethod(HmiClientAdapter.java:88) at com.sap.aii.ib.core.roa.RoaServiceImpl.readObjectsImpl(RoaServiceImpl.java:198) at com.sap.aii.ib.core.roa.RoaServiceImpl.readObjects(RoaServiceImpl.java:329) at com.sap.aii.ib.server.cpa.AdapterMDCache.readObject(AdapterMDCache.java:219) at com.sap.aii.ib.server.cpa.AdapterMDCache.actualize(AdapterMDCache.java:209) at com.sap.aii.utilxi.misc.api.LRUMapBasedCache.get(LRUMapBasedCache.java:34) at com.sap.aii.ib.server.cpa.AdapterMDCache.get(AdapterMDCache.java:171) at com.sap.aii.utilxi.misc.api.Cache.get(Cache.java:40) at com.sap.aii.utilxi.misc.api.Cache.get(Cache.java:40) at com.sap.aii.ib.sbeans.misc.MiscServicesBean.getAdapterMetadata(MiscServicesBean.java:238) at com.sap.aii.ib.sbeans.misc.MiscServicesRemoteObjectImpl1_0.getAdapterMetadata(MiscServicesRemoteObjectImpl1_0.java:1848) at com.sap.aii.ib.sbeans.misc.MiscServicesRemoteObjectImpl1_0p4_Skel.dispatch(MiscServicesRemoteObjectImpl1_0p4_Skel.java:295) at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:312) at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:199) at com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request(P4SessionProcessor.java:129) at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33) at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41) at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37) at java.security.AccessController.doPrivileged(AccessController.java:207) at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100) at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
    Anybody hel-me?
    Regards,
    HMattos.

    Hi Mattos,
    I think this is the problem with the limitation of server resources.
    Please check the runtime errors in ST22.
    And check the standard deletion jobs are scheduled in your server.( SM36)
    Hope this will helps you
    Sunil.

  • Unable to use Datasource.cfc in Admin API - The current user is not authorized to invoke this method

    Hi Everyone,
    I am having some issues accessing the methods in the datasource.cfc in the adminAPI.
    I can successfully load the administrator CFC and am told that I have successsfuly logged in;
    But when I try to subsequently load the datasource.cfc I get an error that the current user is unable to access the method.
    /* Create an Admin API object and call the login method */
                                                      var local = {};
                                                      local.adminObj = createObject("component", "cfide.adminapi.administrator");
                                                      /* Enter your password for the CF Admin */
      /* if you dump this - TRUE is returned */
                                                      local.adminObj.login(adminPassword="my_admin_user_password");
                                                      /* Create an object of datasource component */
                                                      local.dsnObj = createObject("component", "cfide.adminapi.datasource");
      writeDump(local.dsnObj.getDataSources());
    I tried creating separate admin users and passwords - yhinking that perhaps a revent hotfix had stopped the "admin" user from being allowed to use the adminAPI - but changing to a new adminuser yielded the same results.
    I could login to the admin API with the new username and passsword - but could not access the datasource.cfc after that.
    Here is the debug output from the error...
    The current user is not authorized to invoke this method.
    The error occurred in accessmanager.cfc: line 48
    Called from datasource.cfc: line 52
    Called from C:/inetpub/wwwroot/projectDir/trunk/Application.cfc: line 155
    Called from C:/inetpub/wwwroot/projectDir/trunk/Application.cfc: line 52
    Called from C:/inetpub/wwwroot/projectDir/trunk/Application.cfc: line 45
    Called from C:/inetpub/wwwroot/projectDir/trunk/Application.cfc: line 1
    -1 : Unable to display error's location in a CFML template.
    Resources:
    Check the ColdFusion documentation to verify that you are using the correct syntax.
    Search the Knowledge Base to find a solution to your problem.
    Browser 
    Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.31 (KHTML, like Gecko) Chrome/26.0.1410.64 Safari/537.31
    Remote Address 
    127.0.0.1
    Referrer 
    Date/Time 
    22-Apr-13 01:09 PM
    Stack Trace
    at cfaccessmanager2ecfc974154242$funcCHECKADMINROLES.runFunction(E:/cf10_final/cfusion/wwwro ot/CFIDE/adminapi/accessmanager.cfc:48) at cfdatasource2ecfc1679861966$funcGETDATASOURCES.runFunction(E:/cf10_final/cfusion/wwwroot/ CFIDE/adminapi/datasource.cfc:52) at cfApplication2ecfc498167235$funcPREREQUISITESTART.runFunction(C:/inetpub/wwwroot/projectD ir/trunk/Application.cfc:155) at cfApplication2ecfc498167235$funcINIT.runFunction(C:/inetpub/wwwroot/projectDir/trunk/Appl ication.cfc:52) at cfApplication2ecfc498167235._factor5(C:/inetpub/wwwroot/projectDir/trunk/Application.cfc: 45) at cfApplication2ecfc498167235.runPage(C:/inetpub/wwwroot/projectDir/trunk/Application.cfc:1 )
    coldfusion.runtime.CustomException: The current user is not authorized to invoke this method. at coldfusion.tagext.lang.ThrowTag.doStartTag(ThrowTag.java:142) at coldfusion.runtime.CfJspPage._emptyTcfTag(CfJspPage.java:2799) at cfaccessmanager2ecfc974154242$funcCHECKADMINROLES.runFunction(E:\cf10_final\cfusion\wwwroot\CFIDE\adminapi\accessmanager.cfc:48) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:472) at coldfusion.filter.SilentFilter.invoke(SilentFilter.java:47) at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:368) at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:55) at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:321) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:220) at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:655) at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:444) at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:414) at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:2432) at cfdatasource2ecfc1679861966$funcGETDATASOURCES.runFunction(E:\cf10_final\cfusion\wwwroot\CFIDE\adminapi\datasource.cfc:52) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:472) at coldfusion.filter.SilentFilter.invoke(SilentFilter.java:47) at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:405) at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:368) at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:55) at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:321) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:220) at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:655) at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:444) at coldfusion.runtime.TemplateProxy.invoke(TemplateProxy.java:414) at coldfusion.runtime.CfJspPage._invoke(CfJspPage.java:2432) at cfApplication2ecfc498167235$funcPREREQUISITESTART.runFunction(C:\inetpub\wwwroot\projectDir\trunk\Application.cfc:155) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:472) at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:405) at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:368) at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:55) at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:321) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:220) at coldfusion.runtime.CfJspPage._invokeUDF(CfJspPage.java:2659) at cfApplication2ecfc498167235$funcINIT.runFunction(C:\inetpub\wwwroot\projectDir\trunk\Application.cfc:52) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:472) at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:368) at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:55) at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:321) at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:220) at coldfusion.runtime.CfJspPage._invokeUDF(CfJspPage.java:2659) at cfApplication2ecfc498167235._factor5(C:\inetpub\wwwroot\projectDir\trunk\Application.cfc:45) at cfApplication2ecfc498167235.runPage(C:\inetpub\wwwroot\projectDir\trunk\Application.cfc:1) at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:244) at coldfusion.runtime.TemplateProxyFactory.resolveComponentHelper(TemplateProxyFactory.java:538) at coldfusion.runtime.TemplateProxyFactory.resolveName(TemplateProxyFactory.java:234) at coldfusion.runtime.TemplateProxyFactory.resolveName(TemplateProxyFactory.java:159) at coldfusion.runtime.TemplateProxyFactory.resolveFile(TemplateProxyFactory.java:120) at coldfusion.cfc.CFCProxy.<init>(CFCProxy.java:138) at coldfusion.cfc.CFCProxy.<init>(CFCProxy.java:84) at coldfusion.runtime.AppEventInvoker.<init>(AppEventInvoker.java:64) at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:232) at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40) at coldfusion.filter.PathFilter.invoke(PathFilter.java:112) at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:94) at coldfusion.filter.BrowserDebugFilter.invoke(BrowserDebugFilter.java:79) at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:28) at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38) at coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:46) at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38) at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22) at coldfusion.filter.CachingFilter.invoke(CachingFilter.java:62) at coldfusion.CfmServlet.service(CfmServlet.java:219) at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42) at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:928) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:414) at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:204) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:539) at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:298) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662)
    And here is the listed exceptions, beneath the stack trace;
    13:09:56.056 - cfadminapiSecurityError Exception - in E:/cf10_final/cfusion/wwwroot/CFIDE/adminapi/accessmanager.cfc : line 48
             The current user is not authorized to invoke this method.
    13:09:56.056 - cfadminapiSecurityError Exception - in E:/cf10_final/cfusion/wwwroot/CFIDE/adminapi/accessmanager.cfc : line 48
             The current user is not authorized to invoke this method.
    13:09:56.056 - java.io.FileNotFoundException - in C:/ColdFusion10/cfusion/wwwroot/WEB-INF/exception/errorcontext.cfm : line 44
             E:/cf10_final/cfusion/wwwroot/CFIDE/adminapi/accessmanager.cfc (The system cannot find the path specified)
    This perspn seems to be having the same issue;
    http://forums.adobe.com/message/5051892
    and I agree I don't have "E" drive either!

    I've found a solution to my plight - I don't know if it'll work for you or help you try something that MAY fix it.
    I use a common code set which includes the Application.cfc from a CF Mapping - So, in the application.cfc in the actual website I do this:-
    <cfinclude template="/UberDirectory/Application.cfc">
    Then, in the /UberDirectory/Application.cfc, I was initialising a CFC which checks if the datasource was created for the website. The datasource checking code attempts to log into the Admin API and check & create if necessary the datasource.
    This has previously worked without fail for me - But in this instance it failed!! I was doing two things wrong - Firstly, the CFC should only be called in the Application.cfc in the onRequestStart section as the Application had to be initialised first - This is maybe because I've invoked the application.cfc in a "non-standard" manner.
    Secondly, once I'd moved the CFC invocation into oNRequestStart I saw the following error:-
    The string COOKIE.CFAUTHORIZATION_uber-directory is not a valid ColdFusion variable name.
    I had this as the app name .... <cfset this.name = 'uber-directory'>
    Changedthe dash to an underscore and I was away and could once again check the datasources
    Hope it helps
    Martin

  • How do you invoke a method with native int array argument?

    Hi,
    Will someone help me to show me a few codes samples on how to invoke a method which has only one argument, an int [] array.
    For exampe:
    public void Method1(int [] intArray) {...};
    Here is some simple code fragment I used:
    Class<?> aClass = Class.forName("Test2");
    Class[] argTypes = new Class[] {int[].class};
    Method method = aClass.getDeclaredMethod("Method_1", argTypes);
    int [] intArray = new int[] {111, 222, 333};
    Object [] args = new Object[1];
    args[0] = Array.newInstance(int.class, intArray);
    method.invoke(aClass, args);I can compile without any error, but when runs, it died in the "invoke" statement with:
    Exception in thread "main" java.lang.IllegalArgumentException: object is not an instance of declaring class
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at Test1.invoke_Method_1(Test1.java:262)
         at Test1.start(Test1.java:33)
         at Test1.main(Test1.java:12)
    Any help is greatly appreciated!
    Jeff

    Sorry, my bad. I was able to invoke static methods and instance methods with all data types except native int, short, double and float, not sure the proper ways to declare them.
    After many frustrating hours, I posted the message for help, but at that time, my mind was so numb that I created a faulted example because I cut and pasted the static method invocation example to test the instance method passing int array argument.
    As your post suggested, "args[0] = intArray;", that works. Thanks!
    You know, I did tried passing the argument like that first, but because I was not declaring the type properly, I ended up messing up the actual passing as well as the instantiation step.
    I will honestly slap my hand three times.
    jml

  • How can I invoke a method on a subclass based on the runtime type?

    Hi all,
    I have defined a base class OrderDetail, and 2 subclasses which extend it: OrderDetailSingleReservation and OrderDetailMonthReservation. Furthermore, I have a method:
        public Order order_generate(OrderDetail orderDetail) {
            if (orderDetail instanceof OrderDetailSingleReservation) {
                return order_generate((OrderDetailSingleReservation) orderDetail);
            }  else if (orderDetail instanceof OrderDetailMonthReservation) {
                return order_generate((OrderDetailMonthReservation) orderDetail);
            } else {
                Misc.alert("orderAndInvoice_Generate(GENERIC): unsupported type.");
                return null;
        }The type of this method's parameter is OrderDetail, as you can see. (This particular method only serves as a kind of dispatcher and is therefore not very interesting in itself, but the same pattern using 'instanceof' occurs in a codebase I am working on several times, and I would like to factor it out if possible.)
    My question: it seems that the invocation of order_generate() from within this method requires an explicit downcast to one of the two subclasses. If not, java invokes the method on the superclass. But at runtime, the JVM knows what type of object it is dealing with, right? So is there no way to do this without the explicit downcast?
    A similar problem occurs when trying to invoke a method on an object whose type is one of the subclasses; the method on superclass is called, instead of the one in the appropriate subclass that overrides it.
    Any help would be greatly appreciated!
    Thanks,
    Erik

    Thanks for your replies! I was editing my post last night to clarify it, but my connection went down and the edit was lost :(
    Anyway, yes, it should be done with polymorphism. I was constructing an example using the famous Animal, Cat and Dog classes to demonstrate my question more clearly, and to my surprise the problem does not occur in my example code.
    LRMK: Invoking a method such as in your example, where the method is inside the class itself, works fine. However for MVC's sake, I have a separate class called Invoicing with methods as below:
    class invoicing
      // the method for the superclass
      public Invoice invoice_create(OrderDetail orderDetail) {
         System.out.println("type: " + orderDetail.getClass());
         return null;
      // the method for one of the subclasses (this method is being not invoked)
      public Invoice invoice_create(OrderDetailSingleReservation orderDetail) {
         return null;
      // ...nor is this one.
      public Invoice invoice_create(OrderDetailMonthReservation od) {
         return null;
    }Now I attempt to invoke these methods:
    // create example objects
    OrderDetailSingleReservation odSingle = new OrderDetailSingleReservation();
    OrderDetailMonthReservation odMonth = new OrderDetailMonthReservation();
    // this call displays "odSingle type: OrderDetailSingleReservation"
    System.out.println("odSingle type: " + odSingle.getClass());
    // this call displays "odMonth type: OrderDetailMonthReservation"
    System.out.println("odMonth type: " + odMonth.getClass());
    // this call invokes Invoicing.invoice_create(OrderDetail)
    // instead of Invoicing.invoice_create(OrderDetailSingleReservation)
    Invoicing.invoice_create(odSingle);
    // this call invokes Invoicing.invoice_create(OrderDetail)
    // instead of Invoicing.invoice_create(OrderDetailMonthReservation)
    Invoicing.invoice_create(odMonth);So these calls will invoke the method for the superclass, i.e. Invoicing.invoice_create(OrderDetail od). That method then then executes the System.out.println() call which displays the class type of its parameter as one of { OrderDetailSingleReservation | OrderDetailMonthReservation }, that is, the expected subclass types!
    So the dynamic dispatch isn't working the way I would expect it to. If I do the explicit if-else checking using instanceof, as described in my first post, the correct methods are called.
    I hope the problem is somewhat clearer now. I am a bit lost as to what might be causing this, or how to monitor what's going on inside the jvm. Any ideas? BTW, the OrderDetail class and its subclasses are JPA entities (though I don't think it should matter).
    Thanks!
    Erik

Maybe you are looking for

  • Cannot delete a file or open it from desktop

    Sorry if this is a repeat question, but I have not been able to find a good solution. When I try to delete a specific .aif file from my desktop, I get the following message: The operation can't be completed because an unexpected error occurred (error

  • 3.0.1 have a serious problem with 3G signal?

    Hello. I've installed the 3.0.1 on my iPhone 3G S. My home is in an area usually covered by the 3G signal of TIM (Italy). After the update the 3G signal strenght is very low and the phone is always switching to Edge. It's a shame. I want to put my iP

  • Webutil.cfg

    Hi All, Configured webutil successfully, changed the transfer.database.enabled=TRUE and transfer.appsrv.accessControl=FALSE leaving rest of the other parameters to default in webutil.cfg file. But I am getting error 2006-Jan-11 14:58:39.285 ERROR>WUT

  • XML extract error

    Hello - This is my table: SQL> describe UCCNET_REGISTRY_CAT_ITEM; Name Null? Type UCCNET_REGISTRY_CAT_ITEM_KEY NOT NULL NUMBER XML XMLTYPE EAN_UCC_PROXY_KEY NUMBER DOCUMENT_NAME VARCHAR2(256) SQL> and this is my statement that is supposed to extract

  • ITunes causing Windows to restart

    I seem to have an issue at the moment with iTunes causing sudden system restarts quite regularly - usually when I am browsing the store. It seems to date back to when they added all the coverflow to each of the categories. It's not related to any rec