Finding the thread ids instantiated at runtime

Hi,
I want to know if there is any way to know the threads that are instantiated at runtime from outside the class or package. To be more clear, I am building a module to enhance JSWAT (Open source java debugger ) to visualize the concurrent execution(monitor based) of multithreaded applications.
The user can load his multithreaded application in on the debugger UI using the menu File -> Load File. When the user clicks the run button, then threads would be created based on the user application (the multi threaded application that the user loads on to JSWAT).
I wanted to know if I can find the threads instantiated from the module that I am building ( outside the class of the multi threaded application) at run time. If so, how?
I also want to synchronize my visualization module with the JSWAT debugger. i.e. If the user sets a breakpoint in the debugger, then the visualization should also stop at that point.
Please advise me how to do these two tasks.
Thanks in advance. Eagerly awaiting your reply.
Thanks
Arun

You could arrange for a breakpoint to be set in java.lang.Thread's start() method, and get a call back when ever client's code hits this method ?
See this : http://java.sun.com/j2se/1.5.0/docs/guide/jpda/jdi/index.html
http://java.sun.com/j2se/1.5.0/docs/guide/jpda/jdi/com/sun/jdi/request/BreakpointRequest.html
http://java.sun.com/j2se/1.5.0/docs/guide/jpda/jdi/com/sun/jdi/Location.html
A tool that is built using the above api that gets a callback whenever java.util.Zip constructor is called may be of help.
http://blogs.sun.com/quinn/entry/tool_for_diagnosing_failed_glassfish
-Prashant

