Skip to Main Content

Integration

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to to programmatically create diagnostic profile ?

938644Sep 16 2012 — edited Sep 17 2012
Hi,
I'm trying to create a diaganostic profile programmatically .
I didn't see any example like this. My purpose is to create a profile like in the ' Visualizer ' tool.
I'm trying to use these lines:
...

Application a=new ApplicationImpl(myApp);
DiagnosticProfileManagerImpl diagnosticProfileManagerImpl=new DiagnosticProfileManagerImpl(a);

probeNames=new ObjectName;
diagnosticProfileManagerImpl.createDiagnosticProfile(profileName, probeNames);
....

I got a NullPointerException .
Any ideas? examples ?

Comments

4297041
Hello,

If you review your error log what does it state? It might be good to clear it (Tools > Clear Error Log), reproduce the issue, and then review the error log (Tools > View Error Log).
The root cause of the issue will be just before the "Automation Error" notification as FDM write issues in order from the top down.

Thank you,
JeffJon
Is this a x64 server? Specified Cast is invalid indicates that the adpater was not registered properly. If it is a x64 server the adapter needs to be registered manually.

Follow document 1073992.1 to resolve the issue.
Jeo123
Try going into the mapping section and browsing for target value. 9 times out of 10 an automation error seems to be related to an inability to connect to the target system. The most common cause in my experience relates to entereing a Domain on the login page when one isn't required, but there are other causes as well.
1 - 3
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Oct 15 2012
Added on Sep 16 2012
3 comments
516 views