Java.lang.NullPointerException [message #672612] |
Fri, 19 October 2018 11:01 |
|
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 #672623 is a reply to message #672619] |
Fri, 19 October 2018 15:34 |
|
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 |
|
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
|
|
|
|