cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Getting Internal Server Error in SAP Hybris Backoffice

1,748

Hi,

We've recently upgraded to CX 1905.18 from 1905.7 after which we are facing issue with Backoffice wherein we get an error popup saying "Internal Server Error" as in the screenshot attached when something is being loaded.

Additional Info: We're facing this issue even while logging out of the backoffice.

We're getting following error in the console.

"logs": {
      "timeMillis": 1599557380267,
      "thread": "hybrisHTTP12",
      "level": "ERROR",
      "loggerName": "org.zkoss.zk.ui.impl.UiEngineImpl",
      "message": "",
      "thrown": {
        "commonElementCount": 0,
        "localizedMessage": "'java.time.ZoneId org.zkoss.zk.ui.event.ClientInfoEvent.getZoneId()'",
        "message": "'java.time.ZoneId org.zkoss.zk.ui.event.ClientInfoEvent.getZoneId()'",
        "name": "java.lang.NoSuchMethodError",
        "extendedStackTrace": [
          {
            "class": "com.hybris.cockpitng.admin.CockpitMainWindowComposer",
            "method": "publishClientInfo",
            "file": "CockpitMainWindowComposer.java",
            "line": 198,
            "exact": false,
            "location": "cockpitadmin-19.05.18-RC1.jar",
            "version": "?"
          },
          {
            "class": "jdk.internal.reflect.GeneratedMethodAccessor1543",
            "method": "invoke",
            "line": -1,
            "exact": false,
            "location": "?",
            "version": "?"
          },
          {
            "class": "jdk.internal.reflect.DelegatingMethodAccessorImpl",
            "method": "invoke",
            "file": "DelegatingMethodAccessorImpl.java",
            "line": 43,
            "exact": false,
            "location": "?",
            "version": "?"
          },
          {
            "class": "java.lang.reflect.Method",
            "method": "invoke",
            "file": "Method.java",
            "line": 566,
            "exact": false,
            "location": "?",
            "version": "?"
          },
          {
            "class": "com.hybris.cockpitng.util.ViewAnnotationAwareComposer",
            "method": "invokeListenerMethod",
            "file": "ViewAnnotationAwareComposer.java",
            "line": 104,
            "exact": false,
            "location": "cockpitframework-19.05.18-RC1.jar",
            "version": "?"
          },
          {
            "class": "com.hybris.cockpitng.util.ViewAnnotationAwareComposer",
            "method": "lambda$applyEventListener$2",
            "file": "ViewAnnotationAwareComposer.java",
            "line": 128,
            "exact": false,
            "location": "cockpitframework-19.05.18-RC1.jar",
            "version": "?"
          },
          {
            "class": "org.zkoss.zk.ui.AbstractComponent",
            "method": "onEvent",
            "file": "AbstractComponent.java",
            "line": 3177,
            "exact": false,
            "location": "zk-8.6.0.2.jar",
            "version": "8.6.0.2"
          },
          {
            "class": "org.zkoss.zk.ui.AbstractComponent",
            "method": "service",
            "file": "AbstractComponent.java",
            "line": 3147,
            "exact": false,
            "location": "zk-8.6.0.2.jar",
            "version": "8.6.0.2"
          },
          {
            "class": "org.zkoss.zk.ui.AbstractComponent",
            "method": "service",
            "file": "AbstractComponent.java",
            "line": 3089,
            "exact": false,
            "location": "zk-8.6.0.2.jar",
            "version": "8.6.0.2"
          },

Any pointers will be really appreciated. Thank you.

Accepted Solutions (0)

Answers (2)

Answers (2)

alexander_medina
Explorer
0 Kudos

I have the same problem on my machine. Strangely enough none of my project teammates have it.

Anyway I discovered that 19.05.18 still uses zk-8.6.02.jar but they have patched the ClientInfoEvent class in cockpitframework-19.05.18-RC1.jar and added the getZoneId() method there.

So it seems that for some reason the classloader uses the original ClientInfoEvent.class on some machines and on others the patched one. Unfortunately I don't have a clue how tell the classloader which class to use.

a-k_hartmann
Explorer
0 Kudos

Issue was introduced with 1905.18. In 1905.17 it's okay.

Probably wrong version of zk framework. getZoneId exists not before 9.0.0