[Logo] Serotonin Software Community
  [Search] Search   [Recent Topics] Recent Topics   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Help about help  XML
Forum Index » Mango installation
Author Message
manu

Initiate

Joined: 01/02/2008 08:03:49
Messages: 2
Offline

Hi,

First, congratulation for this product.
my problem:
When I want help and click on the help, I have an Error box and a box loading... but no help.
I use the sun jdk.
Thank for your help.
The tomcat trace is:

INFO: Initializing Coyote HTTP/1.1 on http-8080
2008-feb-01 13:59:37 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 676 ms
2008-feb-01 13:59:37 org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
2008-feb-01 13:59:37 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.14
2008-feb-01 13:59:48 org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
2008-feb-01 13:59:48 org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
2008-feb-01 13:59:48 org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/32 config=null
2008-feb-01 13:59:48 org.apache.catalina.startup.Catalina start
INFO: Server startup in 11578 ms
ERROR 2008-02-01 14:00:30,782 (org.directwebremoting.impl.ExecuteAjaxFilter.doFi
lter:4 - DWR invocation exception
java.lang.IllegalArgumentException: host parameter is null
at org.apache.commons.httpclient.HttpConnection.<init>(HttpConnection.ja
va:205)
at org.apache.commons.httpclient.HttpConnection.<init>(HttpConnection.ja
va:154)
at org.apache.commons.httpclient.SimpleHttpConnectionManager.getConnecti
onWithTimeout(SimpleHttpConnectionManager.java:149)
at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMe
thodDirector.java:152)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.jav
a:396)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.jav
a:324)
at com.serotonin.mango.Common.getMangoId(Common.java:410)
at com.serotonin.mango.web.dwr.MiscDwr.getDocumentationItem(MiscDwr.java
:71)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.directwebremoting.impl.ExecuteAjaxFilter.doFilter(ExecuteAjaxFilt
er.java:42)
at org.directwebremoting.impl.DefaultRemoter$1.doFilter(DefaultRemoter.j
ava:42
at com.serotonin.mango.web.dwr.util.LoggedInAjaxMethodFilter.doFilter(Lo
ggedInAjaxMethodFilter.java:46)
at org.directwebremoting.impl.DefaultRemoter$1.doFilter(DefaultRemoter.j
ava:42
at org.directwebremoting.impl.DefaultRemoter.execute(DefaultRemoter.java
:431)
at org.directwebremoting.impl.DefaultRemoter.execute(DefaultRemoter.java
:283)
at org.directwebremoting.servlet.PlainCallHandler.handle(PlainCallHandle
r.java:52)
at org.directwebremoting.servlet.UrlProcessor.handle(UrlProcessor.java:1
01)
at org.directwebremoting.servlet.DwrServlet.doPost(DwrServlet.java:146)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:175)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:12
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
a:263)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
ss(Http11Protocol.java:584)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:44
7)
at java.lang.Thread.run(Thread.java:619)
Exception in thread "Dispatcher-Thread-1" java.lang.IllegalArgumentException: ho
st parameter is null
at org.apache.commons.httpclient.HttpConnection.<init>(HttpConnection.ja
va:205)
at org.apache.commons.httpclient.HttpConnection.<init>(HttpConnection.ja
va:154)
at org.apache.commons.httpclient.SimpleHttpConnectionManager.getConnecti
onWithTimeout(SimpleHttpConnectionManager.java:149)
at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMe
thodDirector.java:152)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.jav
a:396)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.jav
a:324)
at com.serotonin.mango.util.MangoGroveLogAppender.append(MangoGroveLogAp
pender.java:77)
at org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:230)

at org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders
(AppenderAttachableImpl.java:65)
at org.apache.log4j.AsyncAppender$Dispatcher.run(AsyncAppender.java:57

at java.lang.Thread.run(Thread.java:619)


Thanks for your help.
mlohbihler

Master
[Avatar]

Joined: 01/03/2007 22:48:52
Messages: 1456
Offline

Hi Manu,

Help documentation is stored remotely on Serotonin servers, and is requested each time you open a help window. The URL from which the request is made is found in your WEB-INF/classes/env.properties file against the property called "grove.url". Normally this value should be http://mango.serotoninsoftware.com/servlet.

The error you received, "host parameter is null", indicates that your value is not properly set. Please have a look and report back what you find.

Best regards,
Matthew Lohbihler
Keith

Initiate

Joined: 26/06/2007 11:19:05
Messages: 42
Offline

Hi

I also have the same problem, I've changed the line in the env.properties file to the URL and noe get this


Error retrieving Mango IdInvalid response code: 404

Cheers


Keith
mlohbihler

Master
[Avatar]

Joined: 01/03/2007 22:48:52
Messages: 1456
Offline

We found a problem in the build script for the Open version that is not properly setting values in the env.properties file. A new build has been created which fixes the problem.

User with the old build can do one two things:
1) Easiest: download and install the new build (not the "upgrade" version).
2) Quickest: modify the WEB-INF/classes/env.properties file to contain the following (overwriting the existing properties except for "db.url"):

doc.url=http://mango.serotoninsoftware.com/servlet/mangoDocumentation
grove.url=http://mango.serotoninsoftware.com/servlet

This message was edited 2 times. Last update was at 01/02/2008 12:01:11


Best regards,
Matthew Lohbihler
Keith

Initiate

Joined: 26/06/2007 11:19:05
Messages: 42
Offline

Ok I did the install of the new version but am still getting the same error.

The lines in the file are below and look correct.

Rgds


Keith

#
# Copyright (C) 2006-2007 Serotonin Software Technologies Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of version 2 of the GNU General Public License as
# published by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
#
# @author Matthew Lohbihler
#
#
db.url=~/../../mangoDB
doc.url=http://mango.serotoninsoftware.com/servlet/mangoDocumentation
grove.url=http://mango.serotoninsoftware.com/servlet
mlohbihler

Master
[Avatar]

Joined: 01/03/2007 22:48:52
Messages: 1456
Offline

I should have mentioned that you need to restart the application. If you did, what happens when you hit the URL with a browser on the same machine?

This message was edited 1 time. Last update was at 01/02/2008 13:16:49


Best regards,
Matthew Lohbihler
Keith

Initiate

Joined: 26/06/2007 11:19:05
Messages: 42
Offline

For this

http://mango.serotoninsoftware.com/servlet/mangoDocumentation

i get

{"responseMessage":"Missing document id","responseCode":400,"version":1}

and for this

http://mango.serotoninsoftware.com/servlet

I get your home page


Rgds


Keith
mlohbihler

Master
[Avatar]

Joined: 01/03/2007 22:48:52
Messages: 1456
Offline

As odd as it sounds, that is in fact the correct response. It implies that the requests can be successfully made from that machine.

So, you get the stack trace that manu reported above?

Best regards,
Matthew Lohbihler
manu

Initiate

Joined: 01/02/2008 08:03:49
Messages: 2
Offline

Thanks. Now I can read the help.
I modify
doc.url=http://mango.serotoninsoftware.com/servlet/mangoDocumentation
grove.url=http://mango.serotoninsoftware.com/servlet
 
Forum Index » Mango installation
Go to:   
Powered by JForum 2.1.9 © JForum Team