Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Console Plugin Pops Error Dialogs(Bug in Eclipse Console)
Console Plugin Pops Error Dialogs [message #1851320] Sat, 02 April 2022 13:12
Stanislav Tartakowski is currently offline Stanislav TartakowskiFriend
Messages: 5
Registered: October 2015
Junior Member
Console Plugin throws StringIndexOutOfBoundsException while printing. The Program is printing the log of a maven build. Nothing special.

This is new behaviour in 2022-03. My last working eclipse was 2021-09. I did not test 2021-12.

This error is easily reproducible with the code snippet below. Simply execute that programm with eclipse 2022-03 and you will see an error dialog popping up.

Also, please consider the comment. If printing the commented line instead, no exception is thrown.

	public static void main(String[] args) throws IOException {
		String s = "{\"instant\":{\"epochSecond\":1648039721,\"nanoOfSecond\":738665600},\"thread\":\"GOS_agents3\",\"level\":\"ERROR\",\"loggerName\":\"de.semvox.ai.framework.facets.servicerequest.ServiceResponder\",\"message\":\"Service request platform#ServiceRequest@3a844e42 failed. com.google.inject.ProvisionException: Unable to provision, see the following errors:\\r\\n\\r\\n1) Error injecting constructor, java.lang.IllegalStateException: This class should never be created!!!\\r\\n  at de.semvox.ai.framework.agents.DefaultInjectionModule$PlaceholderUserHandle.<init>(Unknown Source)\\r\\n  while locating de.semvox.ai.framework.agents.DefaultInjectionModule$PlaceholderUserHandle\\r\\n  at de.semvox.ai.framework.agents.DefaultInjectionModule.configure(DefaultInjectionModule.java:144) (via modules: com.google.inject.util.Modules$Override";
		
		StringBuilder sb = new StringBuilder();
		for(int i=0; i <s.length(); i++) {
			char c = s.charAt(i);
		//	sb.append(String.valueOf(c) + '_');  //this will not be a mistake
			sb.append(String.valueOf(c));
		}
		
		for(int j =0; j<40000;j++) {
			sb.append('a');
		}
		System.out.println(sb.toString());
	}

[Updated on: Sat, 02 April 2022 17:16]

Report message to a moderator

Previous Topic:GtkToggleButton selected background color
Next Topic:Shells drawn order
Goto Forum:
  


Current Time: Fri Apr 26 01:23:34 GMT 2024

Powered by FUDForum. Page generated in 0.02661 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top