Skip to content

netty 4.0.0.CR3 FileUpload renameTo throw java.lang.UnsupportedOperationException, but not always. #1414

@lurongbin

Description

@lurongbin

the exception info :
java.lang.UnsupportedOperationException
at io.netty.buffer.DefaultCompositeByteBuf.nioBuffer(DefaultCompositeByteBuf.java:1063)
at io.netty.buffer.AbstractByteBuf.nioBuffer(AbstractByteBuf.java:791)
at io.netty.handler.codec.http.multipart.AbstractMemoryHttpData.renameTo(AbstractMemoryHttpData.java:213)
at io.netty.handler.codec.http.multipart.MixedFileUpload.renameTo(MixedFileUpload.java:131)
at com.dsp.service.HttpUploadServerHandler.writeHttpData(HttpUploadServerHandler.java:274)
at com.dsp.service.HttpUploadServerHandler.readHttpDataAllReceive(HttpUploadServerHandler.java:177)
at com.dsp.service.HttpUploadServerHandler.messageReceived(HttpUploadServerHandler.java:153)

why? maybe ,i can get file from FileUpload, and rename?

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions