Jump to content
  • 0

Question

Posted

i got some error in console any ideas whats wrong?

 

Exception in a Runnable execution:java.lang.NullPointerException
Exception in a Runnable execution:java.lang.NullPointerException
Exception in a Runnable execution:java.lang.NullPointerException
Exception in a Runnable execution:java.lang.NullPointerException
Exception in a Runnable execution:java.lang.NullPointerException
Exception in a Runnable execution:java.lang.NullPointerException
Exception in a Runnable execution:java.lang.NullPointerException
Exception in a Runnable execution:java.lang.NullPointerException

 

5 answers to this question

Recommended Posts

  • 2
Posted

Edit ThreadPool.TaskWrapper RuntimeException log for :

LOG.log(Level.SEVERE, "Exception in a ThreadPool task execution.", e);

Then edit ConsoleLogFormatter for following :

	@Override
	public String format(LogRecord record)
	{
		final StringBuilder sb = new StringBuilder(500);
		
		StringUtil.append(sb, record.getMessage(), CRLF);
		
		final Throwable throwable = record.getThrown();
		if (throwable != null)
		{
            for (StackTraceElement traceElement : throwable.getStackTrace())
                StringUtil.append(sb, "\tat ", traceElement, CRLF);
		}
		
		return sb.toString();
	}

You should be able to see the full error in both log/error folder and console.

 

Will be part of next aCis revision.

  • 0
Posted
42 minutes ago, Tryskell said:

 


	@Override
	public String format(LogRecord record)
	{
		final StringBuilder sb = new StringBuilder(500);
		
		StringUtil.append(sb, record.getMessage(), CRLF);
		
		final Throwable throwable = record.getThrown();
		if (throwable != null)
		{
            for (StackTraceElement traceElement : throwable.getStackTrace())
                StringUtil.append(sb, "\tat ", traceElement, CRLF);
		}
		
		return sb.toString();
	}

 

thanks

Guest
This topic is now closed to further replies.


×
×
  • Create New...