Home » RDBMS Server » Enterprise Manager » Java.lang.NullPointerException (Enterprise Manager 10g)
Java.lang.NullPointerException [message #672612] Fri, 19 October 2018 11:01 Go to next message
Pembreezy
Messages: 3
Registered: October 2018
Junior Member
Hey Everyone,
I am new to the oracle world and not sure how to troubleshoot the following issue.
I rebooted the oracle server that hosts my enterprise manager and upon logging into the Manger non of my charts are generating. I get Unhandled exception during generation of chart * ( * being the chart name). Java.lang.NullPointerException

How do you go about getting the charts to regenerate correctly?
Re: Java.lang.NullPointerException [message #672613 is a reply to message #672612] Fri, 19 October 2018 11:51 Go to previous messageGo to next message
BlackSwan
Messages: 26766
Registered: January 2009
Location: SoCal
Senior Member
Welcome to this forum

Please read and follow the forum guidelines, to enable us to help you:
OraFAQ Forum Guide
How to use {code} tags and make your code easier to read

How can we reproduce what you report?
Re: Java.lang.NullPointerException [message #672614 is a reply to message #672613] Fri, 19 October 2018 12:14 Go to previous messageGo to next message
Pembreezy
Messages: 3
Registered: October 2018
Junior Member
Im not sure what you mean on how can we reproduce what I report. An example is the Top Activity chart is having the issue. Maybe that would help.
Re: Java.lang.NullPointerException [message #672619 is a reply to message #672614] Fri, 19 October 2018 15:15 Go to previous messageGo to next message
BlackSwan
Messages: 26766
Registered: January 2009
Location: SoCal
Senior Member
what clues exist within EM log file?

COPY the results from OS command below

emctl status dbconsole

then PASTE results back here
Re: Java.lang.NullPointerException [message #672623 is a reply to message #672619] Fri, 19 October 2018 15:34 Go to previous messageGo to next message
Pembreezy
Messages: 3
Registered: October 2018
Junior Member
Here is the log file for emagent. Since this just started happening this month I have only the log entries for this month. I restarted the console to see if it would fix the issue as well as restarted the server.

2018-10-15 23:01:32 Thread-4112042896 ParseError: File=stream, Line=4, Msg=Missing value for ARG in RemoteOperationArgument (01006)
2018-10-15 23:15:40 Thread-4112042896 ParseError: File=stream, Line=4, Msg=Missing value for ARG in RemoteOperationArgument (01006)
2018-10-15 23:22:57 Thread-4107271056 ParseError: File=stream, Line=4, Msg=Missing value for ARG in RemoteOperationArgument (01006)
2018-10-15 23:46:48 Thread-4097821584 ParseError: File=stream, Line=4, Msg=Missing value for ARG in RemoteOperationArgument (01006)
2018-10-16 00:27:00 Thread-4107271056 ParseError: File=stream, Line=4, Msg=Missing value for ARG in RemoteOperationArgument (01006)
2018-10-16 00:29:00 Thread-4097821584 ParseError: File=stream, Line=4, Msg=Missing value for ARG in RemoteOperationArgument (01006)
2018-10-16 23:13:44 Thread-4126378896 ParseError: File=stream, Line=4, Msg=Missing value for ARG in RemoteOperationArgument (01006)
2018-10-16 23:16:53 Thread-4107271056 ParseError: File=stream, Line=4, Msg=Missing value for ARG in RemoteOperationArgument (01006)
2018-10-16 23:51:29 Thread-4135548608 Starting Agent 10.1.0.4.1 from /oracle/product/10.2.0/db_1 (00701)
2018-10-16 23:51:30 Thread-4135548608 EMAgent started successfully (00702)
2018-10-17 00:17:57 Thread-4135499456 Starting Agent 10.1.0.4.1 from /oracle/product/10.2.0/db_1 (00701)
2018-10-17 00:17:58 Thread-4135499456 EMAgent started successfully (00702)
2018-10-17 00:35:13 Thread-4135499456 EMAgent normal shutdown (00703)
2018-10-17 00:42:30 Thread-4135671488 Starting Agent 10.1.0.4.1 from /oracle/product/10.2.0/db_1 (00701)
2018-10-17 00:42:31 Thread-4135671488 EMAgent started successfully (00702)
2018-10-17 08:38:45 Thread-4135671488 EMAgent normal shutdown (00703)
2018-10-17 08:40:46 Thread-4136187584 Starting Agent 10.1.0.4.1 from /oracle/product/10.2.0/db_1 (00701)
2018-10-17 08:40:46 Thread-4136187584 EMAgent started successfully (00702)
2018-10-17 14:06:17 Thread-4136187584 EMAgent normal shutdown (00703)
2018-10-17 14:08:38 Thread-4135630528 Starting Agent 10.1.0.4.1 from /oracle/product/10.2.0/db_1 (00701)
2018-10-17 14:08:39 Thread-4135630528 EMAgent started successfully (00702)
2018-10-17 14:14:07 Thread-4135630528 EMAgent normal shutdown (00703)
2018-10-17 14:16:00 Thread-4136236736 Starting Agent 10.1.0.4.1 from /oracle/product/10.2.0/db_1 (00701)
2018-10-17 14:16:00 Thread-4136236736 EMAgent started successfully (00702)
2018-10-17 14:33:03 Thread-4136236736 EMAgent normal shutdown (00703)
2018-10-17 14:33:12 Thread-4136371904 Starting Agent 10.1.0.4.1 from /oracle/product/10.2.0/db_1 (00701)
2018-10-17 14:33:13 Thread-4136371904 EMAgent started successfully (00702)
2018-10-17 14:34:07 Thread-4136371904 EMAgent normal shutdown (00703)
2018-10-17 14:35:38 Thread-4136449728 Starting Agent 10.1.0.4.1 from /oracle/product/10.2.0/db_1 (00701)
2018-10-17 14:35:38 Thread-4136449728 EMAgent started successfully (00702)
2018-10-18 09:14:23 Thread-4136449728 EMAgent normal shutdown (00703)
2018-10-18 09:16:22 Thread-4135691968 Starting Agent 10.1.0.4.1 from /oracle/product/10.2.0/db_1 (00701)
2018-10-18 09:16:22 Thread-4135691968 EMAgent started successfully (00702)
2018-10-18 09:22:32 Thread-4135691968 EMAgent normal shutdown (00703)
2018-10-18 09:25:18 Thread-4135638720 Starting Agent 10.1.0.4.1 from /oracle/product/10.2.0/db_1 (00701)
2018-10-18 09:25:19 Thread-4135638720 EMAgent started successfully (00702)
2018-10-18 22:08:33 Thread-4136019648 Starting Agent 10.1.0.4.1 from /oracle/product/10.2.0/db_1 (00701)
2018-10-18 22:08:34 Thread-4136019648 EMAgent started successfully (00702)


Re: Java.lang.NullPointerException [message #677430 is a reply to message #672612] Fri, 20 September 2019 01:41 Go to previous messageGo to next message
antoniosarco
Messages: 2
Registered: February 2017
Junior Member
NullPointerExceptions are exceptions that occur when you try to use a reference that points to no location in memory (null) as though it were referencing an object. Calling a method on a null reference or trying to access a field of a null reference will trigger a NullPointerException.

For example,

String s = null;
int len = s.length();  // NullPointerException because s is null

So you should check if the variable is null before calling any method on it, for example:

int len;
if (s == null) {
    len = 0;
}
else {
    len = s.length();  // safe, s is never null when you get here
}

How to avoid NullPointerExceptions?

Use the final modifier to enforce good initialization.
Avoid returning null in methods, for example returning empty collections when applicable.
Use annotations @NotNull and @Nullable
Fail fast and use asserts to avoid propagation of null objects through the whole application when they shouldn't be null.
Use equals with a known object first: if("knownObject".equals(unknownObject)
Prefer valueOf() over toString().
Use null safe StringUtils methods StringUtils.isEmpty(null).


[Edit MC: add code tags and remove link]

[Updated on: Fri, 20 September 2019 02:17] by Moderator

Report message to a moderator

Re: Java.lang.NullPointerException [message #677431 is a reply to message #677430] Fri, 20 September 2019 02:16 Go to previous message
Michel Cadot
Messages: 68716
Registered: March 2007
Location: Saint-Maur, France, https...
Senior Member
Account Moderator

Please read How to use [code] tags and make your code easier to read.

How could this help OP who can't modified the code of Oracle EM?
Are you just spamming?

Previous Topic: EM Daemon is not running & no 'emctl start/stop agent' command
Next Topic: OEM data
Goto Forum:
  


Current Time: Fri Nov 22 11:33:30 CST 2024