I get jawr net.jawr.web.minification.JSMin$UnterminatedRegExpLiteralException












0















Mainly am writing this as a self-answer since it took me a long time to discover the issue, my project uses jawr for minifying resources js and CSS, this is useful because it elements the comments automatically without exposing it to production, in addition to minifying itself and separating modules easily by grouping resources as bundles of 2 types, debug and production.



Reference:



jawr webstie



Problem:



I started to get this exception, in my tests that prepare my resources, as part of the deployment job, this creates a folder with assets with minified, CSS and JS, and to be served as gzip.



net.jawr.web.minification.JSMin$UnterminatedRegExpLiteralException
at net.jawr.web.minification.JSMin.action(JSMin.java:277)
at net.jawr.web.minification.JSMin.jsmin(JSMin.java:353)
at com.mycomanyname.jobs.PrepareAssetsTest.minifyJs(PrepareAssetsTest.java:84)
at com.mycomanyname.jobs.PrepareAssetsTest.minimizeAssets(PrepareAssetsTest.java:71)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:68)
at com.intellij.rt.execution.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:47)
at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:242)
at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:70)


I have tried:
Checking on google ofcourse, and checkout commits one by one backward to see what broke it.










share|improve this question























  • I have put this question, because i could not find any clue on internet about such issue.

    – shareef
    Dec 29 '18 at 6:16
















0















Mainly am writing this as a self-answer since it took me a long time to discover the issue, my project uses jawr for minifying resources js and CSS, this is useful because it elements the comments automatically without exposing it to production, in addition to minifying itself and separating modules easily by grouping resources as bundles of 2 types, debug and production.



Reference:



jawr webstie



Problem:



I started to get this exception, in my tests that prepare my resources, as part of the deployment job, this creates a folder with assets with minified, CSS and JS, and to be served as gzip.



net.jawr.web.minification.JSMin$UnterminatedRegExpLiteralException
at net.jawr.web.minification.JSMin.action(JSMin.java:277)
at net.jawr.web.minification.JSMin.jsmin(JSMin.java:353)
at com.mycomanyname.jobs.PrepareAssetsTest.minifyJs(PrepareAssetsTest.java:84)
at com.mycomanyname.jobs.PrepareAssetsTest.minimizeAssets(PrepareAssetsTest.java:71)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:68)
at com.intellij.rt.execution.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:47)
at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:242)
at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:70)


I have tried:
Checking on google ofcourse, and checkout commits one by one backward to see what broke it.










share|improve this question























  • I have put this question, because i could not find any clue on internet about such issue.

    – shareef
    Dec 29 '18 at 6:16














0












0








0








Mainly am writing this as a self-answer since it took me a long time to discover the issue, my project uses jawr for minifying resources js and CSS, this is useful because it elements the comments automatically without exposing it to production, in addition to minifying itself and separating modules easily by grouping resources as bundles of 2 types, debug and production.



Reference:



jawr webstie



Problem:



I started to get this exception, in my tests that prepare my resources, as part of the deployment job, this creates a folder with assets with minified, CSS and JS, and to be served as gzip.



net.jawr.web.minification.JSMin$UnterminatedRegExpLiteralException
at net.jawr.web.minification.JSMin.action(JSMin.java:277)
at net.jawr.web.minification.JSMin.jsmin(JSMin.java:353)
at com.mycomanyname.jobs.PrepareAssetsTest.minifyJs(PrepareAssetsTest.java:84)
at com.mycomanyname.jobs.PrepareAssetsTest.minimizeAssets(PrepareAssetsTest.java:71)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:68)
at com.intellij.rt.execution.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:47)
at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:242)
at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:70)


I have tried:
Checking on google ofcourse, and checkout commits one by one backward to see what broke it.










share|improve this question














Mainly am writing this as a self-answer since it took me a long time to discover the issue, my project uses jawr for minifying resources js and CSS, this is useful because it elements the comments automatically without exposing it to production, in addition to minifying itself and separating modules easily by grouping resources as bundles of 2 types, debug and production.



Reference:



jawr webstie



Problem:



I started to get this exception, in my tests that prepare my resources, as part of the deployment job, this creates a folder with assets with minified, CSS and JS, and to be served as gzip.



