Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

java.lang.IllegalStateException: cannot resize buffer

3612853Jan 4 2018 — edited Jan 4 2018

HI all,

Please bare with me for this question.

I have an action class.Once all of the processing is completed, I can see with the debugging statements that the following command

filterChain.doFilter(request, servletResponse);

is being called multiple times. Which causes an illgal state exception.

java.lang.IllegalStateException: Cannot resize buffer - 640 bytes have already been written (Servlet 2.3, sec. 5.1)

at weblogic.servlet.internal.ServletResponseImpl.setBufferSize(ServletResponseImpl.java:416)

at com.tonbeller.sironkyc.server.SironKYCLoginFilter.doFilter(SironKYCLoginFilter.java:56)

at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:78)

at com.tonbeller.sironkyc.server.SironKYCRequestFilter.doFilter(SironKYCRequestFilter.java:53)

at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:78)

at com.tonbeller.sironkyc.server.XssPreventionFilter.doFilter(XssPreventionFilter.java:39)

at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:78)

at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3701)

at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3667)

at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:326)

at weblogic.security.service.SecurityManager.runAsForUserCode(SecurityManager.java:197)

at weblogic.servlet.provider.WlsSecurityProvider.runAsForUserCode(WlsSecurityProvider.java:203)

at weblogic.servlet.provider.WlsSubjectHandle.run(WlsSubjectHandle.java:71)

at weblogic.servlet.internal.WebAppServletContext.doSecuredExecute(WebAppServletContext.java:2443)

at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2291)

at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2269)

at weblogic.servlet.internal.ServletRequestImpl.runInternal(ServletRequestImpl.java:1703)

at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1663)

at weblogic.servlet.provider.ContainerSupportProviderImpl$WlsRequestExecutor.run(ContainerSupportProviderImpl.java:272)

at weblogic.invocation.ComponentInvocationContextManager._runAs(ComponentInvocationContextManager.java:352)

at weblogic.invocation.ComponentInvocationContextManager.runAs(ComponentInvocationContextManager.java:337)

at weblogic.work.LivePartitionUtility.doRunWorkUnderContext(LivePartitionUtility.java:57)

at weblogic.work.PartitionUtility.runWorkUnderContext(PartitionUtility.java:41)

at weblogic.work.SelfTuningWorkManagerImpl.runWorkUnderContext(SelfTuningWorkManagerImpl.java:644)

at weblogic.work.ExecuteThread.execute(ExecuteThread.java:415)

at weblogic.work.ExecuteThread.run(ExecuteThread.java:355)

Comments

Ming Lei
Hi,

I think you can check your SMTP server with your system administrator firstly. does it work normally?

And if you are using a Windows PC for APEX, you can check you SMTP server in your IIS administration.

From your error info : Unable to relay, you can follow below to have a check, if you are working on MS Window

IIS -> Default SMTP Virtual Server -> Properties -> Access -> Relay resitrictions -> Relay -> All except the list below.

Hope this helpfull.


PPMonkey.
Amuly
when i click send "all mail button" of mail queue,i got the message Successfully sent mail....
but mails are not deliver to the target (emailids)

Edited by: Alekh on Aug 7, 2009 2:21 PM
Ming Lei
Yes. If you just did re-send from APEX administation panel.


The things are not changed.

If you send email using APEX_MAIL, you will meet the error before again.

As I told you, you need to contact your APEX host System Administrator to check the SMTP server on it.

Does it work well?

PPMonkey.
Amuly
SMTP server is working fine.....
and mail also sent from from mail queue...
after that ......nothing
1 - 4
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Feb 1 2018
Added on Jan 4 2018
3 comments
3,162 views