Opened 14 years ago
Closed 14 years ago
#472 closed defect (fixed)
"Error 500" whenever I try and delete "organisation name"
Reported by: | osjonathan | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | v2.6.4 |
Component: | General | Version: | v2.6.3 |
Keywords: | Cc: |
Description
I'm trying to customise a metadata template by removing the "Individual name" from one of the two "contact" headings I have under the "metadata" branch. I press the little "x", then press "save" and it gives me a javascript error 100% of the time:
"Error: Could not save form/ status 500 text: Internal Server Error - Try again later"
The console / log error is:
2011-03-18 13:40:20,020 INFO [jeeves.request] - ========================================================== 2011-03-18 13:40:20,020 INFO [jeeves.request] - HTML Request (from 127.0.0.1) : /geonetwork/srv/en/metadata.update 2011-03-18 13:40:20,020 DEBUG [jeeves.request] - Method : POST 2011-03-18 13:40:20,020 DEBUG [jeeves.request] - Content type : application/x-www-form-urlencoded; charset=UTF-8 2011-03-18 13:40:20,020 DEBUG [jeeves.request] - Accept : text/javascript, text/html, application/xml, text/xml, */* 2011-03-18 13:40:20,020 DEBUG [jeeves.request] - Session id is uq2gxyt2x81h 2011-03-18 13:40:20,020 INFO [jeeves.service] - Dispatching : metadata.update 2011-03-18 13:40:20,020 DEBUG [jeeves.service] - -> parameters are : <request> <position>-1</position> <_73_codeListValue>publication</_73_codeListValue> <_119_codeListValue /> <licenseurl /> <_27 /> <_51 /> <_77 /> <_59_codeListValue /> <_23 /> <type /> <_55 /> <_25 /> <_53 /> <version>13</version> <_71 /> <child /> <id>13</id> <_47 /> <_11 /> <_9 /> <_49 /> <name /> <_67>Copy of Corp</_67> <fname /> <template>y</template> <_107 /> <editing>13</editing> <_29_codeListValue>pointOfContact</_29_codeListValue> <_101 /> <_19 /> <_17 /> <_41 /> <_123 /> <access /> <_75_codeListValue /> <_81_codeListValue /> <_85_codeListValue /> <_103_codeListValue>theme</_103_codeListValue> <_43 /> <_121 /> <showvalidationerrors>false</showvalidationerrors> <_35 /> <ref /> <_57 /> <_113_codeListValue /> <_79 /> <currTab>simple</currTab> <_109_codeListValue>place</_109_codeListValue> </request> 2011-03-18 13:40:20,020 ERROR [geonetwork.datamanager] - Element not found at ref = 35 2011-03-18 13:40:20,020 ERROR [jeeves.service] - Exception when executing service 2011-03-18 13:40:20,020 ERROR [jeeves.service] - (C) Exc : java.lang.NullPointerException 2011-03-18 13:40:20,020 DEBUG [jeeves.service] - Raised exception while executing service <error id="error"> <message /> <class>NullPointerException</class> <stack> <at class="org.fao.geonet.kernel.DataManager" file="DataManager.java" line="1570" method="updateMetadataEmbedded" /> <at class="org.fao.geonet.services.metadata.EditUtils" file="EditUtils.java" line="135" method="updateContent" /> <at class="org.fao.geonet.services.metadata.Update" file="Update.java" line="94" 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="399" method="dispatch" /> <at class="jeeves.server.JeevesEngine" file="JeevesEngine.java" line="670" method="dispatch" /> <at class="jeeves.server.sources.http.JeevesServlet" file="JeevesServlet.java" line="185" method="execute" /> <at class="jeeves.server.sources.http.JeevesServlet" file="JeevesServlet.java" line="108" method="doPost" /> <at class="javax.servlet.http.HttpServlet" file="HttpServlet.java" line="727" method="service" /> </stack> <request> <language>en</language> <service>metadata.update</service> </request> </error> 2011-03-18 13:40:20,020 INFO [jeeves.service] - -> dispatching to error for : metadata.update 2011-03-18 13:40:20,036 DEBUG [jeeves.engine] - TransformerFactoryFactory: de.fzi.dbs.xml.transform.CachingTransformerFactory 2011-03-18 13:40:20,036 DEBUG [jeeves.engine] - TransformerFactoryFactory: produces transformer implementation net.sf.saxon.IdentityTransformer 2011-03-18 13:40:20,036 INFO [jeeves.service] - -> transforming with stylesheet : C:\Program Files\geonetwork\web\geonetwork/xsl/error.xsl 2011-03-18 13:40:20,036 DEBUG [jeeves.engine] - TransformerFactoryFactory: de.fzi.dbs.xml.transform.CachingTransformerFactory 2011-03-18 13:40:20,036 DEBUG [jeeves.engine] - TransformerFactoryFactory: produces transformer implementation net.sf.saxon.IdentityTransformer 2011-03-18 13:40:20,051 INFO [jeeves.service] - -> end error transformation for : metadata.update 2011-03-18 13:40:20,051 INFO [jeeves.service] - -> error ended for : metadata.update
Attached is a zip for the template to help replicate it.
Change History (3)
comment:1 by , 14 years ago
comment:2 by , 14 years ago
Trying to delete the "position name" on the other contact entry does the same thing. Going to "XML view" after doing this brings up a HTML page with the very descriptive error:
"The requested operation could not be performed.
The only way to get it working again is with the "reset" button. I can delete it just fine in the raw XML and save that though.
comment:3 by , 14 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Tested after fix for #530 and seem ok now. Closing for now.
Ok, I can't upload the file. Firefox and IE both give "Missing or invalid form token. Do you have cookies enabled?" (yes, I do have cookies enabled on both). Opera just keeps uploading. It got to 100MB (for a 200kb file!) before I noticed and stopped it.
Below is the XML from metadata.xml inside that zip. Hopefully it's enough until the file uploader starts working: