aspose file tools*
The moose likes Websphere and the fly likes Problems in file upload to DB2 on AIX via WAS6.1 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Websphere
Bookmark "Problems in file upload to DB2 on AIX via WAS6.1" Watch "Problems in file upload to DB2 on AIX via WAS6.1" New topic
Author

Problems in file upload to DB2 on AIX via WAS6.1

Abhik Datta
Greenhorn

Joined: Sep 10, 2008
Posts: 2
While trying to upload files with size > 450 mb to a db2 blob column in AIX, we are getting following exception (we use WAS 6.1 with heap size 512 Mb, db2 9.5 and struts 1.2)

same code works in localhost on windows xp

we are getting the inputstream from formfile object and setting it in dto.


------Start of DE processing------ = [9/10/08 8:01:51:930 GMT] , key = java.io.IOException com.i
bm.ws.webcontainer.channel.WCCByteBufferInputStream 102
Exception = java.io.IOException
Source = com.ibm.ws.webcontainer.channel.WCCByteBufferInputStream
probeid = 102
Stack Dump = java.io.IOException: Async IO operation failed, reason: RC: 76 Socket is not conne
cted

at com.ibm.io.async.AbstractAsyncChannel.multiIO(AbstractAsyncChannel.java:474)
at com.ibm.io.async.AsyncSocketChannelHelper.read(AsyncSocketChannelHelper.java:217)
at com.ibm.ws.tcp.channel.impl.AioSocketIOChannel.readAIOSync(AioSocketIOChannel.java:20
5)
at com.ibm.ws.tcp.channel.impl.AioTCPReadRequestContextImpl.processSyncReadRequest(AioTC
PReadRequestContextImpl.java:150)
at com.ibm.ws.tcp.channel.impl.TCPReadRequestContextImpl.read(TCPReadRequestContextImpl.
java:109)
at com.ibm.ws.ssl.channel.impl.SSLReadServiceContext.read(SSLReadServiceContext.java:226
)
at com.ibm.ws.http.channel.impl.HttpServiceContextImpl.fillABuffer(HttpServiceContextImp
l.java:4127)
at com.ibm.ws.http.channel.impl.HttpServiceContextImpl.readSingleBlock(HttpServiceContex
tImpl.java:3371)
at com.ibm.ws.http.channel.impl.HttpServiceContextImpl.readBodyBuffer(HttpServiceContext
Impl.java:3476)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundServiceContextImpl.getRequestBodyBuff
er(HttpInboundServiceContextImpl.java:1606)
at com.ibm.ws.webcontainer.channel.WCCByteBufferInputStream.bufferIsGood(WCCByteBufferIn
putStream.java:109)
at com.ibm.ws.webcontainer.channel.WCCByteBufferInputStream.read(WCCByteBufferInputStrea
m.java:79)
at com.ibm.ws.webcontainer.srt.http.HttpInputStream.read(HttpInputStream.java:294)
at org.apache.commons.fileupload.MultipartStream.readBodyData(MultipartStream.java:575)
at org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:394)
at org.apache.struts.upload.CommonsMultipartRequestHandler.handleRequest(CommonsMultipar
tRequestHandler.java:233)
at org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1209)
at org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.java:821)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:254)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1068)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:543)
at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:47
8)
at com.ibm.ws.webcontainer.servlet.CacheServletWrapper.handleRequest(CacheServletWrapper
.java:90)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:744)
at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1455)
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:115)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInbound
Link.java:454)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInbound
Link.java:383)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:263)
at com.ibm.ws.ssl.channel.impl.SSLConnectionLink.determineNextChannel(SSLConnectionLink.
java:1002)
at com.ibm.ws.ssl.channel.impl.SSLConnectionLink.readyInboundPostHandshake(SSLConnection
Link.java:691)
at com.ibm.ws.ssl.channel.impl.SSLConnectionLink$MyHandshakeCompletedCallback.complete(S
SLConnectionLink.java:392)
at com.ibm.ws.ssl.channel.impl.SSLUtils.handleHandshake(SSLUtils.java:823)
at com.ibm.ws.ssl.channel.impl.SSLHandshakeIOCallback.complete(SSLHandshakeIOCallback.ja
va:70)
at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompleti
onListener.java:165)
at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:217)
at com.ibm.io.async.AsyncChannelFuture.fireCompletionActions(AsyncChannelFuture.java:161
)
at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:195)
at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:743)
at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:873)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1473)

Dump of callerThis =
Object type = com.ibm.ws.webcontainer.channel.WCCByteBufferInputStream
com.ibm.ws.webcontainer.channel.WCCByteBufferInputStream@35bc35bc

Exception = java.io.IOException
Source = com.ibm.ws.webcontainer.channel.WCCByteBufferInputStream
probeid = 102
Dump of callerThis =
Object type = com.ibm.ws.webcontainer.channel.WCCByteBufferInputStream
tc =
defaultMessageFile = com.ibm.ejs.resources.seriousMessages
EXTENSION_NAME_DPID = DiagnosticProvider
ivDumpEnabled = false
ivResourceBundleName = com.ibm.ws.webcontainer.channel
ivLogger = null
ivDiagnosticProviderID = null
anyTracingEnabled = false
ivLevel = 10
ivName = com.ibm.ws.webcontainer.channel.WCCByteBufferInputStream
ivDebugEnabled = false
ivEventEnabled = false
ivEntryEnabled = false
ivDetailEnabled = false
ivConfigEnabled = false
ivInfoEnabled = true
ivServiceEnabled = true
ivWarningEnabled = true
ivErrorEnabled = true
ivFatalEnabled = true
isc =
tc =
defaultMessageFile = com.ibm.ejs.resources.seriousMessages
EXTENSION_NAME_DPID = DiagnosticProvider
ivDumpEnabled = false
ivResourceBundleName = com.ibm.ws.http.channel.resources.httpchannelmessages
ivLogger = null
ivDiagnosticProviderID = null
anyTracingEnabled = false
ivLevel = 10
ivName = com.ibm.ws.http.channel.inbound.impl.HttpInboundServiceContextImpl
ivDebugEnabled = false
ivEventEnabled = false
ivEntryEnabled = false
ivDetailEnabled = false
ivConfigEnabled = false
ivInfoEnabled = true
ivServiceEnabled = true
ivWarningEnabled = true
ivErrorEnabled = true
ivFatalEnabled = true
CLASS_NAME = com.ibm.ws.http.channel.inbound.impl.HttpInboundServiceContextImpl
HTTP_ERROR_IDENTIFIER = Http Error ID
myLink =
tc = com.ibm.ejs.ras.TraceComponent@7ce07ce
myInterface = this.isc
myChannel = com.ibm.ws.http.channel.inbound.impl.HttpInboundChannel@786a786a
myTSC = com.ibm.ws.ssl.channel.impl.SSLConnectionLink@58245824
bPartialParsedRequest = false
numRequestsProcessed = 1
filterExceptions = false
bIsActive = true
appSides = java.util.ArrayList@33aa33aa
class$com$ibm$ws$http$channel$inbound$impl$HttpInboundLink = java.lang.Class@31f031f
linkOnDeviceSide = this.isc.myLink.myTSC
linkOnApplicationSide = com.ibm.ws.webcontainer.channel.WCChannelLink@35543554
vc = com.ibm.ws.channel.framework.impl.InboundVirtualConnectionImpl@44404440
bCheckedAcceptEncoding = false
bCompressionAllowed = false
bIsRequestFormData = false
bContainsLargeMessage = false
class$com$ibm$ws$http$channel$inbound$impl$HttpInboundServiceContextImpl =
serialVersionUID = 3206093459760846163
AllPermissionsPD = this.class$com$ibm$ws$webcontainer$channel$WCCByteBufferInputStream.All
PermissionsPD
classNameMap = this.class$com$ibm$ws$webcontainer$channel$WCCByteBufferInputStream.classNa
meMap
SYNTHETIC = 4096
ANNOTATION = 8192
ENUM = 16384
j9Version = 33686065
j9Config = 8314596479310233600
EmptyParameters = this.class$com$ibm$ws$webcontainer$channel$WCCByteBufferInputStream.Empt
yParameters
DEFAULT_REMOTE_PORT = 1024
DEFAULT_LOCAL_PORT = 9080
BUFFERS_INITIAL_SIZE = 10
BUFFERS_MIN_GROWTH = 5
myRemoteAddr =
INADDRSZ = 4
serialVersionUID = 3286316764910316507
loopback = 2130706433
IPv4 = 1
IPv6 = 2
preferIPv6Address = false
hostName = null
address = 162924828
family = 1
nameService = java.net.InetAddress$1@1cb41cb4
canonicalHostName = null
addressCache = java.net.InetAddress$Cache@17881788
negativeCache = java.net.InetAddress$Cache@19fc19fc
localHostName = g28aeiwas01
localHostNameLock = java.lang.Object@1a2e1a2e
cacheLocalHost = false
addressCacheInit = true
unknown_array = [Ljava.net.InetAddress;@23b023b0
impl = java.net.Inet6AddressImpl@1bac1bac
lookupTable = java.util.HashMap@1a5e1a5e
$assertionsDisabled = true
myLocalAddr =
INADDRSZ = 4
serialVersionUID = 3286316764910316507
loopback = 2130706433
IPv4 = 1
IPv6 = 2
preferIPv6Address = false
hostName = null
address = 162924828
family = 1
nameService = this.isc.myRemoteAddr.nameService
canonicalHostName = null
addressCache = this.isc.myRemoteAddr.addressCache
negativeCache = this.isc.myRemoteAddr.negativeCache
localHostName = g28aeiwas01
localHostNameLock = this.isc.myRemoteAddr.localHostNameLock
cacheLocalHost = false
addressCacheInit = true
unknown_array = this.isc.myRemoteAddr.unknown_array
impl = this.isc.myRemoteAddr.impl
lookupTable = this.isc.myRemoteAddr.lookupTable
$assertionsDisabled = true
myRemotePort = 47439
myLocalPort = 9446
myBuffers =
[0] = com.ibm.ws.buffermgmt.impl.PooledWsByteBufferImpl@65ae65ae
[1] = com.ibm.ws.buffermgmt.impl.PooledWsByteBufferImpl@7ffa7ffa
[2] = null
[3] = null
[4] = null
[5] = null
[6] = null
[7] = null
[8] = null
[9] = null
myBuffersIndex = 1
lastHeaderBufferIndex = 0
class$com$ibm$ws$genericbnf$impl$GenericStreamServiceContextImpl =
serialVersionUID = 3206093459760846163
AllPermissionsPD = this.class$com$ibm$ws$webcontainer$channel$WCCByteBufferInputStream.All
PermissionsPD
classNameMap = this.class$com$ibm$ws$webcontainer$channel$WCCByteBufferInputStream.classNa
meMap
SYNTHETIC = 4096
ANNOTATION = 8192
ENUM = 16384
j9Version = 33686065
j9Config = 8314596479310233600
EmptyParameters = this.class$com$ibm$ws$webcontainer$channel$WCCByteBufferInputStream.Empt
yParameters
curBuffer = null
class$com$ibm$ws$webcontainer$channel$WCCByteBufferInputStream =
serialVersionUID = 3206093459760846163
AllPermissionsPD =
codesource = null
classloader = null
principals = {}
permissions = java.security.Permissions@448e448e
staticPermissions = true
debug = null
loopingToString = false
classNameMap =
serialVersionUID = 1978198479659022715
m = java.util.WeakHashMap@6cf66cf6
mutex = this.class$com$ibm$ws$webcontainer$channel$WCCByteBufferInputStream.classNameMap
keySet = null
entrySet = null
values = null
SYNTHETIC = 4096
ANNOTATION = 8192
ENUM = 16384
j9Version = 33686065
j9Config = 8314596479310233600
EmptyParameters = {}
SKIP_BUFFER_SIZE = 2048
skipBuffer = null
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problems in file upload to DB2 on AIX via WAS6.1