Error during assembly of /etc/designs/mysite/clientlib_base.js | Community
Skip to main content
suvasishm
Level 2
June 20, 2016
Solved

Error during assembly of /etc/designs/mysite/clientlib_base.js

  • June 20, 2016
  • 3 replies
  • 4499 views

For my production publish environment "minify" is enabled for Adobe Granite HTML Library Manager.

And while rebuilding the Client Libraries through /libs/granite/ui/content/dumplibs.rebuild.html tool, I am encountered with the following error:

building /etc/designs/mysite/clientlib_base.min.js...error: java.io.IOException: Error while reading cached library: javax.jcr.RepositoryException: Error during assembly of /etc/designs/mysite/clientlib_base.js

This is causing problem with few javascript variables being undefined as request to /etc/designs/mysite/clientlib_base.min.js is returning 404 apparently becasue of the above issue during build.

Your suggestion is highly appreciated.
Thanks.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by suvasishm

Mistakenly deleted my earlier 2 comments.

Coming to the problem, I've zeroed in on the culprit js file (1 out of 158 on whole app).

Thanks all.

3 replies

joerghoh
Adobe Employee
Adobe Employee
June 20, 2016

Hi,

can you please check if there is a "caused by" statement in this exception? This exception normally means, that the minifier has some problems with the javascript (as it is parsed by the minifier process).

Jörg

joerghoh
Adobe Employee
Adobe Employee
June 21, 2016
21.06.2016 13:03:32.729 *ERROR* [0:0:0:0:0:0:0:1 [1466494408424] GET /etc/designs/mysite/clientlib_base.min.js HTTP/1.1] com.adobe.granite.ui.clientlibs.impl.HtmlLibraryManagerImpl Error during assembly of library. org.mozilla.javascript.EvaluatorException: Compilation produced 42 syntax errors. at com.adobe.granite.ui.clientlibs.impl.JsFileBuilder$1.runtimeError(JsFileBuilder.java:108)

 

Looks like you've found your problem. The Compressor is a bit picky and stricter than a browser. 

Jörg

suvasishm
suvasishmAuthorAccepted solution
Level 2
June 21, 2016

Mistakenly deleted my earlier 2 comments.

Coming to the problem, I've zeroed in on the culprit js file (1 out of 158 on whole app).

Thanks all.