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.

Similar Messages

  • Any class can replace sun.misc.BASE64Encoder?

    In my program i want encode something, so i use the sun.misc.BASE64Encoder . But according to the JDK documents, i should not call "sun.*" package. In my applet program the access control exception occurs with the sun.misc. I have to give up the sun.misc.BASE64Encoder .
    Any other class replace BASE64Encoder that i can use?
    Please help me.
    Thank you very much!
    coral9527

    Read the whole page:
    http://iharder.sourceforge.net/xmlizable/

  • 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.

  • Import sun.misc.BASE64Encoder;

    Hi,
    Can we use "import sun.misc.BASE64Encoder;" library in java mapping?
    Thanks,
    Best Regards.

    Yes,you can.
    Check out the following blog for an example : http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3417400)ID1015865250DB11252644827406985331End?blog=/pub/wlg/9793%3Fpage%3Dlast%26x-order%3Ddate
    Thanks,
    Pooja Pandey

  • Where to find sun.misc.BASE64Encoder

    Hi!
    I'm not sure if this is the right forum but...
    I need to encode a string in Base64 but I don't know how.
    I found people using the class sun.misc.BASE64Encoder but I can�t find it.
    I suppose it is part of a package that is downloadable (i hope at least) but I don't know where to search.
    I don't need an automatic encoder really. I just want to encode a particular string. Is there another one-time-solution?
    Please help
    Kind regards
    /Stefan F�gersten, InfoGrator

    There are a number of free open source Base64 encoders. As a rule, you should not rely on classes in 'com.sun'. It's somewhat unfortunate that they didn't provide a Base64 encoder/decoder in the stock library, it's quite a common request.
    http://www.google.com/search?q=Java+Base64+Encode
    Good luck,
    -Derek

  • Sun.misc.HexDumpEncoder.encodeBuffer  alternative in java se 6

    Hello all,
    One of my application used following code which is developed in java 1.2.2 but now we are migrating this application to java se 6 where the following code is depracted.
    sun.misc.HexDumpEncoder.encodeBuffer
    Can any one guide for the above code replacement in java se 6
    Thanks & Regards,

    javaHelp wrote:
    i wanted to ask that:
    is currently java se 6 has any new api for this code?The sun packages are not part of the public api.
    From [http://java.sun.com/products/jdk/faq/faq-sun-packages.html|http://java.sun.com/products/jdk/faq/faq-sun-packages.html]
    The java.*, javax.* and org.* packages documented in the Java 2 Platform Standard Edition API Specification make up the official, supported, public interface.
    If a Java program directly calls only API in these packages, it will operate on all Java-compatible platforms, regardless of the underlying OS platform.
    The sun.* packages are not part of the supported, public interface.
    A Java program that directly calls into sun.* packages is not guaranteed to work on all Java-compatible platforms. In fact, such a program is not guaranteed to work even in future versions on the same platform. If that does not answer your question, re-read reply 6.

  • 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.

  • Sun Management Center and Reduced Core Installs

    hey all,
    I just discovered the Sun Management Center and the tool looks great for the servers I need to manage. However due to security reasons all our servers are installed as Reduced Network Core installs where we then add the minimal extra packages.
    At the moment I am still testing everything but I am a bit stuck here and I believe that I might be missing some packages. I can get the server to find the agent but there I cannot load any of the modules. Sniffing the traffic does seem to show that the info is sent ( a list of names I recognise as module names) but the console does not show anything and reports an error unable to load module info.
    Is there a full package list that is required to run the management center server and client? The agent runs fine on my desktop but that is a full install.
    I already noticed the command ping is required, but am unsure about snmp daemons. What other packages will i need to install? The manual doesn't really give any information on that and seems to start from a full install

    Never mind,
    The problem was in the firewall who was defragmenting packets. Once I disabled that feature the server worked fine.
    Seems just ping is enough to get the installer working.

  • Difference between SUN JDK V1.4.2_05 and JDK V1.4.2_07

    difference between SUN JDK V1.4.2_05 and JDK V1.4.2_07 and I want to the link in SUN for that. I want to know the bug fixes between them.

    Perhaps you should look at the documentation which comes with JDK 1.4.2_08.
    It has the bugs fixed listed.

  • JDeveloper 11g and JDK 1.4.2_16

    Hi! I just created a new simple app in JDev 11g and selected the JDK 1.4.2_16 for the model project. I created a set of business components from tables, built the project and them attempted to run the AppModule tester.
    I got the following error:
    /usr/java/j2sdk1.4.2_16/bin/java -server -classpath /opt/app/oracle/product/jdevstudio1111/BC4J/jlib/bc4jtester.jar:/opt/app/oracle/product/jdevstudio1111/BC4J/lib/bc4jsyscat.jar:/opt/app/oracle/product/jdevstudio1111/BC4J/lib/db-ca.jar:/opt/app/oracle/product/jdevstudio1111/jlib/jdev-cm.jar:/opt/app/oracle/product/jdevstudio1111/lib/xmlparserv2.jar:/opt/app/oracle/product/jdevstudio1111/jlib/ohj.jar:/opt/app/oracle/product/jdevstudio1111/jlib/help-share.jar:/opt/app/oracle/product/jdevstudio1111/jlib/share.jar:/opt/app/oracle/product/jdevstudio1111/jlib/jewt4.jar:/opt/app/oracle/product/jdevstudio1111/jlib/oracle_ice.jar:/opt/app/oracle/product/jdevstudio1111/jlib/ojmisc.jar:/opt/app/oracle/product/jdevstudio1111/ide/lib/idert.jar:/opt/app/oracle/product/jdevstudio1111/ide/lib/javatools.jar:/usr/java/j2sdk1.4.2_16/jre/lib/rt.jar:/usr/java/j2sdk1.4.2_16/jre/lib/i18n.jar:/usr/java/j2sdk1.4.2_16/jre/lib/sunrsasign.jar:/usr/java/j2sdk1.4.2_16/jre/lib/jsse.jar:/usr/java/j2sdk1.4.2_16/jre/lib/jce.jar:/usr/java/j2sdk1.4.2_16/jre/lib/charsets.jar:/usr/java/j2sdk1.4.2_16/jre/classes:/home/mcruz/development/11g/SessionTest11g/.adf:/home/mcruz/development/11g/SessionTest11g/Model/classes:/opt/app/oracle/product/jdevstudio1111/BC4J/lib/adf-share-support.jar:/opt/app/oracle/product/jdevstudio1111/BC4J/lib/adf-share-ca.jar:/opt/app/oracle/product/jdevstudio1111/BC4J/lib/adf-share-base.jar:/opt/app/oracle/product/jdevstudio1111/jlib/identitystore.jar:/opt/app/oracle/product/jdevstudio1111/BC4J/lib/bc4jmt.jar:/opt/app/oracle/product/jdevstudio1111/BC4J/lib/bc4jwizard.jar:/opt/app/oracle/product/jdevstudio1111/BC4J/lib/groovy-all-1.0.jar:/opt/app/oracle/product/jdevstudio1111/BC4J/lib/bc4jct.jar:/opt/app/oracle/product/jdevstudio1111/jlib/commons-el.jar:/opt/app/oracle/product/jdevstudio1111/jlib/jsp-el-api.jar:/opt/app/oracle/product/jdevstudio1111/jlib/oracle-el.jar:/opt/app/oracle/product/jdevstudio1111/jlib/resourcebundle.jar:/opt/app/oracle/product/jdevstudio1111/lib/java/api/jaxb-api.jar:/opt/app/oracle/product/jdevstudio1111/lib/java/api/jsr173_api.jar:/opt/app/oracle/product/jdevstudio1111/j2ee/home/lib/activation.jar:/opt/app/oracle/product/jdevstudio1111/lib/java/shared/sun.jaxb/2.0/jaxb-xjc.jar:/opt/app/oracle/product/jdevstudio1111/lib/java/shared/sun.jaxb/2.0/jaxb-impl.jar:/opt/app/oracle/product/jdevstudio1111/lib/java/shared/sun.jaxb/2.0/jaxb1-impl.jar:/opt/app/oracle/product/jdevstudio1111/BC4J/lib/adfshare.jar:/opt/app/oracle/product/jdevstudio1111/BC4J/lib/adfm.jar:/opt/app/oracle/product/jdevstudio1111/BC4J/jlib/adfui.jar:/opt/app/oracle/product/jdevstudio1111/BC4J/lib/adfbinding.jar:/opt/app/oracle/product/jdevstudio1111/adfdt/lib/adfdtatrt.jar:/opt/app/oracle/product/jdevstudio1111/adfdt/lib/adftransactionsdt.jar:/opt/app/oracle/product/jdevstudio1111/adfdt/lib/adfdt_common.jar:/opt/app/oracle/product/jdevstudio1111/mds/lib/mdsrt.jar:/opt/app/oracle/product/jdevstudio1111/j2ee/home/jazn.jar:/opt/app/oracle/product/jdevstudio1111/j2ee/home/jazncore.jar:/opt/app/oracle/product/jdevstudio1111/j2ee/home/jps-api.jar:/opt/app/oracle/product/jdevstudio1111/j2ee/home/jps-common.jar:/opt/app/oracle/product/jdevstudio1111/j2ee/home/jps-internal.jar:/opt/app/oracle/product/jdevstudio1111/j2ee/home/jps-fmw.jar:/opt/app/oracle/product/jdevstudio1111/j2ee/home/jps-unsupported-api.jar:/opt/app/oracle/product/jdevstudio1111/j2ee/home/lib/jacc-api.jar:/opt/app/oracle/product/jdevstudio1111/j2ee/home/lib/oc4j-unsupported-api.jar:/opt/app/oracle/product/jdevstudio1111/jdbc/lib/ojdbc5dms.jar:/opt/app/oracle/product/jdevstudio1111/jlib/orai18n.jar:/opt/app/oracle/product/jdevstudio1111/jlib/ojdl.jar:/opt/app/oracle/product/jdevstudio1111/jlib/dms.jar:/opt/app/oracle/product/jdevstudio1111/BC4J/lib/bc4jdomorcl.jar:/opt/app/oracle/product/jdevstudio1111/BC4J/jlib/bc4jdatum.jar:/opt/app/oracle/product/jdevstudio1111/j2ee/home/lib/servlet.jar:/opt/app/oracle/product/jdevstudio1111/jlib/commons-cli-1.0.jar:/opt/app/oracle/product/jdevstudio1111/j2ee/home/lib/commons-collections.jar:/opt/app/oracle/product/jdevstudio1111/jlib/xmlef.jar:/opt/app/oracle/product/jdevstudio1111/lib/xml.jar:/opt/app/oracle/product/jdevstudio1111/rdbms/jlib/xdb.jar:/opt/app/oracle/product/jdevstudio1111/javacache/lib/cache.jar:/opt/app/oracle/product/jdevstudio1111/diagnostics/lib/ojdl.jar:/opt/app/oracle/product/jdevstudio1111/j2ee/home/lib/pcl.jar:/opt/app/oracle/product/jdevstudio1111/ucp/lib/ucp.jar:/opt/app/oracle/product/jdevstudio1111/lib/java/shared/oracle.javatools/11.1.1.0.0/dafrt.jar:/opt/app/oracle/product/jdevstudio1111/lib/java/shared/oracle.javatools/11.1.1.0.0/javatools-nodeps.jar:/opt/app/oracle/product/jdevstudio1111/BC4J/jlib/bc4jui.jar:/opt/app/oracle/product/jdevstudio1111/dvt/lib/dvt-client.jar:/opt/app/oracle/product/jdevstudio1111/dvt/lib/dvt-utils.jar:/opt/app/oracle/product/jdevstudio1111/jlib/LW_PfjBean.jar: oracle.jbo.jbotester.MainFrame -X 116D6D52C8E -H jar:file:/opt/app/oracle/product/jdevstudio1111/jdev/doc/studio_doc/ohj/bc4j_f1.jar!/bc4j_f1.hs
    Exception in thread "main" java.lang.UnsupportedClassVersionError: oracle/jbo/jbotester/MainFrame (Unsupported major.minor version 49.0)
         at java.lang.ClassLoader.defineClass0(Native Method)
         at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
         at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
         at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
         at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
         at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
    Process exited with exit code 1.
    Am I to assume that jdk1.4.x is no longer supported in JDeveloper and that I should start using JDK1.5.x? But apps built with JDK1.5.x are not supported in AppServer 10.1.2.0.2, which is J2EE 1.3 compliant... Does that mean that JDeveloper 11g is suitable only for apps deployed on OAS 10.1.3.x and above? (OAS 10.1.3.x is J2EE 1.4 compliant, and OAS 11g will be J2EE 5.x compliant).
    Comments please.
    Thx!

    be on OracleAs 10.1.3 at a minimum<<The problem (for us) with Oracle AS 10.1.3 is that Portal 10.1.4 will not run on it (not certified). We want to take advantage of ADF RC and we hope to be able to produce JSF portlets or "portletized" apps. But at the moment we are "stuck" with 10.1.2.0.2 and JDK 1.4.x/J2EE1.3...
    While you can have a 10.1.2 farm and add a 10.1.3 separate instance it is not a clean/complete integration (you can't manage all services from the 10.1.2 farm EM and others; this is what I've seen so far, IMO).
    We can't wait for OAS 11g to come out and take a look at that. And I certainly hope that Portal will be certifed on 11g so that we can just jump there.
    Another wish: WebCenter functionality in Portal, or Portal/WebCenter rolled out into one.

  • 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.

  • Where to find sun.misc package???

    Hi everybody,
    I need to do uuencoding and read about appropriate classes within the sun.misc package. Regrettably I can't it.
    Any advice???
    Kind regards,
    Gunnar Osterode

    By the way, the sun.misc.* package is included in
    rt.jar, the Java runtime classes - these should always
    be available ... in the sun's implementation.
    http://java.sun.com/products/jdk/faq/faq-sun-packages.html

  • Package sun.misc

    hi
    where do i download the package / jar file sun.misc
    Thnx in advance
    Vinodh

    Please read this first ("Why Developers Should Not Write Programs That Call 'sun' Packages")
    http://java.sun.com/products/jdk/faq/faq-sun-packages.html
    By the way, sun.misc package is available in rt.jar, like the java.lang package, and does not require any special parameters to javac. The source for sun.misc package can be perused in src.jar and you can generate the javadocs for that source files using the javadoc tool.

  • 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?

  • 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.

Maybe you are looking for