hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "stack (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HBASE-2905) Nullpointer Exception is throwed when insert mass data via rest interface
Date Mon, 09 Aug 2010 14:08:16 GMT

    [ https://issues.apache.org/jira/browse/HBASE-2905?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12896553#action_12896553
] 

stack commented on HBASE-2905:
------------------------------

+1

What you think Andrew?

> Nullpointer Exception is throwed when insert mass data via rest interface
> -------------------------------------------------------------------------
>
>                 Key: HBASE-2905
>                 URL: https://issues.apache.org/jira/browse/HBASE-2905
>             Project: HBase
>          Issue Type: Bug
>          Components: rest
>    Affects Versions: 0.89.20100621
>         Environment: CentOS 5.2 x86_64, HBase 0.89
>            Reporter: Sandy Yin
>            Assignee: Sandy Yin
>             Fix For: 0.90.0
>
>         Attachments: HBase-2905-89.patch
>
>
> Nullpointer Exception is throwed when insert mass data via rest interface.
> {code}
> java.lang.NullPointerException
> 	at org.mortbay.io.ByteArrayBuffer.wrap(ByteArrayBuffer.java:361)
> 	at org.mortbay.jetty.AbstractGenerator$Output.write(AbstractGenerator.java:588)
> 	at com.sun.jersey.spi.container.servlet.WebComponent$Writer.write(WebComponent.java:233)
> 	at com.sun.jersey.spi.container.ContainerResponse$CommittingOutputStream.write(ContainerResponse.java:108)
> 	at org.apache.hadoop.hbase.rest.provider.producer.ProtobufMessageBodyProducer.writeTo(ProtobufMessageBodyProducer.java:78)
> 	at com.sun.jersey.spi.container.ContainerResponse.write(ContainerResponse.java:254)
> 	at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:744)
> 	at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:667)
> 	at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:658)
> 	at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:318)
> 	at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:425)
> 	at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:604)
> 	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:389)
> 	at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
> 	at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
> 	at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
> 	at org.mortbay.jetty.Server.handle(Server.java:326)
> 	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:747)
> 	at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)
> 	at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
> 	at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
> 	at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:520)
> {code}
> The issue is caused by using WeakHashMap as buffer. When get the object from the buffer,
the JVM gc possible has removed the object.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message