openequella / openEQUELLA

Core openEQUELLA sources
https://openequella.github.io/
Apache License 2.0
42 stars 44 forks source link

oEQ wont startup when http.port and configurationService.proxyPort are both set to 80 #1251

Open mrblippy opened 5 years ago

mrblippy commented 5 years ago

Describe the bug When the http port (in mandatory-config.properties) and the proxy port (in optional-config.properties) are both set to 80 oEQ errors on startup. The specific errors in the resource-centre logs don't give any stacktrace. But it looks like something is blowing up when the ClusterInfoService is loaded Capture

I also reproduced the issue on my development oEQ, which at least prints a stacktrace 10:24:08,584 ERROR [GuicePlugin] Error creating injector for:com.equella.core 10:24:08,594 ERROR [PluginServiceImpl] Error creating bean 'com.tle.core.institution.ClusterInfoService' in com.equella.core Exception in thread "main" com.google.inject.internal.util.$ComputationException: java.lang.ArrayIndexOutOfBoundsException: 41563 at com.google.inject.internal.util.$MapMaker$StrategyImpl.compute(MapMaker.java:553) at com.google.inject.internal.util.$MapMaker$StrategyImpl.compute(MapMaker.java:419) at com.google.inject.internal.util.$CustomConcurrentHashMap$ComputingImpl.get(CustomConcurrentHashMap.java:2041) at com.google.inject.internal.util.$StackTraceElements.forMember(StackTraceElements.java:53) at com.google.inject.internal.Errors.formatInjectionPoint(Errors.java:712) at com.google.inject.internal.Errors.formatSource(Errors.java:678) at com.google.inject.internal.Errors.format(Errors.java:555) at com.google.inject.CreationException.getMessage(CreationException.java:48) at java.lang.Throwable.getLocalizedMessage(Throwable.java:391) at java.lang.Throwable.toString(Throwable.java:480) at java.lang.String.valueOf(String.java:2994) at java.io.PrintStream.println(PrintStream.java:821) at java.lang.Throwable$WrappedPrintStream.println(Throwable.java:748) at java.lang.Throwable.printStackTrace(Throwable.java:655) at java.lang.Throwable.printStackTrace(Throwable.java:643) at java.lang.Throwable.printStackTrace(Throwable.java:634) at com.tle.core.equella.runner.EQUELLAServer.startServer(EQUELLAServer.java:160) at com.tle.core.equella.runner.EQUELLAServer.main(EQUELLAServer.java:84) Caused by: java.lang.ArrayIndexOutOfBoundsException: 41563 at com.google.inject.internal.asm.$ClassReader.<init>(Unknown Source) at com.google.inject.internal.asm.$ClassReader.<init>(Unknown Source) at com.google.inject.internal.asm.$ClassReader.<init>(Unknown Source) at com.google.inject.internal.util.$LineNumbers.<init>(LineNumbers.java:62) at com.google.inject.internal.util.$StackTraceElements$1.apply(StackTraceElements.java:36) at com.google.inject.internal.util.$StackTraceElements$1.apply(StackTraceElements.java:33) at com.google.inject.internal.util.$MapMaker$StrategyImpl.compute(MapMaker.java:549) ... 17 more

This issue has been seen in multiple client oEQ installs on upgrade to 2019.1. The issue only seems to occur in 2019.1.

To Reproduce Steps to reproduce the behavior:

  1. In mandatory-config.properties set the http.port to 80
  2. In optional-config.properties uncomment configurationService.proxyPort, and set it to 80
  3. Restart oEQ
  4. oEQ will fail to startup, with an error in the logs

Expected behavior oEQ should startup correctly

Platform:

Additional context Add any other context about the problem here.

stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.