Opened 16 years ago

Closed 15 years ago

#102 closed defect (fixed)

FileNotFoundException in metadata insert

Reported by: chrisheyne Owned by: geonetwork-devel@…
Priority: major Milestone: v2.4.0 RC2
Component: User interface (web) Version: v2.4.0 RC1
Keywords: 2.4 metadata insert Cc:

Description

Metadata insert of text fails with the following error:

HTTP ERROR: 400
Cannot build ServiceRequest
Cause : C:\Program Files\geonetwork\web\geonetwork\..\..\data\tmp (Access is denied)
Error : java.io.FileNotFoundException
RequestURI=/geonetwork/srv/en/metadata.insert
Powered by Jetty://

From geonetwork log:

2009-05-05 09:22:21,853 INFO  [jeeves.request] - ==========================================================
2009-05-05 09:22:21,853 INFO  [jeeves.request] - HTML Request (from 10.8.17.130) : /geonetwork/srv/en/metadata.insert
2009-05-05 09:22:21,853 DEBUG [jeeves.request] - Method       : POST
2009-05-05 09:22:21,853 DEBUG [jeeves.request] - Content type : multipart/form-data; boundary=---------------------------265001916915724
2009-05-05 09:22:21,853 DEBUG [jeeves.request] - Accept       : text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
2009-05-05 09:22:21,853 DEBUG [jeeves.request] - Session id is 1kx8k62fsz3bz
2009-05-05 09:22:21,963 DEBUG [jeeves.request] - Uploading file  type: application/octet-stream size: 0
2009-05-05 09:22:21,963 DEBUG [jeeves.request] - File is called  after simplification
2009-05-05 09:22:21,963 ERROR [jeeves.request] - Cannot build ServiceRequest
Cause : C:\Program Files\geonetwork\web\geonetwork\..\..\data\tmp (Access is denied)
Error : java.io.FileNotFoundException
Stack :
java.io.FileNotFoundException: C:\Program Files\geonetwork\web\geonetwork\..\..\data\tmp (Access is denied)
	at java.io.FileOutputStream.open(Native Method)
	at java.io.FileOutputStream.<init>(Unknown Source)
	at java.io.FileOutputStream.<init>(Unknown Source)
	at org.apache.commons.fileupload.disk.DiskFileItem.write(DiskFileItem.java:416)
	at jeeves.server.sources.ServiceRequestFactory.getMultipartParams(ServiceRequestFactory.java:293)
	at jeeves.server.sources.ServiceRequestFactory.extractParameters(ServiceRequestFactory.java:240)
	at jeeves.server.sources.ServiceRequestFactory.create(ServiceRequestFactory.java:140)
	at jeeves.server.sources.http.JeevesServlet.execute(JeevesServlet.java:147)
	at jeeves.server.sources.http.JeevesServlet.doPost(JeevesServlet.java:99)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
	at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:502)
	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:363)
	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.webapp.WebAppContext.handle(WebAppContext.java:417)
	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.Server.handle(Server.java:324)
	at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:534)
	at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:879)
	at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:741)
	at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:213)
	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)

Steps to reproduce:

 1. Login
 2. Select Administration menu
 3. Select Metadata insert
 4. Select copy/paste
 5. Enter metadata
 6. Click Insert

Change History (1)

comment:1 by ticheler, 15 years ago

Milestone: v2.4.0 RC2
Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.