URLClassLoader - Sun vs Apple implementation?

Does anyone have insights into differences between Sun and Apples implementation of URLClassLoader?
I have a strange issue which i believe is due to a difference in how URLClassLoader is implemented by Sun vs Apple. Specifically, this seems to occur if the class name contains a '$' symbol.
I'm using URLClassLoader in an applet to load additional classes. For classes without '$' in their name, everything works perfectly. For classes \with\ '$' in their name however, while it works perfectly on MacOSX, on Windows (Sun Java) i find that the URLClassLoader is not checking all of the url-classpaths? The http server clearly shows that when the applet is run from macosx requests are made to find the class on all the given classpaths. When run from windows though, the only requests are those made to the codebase path given in the <object>/<param> tags - no requests are made to the url bases specified when the URLClassLoader was instantiated. These are always answered with 404, but the applet never tries the other urls.
This is infuriatingly frustrating! Is anyone aware of some bug in suns implementation?

This is the wrong forum for this question. You should have posted this in the applet development forum or the general Java programming forum. Be sure to check out the list of available forums before posting your question here; posting in the right forum specific
for the technology you're learning will get you a faster response.
The first thing I would wonder is why all these classes aren't in a JAR file. Put the classes in a JAR file. Much easier deployment for an applet and faster to load as well.