Similar Messages

  • How to find the cause ofan error at runtime in forms (10g)

    hi
    can u please tell me how to find the cause ofan error at runtime.
    in forms 6i, the shortcut key is shift+f1
    i needthe shotcut key in 10g forms.
    thanx

    or just look in you menu help, -- last error or you can find the list of shortcut keys there ...
    \Erwin

  • Cannot find the thread I started

    I cannot import files from my CF card (Canon 5D MarkII) to lightroom 5.3.  They will import to Macintosh HD.  Therefore there is enough room.  Cannot read the files to import them.  I don't know what folders I was putting them in when I first started importing them.  I have about 1,000 images in lightroom now.  I was importing them by date.  Did that put them into a file?  I need to stop with this many questions, I think.

    According to the software used here at Adobe to run this forum, this is your first post. So we can't find the thread you started either ... but ... this speaks to an issue about organization ... if you can't find your threads here in the forums, I'm not surprised you can't find your photos either, and neither state of affairs is good. Perhaps you might want to commit to being more organized about photography and forums and the like. Just a thought.
    If you are getting a message from Lightroom about "cannot read the files to import them", or something like that (in the future you might want to state the exact error message, word for word, verbatim, exactly as it appears on your screen, without alteration — just so we don't have to guess what the error message really said), I will guess that you did not have WRITE permission to the destination folder when ytou tried to import them. But that's a guess. It would really help to know the exact, verbatim, word-for-word error message.
    I don't know what folders I was putting them in when I first started importing them.
    Lightroom knows where the photos are. That is one of the reasons we use Lightroom, because it remembers these things better than humans can. I suggest you look for them in Lightroom, and the folder that contains the photos will be available to you by looking in the Metadata Panel on the right, with the dropdown set to "Default", next to "Folder".
    I have about 1,000 images in lightroom now.  I was importing them by date.  Did that put them into a file?
    Lightroom does not store your photos, your photos are stored on your hard disk somewhere, in the location you put them, or in the location you told Lightroom to put them. So, "Did that put them into a file?" — the answer is  NO.

  • Where do I find the thread of Flash alternatives?

    Where do I find the thread of Flash alternatives?

    Look to the right under "more like this" or or search any of the iPhone or iPad forums for "flash" and you'll find many threads on the subject.
    Regards.

  • How can I find the Thread ID

    Hi
    I read the following sentences in FAQ:
    {forum:id=123} - Displays link to forum 123
    {thread:id=12345} - Displays link to thread 12345
    {message:id=1234567} - Displays link to message 1234567
    {user:id=1234} - Displays link to user 1234 (numeric ID)But I don' know where I can find the forum:id, thread:id and message:id
    Thank for your help
    hqt200475

    bigdelboy wrote:
    trent wrote:
    bigdelboy wrote:
    As far as I am aware the threadID and the messageID never appear in the same URL.At this top of this thread, there is a link for 'Last Post'
    This points to: Re: How can I find the Thread ID containing both thread and message id's
    In your example, the 'Whoever' bit is just plain text. i.e. no hyperlink (for me).
    I think you are talking about the links on the list of threads, whereas Aketi is referring to the link in the actual thread (at the top of the page).I feel a litlte outgunned {noformat};){noformat} ..... however I currently stand by my postulation their is no URL hyperlink where both the threadID (2234623 for this thread) and messageID (eg 9651344 for this post) are present in the same URL. URLs with the messageID obviously link to the thread on the basis the message is a child of the thread, but the threadID is not explicily present in this case.
    Rgds - bigdelboy
    http://en.wikipedia.org/wiki/A_Funny_Thing_Happened_on_the_Way_to_the_Forum ( {forum:id=29} )
    http://forums.oracle.com/forums/help.jspa
    Waht a plonker bigdelboy is!
    I think you are talking about the links on the list of threads, whereas Aketi is referring to the link in the actual thread (at the top of the page).I agree entirely. Apolgies to all. You are SO right.
    Permlink           Replies:  12  -   Pages:   1   -   Last Post:   Jun 10, 2011 8:23 AM  Last Post By: bigdelboy          Threads:  [ Previous |  Next   ]
    Re: How can I find the Thread ID

  • How to find the group ids from which the mail has been sent

    Hi,
    We are able to see the list of mails have been sent to respective mail ids with the help of tcode SOST.
    Is there any way to find through which group ids the mails have been sent.
    Tehe details showing as the mail has been sent by Batchusr.
    Please suggest how to find the group id from where the the mails have been triggered.
    Regards,
    Jena.

    Hi
    This is not helpfull
    If you open any notification QM03, there you will get tab " Action Log"
    If you click on action log , there are two fileds
    Date and time for task release
    I want to fetch these fileds in one of Z report.
    I am unable to find table name for these two fileds
    Task release Date
    Task release Time
    Can we add 'QN CHANGE DATE' parameter in the selection screen (just like QN creation date) w/ range?  The user want to run the report by QN change date as well.

  • Finding the transaction of an abap runtime error

    hello,
    is it possible to find out the corresponding transaction to an abap runtime error?
    till now i've got all informations like they are shown in ST22 in my abap program. but i'd also like to have the transaction code, not only the corresponding devclass, subapplication and application.
    does anyone know a function module or any other solution for that problem?
    thanks in advance
    joschi

    When you are analyzing your short dump via ST22, there is a section called "User, transaction..." where the following information is shown:
    Client
    User
    Language key
    Transaction
    Program
    Screen
    That section will show you the transaction code you need.
    I hope that helps,

  • How to find the Apple IDs used on a device?

    I travel extresnively and have created muiltiple Apple IDs in order to be able to download apps that are only available in specific Apple Stores. For instance my US Apple ID won't let me download NFL Game Pass so I have an Apple ID for Singapore that I've used for that. Besides Apple IDs in a few countries I also have some apps that my sons purchased. Now I have a new app that I need for work from a European Apple Store. I downloaded it to my computer but I can't install it on my iPhone becasue it has already been authorized for 5 different Apple IDs.
    1) How can I find out which AppleIDs are authorized on a specific iPhone?
    2) How can I see a list of which apps are associated with which Apple IDs either on the iPhone or on the computer in iTunes?
    3) How can I unauthorize a specific AppleID on the phone to regain a free slot?

    I used the query below to get the RMAN backup details, here I am missing detail of compression algorithm
    SELECT SESSION_KEY, INPUT_TYPE, STATUS,
    TO_CHAR(START_TIME,'mm/dd/yy hh24:mi') start_time,
    TO_CHAR(END_TIME,'mm/dd/yy hh24:mi') end_time,
    ELAPSED_SECONDS/3600 hrs,
    COMPRESSION_RATIO ,
    INPUT_BYTES_DISPLAY, OUTPUT_BYTES_DISPLAY, TIME_TAKEN_DISPLAY
    FROM V$RMAN_BACKUP_JOB_DETAILS
    ORDER BY SESSION_KEY;Output
    SESSION_KEY     INPUT_TYPE     STATUS     START_TIME     END_TIME     HRS     COMPRESSION_RATIO     INPUT_BYTE     OUTPUT_BYTES_DI     TIME_TAKEN_DISP
    417     DB INCR     COMPLETED     8/23/2012 16:01     8/23/2012 16:33     0.529444444     1.06917899     244.67G     228.84G     0:31:46
    423     DB INCR     COMPLETED     8/23/2012 16:43     8/23/2012 17:14     0.510277778     1.0692043     244.59G     228.76G     0:30:37
    435     DB INCR     COMPLETED     8/24/2012 11:39     8/24/2012 12:13     0.571666667     1.06899247     244.64G     228.85G     0:34:18
    441     DB INCR     COMPLETED     8/24/2012 13:52     8/24/2012 14:23     0.511666667     1.0690053     244.60G     228.81G     0:30:42
    447     DB INCR     COMPLETED     8/24/2012 16:30     8/24/2012 16:58     0.467222222     2609.07178     244.60G     96.00M     0:28:02
    457     DB INCR     COMPLETED     8/25/2012 12:30     8/25/2012 13:01     0.527222222     1.06896188     244.68G     228.90G     0:31:38
    467     DB INCR     COMPLETED     8/26/2012 16:30     8/26/2012 16:56     0.4325     739.556573     244.65G     338.75M     0:25:57On the output I need to have the compression algorithm used for each backup.
    Hope this is crystal clear now.

  • Where can I find the org-ids in crm  ?

    Hello,
    in r3 I get the org-id when search in vbak in field vkorg with f4 search help.
    Now I need this function in crm, but when I have a look in smovbak I do not have
    a value help for this org-ids.
    How/where can I get them ?
    I think there must be other tables or a fm to get this value help.
    Thanks Gerd

    Thanks for help,
    but do you have a code example how to implement such
    a search help ?
    I need the valuie help for a select options field.
    Thanks Gerd

  • Query to Find the Student ids by group

    Hi,
    I have a table which has 2 columns student_id and Course_id.
    Sample Data
    Student_id Course_id
    1 -->     1
    1 -->     2
    1 -->     3
    1 -->     4
    2 -->     1
    2 -->     3
    3 -->     1
    3 -->     2
    3 -->     4
    I want to find those students who have taken all the courses 1,3,4.

    952541 wrote:
    I want to find those students who have taken all the courses 1,3,4.Depends on:
    a) Can student take same course more than once?
    a) Only courses 1,3,4 and no other courses?
    1. Student can't take same course more than once and student took courses 1,3,4 and may be some other courses:
    select  stu_id
      from  t
      where stu_curs in (1,3,4)
      group by stu_id
      having count(stu_curs) = 3
    /2. Student can take same course more than once and student took courses 1,3,4 and may be some other courses:
    select  stu_id
      from  t
      where stu_curs in (1,3,4)
      group by stu_id
      having count(distinct stu_curs) = 3
    /3. Student can't take same course more than once and student took courses 1,3,4 and no other courses:
    select  stu_id
      from  t
      group by stu_id
      having sum(case when stu_curs in (1,3,4) then stu_curs else 10 end) = 8
    /2. Student can take same course more than once and student took courses 1,3,4 and no other courses:
    select  stu_id
      from  t
      group by stu_id
      having sum(distinct case when stu_curs in (1,3,4) then stu_curs else 10 end) = 8
    /SY.

  • Can't get Thread IDs to display in server.log or syslog

    I'm trying to capture the Java thread IDs for a custom application. According to the SunOne documentation, the thread IDs are only available if you configure the app to use the syslog for logging... even then, the thread IDs are optional.
    I've configured the app server to log through the syslogd and turned up the logging to finest. Still no thread IDs output to the log. Any suggestions?

    I've read that page - several times. I still can't it to work. Part of the problem that page is that it's talking about adding an existing WIT to the backlog, instead of a custom WIT.
    I inherited a customized template and I'm trying to further customize it, which is probably adding to my struggle. Can you spot anything wrong or missing here?
    From categories.xml:
    <CATEGORY name="Team Backlog Item Category" refname="MyCompany.TeamBacklogItemCategory">
    <DEFAULTWORKITEMTYPE name="User Story" />
    <WORKITEMTYPE name="Spike" />
    <WORKITEMTYPE name="Bug" />
    <WORKITEMTYPE name="Technical Story" />
    <WORKITEMTYPE name="Report" />
    </CATEGORY>
    From process Settings:
    <RequirementBacklog category="MyCompany.TeamBacklogItemCategory" pluralName="Team Backlog Items" singularName="Team Backlog Item">
    <States>
    <State value="New" type="Proposed" />
    <State value="Approved" type="Proposed" />
    <State value="Committed" type="InProgress" />
    <State value="Done" type="Complete" />
    </States>
    <Columns>
    <Column refname="System.WorkItemType" width="100" />
    <Column refname="System.Title" width="300" />
    <Column refname="System.State" width="100" />
    <Column refname="Microsoft.VSTS.Common.Priority" width="50" />
    <Column refname="Microsoft.VSTS.Scheduling.Effort" width="50" />
    <Column refname="System.IterationPath" width="200" />
    <Column refname="System.Tags" width="200" />
    </Columns>
    <AddPanel>
    <Fields>
    <Field refname="System.Title" />
    </Fields>
    </AddPanel>
    </RequirementBacklog>
    Also, do I have to do anything special to get the web portal to "refresh" after making changes like this?
    Thank you. 

  • How to find my threads?

    Hi:
    Can some one tell me how to find the threads/questions I opend here? I some time by luck can find all thread I created but other time cant, like today I cant? How to close a thread. Thanks.

    Hi,
    i find my content when i
    - click on my user name in the upper right corner after having logged in
    - on the screen opening next i navigate to tab "Activity" and here they are...
    Regards

  • Finding the environment at runtime

    Hello,
    Is there a way to discover, at runtime, what environment the application is running in: as in mobile, desktop, or TV?
    Also, is there some way find the device's screen size, at runtime?
    Thanks,
    Vance

    1) Check the magic variable ___PROFILE___, can get values like "browser", "mobile", etc.
    2) See [Problem with full screen application|http://forums.sun.com/thread.jspa?threadID=5437655] thread... :-)

  • Any way to find the % of cycles a thread is using?

    without using a debugger or profiler,
    is there any way i can find out how many cycles my thread is active between two timestamps?
    or any way to find out the percentage of cycles my thread is active (compared to other threads)?

    oi, using native code is one of the main things i'm
    trying to avoid :) is there a way to find a threads
    CPU usage, or percentage thereof without having to use
    native code?There is no java api. So that means it is OS specific. You can't identify a specific thread using a process (via Runtime.exec) so that means the only solution is to use JNI.

  • How do I find the address -thread - of a file. I used to use spotlight but after switching to Mountain Lion it no longer gives me this.

    How do I find the address -thread - of a file. I used to use spotlight but after switching to Mountain Lion it no longer gives me this.

    Hold Command-Option while pointing to an item in the Spotlight list. Or Command-Click will show the item in the Finder.

