Thellmann / callimachus

Automatically exported from code.google.com/p/callimachus
Other
0 stars 0 forks source link

error creating an instance of my first class #4

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. New ontology called 'Project'
2. New class called 'Project'
3. Create a Project

Errors are shown below. Going back and doing those steps a second time seemed 
to work. 

http://localhost:8080/rdf/project/Project?create
No create template

No create template
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
    at sun.org.mozilla.javascript.internal.MemberBox.newInstance(MemberBox.java:156)
    at sun.org.mozilla.javascript.internal.NativeJavaClass.constructSpecific(NativeJavaClass.java:216)
    at sun.org.mozilla.javascript.internal.NativeJavaClass.construct(NativeJavaClass.java:172)
    at sun.org.mozilla.javascript.internal.Interpreter.interpretLoop(Interpreter.java:3117)
    at sun.org.mozilla.javascript.internal.Interpreter.interpret(Interpreter.java:2239)
    at sun.org.mozilla.javascript.internal.InterpretedFunction.call(InterpretedFunction.java:138)
    at sun.org.mozilla.javascript.internal.ScriptRuntime.applyOrCall(ScriptRuntime.java:2161)
    at sun.org.mozilla.javascript.internal.BaseFunction.execIdCall(BaseFunction.java:243)
    at sun.org.mozilla.javascript.internal.IdFunctionObject.call(IdFunctionObject.java:113)
    at sun.org.mozilla.javascript.internal.Interpreter.interpretLoop(Interpreter.java:3073)
    at sun.org.mozilla.javascript.internal.Interpreter.interpret(Interpreter.java:2239)
    at sun.org.mozilla.javascript.internal.InterpretedFunction.call(InterpretedFunction.java:138)
    at sun.org.mozilla.javascript.internal.ContextFactory.doTopCall(ContextFactory.java:323)
    at sun.org.mozilla.javascript.internal.ScriptRuntime.doTopCall(ScriptRuntime.java:2747)
    at sun.org.mozilla.javascript.internal.InterpretedFunction.call(InterpretedFunction.java:136)
    at com.sun.script.javascript.RhinoScriptEngine.invoke(RhinoScriptEngine.java:178)
    at com.sun.script.javascript.RhinoScriptEngine.invokeFunction(RhinoScriptEngine.java:142)
    at org.openrdf.repository.object.script.FunctionScriptFactory$1.eval(FunctionScriptFactory.java:141)
    at javax.script.CompiledScript.eval(CompiledScript.java:75)
    at org.openrdf.repository.object.script.EmbededScriptEngine.call(EmbededScriptEngine.java:274)
    at ns963ef59.GetCreatePage67686467Impl.GetCreatePage(GetCreatePage67686467Impl.java:47)
    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.openrdf.repository.object.composition.helpers.InvocationMessageContext.nextResponse(InvocationMessageContext.java:304)
    at org.openrdf.repository.object.composition.helpers.InvocationMessageContext.proceed(InvocationMessageContext.java:220)
    at sun.reflect.GeneratedMethodAccessor85.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.openrdf.repository.object.composition.helpers.InvocationMessageContext.invoke(InvocationMessageContext.java:146)
    at $Proxy20.proceed(Unknown Source)
    at object.behaviours.calli.CreatableOrCreator$GetCreatePage18c84382ProxyObjectBehaviour.GetCreatePage(CreatableOrCreator$GetCreatePage18c84382ProxyObjectBehaviour.java)
    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.openrdf.repository.object.composition.helpers.InvocationMessageContext.nextResponse(InvocationMessageContext.java:304)
    at org.openrdf.repository.object.composition.helpers.InvocationMessageContext.getFunctionalObjectResponse(InvocationMessageContext.java:257)
    at object.proxies._de4c0cbe14f0768b._EntityProxy94bf4108da8f09ac.GetCreatePage(_EntityProxy94bf4108da8f09ac.java)
    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.openrdf.http.object.model.ResourceOperation.invoke(ResourceOperation.java:576)
    at org.openrdf.http.object.handlers.InvokeHandler.invoke(InvokeHandler.java:86)
    at org.openrdf.http.object.handlers.InvokeHandler.handle(InvokeHandler.java:68)
    at org.openrdf.http.object.handlers.NotFoundHandler.handle(NotFoundHandler.java:53)
    at org.openrdf.http.object.handlers.AlternativeHandler.handle(AlternativeHandler.java:83)
    at org.openrdf.http.object.handlers.ResponseExceptionHandler.handle(ResponseExceptionHandler.java:69)
    at org.openrdf.http.object.handlers.OptionsHandler.handle(OptionsHandler.java:100)
    at org.openrdf.http.object.handlers.LinksHandler.handle(LinksHandler.java:75)
    at org.openrdf.http.object.handlers.ModifiedSinceHandler.handle(ModifiedSinceHandler.java:87)
    at org.openrdf.http.object.handlers.UnmodifiedSinceHandler.handle(UnmodifiedSinceHandler.java:65)
    at org.openrdf.http.object.handlers.ContentHeadersHandler.handle(ContentHeadersHandler.java:74)
    at org.openrdf.http.object.handlers.AuthenticationHandler.handle(AuthenticationHandler.java:119)
    at org.openrdf.http.object.tasks.ProcessTask.handle(ProcessTask.java:174)
    at org.openrdf.http.object.tasks.ProcessTask.perform(ProcessTask.java:124)
    at org.openrdf.http.object.tasks.Task.run(Task.java:156)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    at java.lang.Thread.run(Thread.java:619)

