Skip to Content
author's profile photo Former Member
Former Member

backoffice UI broken

I have the following severe rendering problem in backoffice.

broken backoffice

The console does only print many warnings like these: WARN [hybrisHTTP13] [SimpleHybrisWidgetResourceLoader] Unable to resolve JarInfo for '/cockpitng/cng/css/mycustombackoffice.css' (...) WARN [hybrisHTTP31] [DefaultAbstractCollectorChartHandler] Could not find series values (...) WARN [hybrisHTTP14] [ListViewCollectionBrowserMoldStrategy] Missing Column Configuration for type:

But this gives me no clue, even when I debug through that code. No luck with ant clean all, nor with updatesystem, nor with "reset everything" in backoffice orchestrator.

Did anybody face and resolve this already?

Add comment
10|10000 characters needed characters exceeded

5 Answers

  • Best Answer
    Posted on May 17, 2017 at 05:30 PM

    Hi,

    Which version of hybris do you use? Could you try invoke:

     ant sassclean sasscompile 
    
    

    Regards

    Lukasz

    Add comment
    10|10000 characters needed characters exceeded

    • Hi Ɓukasz, I am facing the same problem, a day ago I am getting the same error as "Unable to resolve JarInfo for '/cockpitng/cng/css/backoffice.css'". I have tried running above command and then starting the server. But I am Still seeing the same broken UI. Are there any more steps to do. I am using 6.7.0.12 version.

      • Thanks in advance.

  • Posted on May 18, 2017 at 07:06 AM

    Hi, Recheck -config.xml and -widget.xml files.May be this type of rendering problem happens ,when miss-arranger(missing closing tag,..) those files.

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 29, 2017 at 01:11 PM

    I'am having a similiar issue while deploying production zip. On my local machine everything looks fine but the deployed production-zip has a crashed dashboad. alt text

    Then i tried to "ant clean all" on the remote machine, but i got the following error:

     [unifyJspClassTime] adjusted 208 java/class timestamps
         [touch] Creating D:\hybris6.3_1\hybris\bin\platform\tomcat\work\Catalina\localhost\hmc\jspcompile_touch
          [echo] Creating a link to D:\hybris6.3_1\hybris\bin\ext-content\npmancillary\resources\npm\node_modules in D:\hybris6.3_1\hybris\bin\ext-backoffice\backoffice\node_modules
          [exec] Eine Datei kann nicht erstellt werden, wenn sie bereits vorhanden ist.
          [exec] Result: 1
          [echo] Running grunt copy_backoffice_sass
     
     BUILD FAILED
     D:\hybris6.3_1\hybris\bin\platform\build.xml:20: The following error occurred while executing this line:
     D:\hybris6.3_1\hybris\bin\platform\resources\ant\compiling.xml:90: The following error occurred while executing this line:
     D:\hybris6.3_1\hybris\bin\platform\resources\ant\compiling.xml:202: The following error occurred while executing this line:
     D:\hybris6.3_1\hybris\bin\platform\resources\ant\util.xml:20: The following error occurred while executing this line:
     D:\hybris6.3_1\hybris\bin\platform\resources\ant\compiling.xml:204: The following error occurred while executing this line:
     D:\hybris6.3_1\hybris\bin\platform\resources\ant\util.xml:144: The following error occurred while executing this line:
     D:\hybris6.3_1\hybris\bin\ext-backoffice\backoffice\buildcallbacks.xml:69: The following error occurred while executing this line:
     D:\hybris6.3_1\hybris\bin\ext-backoffice\backoffice\buildcallbacks.xml:79: The following error occurred while executing this line:
     D:\hybris6.3_1\hybris\bin\ext-backoffice\backoffice\buildcallbacks.xml:222: The following error occurred while executing this line:
     D:\hybris6.3_1\hybris\bin\ext-backoffice\backoffice\buildcallbacks.xml:302: Directory D:\hybris6.3_1\hybris\bin\ext-backoffice\backoffice\node_modules\.bin creation was not successful for an unknown r
     eason
    
    

    As far as i understand, the issue is because the "bin\ext-content\npmancillary\resources\npm" folder is not part of the production-zip. On my local environment the css used in backoffice is taken from "backoffice/ressource/backoffice/generated" folder. When i delete that folder in my local environment the Backoffice-UI is also broken as it is on the remote machine.


    Add comment
    10|10000 characters needed characters exceeded

  • Posted on Mar 07, 2018 at 05:00 AM

    Thanks for help Stypka..! Now,it's working fine after changes.

    Add comment
    10|10000 characters needed characters exceeded

  • Posted on May 23, 2018 at 05:34 PM

    How were you able to resolve the issue? I am running into a similar issue (Hybris 6.3) where in the server environment, it is complaining about 2 missing CSS files. In my local, these files were there in backoffice generated directory. When I deleted them, I am able to reproduce the issue. So there are 2 things that is baffling me -

    1. These files were created by me while I was playing around with my custom backoffice extension and got rid of them. So, not sure how it is still tied. How a CSS file name gets tied with widgets and how to undo it?

    2. How come those files were still there in my local (generated directory in backoffice). How and when is that directory gets cleaned and recreated?

    Add comment
    10|10000 characters needed characters exceeded