Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
 
Go Back   Zimbra - Forums > Zimbra Collaboration Suite > Zimlets

Welcome to the Zimbra - Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-10-2009, 12:02 PM
Member
 
Posts: 13
Default [SOLVED] Please help - Knowledge Tree Zimlet

Attached file is knowledge Tree zimlet which I wrote for my company.
Really, most of the code are taken from Alfresco and other available zimlets and I just modified it to work with Knowledge Tree.

It's just a simple zimlet that enables drag and drop approaches to let you easily save email from zimbra to knowledge Tree. I tested it on my dev server and it seems to work fine. But when I deployed it to the production I've received 2 different errors from two different web browsers like this

on firefox
TypeError: J.xml is null

on IE
[object error]

Does anybody know what this mean?
Any comment, idea or tester are really welcome.

INSTALL :
You need to
1.In config_template.xml,
configure allowedDomains and ServerAddress to your KT server address.
2.Deploy it normally.
3.On the zimlet panel, enter username and password through "perferences"

Thank you
Porntep
Attached Files
File Type: zip net_oa_kt.zip (17.3 KB, 8 views)
Reply With Quote
  #2 (permalink)  
Old 09-10-2009, 02:44 PM
Member
 
Posts: 13
Default

I'm testing it on
Ubuntu 8.04 and
Zimbra 5.0.11_GA_2695 NETWORK edition
Reply With Quote
  #3 (permalink)  
Old 09-11-2009, 01:01 PM
Zimbra Employee
 
Posts: 115
Default

Try opening Zimbra in Developer mode by appending ?dev=1 to the Zimbra url.
Code:
i.e. if your zimbra's url is http://www.server.com/zimbra .. open it with http://www.server.com/zimbra?dev=1
This would give more explicit error instead of cryptic one and you will be able to debug it.
__________________
Bugzilla - Wiki - Downloads - Before posting... Search!

Last edited by rrao : 09-11-2009 at 02:31 PM.
Reply With Quote
  #4 (permalink)  
Old 09-14-2009, 09:51 AM
Member
 
Posts: 13
Default

Thanks rrao,

I've tried that but still can't get any more clue about what's going on.

In the debug window, when dropping an email to the zimlet I will receive these two lines
Code:
reusing RPC ID __RpcCtxt_0
--- freeing rpcCtxt __RpcCtxt_0
(Do you know what this means?)

And in the Dev mode, the previous error has changed to
Code:
TypeError: result.xml is null
("result" is the name of a variable)

In firebug
HTTP ERROR: 403 FORBIDDEN

Anyway, a few sites suggested this could be a problem with servlet proxy but I have also tried
Code:
zmprov gc default |grep zimbraProxyAllowedDomains
which gave me
Code:
zimbraProxyAllowedDomains: *.yahooapis.com
zimbraProxyAllowedDomains: *.mycompany.net
zimbraProxyAllowedDomains: *.csgnetwork.com
zimbraProxyAllowedDomains: *.yahoo.com
zimbraProxyAllowedDomains: *.maxmind.com
zimbraProxyAllowedDomains: *.yimg.com
have you got any idea about what else i can check to debug/fix it better?

Thanks.
Reply With Quote
  #5 (permalink)  
Old 09-14-2009, 10:08 AM
Zimbra Employee
 
Posts: 115
Default

Quote:
Originally Posted by xrickung View Post
Thanks rrao,

I've tried that but still can't get any more clue about what's going on.

In the debug window, when dropping an email to the zimlet I will receive these two lines
Code:
reusing RPC ID __RpcCtxt_0
--- freeing rpcCtxt __RpcCtxt_0
(Do you know what this means?)

And in the Dev mode, the previous error has changed to
Code:
TypeError: result.xml is null
("result" is the name of a variable)

In firebug
HTTP ERROR: 403 FORBIDDEN

Anyway, a few sites suggested this could be a problem with servlet proxy but I have also tried
Code:
zmprov gc default |grep zimbraProxyAllowedDomains
which gave me
Code:
zimbraProxyAllowedDomains: *.yahooapis.com
zimbraProxyAllowedDomains: *.mycompany.net
zimbraProxyAllowedDomains: *.csgnetwork.com
zimbraProxyAllowedDomains: *.yahoo.com
zimbraProxyAllowedDomains: *.maxmind.com
zimbraProxyAllowedDomains: *.yimg.com
have you got any idea about what else i can check to debug/fix it better?

Thanks.
403 means, Zimlet is trying to access a site which is not in zimbraProxyAllowedDomains or not explicitly allowed.

If you already have it,
1. Check for spelling mistakes

2. if you are accessing: Test.com Web Based Testing and Certification Software v2.0 and Test.com Web Based Testing and Certification Software v2.0
try adding both: test.com and *.test.com


Also:
1. Increment the "version" number of the <zimletname>.xml
2. Deploy the Zimlet (undeploy and deploy the Zimlet)



Finally, install Firebug for Firefox, it would help you a lot.
Turn ON Firebug, and go to Console-tab in Firebug.
Open Zimbra and see see when Zimlet tries to access this extenal site.
__________________
Bugzilla - Wiki - Downloads - Before posting... Search!
Reply With Quote
  #6 (permalink)  
Old 09-16-2009, 04:44 AM
Member
 
Posts: 13
Default

Hi rrao,
I've tried all of that suggestions but still got stuck with the same error.
in normal mode
Code:
TypeError: J.xml is null
in dev mode
Code:
TypeError: result.xml is null
I already got firebug installed on my firefox as well but it didn't give me anything other than
HTTP ERROR: 403 FORBIDDEN

I'm sure spelling of the alloweddomain is correct as it works fine on my dev machine.

Any idea?

Thank you
Reply With Quote
  #7 (permalink)  
Old 09-16-2009, 08:23 AM
Zimbra Employee
 
Posts: 115
Default

Quote:
Originally Posted by xrickung View Post
Hi rrao,
I've tried all of that suggestions but still got stuck with the same error.
in normal mode
Code:
TypeError: J.xml is null
in dev mode
Code:
TypeError: result.xml is null
I already got firebug installed on my firefox as well but it didn't give me anything other than
HTTP ERROR: 403 FORBIDDEN

I'm sure spelling of the alloweddomain is correct as it works fine on my dev machine.



Any idea?

Thank you
Can you email me all the login and other details for your zimlet ?
__________________
Bugzilla - Wiki - Downloads - Before posting... Search!
Reply With Quote
  #8 (permalink)  
Old 09-16-2009, 09:00 AM
Member
 
Posts: 13
Default

Hey rrao,

just got it fixed by my sys admin

it seemed to be the same prob as in this thread
Proxy service & allowedDomains

Thanks anyway for your help : )
Reply With Quote
Reply


Thread Tools
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

Zimbrablog.com




 

Search Engine Optimization by vBSEO 3.1.0