Maybe you are looking for

  • How can I open a PDF generated by Distiller, in Designer?

    When I open the form in Designer, it prompts me to enter a password. Before I go back to the client, I wanted to know if a pdf generated by Distiller can be opened and edited in Designer? What is distiller used for? Aditya

  • Display Employee Name linked in Item Master in Order Recommendation Report

    Dear Experts,       My requirement is that the "Employee Name" linked in Item master have to be displayed next to the item in MRP Order Recommendation Report. I have created a header level UDF "Employee Name" in Item master and have selected an emplo

  • PST Files freezing when trying to connect to them

    We are having a major issue with our .PST files.   We are using Configuration Manager 2012 to deploy a new Windows 7 x86 image to all of our machines.   The OSD works and it installs Windows 7 and many apps, one of which is Office 2010.   Once we hav

  • Export and then re-import source files from InfoPath 2010

    Hi all, While looking in to my form being oddly large I exported all the source files and noticed that there was a large image file in there (which wasn't on any of the views, so I don't know how it was there). I need to delete this file, then re-imp

  • I cannot get icons only on my bookmarks toolbar. Text always shows.

    I transferred all my files and desktop from an older mac. I had downloaded an 'icons only'bookmarks toolbar as an add on, which I loved. This toolbar did not move as icons only, and is no longer available as a download. It looks like icons only is no