Help-- Using GZIPOutputStream, but never end.

I written serialization object with GZIPOutputStream.
But recent my Aplication hang 24 hours. I print stack , see the thread is runnable,and lock (0x20fbca10)
Can any one help me?How the "Deflater.deflateBytes" never end?
I have two thread.
thread 1: write serialization object (when receive a message)
thread 2: close GZip file(when a stop request)
"RMI TCP Connection(22352)-10.9.146.14" daemon prio=6 tid=0x0792b8d8 nid=0x7b18 runnable [0x4b01d000..0x4b01fa18]
java.lang.Thread.State: RUNNABLE
     at java.util.zip.Deflater.deflateBytes(Native Method)
     at java.util.zip.Deflater.deflate(Deflater.java:290)
     - locked <0x20fbca10> (a java.util.zip.Deflater)
     at java.util.zip.DeflaterOutputStream.deflate(DeflaterOutputStream.java:159)
     at java.util.zip.DeflaterOutputStream.write(DeflaterOutputStream.java:118)
     at java.util.zip.GZIPOutputStream.write(GZIPOutputStream.java:72)
     - locked <0x1ff90e98> (a java.util.zip.GZIPOutputStream)
     at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65)
     at java.io.BufferedOutputStream.write(BufferedOutputStream.java:109)
     - locked <0x1f41f740> (a java.io.BufferedOutputStream)
     at java.io.FilterOutputStream.write(FilterOutputStream.java:80)
"MessageListenerThread - F_LinkTopic" prio=6 tid=0x05def670 nid=0x16d8 waiting for monitor entry [0x0f90f000..0x0f90fd98]
java.lang.Thread.State: BLOCKED (on object monitor)
     at java.util.zip.Deflater.deflate(Deflater.java:284)
     - locked <0x20fbca10> (a java.util.zip.Deflater)
     at java.util.zip.GZIPOutputStream.finish(GZIPOutputStream.java:86)
     at java.util.zip.DeflaterOutputStream.close(DeflaterOutputStream.java:146)
     at java.io.FilterOutputStream.close(FilterOutputStream.java:143)

I have seen an almost identical problem within an Apache CXF web service. In my situation the end of the stack looks almost identical, stuck forever (apparently) inside the native Deflater.deflateBytes.
In my situation I have seen this with two threads, each independently using GZIPOutputStream.
I am really starting to think that there is a thread safety issue with the native GZIP code - two independent objects in two threads are simultaneously zipping and both get stuck with 100% CPU utilization in the native code. Interestingly my situation is also in the close processing, but not inside the finish processing. Of all the situations I see with searching for similar situations (search the web for Deflater.java:306) there seems to be a set of common circumstances:
* Exactly the same last few levels on the stack (ending in Deflater.deflateBytes (Native Method)
* Two threads interacting with GZIP
* Often seems to relate to close processing (perhaps a short data remainder problem?)
My situation is documented here:
http://www.java.net/forum/topic/glassfish/glassfish/glassfish-301-gzip-problem-threads-apparently-spinning-100-cpu-use
Salient details of thread dump:
"http-thread-pool-8080-(18)" - Thread t@950
java.lang.Thread.State: RUNNABLE
at java.util.zip.Deflater.deflateBytes(Native Method)
at java.util.zip.Deflater.deflate(Deflater.java:306)
- locked <21b0c5> (a java.util.zip.ZStreamRef)
at java.util.zip.DeflaterOutputStream.deflate(DeflaterOutputStream.java:159)
at java.util.zip.DeflaterOutputStream.write(DeflaterOutputStream.java:118)
at java.util.zip.GZIPOutputStream.write(GZIPOutputStream.java:72)
- locked <132ba84> (a java.util.zip.GZIPOutputStream)
at org.apache.cxf.io.AbstractWrappedOutputStream.write(AbstractWrappedOutputStream.java:46)
at org.apache.cxf.io.AbstractThresholdOutputStream.write(AbstractThresholdOutputStream.java:69)
at org.apache.cxf.io.AbstractWrappedOutputStream.write(AbstractWrappedOutputStream.java:46)
at org.apache.cxf.io.AbstractThresholdOutputStream.unBuffer(AbstractThresholdOutputStream.java:89)
at org.apache.cxf.io.AbstractThresholdOutputStream.close(AbstractThresholdOutputStream.java:100)
at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:56)
at org.apache.cxf.transport.http.AbstractHTTPDestination$BackChannelConduit.close(AbstractHTTPDestination.java:619)

