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.

  • Like 1
  • 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...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..