04:19   127.0.0.1   /user/drewp "GET /rdf/project/Project?create HTTP/1.1" 500
04:19   127.0.0.1   -   "GET /layout/template.css HTTP/1.1" 304
04:19   127.0.0.1   -   "GET /callimachus/scripts/web_bundle?source HTTP/1.1" 304
04:19   127.0.0.1   -   "GET /layout/jquery-ui.css HTTP/1.1" 200
04:19   127.0.0.1   -   "GET /callimachus/operations/create.js HTTP/1.1" 200
04:19   127.0.0.1   -   "GET http://localhost:8080/callimachus/scripts/jquery-ui.js 
HTTP/1.1" 200
04:19   127.0.0.1   -   "GET 
http://localhost:8080/callimachus/scripts/jquery.rdfquery.rdfa.js HTTP/1.1" 200
04:19   127.0.0.1   -   "GET 
http://localhost:8080/callimachus/scripts/jquery.validate.js HTTP/1.1" 200
04:19   127.0.0.1   -   "GET 
http://localhost:8080/callimachus/scripts/data-options.js HTTP/1.1" 200
04:19   127.0.0.1   -   "GET 
http://localhost:8080/callimachus/scripts/input-property.js HTTP/1.1" 200
04:19   127.0.0.1   -   "GET 
http://localhost:8080/callimachus/scripts/resource-iri.js HTTP/1.1" 200
04:19   127.0.0.1   -   "GET http://localhost:8080/callimachus/scripts/data-more.js 
HTTP/1.1" 200
04:19   127.0.0.1   -   "GET http://localhost:8080/callimachus/scripts/data-add.js 
HTTP/1.1" 200
04:19   127.0.0.1   -   "GET http://localhost:8080/callimachus/scripts/data-member.js 
HTTP/1.1" 200
04:19   127.0.0.1   -   "GET 
http://localhost:8080/callimachus/scripts/document-ready.js HTTP/1.1" 200
04:19   127.0.0.1   -   "GET http://localhost:8080/callimachus/scripts/focus.js 
HTTP/1.1" 200
04:19   http://localhost:8080/callimachus/scripts/jquery.rdfquery.rdfa.js:240: 
WARNING - Parse error. expecting a variable name in a @param tag
   * @returns {jQuery.uri}
     ^

04:19   http://localhost:8080/callimachus/scripts/jquery.rdfquery.rdfa.js:404: 
WARNING - Parse error. expected closing }
 * @param {String|Object|String[]} prefix The prefix(es) of the XML namespace bindings that are to be removed from the selected elements.
                               ^

04:19   http://localhost:8080/callimachus/scripts/jquery.rdfquery.rdfa.js:404: 
WARNING - Parse error. expecting a variable name in a @param tag
 * @param {String|Object|String[]} prefix The prefix(es) of the XML namespace bindings that are to be removed from the selected elements.
                               ^

04:19   http://localhost:8080/callimachus/scripts/jquery.rdfquery.rdfa.js:857: 
WARNING - Parse error. missing closing ]
    * @param {string} [options.reservedNamespace='http://www.w3.org/1999/xhtml/vocab#'] The namespace to apply to a CURIE that has no prefix and either starts with a colon or is in the list of reserved local names
                                                      ^

04:19   http://localhost:8080/callimachus/scripts/jquery.rdfquery.rdfa.js:860: 
WARNING - Parse error. expected closing }
    * @param {string[]} [options.reserved=['alternate', 'appendix', 'bookmark', 'cite', 'chapter', 'contents', 'copyright', 'first', 'glossary', 'help', 'icon', 'index', 'last', 'license', 'meta', 'next', 'p3pv1', 'prev', 'role', 'section', 'stylesheet', 'subsection', 'start', 'top', 'up']] A list of local names that will always be mapped to the URI specified by reservedNamespace.
                    ^

