Results 1 to 6 of 6

Thread: Zimlet works in dev mode but won't deploy

Hybrid View

  1. #1
    Join Date
    Jul 2012
    Location
    Algiers
    Posts
    55
    Rep Power
    3

    Default [solved] Zimlet works in dev mode but won't deploy

    My zimlet won't deploy :'( I can see the zimlet icon in the zimlet panel and I can see the menu I created when I right click on it, but for example the property editor menu doesn't display on double-click and when selecting an item in the menu I created no action is taken. The zimlet works in dev mode. What could be the problem ?

    Here's a snippet from the log file.

    Code:
    2012-11-25 14:52:46,551 DEBUG [btpool0-8] [] zimlet - DEBUG: buffer file: /home/chaouche/.zdesktop/data/tmp/diskcache/zimletres/latest/ZimbraService-7107e8c4443527debc65a4d5c894f6e0-46.css                                          
    2012-11-25 14:52:46,617 ERROR [btpool0-9] [] zimlet -  
    5156:14:invalid property id 
    2012-11-25 14:52:46,617 ERROR [btpool0-9] [] zimlet -  
    5156:17:syntax error 
    2012-11-25 14:52:46,617 ERROR [btpool0-9] [] zimlet -  
    5157:17:syntax error 
    2012-11-25 14:52:46,617 ERROR [btpool0-9] [] zimlet -  
    5158:17:syntax error 
    2012-11-25 14:52:46,617 ERROR [btpool0-9] [] zimlet -  
    5159:17:syntax error 
    2012-11-25 14:52:46,617 ERROR [btpool0-9] [] zimlet -  
    5160:17:syntax error 
    2012-11-25 14:52:46,617 ERROR [btpool0-9] [] zimlet -  
    5161:17:syntax error 
    2012-11-25 14:52:46,617 ERROR [btpool0-9] [] zimlet -  
    5162:17:syntax error 
    2012-11-25 14:52:46,618 ERROR [btpool0-9] [] zimlet -  
    5163:17:syntax error 
    2012-11-25 14:52:46,618 ERROR [btpool0-9] [] zimlet -  
    5164:17:syntax error 
    2012-11-25 14:52:46,631 ERROR [btpool0-9] [] zimlet -  
    1:0:Compilation produced 10 syntax errors. 
    2012-11-25 14:52:46,636 ERROR [btpool0-9] [] log - /service/zimlet/res/Zimlets-nodev_all.js 
    org.mozilla.javascript.EvaluatorException: Compilation produced 10 syntax errors. 
            at com.zimbra.cs.zimlet.ZimletResources$1.runtimeError(ZimletResources.java:189) 
            at org.mozilla.javascript.Parser.parse(Parser.java:410) 
            at org.mozilla.javascript.Parser.parse(Parser.java:355) 
            at com.yahoo.platform.yui.compressor.JavaScriptCompressor.parse(JavaScriptCompressor.java:334) 
            at com.yahoo.platform.yui.compressor.JavaScriptCompressor.<init>(JavaScriptCompressor.java:555) 
            at com.zimbra.cs.zimlet.ZimletResources.service(ZimletResources.java:165) 
            at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511) 
            at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1166) 
            at com.zimbra.cs.zimlet.ZimletFilter.doFilter(ZimletFilter.java:240) 
            at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) 
            at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388) 
            at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:218) 
            at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182) 
            at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765) 
            at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:422) 
            at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230) 
            at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114) 
            at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) 
            at org.mortbay.jetty.handler.rewrite.RewriteHandler.handle(RewriteHandler.java:230) 
            at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) 
            at org.mortbay.jetty.Server.handle(Server.java:326) 
            at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:585) 
            at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:971) 
            at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:549) 
            at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212) 
            at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:415) 
            at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:429) 
            at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:451)

    In firebug I got the following error message

    Code:
    Firebug's log limit has been reached. 707 entries not shown.			 
    ParamsHeadersResponseCacheCookies
    
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
    <title>Error 500 Compilation produced 10 syntax errors.</title>
    </head>
    <body><h2>HTTP ERROR 500</h2>
    <p>Problem accessing /service/zimlet/res/Zimlets-nodev_all.js. Reason:
    <pre>    Compilation produced 10 syntax errors.</pre></p><h3>Caused by:</h3><pre>org.mozilla.javascript.EvaluatorException: Compilation produced 10 syntax errors.
    	at com.zimbra.cs.zimlet.ZimletResources$1.runtimeError(ZimletResources.java:189)
    	at org.mozilla.javascript.Parser.parse(Parser.java:410)
    	at org.mozilla.javascript.Parser.parse(Parser.java:355)
    	at com.yahoo.platform.yui.compressor.JavaScriptCompressor.parse(JavaScriptCompressor.java:334)
    	at com.yahoo.platform.yui.compressor.JavaScriptCompressor.&lt;init&gt;(JavaScriptCompressor.java:555)
    	at com.zimbra.cs.zimlet.ZimletResources.service(ZimletResources.java:165)
    	at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
    	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1166)
    	at com.zimbra.cs.zimlet.ZimletFilter.doFilter(ZimletFilter.java:240)
    	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
    	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
    	at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:218)
    	at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
    	at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
    	at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:422)
    	at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
    	at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
    	at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
    	at org.mortbay.jetty.handler.rewrite.RewriteHandler.handle(RewriteHandler.java:230)
    	at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
    	at org.mortbay.jetty.Server.handle(Server.java:326)
    	at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:585)
    	at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:971)
    	at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:549)
    	at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
    	at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:415)
    	at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:429)
    	at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:451)
    </pre>
    <hr /><i><small>Powered by Jetty://</small></i><br/>                                                
    <br/>                                                
    <br/>                                                
    <br/>                                                
    <br/>                                                
    <br/>                                                
    <br/>                                                
    <br/>                                                
    <br/>                                                
    <br/>                                                
    <br/>                                                
    <br/>                                                
    <br/>                                                
    <br/>                                                
    <br/>                                                
    <br/>                                                
    <br/>                                                
    <br/>                                                
    <br/>                                                
    <br/>                                                
    
    </body>
    </html>
    
     	
    0 requests
    			
    0
    	
    0
    Last edited by ychaouche; 11-27-2012 at 09:05 AM.

  2. #2
    Join Date
    Jul 2012
    Location
    Algiers
    Posts
    55
    Rep Power
    3

    Default

    Here are the steps I followed to deploy the zimlet

    Code:
    /opt/zimbra/bin/zmzimletctl deploy com_feeder_sugarbee.zip
    /opt/zimbra/bin/zmzimletctl listacl com_feeder_sugarbee.zip
    for cos in default pro pro+ ressources standard; do /opt/zimbra/bin/zmzimletctl  acl com_feeder_sugarbee $cos grant; done;
    /opt/zimbra/bin/zmzimletctl enable com_feeder_sugarbee ### OK
    /opt/zimbra/bin/zmzimletctl listacls com_feeder_sugarbee ### OK
    /opt/zimbra/bin/zmzimletctl listzimlets ### OK

  3. #3
    Join Date
    Jul 2012
    Location
    Algiers
    Posts
    55
    Rep Power
    3

    Default

    I restarted the server using /opt/zimbra/bin/zmcontrol restart, I also checked that the zimlet is deployed using zmzimletctl info com_feeder_sugarbee, still nothing.

    Code:
    zimbra@s15389121:~/bin> zmzimletctl info com_feeder_sugarbee
    Zimlet com_feeder_sugarbee
             Version: 0.7.2
         Description: Sugar Bee v0.7.2
            Priority: 28
             Enabled: true
    Indexing Enabled: true
    Activated in COS: default, pro, pro+, ressources, standard
              Config: null
             Scripts: com_feeder_sugarbee.js, toolbar.js, dnd.js, contact.js, info.js, tools.js, sugarcrm_error_handler.js, sugarcrm_proxy.js, md5-min.js, json2.js, underscore-min.js
                 CSS: style.css

    The zimlet is visible in ZimbraAdmin

    http://h.dropcanvas.com/521xc/zimbraadmin.PNG

    but not in mywebmail.

    http://h.dropcanvas.com/521xc/zimbra...il_zimlets.PNG

  4. #4
    Join Date
    Jul 2012
    Location
    Algiers
    Posts
    55
    Rep Power
    3

    Default

    I had to enable it on the domain too, in the admin interface.

  5. #5
    Join Date
    Nov 2012
    Posts
    1
    Rep Power
    3

    Default

    Hi,

    I don't know if this can help you,
    but I had the same problem ("Compilation produced 1 syntax errors.") and I discovered that i had left 1 "debugger" in my source code.

    Best regards.

  6. #6
    Join Date
    Jul 2012
    Location
    Algiers
    Posts
    55
    Rep Power
    3

    Default

    Thanks for your answer ! it allowed me to realize I didn't give the reason for my syntax error messages :

    Well in dev mode the scripts are not compressed, so everything works fine as in my case.
    But in production mode, the scripts are compressed using the YUI Compiler, and that compiler doesn't accept the "class" keyword in any of your javascript identifiers. Note that this is permitted by the javascript interpreter but I feel like it's a reserved keyword or something like that (for future versions of Javascript), that's why YUI Compiler throws an error.

Similar Threads

  1. [SOLVED] Can't deploy zimlet
    By loocek in forum Administrators
    Replies: 12
    Last Post: 02-14-2011, 01:00 PM
  2. Cannot deploy simple tab zimlet
    By fruitloaf in forum Zimlets
    Replies: 2
    Last Post: 10-28-2010, 02:26 PM
  3. [SOLVED] Social Zimlet only works in dev mode?
    By ScottCall in forum Zimlets
    Replies: 4
    Last Post: 04-15-2010, 11:06 AM
  4. Is an Undo feature for the mail compose mode in the works.
    By nyjetshead in forum General Questions
    Replies: 5
    Last Post: 01-17-2009, 01:30 PM
  5. zimlet deploy per user?
    By lkj in forum Administrators
    Replies: 2
    Last Post: 09-23-2008, 10:59 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •