Creating new position


#1

When I tried to add a new position via web ui, I got such error log as follows. I tried an integer 1 as quantity and scheme type CUSIP, and a cusip value that exists in security table.
my ui shows all the example values loaded. I am running the example server completely on postgres db.

ui shows like this http://twitpic.com/9fmkkv

very thankful if I get some help.

======== OPENGAMMA STARTED in 45950ms ========
[java] 18:10:41.412 [qtp16519624-80] WARN c.o.f.s.equity.GICSCodeDescription - Unable to find S&P GCIS Code Mapping file ‘gics_map.xls’ in classpath; unable to use GICS Codes: java.io.IOException: Stream closed
[java] 18:11:01.602 [qtp16519624-82] WARN c.o.u.rest.AbstractExceptionMapper - RESTful web-service exception caught and tunnelled to client
[java] java.lang.NullPointerException: null
[java] at com.opengamma.web.position.WebPositionsResource.addPosition(WebPositionsResource.java:234) [og-web-1.0.0-local-20120413103442.jar:na]
[java] at com.opengamma.web.position.WebPositionsResource.postJSON(WebPositionsResource.java:213) [og-web-1.0.0-local-20120413103442.jar:na]
[java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [na:1.6.0_22]
[java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [na:1.6.0_22]
[java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [na:1.6.0_22]
[java] at java.lang.reflect.Method.invoke(Method.java:616) [na:1.6.0_22]
[java] at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ResponseOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:184) [jersey-server-1.3.jar:1.3]
[java] at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:67) [jersey-server-1.3.jar:1.3]
[java] at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:276) [jersey-server-1.3.jar:1.3]
[java] at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:83) [jersey-server-1.3.jar:1.3]
[java] at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:133) [jersey-server-1.3.jar:1.3]
[java] at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:71) [jersey-server-1.3.jar:1.3]
[java] at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1171) [jersey-server-1.3.jar:1.3]
[java] at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1103) [jersey-server-1.3.jar:1.3]
[java] at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1053) [jersey-server-1.3.jar:1.3]
[java] at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1043) [jersey-server-1.3.jar:1.3]
[java] at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:406) [jersey-server-1.3.jar:1.3]
[java] at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:477) [jersey-server-1.3.jar:1.3]
[java] at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:662) [jersey-server-1.3.jar:1.3]
[java] at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) [servletapi-2.5.jar:2.5]
[java] at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:530) [jetty-servlet-7.0.1.v20091125.jar:7.0.1.v20091125]
[java] at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:427) [jetty-servlet-7.0.1.v20091125.jar:7.0.1.v20091125]
[java] at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119) [jetty-server-7.0.1.v20091125.jar:7.0.1.v20091125]
[java] at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:494) [jetty-security-7.0.1.v20091125.jar:7.0.1.v20091125]
[java] at org.eclipse.jetty.server.session.SessionHandler.handle(SessionHandler.java:182) [jetty-server-7.0.1.v20091125.jar:7.0.1.v20091125]
[java] at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:933) [jetty-server-7.0.1.v20091125.jar:7.0.1.v20091125]
[java] at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:362) [jetty-servlet-7.0.1.v20091125.jar:7.0.1.v20091125]
[java] at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:867) [jetty-server-7.0.1.v20091125.jar:7.0.1.v20091125]
[java] at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117) [jetty-server-7.0.1.v20091125.jar:7.0.1.v20091125]
[java] at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:126) [jetty-server-7.0.1.v20091125.jar:7.0.1.v20091125]
[java] at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:113) [jetty-server-7.0.1.v20091125.jar:7.0.1.v20091125]
[java] at org.eclipse.jetty.server.Server.handle(Server.java:334) [jetty-server-7.0.1.v20091125.jar:7.0.1.v20091125]
[java] at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:559) [jetty-server-7.0.1.v20091125.jar:7.0.1.v20091125]
[java] at org.eclipse.jetty.server.HttpConnection$RequestHandler.content(HttpConnection.java:1007) [jetty-server-7.0.1.v20091125.jar:7.0.1.v20091125]
[java] at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:747) [jetty-http-7.0.1.v20091125.jar:7.0.1.v20091125]
[java] at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:209) [jetty-http-7.0.1.v20091125.jar:7.0.1.v20091125]
[java] at org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:406) [jetty-server-7.0.1.v20091125.jar:7.0.1.v20091125]
[java] at org.eclipse.jetty.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:462) [jetty-io-7.0.1.v20091125.jar:7.0.1.v20091125]
[java] at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:436) [jetty-util-7.0.1.v20091125.jar:7.0.1.v20091125]
[java] at java.lang.Thread.run(Thread.java:679) [na:1.6.0_22]


#2

I am investigating your problem and will get back to you shortly.