Req Help for  "warning: sun.misc.SignalHandler is Sun proprietary API "

Hi All,
I am getting the below exception when i am building the class. Please guide me and please provide any alternate solution for this.
[javac] main\SignalHandler.java:35: warning: sun.misc.SignalHandler is Sun proprietary API and may be removed in a future release
[javac] implements sun.misc.SignalHandler
[javac] ^
[javac] main\SignalHandler.java:69: warning: sun.misc.Signal is Sun proprietary API and may be removed in a future release
[javac] public void handle( final sun.misc.Signal signal )
[javac] ^
[javac] auditlog\core\AuditLogFileWriter.java:26: warning: com.sun.org.apache.xalan.internal.xsltc.runtime.Hashtable is Sun proprietary API and may be removed in a future release
[javac] public static Hashtable writingStatus=new Hashtable();
[javac] ^
[javac] ftpcommon\ftp\PasswordEnDecrypt.java:156: warning: sun.misc.BASE64Encoder is Sun proprietary API and may be removed in a future release
[javac] return new sun.misc.BASE64Encoder().encode(enc);
[javac] ^
[javac] ftpcommon\ftp\PasswordEnDecrypt.java:182: warning: sun.misc.BASE64Decoder is Sun proprietary API and may be removed in a future release
[javac] byte[] dec = new sun.misc.BASE64Decoder().decodeBuffer(str);
[javac] ^
[javac] ftpcommon\main\SignalHandler.java:57: warning: sun.misc.Signal is Sun proprietary API and may be removed in a future release
[javac] sun.misc.Signal.handle( new sun.misc.Signal(signalName), this );
[javac] ^
[javac] main\SignalHandler.java:57: warning: sun.misc.Signal is Sun proprietary API and may be removed in a future release
[javac] sun.misc.Signal.handle( new sun.misc.Signal(signalName), this );
Thanks & Regards,
Rajeshwar
Edited by: Rajeshwar_Java on Apr 27, 2009 5:31 AM
Edited by: Rajeshwar_Java on Apr 27, 2009 5:32 AM

as corlettk already told you: avoid those API whenever possible.
Regarding your cases:
* SignalHandler: proprietary API, there's not alternative. Use it if you must. Fail gracefully if it isn't there
* Hashtable: seems like you simply picked the wrong one. Use the one in java.util
* Base64 stuff: Plenty of free (BSD licensed) implementations out there, I'm sure there's one in commons-codec as well. Use those instead.

