Can I get the reference to all objects in JVM Heap?
Hello,
Thanx in advance for reading (and replying) to this problem.
I need to find an object whose reference I dont have.
I feel the best place to search for is the JVM heap.
If I get that JVM heap, and am able to get all the objects created, I can locate the particular object that I am looking for.
Is there a way to od this????
Any suggestions ????
Vikas
JVMTI will mostly help you in this case. But i recomend you to review you application design, because such services are unsafe and rather tricky.
Similar Messages
-
I'd like to set the strings[] property of all the Text Ring controls on a front panel at once without creating a property node for every text ring. How can i do that?
> How can I get a reference to all controls on a front panel of one type
> )for example of the type Text Ring?
>
> I'd like to set the strings[] property of all the Text Ring controls
> on a front panel at once without creating a property node for every
> text ring. How can i do that?
This is likely more complicated than making property nodes for each
ring, but you can do it. Make a subVI that takes in a panel reference,
reads the array of control references, loops through them looking for
rings, and modifying the Strings[] property on each ring.
The part of this that will probably be the least obvious, when you
have an array of control references there are two ways to find out
if an element is a ring. You can read the classID and compare it
to the cla
ssID of a true ring control. An alternative is to cast
the control reference to a ring control using a Cast to more specific
node and wire the error out to a case structure. The error case is
where the objects that aren't rings will go. The success case case
where you will have a valid ring refnum that you can use to modify
the strings.
Greg McKaskle -
9I: How can get the names of all objects in a package header? [RESOLVED]
Is there a way to get the names fo all objects (function, procedures) from package header
select * from user_objects only gives the the header name, I need the object in the header.
John
Message was edited by:
johnminkjanHere is an example with dbms_output package!
SQL> select owner, object_name,procedure_name from all_procedures
2 where object_name='DBMS_OUTPUT';
OWNER OBJECT_NAME PROCEDURE_NAME
SYS DBMS_OUTPUT GET_LINES
SYS DBMS_OUTPUT GET_LINE
SYS DBMS_OUTPUT NEW_LINE
SYS DBMS_OUTPUT PUT_LINE
SYS DBMS_OUTPUT PUT_LINE
SYS DBMS_OUTPUT PUT
SYS DBMS_OUTPUT PUT
SYS DBMS_OUTPUT DISABLE
SYS DBMS_OUTPUT ENABLE
9 rows selected.
"or"
SQL> desc dbms_output -
How can i get the list of all users present in the LDAP
Hi Experts,
How can i get the list of all users present in the LDAP ?
Is there any API or function Code to get all user list??
Please help me out!!!
Help will be rewardedWell it will depend on exactly where your UME configuration points to in the LDAP tree but yes, it is possible to get all users. Something like the following should do it:
import com.sap.security.api.*;
import com.sapportals.portal.prt.component.*;
IUserFactory iuf;
ISearchResult isr;
IUser user
String userid;
iuf = UMFactory.getUserFactory();
isr = iuf.getUniqueIDs();
you will need to iterate the ISearchResult object but you can get IUser objects by
userid = (String)isr.next();
user = iuf.getUser(userid);
then you can imanipulate / identify / or whatever you need with the user object
Haydn -
How can i get the list of all users present in the UME ?
Hi Experts,
How can i get the list of all users present in the UME ?
Is there any API or function Code to get all user list??
Please help me out!!!
Help will be rewarded
-pankaj chouhanHi Pankaj,
find the official NetWeaver security javadocs (including access to UME) <a href="http://help.sap.com/javadocs/NW04S/current/se/index.html">here</a>. Look for classs UMFactory and proceed from there.
Best regards,
Martin -
How can i get the list of all tcode used by user of particular module
Hi,
How can i get the list of all tcode used by user of particular module (e.g FI , MM ,PP) within year .
Regards
VikramLogin to your SAP System
Run TCode SE16
Type Table Name : TSTCT
Press F7 Key (Table Contents )
Go to Settings in menu bar
Select User Parameters
Under Keyword select Field Label and press green check mark
Select your criteria in Data Browser and execute
You will see all t codes in there
Regards,
Yogesh -
Hi all,
For all BO reports scheduled to be sent out, can we get the list of all BO report to be sent(or have been sent) for a specified day?(For example, today or nex Monday). Thank you.
Regards,
Eton.Hi Eton,
To check the instances which have ran today, you can use the below query in query builder.
SELECT SI_NAME,SI_ID FROM CI_INFOOBJECTS WHERE SI_INSTANCE=1 AND SI_STARTTIME > '2014.08.20 00:00:00' Order by SI_STARTTIME DESC
To check the instances which would be running in the future, that means you have recurring schedules. Check for the SI_NEXTRUNTIME to get the details of instances which will run in the future as per the recurrences.
Thanks,
Prithvi -
How can we get the reference of XML element on frame as soon as frame is created in Document?
Hi,
When ever we copy any text/table cells from any frame, and paste it directly on page, A new Frame is created and the pasted text is placed inside that frame.
Now to capture this frame creation, We have two possible solutions:
1) Attach Observer on Document 'kDocBoss' on IID_IHIERARCHY_DOCUMENT and it will notify on frame creation in update function.
2) Notification event on new story creation.
Now, I need to perform some changes in the newly created table, for example:
a) Need to delete XML tags from newly created frame
b) Need to perform action on table cells if any in the created frame.
But the problem is, when the event comes, I can access basic properties of frame like it's name, type etc, but it does not give me the
XML element on frame or tables in frame until the event is com pleat.
I know it's quite a specif requirement, but I guess many of you might have faced these kind of challenges, while processing the event.
Does any one has any idea how I can get the reference of XML element on frame as soon as it is created?Hi Kapoor,
please give also others a chance, and excuse that I get up late on vacation ;-)
Anyway, I'd keep the story creation responder to recognize the copy, then combine it with an observer on the backing xml story to catch the associated XML element which is created there. Something like below:
UIDRef xmlStoryRef = Utils<IXMLUtils>()->GetBackingStore(doc);
InterfacePtr<ISubject> subject ( xmlStoryRef,IID_ISUBJECT );
subject->AttachObserver(observer,IID_IIDXMLELEMENT,observer->GetAttachIID()); -
Network : How can I get the name of all computers in the lan ?
Hi.
Network : How can I get the name or the IP of all computers in the lan ?Easiest way to find all IPs would be to scan the network. Ping every possible IP in the network and all IPs that replied to the ping exist.
Since I don't know how to do a ping in Java, I would scan for some Ports used by OS Services.
Since I don't know which ports are used by windows, I think you should look for a ping class (or library).
Scanning all ports for every IP in a class C network shouldn't take too long. And after finding one port you don't have to try the other ports for that IP, since it has to be online ;) -
How can i get the reference to Controls from VI-reference
Hello,
i have a VI with ~5 controls on it.
And with the Object "Current VIs path" and "Open VI reference" i can create a reference to the current VI.
How can i create now a reference to the controls? (Starting with VI-reference?
Of course i know how to create directly a reference from a control.
My idea wasm that there areperhaps properties like:
- Number of controls
- Name of control
- Type of control (string, bool. number...)
Is this somewhere there and i just dont find it?
Thanks for your helpOnce you have the VI Refnum, it's a two-step process. Wire the VI Refnum into a property node and get a reference to the Front Panel. Output the Front Panel reference into another property node and select the property Controls[ ], which outputs an array of references for all the controls on the front panel.
Message Edited by Jarrod S. on 04-20-2007 11:06 AM
Jarrod S.
National Instruments
Attachments:
get_ref.PNG 5 KB -
How can i get the intValue of a Object?
Now, I can't believe the result and I don't know why?Somebody help me!
My codes:
Object aobj[] = (Object[])vector.elementAt(i);
System.out.println("Mxxh1: " + aobj[j] );
int k = ((Integer)aobj[j]).intValue();
System.out.println("Mxxh2: " + k );
I can get the result:Mxxh1: 2;but I can't convert the Object to intValue,why?Yes, it must be a an instance of the class (or one of its assignable base classesO that you are trying to cast it to. Casting does not convert objects to new types.
But, since it is really a BigDecimal, simply cast the Object reference to that and call intValue on it.
Chuck -
How to get the reference of one object's parent
hello guys
i have classA and classB like bellow
class ClassA{
public var myVar:String="test";
public function ClassA()
new ClassB();
class ClassB{
public function ClassB()
trace("my parent is"+XXX);
trace("my parent var is"+ XXX["myVar"]);
suppose XXX in classB is the reference of instance of ClassA.how do i get it?Parent/child relationships pertain to display list only. When you instantiate ClassB in ClassA - it becomes a property of the scope where you instantiated it - NOT A CHILD. Note the word "scope" - variable may belong to class or function, etc.
Instance of a class is totally agnostic to who instantiated it unless you pass a reference of the class that made the instance. Nevertheless, of a class is a DisplayObject, once it is placed on display list - it knows who the parent is.
Instance can be either property or child or both proeprty and child. -
How can I get the size of all lines or the last line number in a DB?
I want to display a certain number of lines from a DB.
But before I fetch them out, I must know how many lines of this DB has.
I donnot know if there is some methods have this function. I know the last() method can move the cursor to the last line, but some DB cannot support this function.
Could someone know the answer or some examples about displaying data in a jsp?
Thanks a lot.To get the number of rows in a ResultSet, loop over the result set with while(res.next()). Read each row into an object. Add each object into a, say, LinkedList. At the end, you will have the rows nicely converted to objects (which you probably should do anyway), and list.size() will give the number of objects.
There are other ways to get the number of objects, but list.size() is the easy and reliable way. If you don't need the rows converted to objects ...why did you select them in the first place?
Tricks with last() and whatnot sort of work. They read the entire result set into memory. But you'll need to write the while(res.next()) loop anyway. No point in having the computer do the same thing twice. -
How can i get the position of my object
HI,ALL! i get a queation now. when i picking some transfromgroup,and move it.(use picktranslatebehavior),i want to get the position of the transformgroup after it has been moved.so how can i get it?!Apology for my bad english .thanks!:)
Check out:
http://forum.java.sun.com/thread.jspa?threadID=633485&tstart=15 -
How Can i Get the reference of currently opened System form
Hi Experts,
I have a scenario in which i need the reference of currently opened SAP form The code is like
SAPbobsCOM.ProductionOrders op = null;
op = (SAPbobsCOM.ProductionOrders)SBO_Company.GetBusinessObject(BoObjectTypes.oProductionOrders);
now i want some logic like
op=currently opened production order in sap
so that i can edit the fields of that order
Thanks AmitHi Amit
You can access the currently opened form using this
for getting the active form
Dim oForm As SAPbouiCOM.Form= Sbo_Applicaion.Forms.ActiveForm
for getting the form using form type and count
Dim oForm As SAPbouiCOM.Form= Sbo_Applicaionl.Forms.GetFormByTypeAndCount("133", 0)
Hope this helps
Regards
Arun
Maybe you are looking for
-
Plant for Construction Companyy
Hi My client is a construction company having multiple sites in every states. For ex: They have 3 sites in Bombay and 2 sites in Pune. It means in Maharastra itself there are 5 projects going on Their requirement is to show project site stock at each
-
Where should i include my conn.close() command
Hi, My code frequently fetches data from database, so i created a class like this public class ConnectToDatabase { /* public ConnectToDatabase() { Connection conn; } */ public
-
Difference between SAP R/3 , ECC and MySAP
Hi, I would like to know the difference between SAP R/3 ,ECC and MySAP. Please let me know the difference , the links earlier found were not getting into my brains. To my understanding the SAP R/3 4.5b,4.6c - earlier versions contains the basic modul
-
Webcam Bulit-in Driver for Presario V3700 Notebook PC
Hi! I need a webcam built-in driver for compaq presario v3700 notebook pc It's not available there on the website. Please help! Thank you in advance!
-
Pls need your urgent help - DVD drive is broken
In my laptop LG was broken DVD-CDRW device, model - Toshiba sd-r9012, it has only 9.5mm thickness, ultraslim, and i cannot find the place to buy it in Moscow. Would you please to sell me that device or advice compatible with it devices (internal dvd-