net.jawr.web.minification.JSMin$UnterminatedRegExpLiteralException
at net.jawr.web.minification.JSMin.action(JSMin.java:277)
at net.jawr.web.minification.JSMin.jsmin(JSMin.java:353)
at com.mycomanyname.jobs.PrepareAssetsTest.minifyJs(PrepareAssetsTest.java:84)
at com.mycomanyname.jobs.PrepareAssetsTest.minimizeAssets(PrepareAssetsTest.java:71)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
at org.junit.runner.JUnitCore.run(JUnitCore.java:137)
at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:68)
at com.intellij.rt.execution.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:47)
at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:242)
at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:70)


I have tried:
Checking on google ofcourse, and checkout commits one by one backward to see what broke it.







java jawr






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Dec 29 '18 at 6:16









shareefshareef

4,98974470




4,98974470













  • I have put this question, because i could not find any clue on internet about such issue.

    – shareef
    Dec 29 '18 at 6:16



















  • I have put this question, because i could not find any clue on internet about such issue.

    – shareef
    Dec 29 '18 at 6:16

















I have put this question, because i could not find any clue on internet about such issue.

– shareef
Dec 29 '18 at 6:16





I have put this question, because i could not find any clue on internet about such issue.

– shareef
Dec 29 '18 at 6:16












1 Answer
1






active

oldest

votes


















0














After checking my tree one by one, it appeared this was the reason of the bug



one of my js i use



So when i removed this line the error was gone.



//# sourceMappingURL=jquery.countdown.min.map


I did the same for all my files, and the reason was that i started
relying on CDN to get my resources, plus doing a lot of refactoring, so these files with the same trend started to increase, later on, i found the problem and deleted these lines.



P.S: I still not sure why its so important to have this line in first place, i just copied and pasted from CDNJS, in this screen shot case



jquery.countdownTimer.2.1.0.min.js





share|improve this answer























    Your Answer






    StackExchange.ifUsing("editor", function () {
    StackExchange.using("externalEditor", function () {
    StackExchange.using("snippets", function () {
    StackExchange.snippets.init();
    });
    });
    }, "code-snippets");

    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "1"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53967193%2fi-get-jawr-net-jawr-web-minification-jsminunterminatedregexpliteralexception%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    After checking my tree one by one, it appeared this was the reason of the bug



    one of my js i use



    So when i removed this line the error was gone.



    //# sourceMappingURL=jquery.countdown.min.map


    I did the same for all my files, and the reason was that i started
    relying on CDN to get my resources, plus doing a lot of refactoring, so these files with the same trend started to increase, later on, i found the problem and deleted these lines.



    P.S: I still not sure why its so important to have this line in first place, i just copied and pasted from CDNJS, in this screen shot case



    jquery.countdownTimer.2.1.0.min.js





    share|improve this answer




























      0














      After checking my tree one by one, it appeared this was the reason of the bug



      one of my js i use



      So when i removed this line the error was gone.



      //# sourceMappingURL=jquery.countdown.min.map


      I did the same for all my files, and the reason was that i started
      relying on CDN to get my resources, plus doing a lot of refactoring, so these files with the same trend started to increase, later on, i found the problem and deleted these lines.



      P.S: I still not sure why its so important to have this line in first place, i just copied and pasted from CDNJS, in this screen shot case



      jquery.countdownTimer.2.1.0.min.js





      share|improve this answer


























        0












        0








        0







        After checking my tree one by one, it appeared this was the reason of the bug



        one of my js i use



        So when i removed this line the error was gone.



        //# sourceMappingURL=jquery.countdown.min.map


        I did the same for all my files, and the reason was that i started
        relying on CDN to get my resources, plus doing a lot of refactoring, so these files with the same trend started to increase, later on, i found the problem and deleted these lines.



        P.S: I still not sure why its so important to have this line in first place, i just copied and pasted from CDNJS, in this screen shot case



        jquery.countdownTimer.2.1.0.min.js





        share|improve this answer













        After checking my tree one by one, it appeared this was the reason of the bug



        one of my js i use



        So when i removed this line the error was gone.



        //# sourceMappingURL=jquery.countdown.min.map


        I did the same for all my files, and the reason was that i started
        relying on CDN to get my resources, plus doing a lot of refactoring, so these files with the same trend started to increase, later on, i found the problem and deleted these lines.



        P.S: I still not sure why its so important to have this line in first place, i just copied and pasted from CDNJS, in this screen shot case



        jquery.countdownTimer.2.1.0.min.js






        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Dec 29 '18 at 6:16









        shareefshareef

        4,98974470




        4,98974470






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53967193%2fi-get-jawr-net-jawr-web-minification-jsminunterminatedregexpliteralexception%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Monofisismo

            Angular Downloading a file using contenturl with Basic Authentication

            Olmecas