04:19   http://localhost:8080/callimachus/scripts/jquery.rdfquery.rdfa.js:860: 
WARNING - Parse error. expecting a variable name in a @param tag
    * @param {string[]} [options.reserved=['alternate', 'appendix', 'bookmark', 'cite', 'chapter', 'contents', 'copyright', 'first', 'glossary', 'help', 'icon', 'index', 'last', 'license', 'meta', 'next', 'p3pv1', 'prev', 'role', 'section', 'stylesheet', 'subsection', 'start', 'top', 'up']] A list of local names that will always be mapped to the URI specified by reservedNamespace.
                    ^

04:19   http://localhost:8080/callimachus/scripts/jquery.rdfquery.rdfa.js:922: 
WARNING - Parse error. missing closing ]
    * @param {string} [options.reservedNamespace='http://www.w3.org/1999/xhtml/vocab#'] The namespace to apply to a CURIE that has no prefix and either starts with a colon or is in the list of reserved local names
                                                      ^

04:19   http://localhost:8080/callimachus/scripts/jquery.rdfquery.rdfa.js:925: 
WARNING - Parse error. expected closing }
    * @param {string[]} [options.reserved=['alternate', 'appendix', 'bookmark', 'cite', 'chapter', 'contents', 'copyright',
                    ^

04:19   http://localhost:8080/callimachus/scripts/jquery.rdfquery.rdfa.js:925: 
WARNING - Parse error. expecting a variable name in a @param tag
    * @param {string[]} [options.reserved=['alternate', 'appendix', 'bookmark', 'cite', 'chapter', 'contents', 'copyright',
                    ^

04:19   http://localhost:8080/callimachus/scripts/jquery.rdfquery.rdfa.js:947: 
WARNING - Parse error. missing closing ]
    * @param {string} [options.reservedNamespace='http://www.w3.org/1999/xhtml/vocab#']
                                                      ^

04:19   http://localhost:8080/callimachus/scripts/jquery.rdfquery.rdfa.js:956: 
WARNING - Parse error. expected closing }
    * @param {string[]} [options.reserved=['alternate', 'appendix', 'bookmark', 'cite', 'chapter', 'contents', 'copyright',
                    ^

04:19   http://localhost:8080/callimachus/scripts/jquery.rdfquery.rdfa.js:956: 
WARNING - Parse error. expecting a variable name in a @param tag
    * @param {string[]} [options.reserved=['alternate', 'appendix', 'bookmark', 'cite', 'chapter', 'contents', 'copyright',
                    ^

04:19   http://localhost:8080/callimachus/scripts/jquery.rdfquery.rdfa.js:1899: 
WARNING - Parse error. expected closing }
   * @param {jQuery.rdf.triple[]} [options.triples] A set of triples over which the query operates; this is only used if options.databank isn't specified, in which case a new databank with these triples is generated.
                              ^

04:19   http://localhost:8080/callimachus/scripts/jquery.rdfquery.rdfa.js:1899: 
WARNING - Parse error. expecting a variable name in a @param tag
   * @param {jQuery.rdf.triple[]} [options.triples] A set of triples over which the query operates; this is only used if options.databank isn't specified, in which case a new databank with these triples is generated.
                              ^

04:19   http://localhost:8080/callimachus/scripts/jquery.rdfquery.rdfa.js:2266: 
WARNING - Parse error. expected closing }
     * @param {String[]} [bindings] The variables that you're interested in. The returned objects will only contain those variables. If bindings is undefined, you will get all the variable bindings in the returned objects.
                     ^

04:19   http://localhost:8080/callimachus/scripts/jquery.rdfquery.rdfa.js:2266: 
WARNING - Parse error. expecting a variable name in a @param tag
     * @param {String[]} [bindings] The variables that you're interested in. The returned objects will only contain those variables. If bindings is undefined, you will get all the variable bindings in the returned objects.
                     ^

04:19   http://localhost:8080/callimachus/scripts/jquery.rdfquery.rdfa.js:2267: 
WARNING - Parse error. expected closing }
     * @returns {Object[]} An array of objects with the properties named by the bindings parameter.
                       ^

04:19   http://localhost:8080/callimachus/scripts/jquery.rdfquery.rdfa.js:2291: 
WARNING - Parse error. expected closing }
     * @param {(String|jQuery.rdf.resource)[]} bindings An array that can contain strings, {@link jQuery.rdf.resource}s or a mixture of the two. Any strings that begin with a question mark (<code>?</code>) are taken as variable names; each matching resource is described by the function.
                                           ^

04:19   http://localhost:8080/callimachus/scripts/jquery.rdfquery.rdfa.js:2291: 
WARNING - Parse error. expecting a variable name in a @param tag
     * @param {(String|jQuery.rdf.resource)[]} bindings An array that can contain strings, {@link jQuery.rdf.resource}s or a mixture of the two. Any strings that begin with a question mark (<code>?</code>) are taken as variable names; each matching resource is described by the function.
                                           ^

04:19   http://localhost:8080/callimachus/scripts/jquery.rdfquery.rdfa.js:2417: 
WARNING - Parse error. expected closing }
     * @returns {Object[]|Object} Returns either a single Object representing variable bindings or an array of such.
                       ^

04:19   http://localhost:8080/callimachus/scripts/jquery.rdfquery.rdfa.js:2493: 
WARNING - Parse error. expected closing }
   * @param {jQuery.rdf.triple[]} triples An array (or {@link jQuery} object) of {@link jQuery.rdf.triple}s.
                              ^

