Wepshere and ColdFusion Mx 7- Java Hangs

Hi folks,
We just recently went live with our new web server and are
experiencing occaisional hangs with Websphere/CF. IBM has diagnosed
the following, and I am hoping you might be able to help shed
further light on how we might correct or alleviate the problem.
I see out of memory exceptions and the current thread is deep
in ColdFusion code...
Current Thread Details
"WebContainer : 19" (TID:0x30785DD8,
sys_thread_t:0x4B70F1A0, state:R, native ID:0x4DF4) prio=5
at
coldfusion.runtime.NeoBodyContent.getString(NeoBodyContent.java(Compiled
Code))
at
coldfusion.tagext.lang.ThistagScope.setBodyContent(ThistagScope.java(Compiled
Code))
at
coldfusion.tagext.lang.ModuleTag.doAfterBody(ModuleTag.java(Compiled
Code))
at
cffbx_fusebox30_CF50_nix2ecfm97317734._factor2(fbx_fusebox30_CF50_nix.cfm:286)
at
cffbx_fusebox30_CF50_nix2ecfm97317734._factor4(fbx_fusebox30_CF50_nix.cfm:258)
at
cffbx_fusebox30_CF50_nix2ecfm97317734._factor5(fbx_fusebox30_CF50_nix.cfm:1)
at
cffbx_fusebox30_CF50_nix2ecfm97317734.runPage(fbx_fusebox30_CF50_nix.cfm:1)
at
coldfusion.runtime.CfJspPage.invoke(CfJspPage.java(Compiled Code))
at
coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java(Compiled
Code))
at
coldfusion.runtime.CfJspPage._emptyTag(CfJspPage.java(Compiled
Code))
at cfindex2ecfm1859906939.runPage(index.cfm:19)
at
coldfusion.runtime.CfJspPage.invoke(CfJspPage.java(Compiled Code))
at
coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java(Compiled
Code))
at
coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java(Compiled
Code))
at
coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java(Compiled
Code))
at
coldfusion.filter.PathFilter.invoke(PathFilter.java(Compiled Code))
at
coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java(Compiled
Code))
at
coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java(C ompiled
Code))
at
coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java(Compiled
Code))
at
coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java(Compiled
Code))
at
coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java(Compiled
Code))
at coldfusion.CfmServlet.service(CfmServlet.java(Compiled
Code))
at
coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java(Compiled
Code))
at
com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java(Compiled
Code))
at
com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java(Compiled
Code))
at
com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java(Compiled
Code))
at
com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java(Compiled
Code))
at
com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper.jav a(Compiled
Code))
at
com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java(Compiled
Code))
at
com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java(Compiled
Code))
at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink .java(Compiled
Code))
at
com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink .java(Compiled
Code))
at
com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.jav a(Compiled
Code))
at
com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java(Compil ed
Code))
at
com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java(Compiled
Code))
at
com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java(Compiled
Code))
at
com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java(Compiled
Code))
at
com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java(Compiled
Code))
And
The heapdump also shows coldfusion code with large 8M
objects. This is the source of the problem.
21,228,000 [96] 5 com/ibm/ws/util/ThreadPool 0x33a9e748
21,066,680 [56] 2 java/util/HashMap 0x33a96628
21,066,600 [48] 8 array of java/util/HashMap$Entry
0x32be0488
18,431,608 [32] 3 java/util/HashMap$Entry 0x3726b7f0
18,352,408 [136] 9 com/ibm/ws/util/ThreadPool$Worker
0x30785dd8
18,311,272 [32] 1 java/lang/ThreadLocal$ThreadLocalMap
0x3781d318
18,311,240 [112] 23 array of
java/lang/ThreadLocal$ThreadLocalMap$Entry 0x3ac26e88
18,307,136 [32] 3 java/lang/ThreadLocal$ThreadLocalMap$Entry
0x3822ea28
18,307,104 [160] 15 coldfusion/filter/FusionContext
0x3e8be278
9,863,608 [32] 1 coldfusion/runtime/LocalScope 0x3e8b49d8
8,411,336 [96] 12 coldfusion/runtime/NeoPageContext
0x3e8b4708
8,390,800 [96] 11 coldfusion/runtime/NeoPageContext
0x3e8bcc48
8,388,904 [80] 4 coldfusion/runtime/NeoBodyContent
0x3e8c2490
8,388,664 [40] 2 coldfusion/runtime/CharBuffer 0x3e8b8870
8,388,624 [8,388,624] 0 char[] 0x3f740130
8,388,664 [40] 2 coldfusion/runtime/CharBuffer 0x3e8b8870
160 [80] 4 coldfusion/runtime/NeoBodyContent 0x3e8c0f68
8,388,904 [80] 4 coldfusion/runtime/NeoBodyContent
0x3e8c2490
88 [88] 3 coldfusion/runtime/NeoJspWriter 0x3e8bcaf8
8,388,904 [80] 4 coldfusion/runtime/NeoBodyContent
0x3e8c2490
1,720 [32] 3 coldfusion/runtime/NeoPageContext$TagSet
0x3e8b8970
Any help or suggestions you can provide would be most
appreciated.
Cheers,
David

