I just pushed a 2.1.2 snapshot to the java.net repository [1].
Please give that a shot.
Thanks,
-rl
[1]
<repository>
<id>maven2-repository.java.net</id>
<name>Java.net Repository for Maven</name>
<url>
http://download.java.net/maven/2/</url>
<layout>default</layout>
</repository>
On 7/28/11 8:12 AM, Oleksiy Stashok wrote:
> You can clone the git repo, build the project locally and the just
> refer 2.1.2-SNAPSHOT.
> We can publish 2.1.2 release candidate today/tomorrow.
>
> Thanks.
>
> WBR,
> Alexey.
>
> On 07/28/2011 04:11 PM, Jon Brisbin wrote:
>> Is there a snapshot repo that I can use from my gradle project? Or
>> will I just need to install the jars locally?
>>
>>
>> Thanks!
>>
>> Jon Brisbin
>> http//jbrisbin.com
>>
>>
>> ------------------------------------------------------------------------
>>
>> *From: *"Oleksiy Stashok" <oleksiy.stashok_at_oracle.com>
>> *To: *users_at_grizzly.java.net
>> *Sent: *Thursday, July 28, 2011 6:22:00 AM
>> *Subject: *Re: exception using ByteBufferManager
>>
>> Hi Jon,
>>
>> I've updated the sample [1], so you can try to uncomment couple
>> of lines to try direct buffers.
>> Only one thing - you need to use latest Grizzly trunk to run it.
>>
>> Thanks.
>>
>> WBR,
>> Alexey.
>>
>> [1]
>> http://java.net/projects/grizzly/sources/git/content/samples/http-server-samples/src/main/java/org/glassfish/grizzly/samples/httpserver/nonblockinghandler/UploadHttpHandlerSample.java
>>
>> On 07/27/2011 10:58 PM, Jon Brisbin wrote:
>>
>> I'm trying to use the ByteBufferManager in my application
>> because I'm hitting some issues with garbage collecting all
>> these byte arrays I'm allocating for writing uploads.
>> Whenever I try and allocate an object from it, though, I get
>> this exception:
>>
>> java.lang.ClassCastException: java.nio.DirectByteBuffer
>> cannot be cast to org.glassfish.grizzly.memory.HeapBuffer
>> at
>> org.glassfish.grizzly.memory.HeapMemoryManager$HeapBufferThreadLocalPool.reset(HeapMemoryManager.java:307)
>> at
>> org.glassfish.grizzly.memory.ByteBufferManager.reallocatePoolBuffer(ByteBufferManager.java:371)
>> at
>> org.glassfish.grizzly.memory.ByteBufferManager.allocateByteBuffer(ByteBufferManager.java:238)
>> at
>> org.glassfish.grizzly.memory.ByteBufferAware$allocateByteBuffer.call(Unknown
>> Source)
>>
>> Are there example of proper use of this somewhere?
>>
>> Thanks!
>>
>> Jon Brisbin
>> http//jbrisbin.com
>>
>>
>>
>>
>