Similar Messages

  • Can I use Tomahawk with Sun's JSF implementation?

    I would like to know whether I can use Tomahawk-1.1.3 with Sun's JSF implementation or have to use JSF implementation from myfaces?
    Thanks
    Zhong

    If the components are written per the specification, they should be portable, and as such should run on either implementation.

  • *wrong forum / URLClassLoader - Sun implementation not checking all paths

    wrong forum, sorry. where's the delete thread button?
    Edited by: jeremy_ on Mar 27, 2009 4:13 PM

    This is the wrong forum for this question. You should have posted this in the applet development forum or the general Java programming forum. Be sure to check out the list of available forums before posting your question here; posting in the right forum specific
    for the technology you're learning will get you a faster response.
    The first thing I would wonder is why all these classes aren't in a JAR file. Put the classes in a JAR file. Much easier deployment for an applet and faster to load as well.

  • HT1430 Can apple implement the following Security feature.

    Apple please make a change to the password secruity feature, that if the 'password feature is set on' has been selected, the IOS device can only be switched off once the correct password has been entered.
    As the battery in all IOS devices cannot be removed easily, this feature will allow the owner to track the device until the battery life has ended.
    My iPad Mini was stolen, 5 minutes after noticing that the device had been taken, your "findmyiphone app" was unable to track the device, as it had been switched off. All password features were set on and used to protect the device , but todate it has not shown up on the "findmyiphone app". The App tells me that the device is offline.
    I have also instructed the app to notify me once it has connected to the internet and a full delete to be implemented.
    Your response to this feature would greatly improve the security features that to so clearly advertise.
    Regards

    This is a user-to-user forum. If you want to make a formal suggestion to Apple, please use the feedback pages at this link: http://www.apple.com/feedback/

  • Inconsistency using SUN Rowset Reference Implementation

    I am Using the RowSet reference implemention with Oracle Database.
    I am having a class which takes a input in form of XML adhering to the webrowset format.
    The xml contains some records to be inserted , some records to be updated and some records to be deleted.
    This xml is then fed to a WebRowSet using the webRowSet.readXml method which takes a Reader as a parameter. I am using a StringReader here.
    Here is the code snippet:-
    public void executeUpdate(String webRowSetXML)throws SQLComponentException{
    System.out.println(" webRowSetXML "+webRowSetXML);
    StringReader sr = new StringReader(webRowSetXML);
    WebRowSet webRowSet = null;
    try {
    webRowSet = new WebRowSetImpl();
    webRowSet.readXml(sr);
    webRowSet.acceptChanges(connection);
    } catch (SQLException e) {
    // TODO Auto-generated catch block
    e.printStackTrace();
    I found here that the insertion and updating works without any problem , but the deletion doesn't work.
    Then to study this problem , i wrote a program with two WebRowSets, one will be the producer of the data and the other will be the consumer.
    the first WebRowSet will read the data from the data source , delete a record using the following piece of code:-
    wrs1.absolute(6);
    wrs1.deleteRow();
    And then i generate a String XML using the writeXML method.
    Then i feed this xml to the readXML method of the second WebRowSet and i call the acceptChanges method of the second WebRowSet. But the record doesn't get deleted.Also after printing the xml from the second WebRowSet , the <deleteRow> tag is absent from the xml.
    The same condition works properly for the insert and update operation and the respective <insertRow> and <updateRow> methods appear in both the xml's generated from both the WebRowSet's.
    Is this a bug in the webRowSet implemention or is it a problem of Oracle? Or is it that something else needs to be done for the delete operation to work.
    I tried the same thing with Pervasive SQL instead of oracle. Here only the insert operation works.
    Any body please help me in solving this problem...

    http://java.sun.com/j2se/1.4.1/docs/api/javax/sql/RowSet.html
    From the sun desc above.
    The RowSet interface is unique in that it is intended to be implemented using the rest of the JDBC API. In other words, a RowSet implementation
    is a layer of software that executes "on top" of a JDBC driver.
    Implementations of the RowSet interface can be provided by anyone,
    including JDBC driver vendors who want to provide a RowSet
    implementation as part of their JDBC products.
    rykk

  • Replacing Sun�s JSF implementation for MyFaces in Creator

    Hi. Does anyone know if I can replace the JSF implementation Creator uses for another, like MyFaces?
    Thanks

    OK. I looked at ourfaces_release_0_1.zip & ourfaces_20040622_1208.zip to see why latter worked. The reason is in the latter one, the faces-config.xml file is kept inside the META_INF directory of the jar file as expected by Creator.
    Regarding, "Component Runtime Jar", this will be automatically created for you if you don't provide one. If you look at <creator-user-dir>/components/jars you would find the created jar file (Note - the design time jar file mostly contains beaninfo classes of the component beans) .
    Also, you can provide your own design time jar file, if you don't wan't creator to create one automatically for you. As a starting point, you could use the script <creator-install-dir>/startup/bin/create-dt-jar.bat or sh and the corresponding "ant" script create-dt-jar.xml, to create your own design time jar file for more control over design time experience.
    > I am able to drag them onto the visual editor but nothing shows up ..
    Reason is the design time specifics are not included in the design time jar file. To include it in the automatically created design time jar file, you need to add an additional XML file called "sun-faces-config.xml" file in the META_INF directory along with the faces-config.xml. Unfortunately we don't yet have published documentation on how to create this XML file. But we are working on this.
    Alternateively, you could include these info in to the "beaninfo" classes directly after they are generated using the tools I mentioned above, before they are jar-ed to create the design time jar file . Again the documentations are not yet published.
    To specify the default Tag Lib URI look at the ourfaces.tld file. It is
    <uri>http://ourfaces.dev.sun.net/components</uri>
    - Winston

  • Does Sun provide an implementation for the PolicyManager interface (OMG)

    I need an interface through which I can set Policies and view the current Policy overrides. Doesn't the Java IDL provide a default implementation for the PolicyManager interface? (on the lines of what is available in VisiBroker and JacORB)
    Also want to know the values that need to be set for protocol_type if I need to use IIOP and SSLIIOP profocols

    It also makes a difference whether RMI/IIOP or Java IDL is used. Considering RMI/IIOP, there is still many work to be done. See, for example, bug 6239444, which came up when testing interoperability between Sun's and IBM's ORBs. I was told by experts that this problem came up due to the ambiguity of the RMI/IIOP specification. Java IDL should work better there.
    However, the discussion seems to become off-topic :-/, I am not sure that the original question was about interoperability.
    Regards,
    Miran

  • Why hasn't Apple implemented a way to cancel "update all" ?

    I have tried all the suggestions.  Turning off wifi.  Airplane mode.  Turning off the device.  Reset settings.  None of these things help.
    I have been reading posts about this issue that go back YEARS.  Why has Apple not implemented a "cancel updates" ?   Why was any potentially lengthy process ever let out the door without a way to cancel it?

    It is a technical support question.
    There have been many people posting about this problem for years.
    I have seen NO response from an Apple rep.  (Thank you for the feedback URL, I will use it)
    None of the user-supplied ideas seem to have worked for me or any of the previous victims of this problem.
    I did, however, find a way out.  Not to cancel, but to get it to finish. 
    You can find it here: https://discussions.apple.com/thread/5118089?tstart=0

  • Sun CC OpenMP implementation questions

    Hi all forum posters!
    Im trying to lurk out out Sun CC implements it's OpenMP scheduling policies but haven't found any information about this. Im interested in aspects such as how the work-sharing/task-stealing is performed , embedded task-depth cutoffs , untied vs tied (I have a feeling SunCC do not differ these two), and how task-scheduling is performed?
    Is there any documentation about these things or any person I can contact to increase my knowledge about this compiler?
    Thank you and best regards!

    The only publicly-available information about our implementation of OpenMP is in the OpenMP API User's Guide.
    Some of the details you ask about are currently proprietary. Some details are subject to change as we improve the OpenMP implementation.

  • I had 2 Apple IDs but now Apple implemented new conditions and i can't use one of them after 90 days using the prior one..! - "This Device Is Already Associated With an Apple ID"

    I have two Apple IDs because i travel frequently between Mexico and the US, and the apple stores offer different products, so i like to download music, movies and TV series from both sites.
    Apparently apple changed the conditions, becauise until a few days ago i could log our from one account and log in from my other one. Yesterday i was at Miami International Airport and wanted to download a few chapters from one of my TV series (Walking Dead) to watch on my way to Mexico City, but a pop up window came up saying "this device is already associated with an apple id". Curoiously, the ID to which i was connected to was precisely the one under which i had bought weeks ago the chapters i was wanting to download from the cloud. So it says i have to wait 90 days to change apple id.... weard! probably i accepted these terms when dowloading a new IOS version, so legally I'm dead in complaining, but why is it that if i am paying for all that i buy as a model citizen i am now blocked from jumping from one apple id to another one???? I can certainly buy another ipad and have one with one id and another one with the other, but is there any other way i can keep the two in just one device?? If i don't use i-could would anything change? This is really making me mad, and is the first time i have thought of moving our of mac products into samsung or others and buy my music and movies somewhere else where stupid restrictions like this one do not exist. Please help with a solution!

    OK, but in my ipad, the apple id i have in itues is already the one  iwant to have, but th one i used to sin in for i-coud is the other one. Any tip as to how to change the apple id for icloud and any idea how to know what apps i bought with the other apple id so as to delete them from my ipad to avoid being asked to enter another apple id every time they get updated? thanks!

  • Why can't Apple implement a proper delete key function?

    ..... by making Shift+ Backspace delete data in front of the insertion point. What on earth is stopping you????

    "stopping you????" - who? Apple aren't here, and none of the Apple users here have the ability to add such a function.
    No doubt Apple could if they thought there was enough demand for such a function. You can tell Apple that's what you want here: http://www.apple.com/feedback/ipad.html

  • Why can't apple implement something similiar to SBsettings into their notification center?? it would make things so much easier!

    Picture of it right here ----> http://media.idownloadblog.com/wp-content/uploads/2011/10/SBSettings-iOS5-Beta.p ng  Tell me what you think!!

    Given that I'm not going to re-encode my entire video library (I have neither the time nor the inclination), is there anything I can do, like hack it to download and install third-party codecs or something?
    You should really try to figure out why the files are not playing on the TV2. If the files can be played on your iPad and iPhone then they are already TV2 compatible. As to iTunes, it can play anything compatible with your current QT component configuration, so this is not a valid comparison for playback capabilities of mobile devices which only contain a sub-set of the components used by the main platform media players. More than likely, your problem is something other than the files.

  • Implementation-specific documentation for the Sun/Oracle Java SE ?

    Hi,
    Some places in the Java SE API specification call for platform-specific documentation. For example, the specification of the method await of class java.util.concurrent.locks.Condition says:
    "Implementation Considerations
    The current thread is assumed to hold the lock associated with this Condition when this method is called. It is up to the implementation to determine if this is the case and if not, how to respond. Typically, an exception will be thrown (such as IllegalMonitorStateException) and the implementation must document that fact. "
    So, implementation-specific documentation is expected to exist in addition to the API specification documentation. Sure, sentences beginning with "Typically..." suggest that that is what the Sun/Oracle reference implementation does, so the behavior of Sun/Oracle implementation can be guessed in many cases... yet sometimes troubling uncertainty remains.
    If implementation-specific documentation for the implementation exists, please let me know.
    I apologize if I chose an inappropriate forum for this question, but there seems to be no forum for discussing documentation arrangements.

    If you want to look at the implementation sepcific documentation, the best place to look is the source.
    The reason the docuementation is written generically is because they want you to write portable code, rather than rely on the specific implementation detail of the one you are using.
    Even if you don't intend to use another vendor, you might want to upgrade in the future and Java 7 or 8 many change its implementations provided it meets the specification.

  • Which JSF implementation to chooose - Sun's reference impl OR Apache MYFace

    Hi ,
    We are starting new UI development and would like to know,
    which JSF implementation to chooose - Sun's reference implementation OR Apache MYFaces and why ?
    Thanks

    I have had good luck using the MyFaces implementation. I switched from Sun's after running into a few too many exceptions with little explanation on where to look for the error.
    That said, I've since switched to using facelets so my view is created by xhtml files instead of JSPs. I cannot recommend this way of doing things highly enough!
    Regardless of which you choose, you can still use MyFaces tomahak components in your site - the date input is really fantastic!

  • Event like preRender / page_Load in Sun's JSF 1.2 implementation ?

    Hi there,
    i wonder if anyone can confirm or advise how i can do things in code before the JSF (.faces template) is shown.
    I have done a search on the forum and seems to be a lot of people asking about it... it seems IBM's version of JSF has a preRender method or something BUT i am confused,
    I wanted to stick with Sun's JSF implementation, maybe i am wrong to do this???
    Within Sun's JSF is there a work around or an event/method that is called before the page is displayed?
    If anyone has any examples or info it would be really appreciated
    Thanks in advance
    Ian

    Ian001 wrote:
    I am really enjoying java journey .. but there just seem to be too many options :-) ah ah..Options are good! :)
    Anybody care to comment on which i should use, i did want to stay with Suns implementation of JSF so i presume apache shale or jsftemplating can be installed over the top??Yes. They are add-ons that should work with any JSF implementation.
    Why do i want to stay with sun's implementation of JSF well i read someone that it is more stable and advanced... maybe this has changed or maybe i am wrong?That's my impression, but I have a bias. :)

Maybe you are looking for