Hi,
Please visit the URL below for a sample on how to display
data in a DataGrid.
http://livedocs.adobe.com/flex/3/langref/mx/controls/DataGrid.html#includeExamplesSummary
Hope this helps.

Similar Messages

  • SQL Server 2005 and ColdFusion 7

    Hi all,
    I am using SQL Server 2005 and ColdFusion 7 (standalone) on
    XP 64 Bit. I was using the exact setup a couple of weeks ago, but
    had to reinstall my O/S due to hardware problems so am back to the
    beginning. I remember having a nightmare setting datasources up in
    the past, but did manage to find a solution.
    I have tried the following:
    SQL has TCP/IP Enabled
    SQL is set to Mixed Authentication
    SQL has a login set to the same as my Windows Username and
    password
    My database has a user (dbo) by the same name as the login
    set in SQL
    When I add a datasource in the administrator I enter the
    windows username and password (I have tried without either as
    well), the server name as localhost and the port as the default
    1433.
    I always get the following error:
    Connection verification failed for data source: DATABASENAME
    java.sql.SQLException: [Macromedia][SQLServer JDBC
    Driver]Error establishing socket. Connection refused: connect
    The root cause was that: java.sql.SQLException:
    [Macromedia][SQLServer JDBC Driver]Error establishing socket.
    Connection refused: connect
    Can someone offer any advice? This is driving me proper nuts.
    TIA,
    Paul

    when i did it, i had to update my jdbc driver
    http://msdn.microsoft.com/data/ref/jdbc/

  • Java hangs

    Hi all,
    I am facing an issue in java.
    Problem,
    The sever stop responding to anything, it just hangs, cannot be restarted unless killing java process through task manager. does not respond to hprof, jstacktrace, jvisio, console, anything.
    the problem occurs very intermittently, some time it works, some time it doesn't, so, very difficult keep track of this.
    when tried to debugging, it seems to be hanging on creating a instance using constructor.newInstance() method.
    Especially in sun.rmi.server.Util.createStub() method.
    which is trying to create a stub object, it prints (sys.out.println) the loaded stub class and constructor also, but newInstance method hangs and do not print then onwards.
    // sun.rmi.server.remote.Util.java
    private static RemoteStub createStub(Class remoteClass, RemoteRef ref)
    throws StubNotFoundException
    String stubname = remoteClass.getName() + "_Stub";
    try {
    Class stubcl =
    Class.forName(stubname, false, remoteClass.getClassLoader());
    Constructor cons = stubcl.getConstructor(stubConsParamTypes);
    return (RemoteStub) cons.newInstance(new Object[] { ref });
    } catch {
    it hangs here,, (RemoteStub) cons.newInstance(new Object[] { ref });
    it is very intermittent, once for so many attempts,
    Please help about the ways this can be debugged further or any solution to this.
    Thanks,
    Kalpa

    If only it was as simple as making a post in a forum and then sitting back and waiting for answers.
    But it is not. It will take plenty of smart people investigating every tiny little corner of the working environment to see where the problem may stem from. It starts by changing your attitude - it is too soon to claim that "java hangs". It might just as well be the OS that is blocking the process for some reason. You seem to have traced this to RMI, which opens network connections. Perhaps that is failing.
    Check every log file available in the system, that is all I can say. If you must blame Java, try running with an alternate version (older and newer) to see if that changes anything. Create proof before you make claims.

  • Updating JVM (using IIS and Coldfusion)

    I recently created my first java class and compiled it using
    the new java SDK. I Registered my new CFX Tag and now I get this
    error "500 HelloColdFusion (Unsupported major.minor version 50.0)"
    when trying to access it in my .cfm test page. I read that this is
    because I used a new version of JVM to compile the class and the
    jvm coldfusion has installed is older. How do I update coldfusion
    to look at the new jvm ?

    This fixes ERROR "Unsupported major.minor version 49.0" and
    "Unsupported major.minor version 50.0" on my Windows Server 2003
    SP1 and Coldfusion MX 7.02 system.
    1. Make sure the ColdFusion service is stopped.
    2. Download JRun4 Updater from
    http://www.macromedia.com/support/jrun/updaters.ht...
    jrun4-win-en-updater.exe
    3. Install JRun4 Updater into the runtime folder of your
    ColdFusion install directory.
    C:\CFusionMX7\runtime
    4. Download and install Java JDK 1.5 (
    jdk-1_5_0_11-windows-i586-p.exe )
    5. Open both jvm.config files found in these directories:
    C:\CFusionMX7\runtime\bin
    C:\CFusionMX7\runtime\updater6-backup\bin
    6. Find the line that sets the java.home property under the
    "VM Configuration" heading ( change
    "java.home=C:/CFusionMX7/runtime/jre" to "java.home=C:/Program
    Files/Java/jdk1.5.0_11/jre" in both files.
    7. Restart coldfusion.
    I hope this saves you all time.

  • ColdFusion 9, 10 Java 7 Support ASAP!

    Oracle has released the final Java 6 Update 39 last week, marking the end of support for Java 6.  Adobe has stated multiple times that Java 7 would be supported before EOL, yet it has been a week and still no patches or update.  Does anyone have an ETA when Java 7 will be officially supported?
    References:
    Java version support     [http://forums.adobe.com/thread/975438 | http://forums.adobe.com/thread/975438]
    Java 7 support for ColdFusion    
    http://blogs.coldfusion.com/post.cfm/java-7-support-for-coldfusion
    What's the situation with #ColdFusion and Java 7, Java 6 updates, Windows 8, and OS X Mountain Lion?          [http://www.carehart.org/blog/client/index.cfm/2012/12/12/java_7_and_6_updates_and_Win8_and _MtnLion | http://www.carehart.org/blog/client/index.cfm/2012/12/12/java_7_and_6_updates_and_Win8_and _MtnLion]
    Upgrade Java for ColdFusion  http://helpx.adobe.com/coldfusion/kb/upgrading-java-coldfusion.html

    Has Adobe updated all current Java and ColdFusion KB articles yet, so I don't have to assume that when Java 7 Update 16 is released that we can apply it assuming we have the base Adobe patches that support Java ?.  I also have seen some confusing articles about JDK vs JRE, for example Ben Forta's blog post yesterday Upgrading ColdFusion To Java 7 at http://forta.com/blog/index.cfm/2013/3/3/Upgrading-ColdFusion-To-Java-7
    Ben, the Adobe website states JDK is required, not JRE "Download and install JDK 1.7." http://helpx.adobe.com/coldfusion/kb/coldfusion-10-update-8.html and "Note that ColdFusion requires the Java HotSpot Server virtual machine (jre/bin/server/jvm.dll), which is not available with the JRE download." http://helpx.adobe.com/coldfusion/kb/change-coldfusion-jvm.html
    PS +10 to Carl's question "Will CF9 or CF10 be supported on JDK 8? JDK 8 release expected September 2013?", I would like Adobe to state ColdFusion upgrade plans and timetables for new versions of Java.  Java 7 was released over 18 months ago and Java 6 received several end of life extension both without Adobe updating ColdFusion untl the last possible second!

  • Using Runtime exec() to open and close process like java or javac

    Hi, I m a student who is learning IT and is wondering if
    Runtime exec() can run and stop commands like java and javac?
    Can someone post the code to do so here?Thank you

    Well, Here is my complete code:
    import java.util.*;
    import java.io.*;
    import javax.swing.*;
    import java.awt.event.*;
    import java.awt.*;
    class StreamGobbler extends Thread
    InputStream is;
    String type;
    StreamGobbler(InputStream is, String type)
    this.is = is;
    this.type = type;
    public void run()
    try
    InputStreamReader isr = new InputStreamReader(is);
    BufferedReader br = new BufferedReader(isr);
    String line=null;
    while ( (line = br.readLine()) != null)
    System.out.println(type + ">" + line);
    } catch (IOException ioe)
    ioe.printStackTrace();
    class Program implements Runnable
         Process proc;
    String args[];
         String[] cmd = new String[4];
         boolean isGone=false;
         public Program(String args[])
              this.args=args;
         public void run()
              if (isGone==true)
                   try
                        Runtime.getRuntime().exec(cmd).destroy();
                   catch(IOException e)
                        System.out.println("Error: "+e.toString());
                   System.out.println("User abort");
         public void start(String args[])
              if (args.length < 1)
    System.out.println("USAGE: java GoodWindowsExec <cmd>");
    System.exit(1);
    try
    String osName = System.getProperty("os.name" );
    if( osName.equals( "Windows NT" ) )
    cmd[0] = "cmd.exe" ;
    cmd[1] = "/C" ;
    cmd[3] = args[0];
    else if( osName.equals( "Windows 95" ) ||osName.equals( "Windows 98" ))
    cmd[0] = "command.com" ;
    cmd[1] = "/C" ;
    cmd[2] = args[0];
                        cmd[3]=args[1];
    Runtime rt = Runtime.getRuntime();
    // System.out.println("Execing " + cmd[0] + " " + cmd[1]
    // + " " + cmd[2]+" "+args[1]);                                    
    proc = rt.exec(cmd);
    // any error message?
    StreamGobbler errorGobbler = new
    StreamGobbler(proc.getErrorStream(), "ERROR");
    // any output?
    StreamGobbler outputGobbler = new
    StreamGobbler(proc.getInputStream(), "OUTPUT");
    // kick them off
    errorGobbler.start();
    outputGobbler.start();
    // any error???
    // int exitVal = proc.waitFor();
    //System.out.println("ExitValue: " + exitVal);
    } catch (Throwable t)
    t.printStackTrace();
         public void destroy()
              isGone=true;
    class test1 implements ActionListener
         String s[]={"c:\\jdk1.3\\bin\\java.exe","ContactProcessor1"};
         GUI g=new GUI();
              Program p=new Program(s);
         public test1()
              //didnt work
              g.getStart().addActionListener(this);
              g.getStop().addActionListener(this);
              g.show();
         public void actionPerformed(ActionEvent e)
              if (e.getSource()==g.getStart())
                   p.start(s);
                   p.run();
              if (e.getSource()==g.getStop())
                   p.destroy();
                   p.run();
         public static void main(String args[])
              test1 t = new test1();
    class GUI extends JFrame
         JButton start;
         JButton stop;
         public GUI()
              super();
              getContentPane().setLayout(new FlowLayout());
              start=new JButton("start");
              stop=new JButton("stop");
              getContentPane().add(start);
              getContentPane().add(stop);
              setSize(100,100);
         public JButton getStart()
              return start;
         public JButton getStop()
              return stop;
    }

  • What are the pros and cons of installing java+abap stack for portal?

    Hi all,
      1.What are the pros and cons of installing java+abap stack for portal?
      2.what effect it does on the ume options to be choosen??
      3.for the purpose of integration of r3,bw and crm on portal and crm 4.0 60.2.3 business package which option of stack(java or abap or both)will be good option and which ume option while installation should be choosen?
    regards
    Rajendra

    Hi Rajendra,
    The NetWeaver Installation Master Guide offers some good scenarios on the pros and cons:
    https://websmp201.sapag.de/~sapidb/011000358700005412792005E.pdf
    In a nutshell:
    ABAP+JAVA
    Pros
    - Decrease # of servers required to administer the portal
    - Less costly
    Cons
    - Upgrades could be dependent on ABAP and Java release level
    - Additional load on the server due to ABAP stack
    - Limited scalability
    JAVA and ABAP on separate server
    Pros
    - Improved performance
    - Allows each system to be single-use purpose therefore downtime does not affect other components
    - More scalable
    Cons
    - Adds complexity to landscape
    - Additional costs
    Regards,
    Thomas Pham

  • How do I save a file to a server using flex and coldfusion?

    How do I save a file to a server using flex and coldfusion?
    On the CF side I might need to use this:
    <cffile action="UPLOAD" filefield="Filedata"
    destination="#expandpath('..\somepath)#"
    nameconflict="overwrite">
    And on the flex side I might need to use something like this:
    var sendVars:URLVariables = new URLVariables();
    sendVars.action = "upload";
    var request:URLRequest = new URLRequest();
    request.data = sendVars;
    request.url = _strUploadScript;
    request.method = URLRequestMethod.POST;
    _refUploadFile = new FileReference();
    _refUploadFile = _arrUploadFiles[_numCurrentUpload].data;
    _refUploadFile.addEventListener(ProgressEvent.PROGRESS,
    onUploadProgress);
    _refUploadFile.addEventListener(Event.COMPLETE,
    onUploadComplete);
    _refUploadFile.addEventListener(IOErrorEvent.IO_ERROR,
    onUploadIoError);
    _refUploadFile.addEventListener(SecurityErrorEvent.SECURITY_ERROR,
    onUploadSecurityError);
    _refUploadFile.upload(request, "file", false);
    I just don't know how to put it all together in Coldfusion.

    try this...
    http://cf-creations.co.uk/blog/index.cfm/2008/9/20/Flex--File-Upload-Form--Part-One--Build ing-The-Initial-Form

  • Do i need a network card to install and run a local java web server

    Friends,
    Do i need a network card in my computer to install and run a local Java Web Server or any Web Server.

    network cards are only for connecting equipment together... you can set up a webserver without any more equipment than you have already! Indeed Tomcat... BUT you would be better off with apache for production stuff. It depends what you need to serve... if its mainly static pages (i guess it probably isn't) then apache will be enough by itself; but if you need to serve dynamic pages (JSP, Servlet blah blah) then you will need tomcat. Tomcat has it's own webserver and its perfectly ok for testing or low-load stuff, but you can integrate with Apache (a moderately compex task, but do-able, see tomcat-user forum off of apache site) for greater stability, and you don't have to show the port in the URL... Don't set up a webserver on any pc that contains stuff you don't want hacked into... it becomes very succeptible when the service is up...

  • HT4623 I was installing the ios 6 on my iphone 3GS and an error occured and since then it's hanged up and not working. Please suggest some solution

    I was installing the ios 6 on my iphone 3GS and an error occured and since then it's hanged up and not working. Please suggest some solution

    the same thing here! each time its suppose to register with my network, it cant. im wondering if its a hardware problem

  • How SDA and DDA works in Java Card?

    Hi Friends,
    I want to know how exactly SDA and DDA works in Java Card technology..
    Yes, i know that SDA (Static Data Authentication) is valid for every transactions, but the key used is always same for every transaction made..
    and DDA (Dynamic Data Authentication) uses dynamic key for every transactions, it means that one key is valid for one transaction..
    But, i'm a little bit confused how this is implemented in Java Card..
    Is it related with SCP01 and SCP02?..
    Please help me regarding this..
    Thanks in advance

    Hi,
    I want to know how exactly SDA and DDA works in Java Card technology..This is an EMV concept and as such is not implemented in Java Card as such. You would have to create an implementation to be able to use SDA and DDA.
    But, i'm a little bit confused how this is implemented in Java Card..
    Is it related with SCP01 and SCP02?..It is not implemented natively in Java Card and are not related to SCP. SDA and DDA are for the EMV card application (card application data updates) and SCP is for the card manager (card content updates). While they could be considered similar concepts, they are not related in a Java Card sense.
    Cheers,
    Shane

  • Stored procedure and coldfusion.

    Hi all,
    My query is related with Oracle and coldfusion. I have got to write a stored procedure for updating a table. In this I have to raise an exception if the field i give for does not exist. Can anyone give an example code for this? I also want to know how it is called in a cfm page.
    Following is the stored procedure i have written
    create or replace package group_pack
    as
    procedure group_update
    pt_group_id in group.group_id%type,
    pt_group_name in group.group_name%type
    end;
    create or replace package body group_pack
    as
    procedure group_update
    pt_group_id in group.group_id%type,
    pt_group_name in group.group_name%type
    as
    begin
    update group
    set group_id = pt_group_id,
    group_name = pt_group_name
    where group_id = pt_group_id;
    exception
    when no_data_found then (what to code)
    end;
    end;
    In this in the (what to code) part i tried returning zero...but then procedures do not return values. Then I tried to RAISE exception, which also showed error.
    Also in the cfm page what should be done with the <cfstoredproc> </cfstoredproc>tags. How should it be reflected.....
    Please do give a solution to my problem.....
    Thanking in advance....
    Regards,
    Aswathy.

    Hi Aswathy,
    Can you please tell, what error it gave when you had written RAISE command? I think, this is a better choice if you do not want to do anything else like inserting a row with the missing value.
    regards,
    Archana
    http://justoracle.blogspot.com/

  • What are the BEST Books and Best websites for java biginners?

    Dear All,
    What are the BEST Books and Best websites for java biginners-Especially for fast learning.
    Thnaks
    KMK

    This is my standard reply:
    [Sun's basic Java tutorial|http://java.sun.com/docs/books/tutorial/]
    [Sun's New To Java Center|http://java.sun.com/learning/new2java/index.html]
    Includes an overview of what Java is, instructions for setting up Java, an intro to programming (that includes links to the above tutorial or to parts of it), quizzes, a list of resources, and info on certification and courses.
    jGuru
    A general Java resource site. Includes FAQs, forums, courses, more.
    JavaRanch
    To quote the tagline on their homepage: "a friendly place for Java greenhorns." FAQs, forums (moderated, I believe), sample code, all kinds of goodies for newbies. From what I've heard, they live up to the "friendly" claim.
    [Yawmarks List|http://forums.devshed.com/java-help-9/resources-for-learning-java-249225.html]
    [The Java Developers Almanac|http://www.amazon.com/exec/obidos/tg/detail/-/0201752808?v=glance]
    [http://javaalmanac.com|http://javaalmanac.com]
    Bruce Eckel's [Thinking in Java(Available online.)|http://mindview.net/Books/DownloadSites]
    Joshua Bloch's [Effective Java|http://www.amazon.co.uk/exec/obidos/Author=Bloch,%20Josh]
    Bert Bates and Kathy Sierra's [Head First Java|http://www.amazon.com/exec/obidos/tg/detail/-/0596004656?v=glance ]
    James Gosling's [The Java Programming Language|http://www.bookpool.com/sm/0321349806]
    Gosling is the creator of Java. It doesn't get much more authoritative than this.
    Joshua Bloch and Neal Gafter [Java Puzzlers.|http://www.javapuzzlers.com/]

  • How to create parent and chile process in java

    i'm beginning in java, and i want to ask something, please help me...
    1. i want to ask how to create parent and child process in java???
    example :
    if have one window and explore menu, when i click the explore menu.
    new window come out.
    how if i close the parent window the child window will close too...
    2. what is the method from runtime class to get available memory and Active Threads count

    ONE way to do what you wanted is this.
    class Parent{
    Child c = new Child
    allChildren.add(c);
    //if close
    iterate through list
    (Child)allChildren.get(index).close();
    ArrayList allChildren;
    class Child{
    public void close(){ }
    i dont know if you can get the thread count. but you can
    get the current thread by using System.
    Memory: Runtime.freeMemory() .maxMemory() .totalMemory()
    http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Runtime.html
    Careful though you have to do a calculation to get the
    actual memory because those 3 methods refer to freeMemory
    of the CURRENT heap not the total memory.
    i think its: total - (max - free)

  • Can we call a workflow form a JSP and/or form a Java Class?

    Is it possible to call a workflow form a JSP and/or form a Java Class?

    Below is some xpress code I wrote once, used to dynamically lauch workflows from within a workflow. Since it basically uses java classes, you reuse these in your java program or jsp:
    - create a new generic object
    - call the setId, put, ... methods on it
    - set the input variables for the workflow by putting them into the generic object
    - call the checkinView method on a LighthouseContext object which launches your workflow.
    If all you need is starting a workflow from a jsp, you might also want to take a look at the tasks/taskLaunch.jsp jsp. This is an out of the box jsp which allows launching of tasks. If I remember correctly you have to give an url parameter which specificies the name of task you want to start: tasks/taskLaunch.jsp?id=<workflow-name>
    - Robin
    <?xml version='1.0' encoding='UTF-8'?>
    <!DOCTYPE TaskDefinition PUBLIC 'waveset.dtd' 'waveset.dtd'>
    <TaskDefinition name="MVG_TD_LaunchWorkflow" taskType="Workflow" executor="com.waveset.workflow.WorkflowExecutor" suspendable="true" syncControlAllowed="true" execMode="sync" execLimit="0" resultLimit="0" resultOption="delete" visibility="runschedule" progressInterval="0">
         <Extension>
              <WFProcess name="MVG_TD_LaunchWorkflow">
                   <Variable name="workflowName" input="true"/>
                   <Variable name="taskInstanceName" input="true"/>
                   <Variable name="inputs" input="true"/>
                   <Variable name="processView"/>
                   <Activity name="start">
                        <Transition to="createProcessView"/>
                   </Activity>
                   <Activity name="createProcessView">
                        <Action>
                             <block trace="true">
                                  <set name="processView">
                                       <new class="com.waveset.object.GenericObject"/>
                                  </set>
                                  <invoke name="setId">
                                       <ref>processView</ref>
                                       <s>ProcessViewer</s>
                                  </invoke>
                                  <invoke name="put">
                                       <ref>processView</ref>
                                       <s>task.process</s>
                                       <ref>workflowName</ref>
                                  </invoke>
                                  <invoke name="put">
                                       <ref>processView</ref>
                                       <s>task.taskName</s>
                                       <ref>taskInstanceName</ref>
                                  </invoke>
                                  <if>
                                       <notnull>
                                            <ref>inputs</ref>
                                       </notnull>
                                       <then>
                                            <invoke name="assimilate">
                                                 <ref>processView</ref>
                                                 <ref>inputs</ref>
                                            </invoke>
                                       </then>
                                  </if>          
                             </block>
                        </Action>
                        <Transition to="checkInProcessView"/>
                   </Activity>
                   <Activity name="checkInProcessView">
                        <Action>
                             <block trace="true">
                             <invoke name="checkinView">
                                  <invoke name="getLighthouseContext">
                                       <ref>WF_CONTEXT</ref>
                                  </invoke>
                                  <ref>processView</ref>
                                  <new class="java.util.HashMap"/>
                             </invoke>
                             </block>
                        </Action>
                        <Transition to="end"/>
                   </Activity>
                   <Activity name="end"/>
              </WFProcess>
         </Extension>
         <MemberObjectGroups>
              <ObjectRef type="ObjectGroup" id="#ID#Top" name="Top"/>
         </MemberObjectGroups>
    </TaskDefinition>

Maybe you are looking for

  • RGB conversion to CMYK InDesign CS4 js

    Hi, When we export InDesign into pdf through a script we assign to it a specific color profile. And at first it was converting all RGB files to CMYK as well. Then after one of the crashes my InDesign stopped to convert them. Is there a way to fix tha

  • Alerts for JDBC Receiver Adapter

    Hi , I am using JDBC receiver adapter. I have configured the alert category and Alert rules. Alerts are getting for Mapping etc. When ever error occured in the SQL server whether its firewall issue or some other issue. The alerts are not created. Ins

  • JSF and Trinidad

    The code is <?xml version="1.0" encoding="iso-8859-1" standalone="yes" ?> <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0" xmlns:f="http://java.sun.com/jsf/core" xmlns:tr="http://myfaces.apache.org/trinidad" > <jsp:directive.page cont

  • Problem with two connected ps3

    You can only be logged on one ps3 at any one time. If you logon to another ps3, you WILL be logged off the other. The same applies to the ps4, you can only be logged on to one console at a time. You can, however, be logged onto a ps3 and a ps4 (and a

  • Can't syn after I upgrade to IOS 5

    I upgrade to IOS 5 lately and realise I can't syn my iPhone to Outlook. I am using Windows 7. It has been syncing fine till I upgrade. I have tried un-installing iTunes and even re-formating my computer to re-install Windows but it still does not hel