[GeoNetwork-devel] Ask about Login problem...!!

Hi all,

I am using Geonetwork v2.1. One day, I met a problem. That is I can not log
in my Geonetwork web application. I tried to restart my Tomcat server but
nothing happened.

Can you tell me how to solve it?
Thanks,

Here is my log:

2007-11-27 15:30:46,267 INFO [jeeves.request] -
2007-11-27 15:30:46,268 INFO [jeeves.request] - HTML Request (from
127.0.0.1) : /hcmgisportal/srv/vi/user.login
2007-11-27 15:30:46,268 DEBUG [jeeves.request] - Method : POST
2007-11-27 15:30:46,268 DEBUG [jeeves.request] - Content type :
application/x-www-form-urlencoded
2007-11-27 15:30:46,268 DEBUG [jeeves.request] - Accept :
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
2007-11-27 15:30:46,270 INFO [jeeves.service] - Dispatching : user.login
2007-11-27 15:30:46,270 DEBUG [jeeves.service] - -> parameters are :
<request>
  <password>admin</password>
  <username>admin</username>
</request>
2007-11-27 15:30:46,270 ERROR [jeeves.service] - Exception when executing
service
2007-11-27 15:30:46,271 ERROR [jeeves.service] - (C) Exc :
java.lang.NullPointerException
2007-11-27 15:30:46,272 DEBUG [jeeves.service] - Raised exception while
executing service
<error id="error">
  <message />
  <class>NullPointerException</class>
  <stack>
    <at class="org.fao.geonet.services.login.Login" file="Login.java"
line="67" method="exec" />
    <at class="jeeves.server.dispatchers.ServiceInfo"
file="ServiceInfo.java" line="238" method="execService" />
    <at class="jeeves.server.dispatchers.ServiceInfo"
file="ServiceInfo.java" line="141" method="execServices" />
    <at class="jeeves.server.dispatchers.ServiceManager"
file="ServiceManager.java" line="372" method="dispatch" />
    <at class="jeeves.server.JeevesEngine" file="JeevesEngine.java"
line="600" method="dispatch" />
    <at class="jeeves.server.sources.http.JeevesServlet"
file="JeevesServlet.java" line="163" method="execute" />
    <at class="jeeves.server.sources.http.JeevesServlet"
file="JeevesServlet.java" line="98" method="doPost" />
    <at class="javax.servlet.http.HttpServlet" file="HttpServlet.java"
line="710" method="service" />
    <at class="javax.servlet.http.HttpServlet" file="HttpServlet.java"
line="803" method="service" />
    <at class="org.apache.catalina.core.ApplicationFilterChain"
file="ApplicationFilterChain.java" line="290" method="internalDoFilter" />
  </stack>
  <request>
    <language>vi</language>
    <service>user.login</service>
  </request>
</error>
2007-11-27 15:30:46,272 INFO [jeeves.service] - -> dispatching to error
for : user.login
2007-11-27 15:30:46,419 ERROR [jeeves.service] - Exception executing gui
service : java.lang.NullPointerException
2007-11-27 15:30:46,419 ERROR [jeeves.service] - (C) Stack trace is :
java.lang.NullPointerException
        at org.fao.geonet.guiservices.util.Env.exec(Env.java:53)
        at jeeves.server.dispatchers.guiservices.Call.exec(Call.java:75)
        at
jeeves.server.dispatchers.AbstractPage.invokeGuiService(AbstractPage.java:119)
        at
jeeves.server.dispatchers.AbstractPage.invokeGuiServices(AbstractPage.java:103)
        at
jeeves.server.dispatchers.ServiceManager.dispatchError(ServiceManager.java:668)
        at
jeeves.server.dispatchers.ServiceManager.handleError(ServiceManager.java:460)
        at
jeeves.server.dispatchers.ServiceManager.dispatch(ServiceManager.java:405)
        at jeeves.server.JeevesEngine.dispatch(JeevesEngine.java:600)
        at
jeeves.server.sources.http.JeevesServlet.execute(JeevesServlet.java:163)
        at
jeeves.server.sources.http.JeevesServlet.doPost(JeevesServlet.java:98)
        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(ApplicationFilterChain.java:290)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
        at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
        at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
        at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
        at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)
        at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
        at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584)
        at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
        at java.lang.Thread.run(Thread.java:619)

2007-11-27 15:30:46,423 INFO [jeeves.service] - -> transforming with
stylesheet :
/home/phamvubinh/SVN_STORAGE/HCMGisPortal/trunk/source/web/hcmgisportal/xsl/error.xsl
2007-11-27 15:30:46,833 INFO [jeeves.service] - -> end error
transformation for : user.login
2007-11-27 15:30:46,834 INFO [jeeves.service] - -> error ended for :
user.login

--
View this message in context: http://www.nabble.com/Ask-about-Login-problem...!!-tf4880410s18419.html#a13966758
Sent from the geonetwork-devel mailing list archive at Nabble.com.

Hi:
I´m trying to develop a geonetwork client to get information from a remote geoserver
I have modified a little gn_search.js and included all relevant javascript files from geonetwork
and from Intermap. I can get the advanced search form via:

http://localhost:8084/geonetwork/srv/en/main.searchform.advanced.embedded

and initilize the map. The problem I have found is when calling:

http://localhost:8084/intermap/srv/en/map.action?maptool=zoomin&mapimgx=36&mapimgy=59&mapimgx2=83&mapimgy2=34&width=200&height=100&northBL=90&eastBL=180&southBL=-90&westBL=-180

The service execution itself is successful but it returns and image url /intermap/tmp/null. I think this is a problem with
user session, because MapMerger.merge is not getting any ImageUrl.

Any idea about solving this problem?

Best regards
Godofredo Contreras


Your smile counts. The more smiles you share, the more we donate. Join in!

Hi Godofredo,

make sure your session has a properly initialized map context.
You can do it by having a first call to map.update.

Also make sure your default context (the one set in mapservers.xml) contains
reachable map servers. You can check the server log to find out if the
getCapabilities requests succeeded.

   Cheers,
   Emanuele Tajariol

Alle 23:14:34 di giovedì 29 novembre 2007, godofredo contreras ha scritto:

Hi:
    I´m trying to develop a geonetwork client to get information from a
remote geoserver I have modified a little gn_search.js and included all
relevant javascript files from geonetwork and from Intermap. I can get the
advanced search form via:

http://localhost:8084/geonetwork/srv/en/main.searchform.advanced.embedded

and initilize the map. The problem I have found is when calling:

http://localhost:8084/intermap/srv/en/map.action?maptool=zoomin&mapimgx=36&
mapimgy=59&mapimgx2=83&mapimgy2=34&width=200&height=100&northBL=90&eastBL=18
0&southBL=-90&westBL=-180

The service execution itself is successful but it returns and image url
/intermap/tmp/null. I think this is a problem with user session, because
MapMerger.merge is not getting any ImageUrl.

Any idea about solving this problem?

Best regards
Godofredo Contreras

_________________________________________________________________
Your smile counts. The more smiles you share, the more we donate. Join in.
www.windowslive.com/smile?ocid=TXT_TAGLM_Wave2_oprsmilewlhmtagline