Similar Messages

  • HELP! a sql NEVER end run!

    Hi, all,
    I have a spatial table GUNITA_SUB. A "select" statement run on the table never end.
    Pls see detail below:
    1) ORACLE VERSION: 9.2.0.1.0 (Windows 2000)
    2) CREATE TABLE:
    CREATE TABLE "SYSTEM"."GUNITA_SUB" ("TOS_GID" NUMBER NOT NULL,
    "TOS_GEOM" "MDSYS"."SDO_GEOMETRY")
    TABLESPACE "SYSTEM" PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS
    255
    STORAGE ( INITIAL 64K NEXT 0K MINEXTENTS 1 MAXEXTENTS
    2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1)
    LOGGING;
    3) CREATE INDEX:
    CREATE INDEX "SYSTEM"."RTIDX_GUNITA_SUB"
    ON "SYSTEM"."GUNITA_SUB" ("TOS_GEOM") INDEXTYPE IS
    MDSYS.SPATIAL_INDEX PARAMETERS (' SDO_INDX_DIMS=2
    LAYER_GTYPE="MULTIPOLYGON" SDO_RTR_PCTFREE=2 INITIAL=64K
    NEXT=8192 MINEXTENTS=1 MAXEXTENTS=2147483645 PCTINCREASE=0');
    4) TABLE DATA:
    exp to GUNITA_SUB.DMP (1 row only, 46K after winziped as GUNITA_SUB.zip).
    5) the statement will NEVER end run!
    SELECT TOS_GID FROM SYSTEM.GUNITA_SUB WHERE SDO_RELATE
    (TOS_GEOM, MDSYS.SDO_GEOMETRY(2003, NULL, NULL, MDSYS.SDO_ELEM_INFO_ARRAY(1,1003,3), MDSYS.SDO_ORDINATE_ARRAY
    (497926.23518501, 305741.04724192, 498681.34034164, 306144.37650229)), 'mask=anyinteract querytype=WINDOW') = 'TRUE';
    Does anyone ever encounter the problem? a program bug? or wrong data?
    I don't know how to upload the data file. but i can send the file by e-mail if needed.
    Thanks!

    Hi Liu,
    I ran this against 9.2.0.4 after updating the user_sdo_geom_metadata entry to get rid of some validation errors:
    update user_sdo_geom_metadata set diminfo =
    MDSYS.SDO_DIM_ARRAY(
    MDSYS.SDO_DIM_ELEMENT('X', 498047.221, 503492.691, .005),
    MDSYS.SDO_DIM_ELEMENT('Y', 303369.564, 311690.94, .005))
    where table_name='GUNITA_SUB' and column_name='TOS_GEOM';
    This allowed the data to validate better (no more redundant points), but the data is still invalid due to overlapping polygons within a single geometry. Oracle will not guarantee results on invalid data, so the fact that I can get it to work in this release does not predict that it will work in any other release. You need to use valid data with spatial.
    Also, please remove it from the SYSTEM schema!
    Kind regards,
    Dan

  • When attempting to access a business form, it starts "initializing" but never ends. Form does not come up.

    When I open up a form at one of my vendor sights and then press "view", the initializing process begins, but never stops.  And not that it has any thing to do with my latest Adobe issue, but I so hate this company for the continuous problems I seem to have and the fact that it is virtually impossible to contact their tech department via phone.

    Do you open the form with Adobe Acrobat?

  • Spending money for Captivate subscription but never ended up using it.  Help!

    I do not recall agreeing to renew my subscription for an additional year, why is this happening? As I mentioned, sadly (and stupidly), I have not gotten to learn/use Captivate at all. I got too busy with other stuff, but was locked into a one-year subscription commitment for Captivate 7 
    I don't want to be on the hook for a second year, though.  I thought my last payment was in May then I was done.  I certainly don't want to pay any more money for an app I've never used!  Can I just switch off the auto renewal?  If I've paid past my initial subscription, am I entitled to a refund, or am I too inattentive to have cancelled in time?
    Uggggh - I HATE these things defaulting to auto-renewal! 
    Message was edited by: original author, Sue B

    Hello,
    Welcome to Adobe Forums.
    Apologies for the Inconvenience, please share your contact information with us at [email protected]
    Thanks,
    Vikram Gaur
    Adobe Support

  • My iphone 3gs is stuck in recovery mode. i have tried to restore using itunes but it ends with a message saying there was an error and couldnt be restored

    hi  desperately need help. my iphone 3gs is stuck in recovery mode... when i try and do the restore via itunes it goes through the motions but when it gets to the end it tells me there was an error and it couldnt be restored...  originally it was an ex contract phone that i had opened to orange from vodafone.. it was fine until i tried to do the ios 6 update

    There is a way to get it recovered from the so called DFU mode. Try to restart the phone while holding the home and power button at the same time. Then try to connect it to iTunes and do the same again. If you try that again till it works you should be able to use your iPhone as before.

  • Help a newbie please - never ending com.android.settings suddenly stopped

    My k1 was apparently autoupdating when i saw the android man with completion bar stop. It wiped my apps and when i turn it on i get "boot recovery image" followed by a green android man with the caution sign (yellow triangular sign with black !). Eventually the k1 loads but then i get a k1 update message "we have detected critical updates and features..." if i click okay, i get a 'com.android.settings had suddenly stopped.' 20 seconds later i get the k1 update message again... over and over. All my apps are gone which is fine i dont care. I tried settings-privacy-restore, i get the warning all data will be erased, it runs thru, but nothing changes. Same green man on boot, same neverending k1 update message. It was working fine but all the sudden (im assuming an autoupdate happened) its one annoying message after another. Please help. Do i need to reimage? If so, how? Sorry for my ignorance, please help. I have a k1 loaded with 3.1 (purchased at office depot).

    Okay, I downloaded te files and follwed the instructions from the sticky.
    It took me a little while to find the drivers since the the zip file had been moved to a mediafire zip, but I was able to use the  Nvidiasetup file and the AMD64 folder to get it to installed.  I started that bat file to flash and everything seemed to be going well - the K1 went into a mode and the DOS commands were rolling across the screen.  Then it said 'creation file failed.'  and just sat there.  and sat there. no more commands moving on the DOS prompt.  for like ten minutes.   I finally shut it down and tried to start again, but now when I put the K1 into APX and plug it in - there are no "Other Devices (or APX)" showing in the Device Manager.  I plug in a flash drive in the usb port and it works so the usb port seems fine.
    I have no idea what happened but now I can't even seem to get the computer to recognize that the tablet is plugged in.
    The tablet and the computer both have power and never lost power during the process so there was no interrupt.
    help, please.

  • Testing Scanner class,  compile succes, but never end execute

    Hi, im studyng the Katy Sierras book, "sun ceritified programmer java 6", in chapter 6 there are a code that show how Scanner works, i tried to test this code (im using NetBeans IDE), but the problem is that never it can stop executing, no result, no exception, only continues executing without ending
    Here is the code:
    import java.util.Scanner;
    public class ScannerNext {
        public static void main(String [] args){
            boolean b2, b;
            int i;
            String s, hits = " ", input ="1 true 34 hi" ;
            Scanner s1 = new Scanner(input);
            Scanner s2 = new Scanner(input);
            while(b = s1.hasNext()){
                s = s1.next(); hits += "s";
            while(b = s2.hasNext()){
                if(s2.hasNextInt()){
                    i = s2.nextInt(); hits += "i";
                } else if (s2.hasNextBoolean()){
                    b2 = s2.hasNextBoolean(); hits += "b";
                } else {
                    s2.next(); hits += "s2";
                } // if else if
            }//while
            System.out.println("Hits: " + hits);
        }//main
    }Apologies about my english.
    Greetings from Orizaba, Veracruz, Mex.

    b2 = s2.hasNextBoolean();Are your sure you copied the code correctly. Above line should be:
    b2 = s2.nextBoolean();

  • Help using AT NEW, AT END OF

    Hi experts,
           I am not able to get desired result by using at new and at end of in my report. This is what i have in my internal table ifinal. fields f2 and f3 are don't care.
    f1      f2       f3       f4     f5
    a       x        x        10    5
    a       x        x        20   15
    b       x        x        5     10
    b       x        x        10    5
    Now i want the result as follows:
    f1     f2     f3     f4     f5
    a       x     x     10      5
    a       x     x     20     15
    total  x      x     30     20
    b       x     x      5      10
    b       x     x     10       5
    total   x     x     15     15
    so grouping values in f1, i need to calculate total for fields f4 and f5.
    Someone plz. help soon.
    Thanks.
    Abhinav.

    Please paste your code here and it will be easy to loo upon.
    Here is a pseudo logic.
    sort itab1.
    loop at itab1.
      write:/ f1, f2, f3, f4, f5.
      at end of f1.
        sum.
        write:/ f1, f4, f5.
      endat.
    endloop.
    Here are some more details with examples. Please check your code accordingly.
    SUM.
    You can only use this statement within a LOOP. If you use SUM in an AT - ENDAT block, the system calculates totals for the numeric fields of all lines in the current line group and writes them to the corresponding fields in the work area (see example in ). If you use the SUM statement outside an AT - ENDAT block (single entry processing), the system calculates totals for the numeric fields of all lines of the internal table in each loop pass and writes them to the corresponding fields of the work area. It therefore only makes sense to use the SUM statement in AT...ENDAT blocks.
    If the table contains a nested table, you cannot use the SUM statement. Neither can you use it if you are using a field symbol instead of a work area in the LOOP statement.
    Examples
    Example
    DATA: BEGIN OF LINE,
             COL1 TYPE C,
             COL2 TYPE I,
             COL3 TYPE I,
          END OF LINE.
    DATA ITAB LIKE HASHED TABLE OF LINE
              WITH UNIQUE KEY COL1 COL2.
    LINE-COL1 = 'A'.
    DO 3 TIMES.
      LINE-COL2 = SY-INDEX.
      LINE-COL3 = SY-INDEX ** 2.
      INSERT LINE INTO TABLE ITAB.
    ENDDO.
    LINE-COL1 = 'B'.
    DO 3 TIMES.
      LINE-COL2 = 2 * SY-INDEX.
      LINE-COL3 = ( 2 * SY-INDEX ) ** 2.
      INSERT LINE INTO TABLE ITAB.
    ENDDO.
    SORT ITAB.
    LOOP AT ITAB INTO LINE.
      WRITE: / LINE-COL1, LINE-COL2, LINE-COL3.
      AT END OF COL1.
        SUM.
        ULINE.
        WRITE: / LINE-COL1, LINE-COL2, LINE-COL3.
        SKIP.
      ENDAT.
      AT LAST.
        SUM.
        ULINE.
        WRITE: / LINE-COL1, LINE-COL2, LINE-COL3.
      ENDAT.
    ENDLOOP.
    The output is:
    A 1 1
    A 2 4
    A          3          9
    A          6         14
    B          2          4
    B 4 16
    B 6 36
    B         12         56
            18         70
    http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9f1f35c111d1829f0000e829fbfe/frameset.htm

  • My Photos app stopped working last week.  It opens to the welcome splash screen, but when i select get started, the wheel starts spinning and that's all that happens.  When I try to close it, it says it's creating a library, but never ends.

    I have been using Photos since the update.  I had no problems until last week when it stopped working.  Despite the fact that I've been using it, it opens to the welcome splash screen with the "Get Started" button.  When I click it, the wheel starts spinning and that's all that happens until eventually force quit it using the apple menu.  Can anyone help?

    OK, so apparently you have the MBW connected via the software equivelent of a crossover cable- ethernet frames but no routing.  Not sure what negative impact that has or doesn;t have. Certainly its not how the drive was intended to work - it would be far easier to just have a USB connection for that.
    WD software in general has a very bad history. Note that some drives have been lost entirely due to incompatability with Mavericks - read the tips section here for mroe details, btu i would NOT use it.
    I cant help you with WD software. But the first task is to access the drive and make sure you can communicate with it. I would go to the main drive to do that. From there you should be abke to remove the partition for the backup, and begin over with something less troublesome - such as Carbon Copy Cloner, Time MAchine ( i dont use it and did nt much like it) or , my preferred method, good old unix rsync.
    In any event, your prpoblem is one of authorization. So first see if the drive is responding in general ( try to access it the normal way), then move to that particular volume.
    Grant

  • What can i do if OSX mountain lion download start but never ends?

    I need a help urgently

    I'd actually give Apple a call. They might be able to reimburse you.
    Matt

  • Generate New Database job never ends

    Hi all,
    We are trying to generate a new template in our DEV environment, the job remains active but never ends. On every attempt , the process stops in a different table or process.
    The log file (level 5) simply stops in a certain point and nothing else happens. The dbeng9 processes consumes almost 90% CPU but the process siebsh does not appear between the top processes.
    We already tried reset all the servers, gateway, reassign the remote component group, recreating diccache.dat, but nothing worked.
    We use siebel loyalty 8.1.1.1 and oracle 11g 11.2 , on top of aix 5.3
    Meanwhile, the workaround was to generate new template in another siebel enterprise and copied the templates to the DEV environment and extracted the databases.
    Will be very thankful if anyone can help.
    Thanks in advance

    But the problem is that the process really stucked. The siebel.dbf , which should be created during the job , stop increasing the size around 30M while in the other environment, when the process finished , the file reached 80M.
    The log file also suddenly stopped to increase. It really seems that the process is waiting for something.
    We are not having resource problems like disk space , cpu or memory lacking.
    Guys, do you know what kind of consistency should be checked for GennewDB? If the repository table definitions have differences when compared with actual physical schema, suppose that we forget to apply some new table definitions, would it be the root cause? Do you know a way to compare the repository definitions against the physical schema? I think "apply all" is not an option..
    Thanks in advance

  • Installing Reader 10.1.1 never ends

    Saw that my 9.x.x reader was out of date so went to adobe site to pull newest reader.
    Executed reader install [not upgrade] via the downloaded & saved install file.
    Install detected earlier edition of reader, and properly removed it.
    Install continued then to install latest reader. During the process, at approximately 70% complete, it was working on a help txt file but never made it past that point. Computer kept functioning properly for all other apps. After waiting 24hrs to be sure, I was forced to kill the adobe installer's process.
    Have not tried again to install, wanting to get feedback on whether this problem has been seen before.
    OS is fully patched Windows XP. Silverlight is NOT installed.
    Please indicate whether this is a known issue, possible remedies and other suggestions.
    Thanks!

    You may want to try the following:
    Run this fix from Microsoft: http://support.microsoft.com/mats/Program_Install_and_Uninstall
    Uninstall Reader using Add/Remove Programs
    If you want to reinstall Reader, download it from http://get.adobe.com/reader/direct/

  • I'm using iphoto9.1.3 but now it doesn't seem to work, whenever I try to open it, it just shows loading, but never loads. Can anybody help me with this ?

    I'm using iphoto9.1.3 but now it doesn't seem to work, whenever I try to open it, it just shows loading, but never loads. Can anybody help me with this ?    

    Option 1
    Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Rebuild iPhoto Library Database from automatic backup.
    If that fails:
    Option 2
    Download iPhoto Library Manager and use its rebuild function. This will create a new library based on data in the albumdata.xml file. Not everything will be brought over - no slideshows, books or calendars, for instance - but it should get all your albums and keywords back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one. .
    Regards
    TD

  • Hey i have this problem with my mac.. that its on its own shuts itself whenever i m using google chrome..i updated to yosemite but the problem never ended and i m experiecing unexplained shutdowns

    hey i have this problem with my mac.. that its on its own shuts itself whenever i m using google chrome..i updated to yosemite but the problem never ended and i m experiecing unexplained shutdowns

    Hi doctor.saddam,
    If your MacBook Pro is shutting down unexpectedly, I would suggest that you troubleshoot using the steps in this article - 
    OS X: When your computer spontaneously restarts or displays "Your computer restarted because of a problem." - Apple Support
    Thanks for using Apple Support Communities.
    Best,
    Brett L 

  • The never ending Connecting to ISP mesage-but never happens

    For the last week I have had no problems with my Extreme base station which connects through Dial up and is extendeded by a Airport Express station to provide coverage to several of my families laptops. Today - I asked airport to connect like always (I dont have it configured for automatic dial) and while it began dialing like normal got stuck on the message connecting to ISP. Needless to say I have tried everything including resetting it, (which by the way is the only way I can stop the connecting to ISP message on Internet Connect) I have disconnected and turning every computer off as well as the express station and physically I reset the base station via paper clip and used the Airport assistant to set the base station up like new - but no dice. Everytime it dials (and I have actually picked up the phone to listen) it makes the call but when the message Connecting to ISP is displayed the phone goes silent and the computer is stuck displaying the scrolling message that it is connecting to the ISP. But NADA! Do you think my ISP or phone company changed something??? Could it be new firmare or airport software taking effect? Man if you have any ideas - please help.

    Well I got ahold of (AppleCare) - more specifically - Sean in Austin - a product specialist who took me through - tons of stuff annnnd - NADA - had to escalate it to engineering who probably won't be able to answer until Thursday. Interestingly we were able to hook up to a Apple Server without a problem but my ISP still gives the never ending "Connecting to ISP" message - later I called my ISP and they said if your able to connect the computer to there ISP but not the router - then it isnt there problem - its Apple.
    STUCK till Thursday without my EXTREME! REAK
    Tom

Maybe you are looking for

  • PS CC trial error.

    I have downloaded the trial version Photoshop CC from adobe, and it opens fine and saves images fine, but when I try to import video frames to layers, and error message comes up and the program shuts down. I can get to the window where you choose whi

  • "Recently Used" fonts causes crash...

    Hello all, I don't use iWeb all that much, but I went in today to do a quick page and found an issue. Using iWeb 2.0.3 and OS 10.5.4. If I build a page or select a previous page, and hit Command-T to manipulate fonts, choosing the "Recently Used" und

  • Can we determine if Acrobat is running inside a browser?

    I'm looking for a javascript property or method to determine if Acrobat is running standalone or in the browser, as I'd like to use that to made certain of my custom toolbar buttons available or not. Is there anything available? Thanks -

  • Répétition d'une opération par le biais d'une boucle

    Rebonjour, je post un nouveau message pour vous demander à nouveau votre aide. Il y a quelques temps, j'ai réalisé un programme permettant d'envoyer des informations à un capteur (simulation de l'appuie sur la touche a, puis p, puis échap. La réalisa

  • SAP HR SUPPORT

    Dear SAP Gurus, Can you please tell me what are the General Issues faced by the functional Consultants on a Support Project? the scope of project is (PA, OM, Recruitment and time management)... pls share your experience. Thanks in Advance Shan