04:19   http://localhost:8080/callimachus/scripts/jquery.rdfquery.rdfa.js:2493: 
WARNING - Parse error. expecting a variable name in a @param tag
   * @param {jQuery.rdf.triple[]} triples An array (or {@link jQuery} object) of {@link jQuery.rdf.triple}s.
                              ^

04:19   http://localhost:8080/callimachus/scripts/jquery.rdfquery.rdfa.js:2507: 
WARNING - Parse error. missing closing ]
   * @param {Object} [options.namespaces={}] A set of namespace bindings used when mapping resource URIs to CURIEs or QNames (particularly in a RDF/XML serialisation).
                                         ^

04:19   http://localhost:8080/callimachus/scripts/jquery.rdfquery.rdfa.js:2603: 
WARNING - Parse error. expected closing }
   * @param {(String|jQuery.rdf.triple)[]} [triples=[]] An array of triples to store in the databank.
                                       ^

04:19   http://localhost:8080/callimachus/scripts/jquery.rdfquery.rdfa.js:2603: 
WARNING - Parse error. expecting a variable name in a @param tag
   * @param {(String|jQuery.rdf.triple)[]} [triples=[]] An array of triples to store in the databank.
                                       ^

04:19   http://localhost:8080/callimachus/scripts/jquery.rdfquery.rdfa.js:2835: 
WARNING - Parse error. expected closing }
     * @param {(String|jQuery.rdf.resource)[]} resources An array that can contain strings, {@link jQuery.rdf.resource}s or a mixture of the two.
                                           ^

04:19   http://localhost:8080/callimachus/scripts/jquery.rdfquery.rdfa.js:2835: 
WARNING - Parse error. expecting a variable name in a @param tag
     * @param {(String|jQuery.rdf.resource)[]} resources An array that can contain strings, {@link jQuery.rdf.resource}s or a mixture of the two.
                                           ^

04:19   http://localhost:8080/callimachus/scripts/jquery.rdfquery.rdfa.js:4381: 
WARNING - Parse error. expected closing }
   * @param {Object|Object[]} triple The RDFa markup items to be removed
                          ^

04:19   http://localhost:8080/callimachus/scripts/jquery.rdfquery.rdfa.js:4381: 
WARNING - Parse error. expecting a variable name in a @param tag
   * @param {Object|Object[]} triple The RDFa markup items to be removed
                          ^

04:19   0 error(s), 29 warning(s)

Original issue reported on code.google.com by drewpca on 10 Jun 2011 at 4:45

GoogleCodeExporter commented 9 years ago
The error "No create template" means that the class has no create template 
associated with it. A create template can be added using the edit tab of the 
class.

In version 0.10 click "Ontologies" in the menu on the left; click on your 
ontology label, click on your class label, click the edit tab at the top.

Near the bottom is a page template section that includes create, copy, view, 
and edit templates. Click the button under the Create template label to open a 
dialogue for the name of the template. Click create in the dialogue then save 
in the class edit page.

Once a create template is created and saved you can use the create link from 
the class page.

If you need more help or have other questions please post a message to the 
discussion group at
http://groups.google.com/group/callimachus-discuss

Original comment by *...@talis.com on 10 Jun 2011 at 6:53

GoogleCodeExporter commented 9 years ago
The create link in 0.11 will not be shown unless a create template has already 
been created.

Original comment by ja...@3roundstones.com on 7 Jul 2011 at 2:44