Similar Messages

  • Ignoring Sun proprietary API warning in JDK 1.6.0_13.

    We are upgrading our application from JDK 1.5.0_17 to JDK 1.6.0_13 and we get so many warnings regarding Sun proprietary API.
    Can someone help me in telling when this API's will be removed from Sun API and is there any problem in using this API's as long as we use JDK 1.6.0_13.
    At the same time can u suggest the alternate API's which can be used in place of this.
    Warinings :
    [javac] D:\eRAM3500_07_04\server\src\globalaccess\SSLTunnelSocketFactory.java:9:
    warning: sun.net.www.protocol.http.HttpURLConnection is Sun proprietary API and may be removed in a future release
    [javac] import sun.net.www.protocol.http.HttpURLConnection;
    [javac] ^
    [javac] D:\eRAM3500_07_04\server\src\globalaccess\SSLTunnelSocketFactory.java:111:
    warning: sun.net.www.protocol.http.HttpURLConnection is Sun proprietary API and may be removed in a future release
    [javac] String s1 = "CONNECT " + s + ":" + i + " HTTP/1.0\n" + "User-Agent: " + HttpURLConnection.userAgent;
    [javac] ^
    [javac] D:\eRAM3500_07_04\server\src\globalaccess\RedirectGSGRequestThread.java:160:
    warning: sun.misc.BASE64Encoder is Sun proprietary API and may be removed in a future release
    [javac]      s2 = "Basic " + (new BASE64Encoder()).encode(s2.getBytes());
    [javac]      ^
    Any help appreciated.

    Can someone help me in telling from which release this Sun API's will be removed. I answered that. No. Nobody can help you. What Sun say here is 'From one release to another, these classes may be removed, or they may be moved from one package to another, and it's fairly likely that their interface (method names and signatures) will change.' There's no statement there that they will be removed, and certainly no implication that there is a single release in which they will all be removed at the same time.
    So as of now we can migrate to JDK 1.6.0_13 ignoring warnings msgs. Will there be any problem in still using the same api's?I answered that too.
    Does this API's work in JDK 1.7 and from where can I download JDK 1.7?You will have to test it yourself. Google will find it for you.
    Is there any alternate API to get the user agent string of sun.net.www.protocol.http.HttpURLConnection.userAgentI answered that. You don't need it in a CONNECT command.

  • Sun.misc.BASE64Encoder and JDK 1.4.1 for Unix

    I apologize for asking what seems like such a basic question in this forum, but my search for help with this issue has been unsuccessful so far.
    I developed a Java application under JDK 1.3.0 for Windows 9x/NT4 which uses sun.misc.BASE64Encoder in HTTP basic authentication transactions. It works as expected under JRE 1.3.0 for Win9x/NT. Now I'm running JDK 1.4.1 on Mandrake Linux 9.0. This same application throws "error:Cannot find type "sun/misc/BASE64Encoder".
    Do I need a JAR file that was not packaged with JDK 1.4.1 for Linux? Any ideas on how to get this working?
    Thank you,
    J. Davis

    It's working now.
    Thank you for reading.

  • I'm getting this message: "Firefox prevented this page from automatically redirecting to another page." but unchecking the box for "warn me when websites try to redirect or reload the page" has not helped. I'm using Firefox 3.6.3 on Mac OS 10.6.3. M'aidez

    Can't load Google Calendar. I'm getting this message: "Firefox prevented this page from automatically redirecting to another page" but unchecking the box for "Warn me when websites try to redirect or reload the page" has not helped. I'm using Firefox 3.6.3 on Mac OS 10.6.3. It's not reported as a generalised problem in Dashboard. Google Calendar opens and works fine on my 12" PowerBook G4, but this is a recent problem on my G5 13" MacBook Pro. Mayday!
    == URL of affected sites ==
    https://www.google.com/accounts/ServiceLogin?service=cl&passive=1209600&continue=http%3A%2F%2Fwww.google.com%2Fcalendar%2Frender%3Ftab%3Dmc%26pli%3D1&followup=http%3A%2F%2Fwww.google.com%2Fcalendar

    No I'm not using NoScript, but I'm pleased to report that the problem got resolved by deleting the original bookmark, logging in again, opening Google calendar, then bookmarking it again.

  • I Need Help for the popup message every time I go to safari: "Warning! Old version of Adobe Flash Player detected. Please download new version."???

    I Need Help for the popup message every time I go to safari: "Warning! Old version of Adobe Flash Player detected. Please download new version."???

    If you are talking about Safari on the iPad, there is no version of Adobe Flash for iOS and there never has been. Clear Safari, close the app and reset the iPad.
    Go to Settings>Safari>Clear History and Website Data
    In order to close apps, you have to drag the app up from the multitasking display. Double tap the home button and you will see apps lined up going left to right across the screen. Swipe to get to the app that you want to close and then swipe "up" on the app preview thumbnail to close it.
    Reset the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider if it appears on the screen - let go of the buttons. Let the iPad start up.
    If you are talking about Safari on your Mac, you are in the wrong forum. But I would still clear the cache, quit Safari and restart the Mac.

  • Sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)

    Hi Avi,
    Refer the earlier message below::
    Now I have OC4J version 9.0.2.
    The JDK version is Java(TM) 2 SDK, Standard Edition Version 1.3.1
    OS : Solaris
    I am trying to deploy the "How-To" example from the otn sample examples for JSP. It's a implementation of simple iterator tag. When I try to access the JSp page which has the taglib, it gives me the following error.
    Can u tell me what this error is ????
    500 Internal Server Error
    OracleJSP:
    JSP Error:
    Request URI:/iterate/iterateSample.jsp
    Exception:
    java.lang.NullPointerException
         at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at oracle.jsp.parse.JspUtils.loadClassJDK(JspUtils.java:219)
         at oracle.jsp.parse.JspUtils.loadClass(JspUtils.java:209)
         at oracle.jsp.parse.JspRTTag.(JspRTTag.java:102)
         at oracle.jsp.parse.JspParseState.createTagParser(JspParseState.java:410)
         at oracle.jsp.parse.JspParseTag.parseNextTag(JspParseTag.java:538)
         at oracle.jsp.parse.JspParseTagFile.parse(JspParseTagFile.java:160)
         at oracle.jsp.parse.OracleJsp2Java.transform(OracleJsp2Java.java:40)
         at oracle.jsp.runtimev2.JspPageCompiler.attemptCompilePage(JspPageCompiler.java:295)
         at oracle.jsp.runtimev2.JspPageCompiler.compilePage(JspPageCompiler.java:181)
         at oracle.jsp.runtimev2.JspPageInfo.compileAndLoad(JspPageInfo.java:338)
         at oracle.jsp.runtimev2.JspPageTable.compileAndServe(JspPageTable.java:481)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:255)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:407)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:330)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:696)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:281)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:735)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:243)
         at com.evermind.util.ThreadPoolThread.run(ThreadPoolThread.java:64)
    Hi,
    I developed a component using struts framework and deployed it in TOMCAT. It works fine. Now I am trying to deploy it in OC4J. I get the following error when I try to access the JSP. Can anybody tell me what this error is and how to resolve it?
    java.lang.NullPointerException
    at java.lang.String.startsWith(Compiled Code)
    at com.evermind[Oracle9iAS (1.0.2.2.1) Containers for J2EE].server.http.TagLibraryStorage.getTagLibContext(Compiled Code)
    at com.evermind[Oracle9iAS (1.0.2.2.1) Containers for J2EE].server.http.HttpServer.getTagLibContext(Compiled Code)
    at com.evermind[Oracle9iAS (1.0.2.2.1) Containers for J2EE].server.http.HttpApplication.getTagLibContext(Compiled Code)
    at com.evermind[Oracle9iAS (1.0.2.2.1) Containers for J2EE].server.http.JSPPageCompilation.addTagLibTag(Compiled Code)
    at com.evermind[Oracle9iAS (1.0.2.2.1) Containers for J2EE].server.http.JSPPageCompilation.compile(Compiled Code)
    at com.evermind[Oracle9iAS (1.0.2.2.1) Containers for J2EE].server.http.JSPPage.compile(Compiled Code)
    at com.evermind[Oracle9iAS (1.0.2.2.1) Containers for J2EE].server.http.HttpApplication.getJSP(Compiled Code)
    at com.evermind[Oracle9iAS (1.0.2.2.1) Containers for J2EE].server.http.HttpApplication.serviceJSP(Compiled Code)
    at com.evermind[Oracle9iAS (1.0.2.2.1) Containers for J2EE].server.http.JSPServlet.service(Compiled Code)
    at com.evermind[Oracle9iAS (1.0.2.2.1) Containers for J2EE].server.http.ServletRequestDispatcher.invoke(Compiled Code)
    at com.evermind[Oracle9iAS (1.0.2.2.1) Containers for J2EE].server.http.ServletRequestDispatcher.forwardInternal(Compiled Code)
    at com.evermind[Oracle9iAS (1.0.2.2.1) Containers for J2EE].server.http.HttpRequestHandler.processRequest(Compiled Code)
    at com.evermind[Oracle9iAS (1.0.2.2.1) Containers for J2EE].server.http.HttpRequestHandler.run(Compiled Code)
    at com.evermind[Oracle9iAS (1.0.2.2.1) Containers for J2EE].util.ThreadPoolThread.run(Compiled Code)
    With Regards
    Amit Kapoor
    Title : re:OC4J Null Pointer Exception O/S : Solaris POST: REPLY (W/QUOTE)
    Author : Amit Kapoor Type : Statement
    Date : Jul 25, 2002 03:26 PT
    The version of the OC4J is 1.0.2.2.1
    Title : re:OC4J Null Pointer Exception O/S : Solaris POST: REPLY (W/QUOTE)
    Author : Avi Abrami Type : Question
    Date : Jul 25, 2002 03:31 PT
    Hi Amit,
    For starters, you are using an old version (1.0.2.2.1) of OC4J.
    You can download newer versions from this web page:
    http://technet.oracle.com/tech/java/oc4j/content.html
    That page also has links to documentation, "how-to" documents and
    sample code. Note that you also need to use compatible versions
    of java.
    Personally, I am using OC4J version 9.0.2.0.0 on SUN Solaris 7
    with JDK 1.3.1 (also from SUN).
    Also, (and if you don't already know about them) the following web
    sites may also be useful to you:
    http://www.orionserver.com
    http://www.orionsupport.com
    http://www.atlassian.com
    http://www.elephantwalker.com
    Good Luck,
    Avi.

    Sorry Amit,
    I have absolutely no idea. However, have you tried these other two
    forums:
    Technologies > Java > Java Server Pages (JSP)
    http://forums.oracle.com/forums/forum.jsp?id=399160
    Technologies > Other > Sample Code
    http://forums.oracle.com/forums/forum.jsp?id=428078
    Hope it helps.
    Good Luck,
    Avi.

  • ClassNotFound Exception Traced to sun.misc.Launcher

    ARGH!!!
    Does anyone know where I can find the source for sun.misc.Launcher? I did find a version dated 1.26 00/02/07. But I think thats the 1.3 version. I need the source to track my bug... Help me...

    You shouldn't need the source of this, travel upthe
    call stack until you reach your own code is.That
    will be the bug....
    Interesting statement, this assumes that any code in the sun namespace is error free...
    The funny thing is that if I execute the same code in 1.4 it works fine, go to 1.4.2 and it breaks, th eonly difference is the JDK. More wierdness, if the stubs and skels that would normally be created at runtime are pregenerated with 1.4 and then the app is run in 1.4.2 it works fine, pregen the files with 1.4.2 and run it in 1.4.2 and it fails... So again I ask, Does anyone know where to get the code for sun.misc.Launcher?

  • JCS is not supporting sun.misc.BASE64Encoder().encode()

    Hi All,
    We were used sun.misc.BASE64Encoder().encode() in one of our products and its not supporting in JCS. This class is not mentioned in white list errors. We are able to deploy this product in cloud and whenever it executes the above method its throwing an error and it is "Error Message: access denied (java.lang.RuntimePermission accessClassInPackage.sun.misc)". Please suggest work around for the above code.
    Thanks&Regards,
    Raghu

    Hi,
    Whitelist processing is our best effort to indicate what "will" work in Java Cloud Service. There are situations where we cannot definitively indicate if you are using an API that wont work on JCS. The runtime process is the source of truth. I have passed along this message to our development team. They will investigate and if possible introduce a warning in the whitelist in our next release. Thanks and I appreciate you pointing that out. This package is not supported in JCS.
    Thanks,
    -Anand.

  • JavaScript throwing sun.misc.InvalidJarIndexException: Invalid index

    I'm trying to run a importPackage call in JavaScript code that I'm invoking in my application and it's throwing a "sun.misc.InvalidJarIndexException: Invalid index" exception.
    The exact line of code that's throwing the exception is:
    importPackage(com.mathworks.toolbox.javabuilder);
    This works fine when I run my application in Windows XP, but now that I'm trying to run it in Windows 7 64-bit it's not working. Another weird thing is that if I try to import any other packages that have the "com" prefix I get the same exception, I'm not sure if this has anything to do with it or if it's purely coincidental. I have other imports with out the "com" prefix that work just fine.
    Has anybody ever seen this before?
    Thanks for the help.

    Found it!
    jfxrt.jar was conflicting with the imports. I don't know why, but removing it from the classpath solved the problem. Maybe it was jfxrt.jar's INDEX.LIST file. I'm going to dig a bit further...

  • Help about Warning Security IE 8.0

    Hello Guys,
    I need help about warning security IE 8.0.
    When I try install a software from my webserver is display the following message:
    I can't check the publisher.Are you sure install the software?
    This file does not have a valide digital signature that verifies its publisher.
    You should only install software from publishers you trust.
    Well, I already enable:
    Download signed ActiveX controls
    Download unsigned ActiveX controls
    Allow active content from CDs to run on user machines Enabled 
    Allow software to run or install even if the signature is invalid Enabled 
    Check for server certificate revocation Disabled 
    Check for signatures on downloaded programs Disabled 
    Is there somewhere I disable all settings warning's about IE or one specific GPO I need disable for this warning don't display for me?
    In the same installation a lot of about file .cab are installed, only one specifc I don't have sucess.
    I try some troubleshootings too:
    https://social.technet.microsoft.com/Forums/windows/en-US/8f8293c4-0920-462f-9c69-0a8e3f92aa02/unknown-publishers-warning
    https://www.youtube.com/watch?v=UknQn6tZZis
    http://windows-3322.blogspot.com.br/2011/02/how-to-repair-activex-error.html
    Thanks a lot who answer me or about any idea about my issue.

    This file does not have a valide digital signature that verifies its publisher.
    Did you see your result
    https://social.technet.microsoft.com/Forums/windows/en-US/8f8293c4-0920-462f-9c69-0a8e3f92aa02/unknown-publishers-warning
    <quote>
    Changing the time zone actually worked.
    </quote>
    Robert Aldwinckle

  • Creating a search help for a field in selection screen

    Hi All,
    There are 3 fields in the selection screen. They are
        WERKS
        DATE
        MATNR
    Enter a value WERKS = 2465.
    When I press the drop down menu for MATNR, it should only give the material number available for 2465.
    I think, I should create a search help for it.
    Kindly help me to create a search help for the material number based on the above condition.
    Thanks in advance.

    Hi
    i am sending you a sample code where i had implemented a search help
    for my req you can understand very easyly and write for ur req
    <b>reward if usefull for ur req</b>
    TYPES : BEGIN OF ST_OBJID_SH,
             OTYPE TYPE HRP1000-OTYPE,
             OBJID TYPE HRP1000-OBJID,
            END OF ST_OBJID_SH.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR S_OBJID-LOW.
    IF S_OBJID IS NOT INITIAL.
        SELECT OTYPE OBJID FROM HRP1000
                     INTO TABLE IT_OBJID_SH
                     WHERE OTYPE = 'D'.
    IF SY-SUBRC EQ 0.
    SEARCH HELP FOR QUALIFICATION.
        CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
          EXPORTING
                 DDIC_STRUCTURE         = ' '
            RETFIELD               =  'OBJID'
                 PVALKEY                = ' '
           DYNPPROG               = SY-REPID
           DYNPNR                 = SY-DYNNR
           DYNPROFIELD            = 'S_OBJID'
                 STEPL                  = 0
                 WINDOW_TITLE           =
                 VALUE                  = ' '
           VALUE_ORG              = 'S'
                 MULTIPLE_CHOICE        = ' '
                 DISPLAY                = ' '
                 CALLBACK_PROGRAM       = ' '
                 CALLBACK_FORM          = ' '
                 MARK_TAB               =
               IMPORTING
                 USER_RESET             =
          TABLES
            VALUE_TAB              =  IT_OBJID_SH
                 FIELD_TAB              =
                 RETURN_TAB             = RETURN_TAB
                 DYNPFLD_MAPPING        =
               EXCEPTIONS
                 PARAMETER_ERROR        = 1
                 NO_VALUES_FOUND        = 2
                 OTHERS                 = 3
        IF SY-SUBRC <> 0.
              MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                      WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
      ENDIF.

  • Need help for Format HD

    Hi I need Help for Formating HD so Wat Key need hold on start up for format HD I apprciated you Help

    Jesus:
    Formatting, Partitioning Erasing a Hard Disk Drive
    Warning! This procedure will destroy all data on your Hard Disk Drive. Be sure you have an up-to-date, tested backup of at least your Users folder and any third party applications you do not want to re-install before attempting this procedure.
    • With computer shut down insert install disk in optical drive.
    • Hit Power button and immediately after chime hold down the "C" key.
    • Select language
    • Go to the Utilities menu (Tiger) Installer menu (Panther & earlier) and launch Disk Utility.
    • Select your HDD (manufacturer ID) in left side bar.
    • Select Partition tab in main panel. (You are about to create a single partition volume.)
    • _Where available_ +Click on Options button+
    +• Select Apple Partition Map (PPC Macs) or GUID Partition Table (Intel Macs)+
    +• Click OK+
    • Select number of partitions in pull-down menu above Volume diagram.
    (Note 1: One partition is normally preferable for an internal HDD.)
    • Type in name in Name field (usually Macintosh HD)
    • Select Volume Format as Mac OS Extended (Journaled)
    • Click Partition button at bottom of panel.
    • Select Erase tab
    • Select the sub-volume (indented) under Manufacturer ID (usually Macintosh HD).
    • Check to be sure your Volume Name and Volume Format are correct.
    • Click Erase button
    • Quit Disk Utility.
    cornelius

  • Java.lang.OutOfMemoryError  at sun.misc.Unsafe.allocateMemory(Native Metho

    Hi All,
    I have noticed the below OOM exception in one of my TCP Node. This OOM didn't cause the JVM to crash. The JVM seems to be running and The node seems to be part of the Cluster. However this TCP node is not receiving and request and not logging anything since the error.
    Has anyone experinced this exception/behaviour with JVM/coherence ?
    Regards
    S
    An exception occ
    urred while encoding a Response for Service=Proxy:ExendTcpProxyService:TcpAcceptor: java.lang.OutOfMemoryError
    at sun.misc.Unsafe.allocateMemory(Native Method)
    at java.nio.DirectByteBuffer.<init>(DirectByteBuffer.java:99)
    at java.nio.ByteBuffer.allocateDirect(ByteBuffer.java:288)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.peer.acceptor.TcpAcceptor$BufferPool.instantiateResource(TcpAcceptor.CDB:8)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.peer.acceptor.TcpAcceptor$BufferPool.acquire(TcpAcceptor.CDB:25)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.peer.acceptor.TcpAcceptor$BufferPool.allocate(TcpAcceptor.CDB:3)
    at com.tangosol.io.MultiBufferWriteBuffer.advance(MultiBufferWriteBuffer.java:903)
    at com.tangosol.io.MultiBufferWriteBuffer.write(MultiBufferWriteBuffer.java:311)
    at com.tangosol.io.AbstractWriteBuffer.write(AbstractWriteBuffer.java:110)
    at com.tangosol.io.AbstractWriteBuffer$AbstractBufferOutput.writeBuffer(AbstractWriteBuffer.java:1276)
    at com.tangosol.io.MultiBufferWriteBuffer$MultiBufferOutput.writeBuffer(MultiBufferWriteBuffer.java:648)
    at com.tangosol.io.pof.WritingPofHandler.onOctetString(WritingPofHandler.java:637)
    at com.tangosol.io.pof.PofBufferWriter.writeBinary(PofBufferWriter.java:602)
    at com.tangosol.io.pof.PofBufferWriter.writeObject(PofBufferWriter.java:1329)
    at com.tangosol.io.pof.PofBufferWriter$UserTypeWriter.writeObject(PofBufferWriter.java:2092)
    at com.tangosol.io.pof.PofBufferWriter.writeMap(PofBufferWriter.java:1739)
    at com.tangosol.io.pof.PofBufferWriter.writeObject(PofBufferWriter.java:1421)
    at com.tangosol.io.pof.PofBufferWriter$UserTypeWriter.writeObject(PofBufferWriter.java:2092)
    at com.tangosol.coherence.component.net.extend.message.Response.writeExternal(Response.CDB:15)
    at com.tangosol.coherence.component.net.extend.Codec.encode(Codec.CDB:23)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Peer.encodeMessage(Peer.CDB:23)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.peer.acceptor.TcpAcceptor.encodeMessage(TcpAcceptor.CDB:8)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Peer.send(Peer.CDB:16)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Peer.post(Peer.CDB:23)
    at com.tangosol.coherence.component.net.extend.Channel.post(Channel.CDB:25)
    at com.tangosol.coherence.component.net.extend.Channel.send(Channel.CDB:6)
    at com.tangosol.coherence.component.net.extend.Channel.receive(Channel.CDB:55)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Peer$DaemonPool$WrapperTask.run(Peer.CDB:9)
    at com.tangosol.coherence.component.util.DaemonPool$WrapperTask.run(DaemonPool.CDB:32)
    at com.tangosol.coherence.component.util.DaemonPool$Daemon.onNotify(DaemonPool.CDB:63)
    at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:42)
    at java.lang.Thread.run(Thread.java:619)

    So there are 2 parallel approaches to tackle this
    1) Try to figure out if your objects being exchanged are large and if there are bursts of traffic. i.e is the size of your nio buffer sufficient to handle your load. If so, check if the node doing the processing is unable to deal with events in a timely manner.
    2) Open a ticket. What I heard from training is that in 3.5 coherence should have started choking traffic to the TCP node once it recognized the nio buffers are approaching capacity. So, this is not working
    Fixing 2 will not solve 1. It will just delay the problem in my opinion.
    Bottom line is that there is too much data backlogging in the buffer, either because of unexpected bursts, or because of large objects or because of slowdown in processing in the node.

  • Jasper Reports error LINUX "sun.misc.Unsafe.ensureClassInitialized(Native "

    I have a servlet generating Reports using jasper reports. Its working perfectly on windows machine but on LINUX RHEL 4 SERVER it is throwing some error which is I am trying to tackle.
    TOMCAT :5.0.28
    JDK 1.4.2_08
    I installed the deprecated libraries for X-windows server.
    I think its JRloader which is throwing error but i have no clue how should I remove it.
    I hope someone knows this problem.
    error
    javax.servlet.ServletException
         org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:682)
         org.apache.jsp.Login.MCRServlet_jsp._jspService(MCRServlet_jsp.java:220)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    root cause
    java.lang.NoClassDefFoundError
         sun.misc.Unsafe.ensureClassInitialized(Native Method)
         sun.reflect.UnsafeFieldAccessorFactory.newFieldAccessor(UnsafeFieldAccessorFactory.java:20)
         sun.reflect.ReflectionFactory.newFieldAccessor(ReflectionFactory.java:122)
         java.lang.reflect.Field.acquireFieldAccessor(Field.java:779)
         java.lang.reflect.Field.getFieldAccessor(Field.java:760)
         java.lang.reflect.Field.getLong(Field.java:398)
         java.io.ObjectStreamClass.getDeclaredSUID(ObjectStreamClass.java:1478)
         java.io.ObjectStreamClass.access$400(ObjectStreamClass.java:47)
         java.io.ObjectStreamClass$3.run(ObjectStreamClass.java:335)
         java.security.AccessController.doPrivileged(Native Method)
         java.io.ObjectStreamClass.<init>(ObjectStreamClass.java:333)
         java.io.ObjectStreamClass.lookup(ObjectStreamClass.java:253)
         java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:453)
         java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1521)
         java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1435)
         java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1626)
         java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
         java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1845)
         java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769)
         java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1646)
         java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
         java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
         java.util.ArrayList.readObject(ArrayList.java:554)
         sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         java.lang.reflect.Method.invoke(Method.java:324)
         java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:838)
         java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1746)
         java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1646)
         java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
         java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1845)
         java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769)
         java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1646)
         java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
         java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1845)
         java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1769)
         java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1646)
         java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
         java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
         net.sf.jasperreports.engine.util.JRLoader.loadObject(JRLoader.java:88)
         net.sf.jasperreports.engine.util.JRLoader.loadObject(JRLoader.java:64)
         ReportGenerator.ReportServlet.getCompiledReport(ReportServlet.java:210)
         ReportGenerator.ReportServlet.doPost(ReportServlet.java:55)
         ReportGenerator.ReportServlet.doGet(ReportServlet.java:39)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

    jaumev wrote:
    I have exactly th e same problem.
    Have someone solved it?
    Thanks in advancePlease, don't resurrect old threads. Start a new thread if you have a specific question. I'm locking this one.
    Kaj

  • Re: search help for distribution field name

    hi to all,
    i had written like this
    select-options: s_manif for sood-objnam no intervals.i want a search help for this so that i want to select a distibution list names.
    how i can go head.
    please help me in this regard
    thanks
    sun
    Message was edited by: sun deep

    Hi,
    Get the distribution list names(OBJNAM) from table SOOD with OBJTP = 'DLI' and then call your own F4 help based on selected values.
    code :
    select-options: s_OBJNAM for sood-OBJNAM no intervals.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR s_OBJNAM-low.
    DATA: BEGIN OF li_OBJNAM OCCURS 0,
             OBJNAM like sood-OBJNAM,
            END OF li_OBJNAM.
      DATA: li_ret_tab LIKE ddshretval OCCURS 0 WITH HEADER LINE.
      DATA: lt_dynpfields LIKE dynpread OCCURS 0 WITH HEADER LINE.
    select objnam from sood
           into table li_OBJNAM
                  where objtp = 'DLI'.
    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
        EXPORTING
          retfield        = 'OBJNAM'
          dynpnr          = sy-dynnr
          dynpprog        = sy-repid
          dynprofield     = text-044
          value_org       = 'S'
        TABLES
          value_tab       = li_OBJNAM
          return_tab      = li_ret_tab
        EXCEPTIONS
          parameter_error = 1
          no_values_found = 2
          OTHERS          = 3.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    Regards
    Appana

Maybe you are looking for