Exception in jsMin processing swipe.js

455 views
Skip to first unread message

Alex Black

unread,
Mar 1, 2012, 4:59:12 PM3/1/12
to wro4j
I'm trying to use http://swipejs.com, and I'm getting an exception
when I include either:

https://github.com/bradbirdsall/Swipe/blob/master/swipe.js

or

https://github.com/bradbirdsall/Swipe/blob/master/swipe.min.js

perhaps there is something wrong with this js file - is there any way
that a line number could be returned from jsMin/wro4j?

Or, is there a way to turn off jsMin for this file?

ERROR [2012-03-01 21:53:21,196] [1543347017@qtp0-2]
ro.isdc.wro.model.resource.processor.impl.js.JSMinProcessor: null -
Exception occured while using processor: jsMin
! ro.isdc.wro.model.resource.processor.support.JSMin
$UnterminatedStringLiteralException
! at
ro.isdc.wro.model.resource.processor.support.JSMin.action(JSMin.java:
140)
! at
ro.isdc.wro.model.resource.processor.support.JSMin.jsmin(JSMin.java:
242)
! at
ro.isdc.wro.model.resource.processor.impl.js.JSMinProcessor.process(JSMinProcessor.java:
57)
! at
ro.isdc.wro.model.resource.processor.impl.js.JSMinProcessor.process(JSMinProcessor.java:
75)
! at ro.isdc.wro.model.group.processor.GroupsProcessor
$2.process(GroupsProcessor.java:153)
! at
ro.isdc.wro.model.group.processor.GroupsProcessor.applyPostProcessors(GroupsProcessor.java:
133)
! at
ro.isdc.wro.model.group.processor.GroupsProcessor.doPostProcess(GroupsProcessor.java:
105)
! at
ro.isdc.wro.model.group.processor.GroupsProcessor.process(GroupsProcessor.java:
61)
! at
ro.isdc.wro.manager.WroManager.getContentHashEntry(WroManager.java:
287)
! at
ro.isdc.wro.manager.WroManager.serveProcessedBundle(WroManager.java:
176)
! at ro.isdc.wro.manager.WroManager.process(WroManager.java:129)
! at ro.isdc.wro.http.WroFilter.processRequest(WroFilter.java:364)
! at ro.isdc.wro.http.WroFilter.doFilter(WroFilter.java:314)
! at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1115)
! at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:
361)
! at
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:
216)
! at
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:
181)
! at
org.mortbay.jetty.handler.ContextHandler.__handle(ContextHandler.java:
766)
! at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java)
! at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
417)
! at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
152)
! at org.mortbay.jetty.Server.handle(Server.java:324)
! at
org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:
534)
! at org.mortbay.jetty.HttpConnection
$RequestHandler.headerComplete(HttpConnection.java:864)
! at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:533)
! at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:207)
! at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:403)
! at
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:
409)
! at org.mortbay.thread.QueuedThreadPool
$PoolThread.run(QueuedThreadPool.java:522)

Alex Black

unread,
Mar 1, 2012, 5:03:12 PM3/1/12
to wro4j
hmm, it looks like I'm a moron, this is working fine.

On Mar 1, 4:59 pm, Alex Black <a...@alexblack.ca> wrote:
> I'm trying to usehttp://swipejs.com, and I'm getting an exception

Alex Objelean

unread,
Mar 1, 2012, 5:05:06 PM3/1/12
to wr...@googlegroups.com
The JsMin processor uses java port of Douglas Crockford jsmin tool.
I don't know who is the original author and whether this is actively developed somewhere. 
But I may try to patch it if required.

Alex


--
You received this message because you are subscribed to the Google Groups "wro4j" group.
To post to this group, send email to wr...@googlegroups.com.
To unsubscribe from this group, send email to wro4j+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/wro4j?hl=en.


Alex Objelean

unread,
Mar 1, 2012, 5:08:30 PM3/1/12
to wr...@googlegroups.com
I'm still curious why you get that exception.

Btw, I recommend using other js minimizers (yuiJsMin or google closure compiler) which are actively developed and seems to be more efficient than jsMin.

Alex Black

unread,
Mar 1, 2012, 5:11:36 PM3/1/12
to wro4j
Ah, thanks, yeah I'll use yuiJsMin.

Heh, the problem was I had literally downloaded this:
https://github.com/bradbirdsall/Swipe/blob/master/swipe.js which is an
HTML document :) no wonder jsMin barfed.

On Mar 1, 5:08 pm, Alex Objelean <alex.objel...@gmail.com> wrote:
> I'm still curious why you get that exception.
>
> Btw, I recommend using other js minimizers (yuiJsMin or google closure
> compiler) which are actively developed and seems to be more efficient than
> jsMin.
>
Reply all
Reply to author
Forward
0 new messages