Skip to content

Instantly share code, notes, and snippets.

@palexander
Created February 12, 2013 21:59
Show Gist options
  • Save palexander/4773824 to your computer and use it in GitHub Desktop.
Save palexander/4773824 to your computer and use it in GitHub Desktop.
Ontology submission zip error
org.ncbo.stanford.service.ontology.AbstractOntologyService ERROR - 2013-02-04 03:51:11,509 - Error in OntologyService:uploadOntologyFile()! - remote file (fileItem) /srv/ncbo/bioportal_resources/uploads/1005/1 (Is a directory)
java.io.FileNotFoundException: /srv/ncbo/bioportal_resources/uploads/1005/1 (Is a directory)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:194)
at java.io.FileOutputStream.<init>(FileOutputStream.java:84)
at org.ncbo.stanford.util.CompressionUtils.extractFiles(CompressionUtils.java:126)
at org.ncbo.stanford.util.CompressionUtils.unzip(CompressionUtils.java:58)
at org.ncbo.stanford.util.CompressionUtils.uncompress(CompressionUtils.java:41)
at org.ncbo.stanford.util.ontologyfile.compressedfilehandler.AbstractCompressedFileHandler.handle(AbstractCompressedFileHandler.java:35)
at org.ncbo.stanford.util.ontologyfile.compressedfilehandler.impl.RRFCompressedFileHandlerImpl.handle(RRFCompressedFileHandlerImpl.java:27)
at org.ncbo.stanford.util.ontologyfile.pathhandler.impl.CommonsFileUploadFilePathHandlerImpl.processOntologyFileUpload(CommonsFileUploadFilePathHandlerImpl.java:95)
at org.ncbo.stanford.service.ontology.AbstractOntologyService.uploadOntologyFile(AbstractOntologyService.java:135)
at org.ncbo.stanford.service.ontology.impl.OntologyServiceMetadataImpl.createOntologyOrView(OntologyServiceMetadataImpl.java:73)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at $Proxy14.createOntologyOrView(Unknown Source)
at org.ncbo.stanford.view.rest.restlet.ontology.OntologiesRestlet.createOntology(OntologiesRestlet.java:129)
at org.ncbo.stanford.view.rest.restlet.ontology.OntologiesRestlet.postRequest(OntologiesRestlet.java:48)
at org.ncbo.stanford.view.rest.restlet.AbstractBaseRestlet.handle(AbstractBaseRestlet.java:56)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment