RMI : error on JRE 1.6 but not on JRE 1.5 ???

Hello,
I've got a problem with my application since i use JRE 1.6
My application run perfectly with JRE 1.5 !!!
My code is first :
LocateRegistry.createRegistry(port);
NamingManager.setInitialContextFactoryBuilder(new InitialServerContextFactory());
NamingManager.getInitialContext(environment);(with environment is an hastable containing HOST et PORT)
An next, i have a Java Class witch impl�ments Context :
public class InitialServerContext implements Context
    public void bind(String name, Object obj) throws NamingException
          getRMIContext().bind("rmi://" + mServer + ':' + mPort + '/' + name, obj);
    static Context getRMIContext() throws NamingException
          return NamingManager.getURLContext("rmi", null);
The error on JRE 1.6 is on the line :
getRMIContext().bind("rmi://" + mServer + ':' + mPort + '/' + name, obj);
_Exception is
:_java.lang.NullPointerException
at com.sun.jndi.rmi.registry.RegistryContext.<init>(Unknown Source)
at com.sun.jndi.url.rmi.rmiURLContext.getRootURLContext(Unknown Source)
at com.sun.jndi.toolkit.url.GenericURLContext.bind(Unknown Source)
at com.xxx.aes.naming.InitialServerContext.bind(InitialServerContext.java:231)
at com.xxx.aes.naming.InitialServerContextFactory.getInitialContext(InitialServerContextFactory.java:104)
at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
at com.xxx.aes.server.NamingServer.start(NamingServer.java:65)
What is the difference between JRE 1.5 and 1.6 ?
Why my application in 1.6 is not correct ?
If necessary, i can give you my Java Class InitialServerContextFactory.java
Thanks a lot for your responses.

Hello,
I tired this approach you mentioned, and interestingly if i just make ejb calls without any event handling, meaning if i call them separately they all just work fine and i see the results coming back from server. But when i relate them to any click events the whole IE freezes.
One more thing i noted is that, seems like the way JRE 1.6 render my applet is somewhat different than JRE 1.5.* familiy,because initially when my aplet is loaded, i see everything which should be displayed from the first screen, but any further operations i cannot perform, even opening a file chooser from tool bar. I admit my applet is real heavy and it contains a lot of data in it on the first screen, may be its the heap size causing the problem in 1.6 but fine with jre 1.5.
Day by day am coming to conlusion that jre 1.6 is my concern now ..:(
Thanks,

Similar Messages

  • SSL secrutiy warning in JRE 1.4 but not in JRE 1.3

    Hello,
    I have applied a SGC SSL certificate from the comodo CA. The SGC SSL certificate is signed by the intermediate CA "UTN - DataCorp SGC" and the intermediate CA is signed by "AddTrust External CA Root". After installed the SGC SSL certificate into web server, I have tested the SSL connection in IE. It worked without any security warning.
    If I browsed a web page with an applet embedded and the JRE was using 1.3, the SSL connection was Ok without security warning message. But if I changed the JRE to 1.4, there was a security warning to prompt that "This certificate was signed by an untrusted CA" and "Do you want to continue".
    I have found that the "UTN - DataCorp SGC" and "AddTrust External CA Root" CA certificates didn't found in the Java trust store in both 1.3 and 1.4 version. Why did the security warning message show in the JRE 1.4 but not in JRE 1.3?
    Thanks and regards,

    Hi
    Java Plugin 1.3 (re-)used the SSL connection of the browser, whereas Java Plugin 1.4 uses its own SSL implementation (JSSE) to open a new connection. Therefore Java Plugin 1.4 needs to verify the server certificate (using its own keystore).
    Cheers

  • BPEL SCA: XML-20129: (Error) Namespace prefix 'ui' used but not declared.

    SOASuite 11g
    Oracle Weblogic Server 10.3.3
    Oracle Solaris on SPARC (64-bit) 10
    Database: Oracle Server - Enterprise Edition 10.2.0.5
    When I start the SOA domain server, I find the following in the log file:
    <Feb 25, 2011 10:41:23 AM CET> <Error> <org.apache.commons.digester.Digester> <BEA-000000> <Parse Error at line 9 column 79: <Line 9,
    Column 79>: XML-20129: (Error) Namespace prefix 'ui' used but not declared.
    org.xml.sax.SAXParseException: <Line 9, Column 79>: XML-20129: (Error) Namespace prefix 'ui' used but not declared.
    at oracle.xml.parser.v2.XMLError.flushErrorHandler(XMLError.java:422)
    at oracle.xml.parser.v2.XMLError.flushErrors1(XMLError.java:287)
    at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:342)
    at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:226)
    at org.apache.commons.digester.Digester.parse(Digester.java:1785)
    at oracle.fabric.composite.Parser.parseComposite(Parser.java:132)
    at oracle.integration.platform.kernel.WLSFabricKernelInitializer.deployComposite(WLSFabricKernelInitializer.java:493)
    at oracle.integration.platform.kernel.WLSFabricKernelInitializer.prepareCompositeDeployments(WLSFabricKernelInitializer.java:
    239)
    at oracle.integration.platform.kernel.WLSFabricKernelInitializer.init(WLSFabricKernelInitializer.java:127)
    at javax.servlet.GenericServlet.init(GenericServlet.java:241)
    at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:283)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
    at weblogic.servlet.internal.StubSecurityHelper.createServlet(StubSecurityHelper.java:64)
    at weblogic.servlet.internal.StubLifecycleHelper.createOneInstance(StubLifecycleHelper.java:58)
    at weblogic.servlet.internal.StubLifecycleHelper.<init>(StubLifecycleHelper.java:48)
    at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:539)
    at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:1976)
    at weblogic.servlet.internal.WebAppServletContext.loadServletsOnStartup(WebAppServletContext.java:1950)
    at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1869)
    at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:3126)
    at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1512)
    at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:486)
    at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:41)
    at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
    at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:200)
    at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:247)
    at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:41)
    at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
    at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:27)
    at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:1267)
    at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:41)
    at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:409)
    at weblogic.application.internal.EarDeployment.activate(EarDeployment.java:58)
    at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:161)
    at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:79)
    at weblogic.deploy.internal.targetserver.BasicDeployment.activate(BasicDeployment.java:184)
    at weblogic.deploy.internal.targetserver.BasicDeployment.activateFromServerLifecycle(BasicDeployment.java:361)
    at weblogic.management.deploy.internal.DeploymentAdapter$1.doActivate(DeploymentAdapter.java:51)
    at weblogic.management.deploy.internal.DeploymentAdapter.activate(DeploymentAdapter.java:200)
    at weblogic.management.deploy.internal.AppTransition$2.transitionApp(AppTransition.java:30)
    at weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps(ConfiguredDeployments.java:240)
    at weblogic.management.deploy.internal.ConfiguredDeployments.activate(ConfiguredDeployments.java:169)
    at weblogic.management.deploy.internal.ConfiguredDeployments.deploy(ConfiguredDeployments.java:123)
    at weblogic.management.deploy.internal.DeploymentServerService.resume(DeploymentServerService.java:180)
    at weblogic.management.deploy.internal.DeploymentServerService.start(DeploymentServerService.java:96)
    at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    >
    My composite.xml is:
    <composite name="JIPSYHandleRTOTaskEBF" revision="1.0" mode="active" state="on"
    xmlns="http://xmlns.oracle.com/sca/1.0"
    xmlns:ui="http://xmlns.oracle.com/soa/designer/"^M
    xmlns:xs="http://www.w3.org/2001/XMLSchema">^M
    <import location="GetTimeoutPeriod.wsdl" namespace="http://xmlns.oracle.com/pcbpel/adapter/db/GetTimeoutPeriod/"/>
    <service ui:wsdlLocation="JIPSYHandleRTOTaskEBF.wsdl" name="client">
    </composite>
    But when it has been deployed, I see that this has been changed into:
    <composite name="JIPSYHandleRTOTaskEBF" revision="1.0" xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <import location="GetTimeoutPeriod.wsdl" namespace="http://xmlns.oracle.com/pcbpel/adapter/db/GetTimeoutPeriod/"/>
    <service ui:wsdlLocation="JIPSYHandleRTOTaskEBF.wsdl" name="client">
    </composite>
    (I exported this from MDS).
    Apparently, some namespaces are stripped.
    This appears to happen during the deploy (using ant), because the version in the generated jar file is already missing the namespaces.
    The BPEL processes appear to work fine though.
    Why is this happening and how can I prevent these errors?

    I've fiddled around with the file composite.xml and found the following workaround:
    If I change the start of the file to:
    <?xml version="1.0" encoding="UTF-8"?>
    <composite name="JIPSYUpdateWorkflowReqABCSImpl"
    xmlns="http://xmlns.oracle.com/sca/1.0"
    xmlns:ui="http://xmlns.oracle.com/soa/designer/"
    xmlns:xs="http://www.w3.org/2001/XMLSchema"
    revision="1.0"
    mode="active"
    state="on">
    it remains unchanged and the errors during deployment are gone.

  • Error #1503 with AIR3.4 but not AIR3.2

    I'm working on an Android/iOS app using Adobe AIR. The app appears to work normally both inside Flash Pro and real devices except for the following test:
    Do Publish Preview inside Flash Pro.
    Close the preview window.
    The error appears in the Output panel:
    Error: Error #1503: A script failed to exit after 30 seconds and was terminated.
         at [*code location is a for loop inside writeExternal() of a class saved to a Shared Object*]
    Test Movie terminated.
    This happens with AIR3.4, but not AIR3.2. It doesn't matter how soon I close the preview window. I did a lot of code checking, tracing, etc. but still can't figure out what's wrong. Any suggestions?

    Most obvious suggestion is an infinite loop due to a null variable. Check the condition for the loop to continue and that will give you an idea what is causing it.
    Though, why that would be an issue between SDKs is beyond me without seeing the code. (And possibly even then...)
    G

  • Cure for "501 Method Not Implemented" error at site in Firefox but not Chrome or IE?

    I am receiving a "501 Method Not Implemented" error message at a site in Firefox but not in Chrome or IE. How can this be cured?

    Do you get that error if you access the site or if you click a link to got to another page?
    You can reload the page and bypass the cache with:
    * Press and hold Shift and left-click the Reload button.
    * Press "Ctrl + F5" or press "Ctrl + Shift + R" (Windows,Linux)
    * Press "Cmd + Shift + R" (MAC)
    See [[Keyboard shortcuts]] and [[Mouse shortcuts]]
    * "Clear the Cache": Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    * "Remove the Cookies" from sites that cause problems: Tools > Options > Privacy > Cookies: "Show Cookies"
    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]

  • Duplex print setup error - Namespace prefix 'section' used but not declared

    Hi All, I am getting the below error while trying to preview as PDF document. The issue seems to be caused by adding the below to form field in the rtf template (removing the below i can view the PDF document but it does not work as expected ie printing the terms and conditions to back of the page)
    <?section:force-page-count;'end-on-even-layout'?>
    Error::
    Caused by: oracle.xdo.parser.v2.XPathException: Namespace prefix 'section' used but not declared.
         at oracle.xdo.parser.v2.XSLProcessor.reportException(XSLProcessor.java:782)
         at oracle.xdo.parser.v2.XSLProcessor.newXSLStylesheet(XSLProcessor.java:564)
         ... 15 more
    FYI: I have been using the below link as example
    http://blogs.oracle.com/xmlpublisher/2007/10/here_are_my_terms_conditions.html
    Also reviewed the following link too apart from reading the user guide
    http://winrichman.blogspot.com/search/label/BI%20Publisher%20Last%20page%20continued
    Thanks, Maha

    Hi Maha,
    I have used the <?section:....?> command a few times, and I think it has to be enclosed within a <?for-each@section:.....?> loop. If you are still having issues, then upload your template and sample XML somewhere and I can try to take a look for you.
    Regards,
    Cj

  • LNK2019 Error, Works fine in cmd, but not visual studio

    Hello.
    I'm getting this error. I've looked online and it says this happens when something is declared but not defined, however I don't see any issues like that. The most annoying part is that it compiles fine in cmd. I'm not sure why Visual Studio 2013 is giving
    me issues
    Errors
    Error 1
    error LNK2019: unresolved external symbol "public: __thiscall Shader::Shader(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (??0Shader@@QAE@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z) referenced in function _main
    Error 2
    error LNK2019: unresolved external symbol "public: virtual __thiscall Shader::~Shader(void)" (??1Shader@@UAE@XZ) referenced in function _main
    Error 3
    error LNK1120: 2 unresolved externals
    main.cpp
    #include <iostream>
    #include "shader.h"
    int main(int argc, char** argv)
    Shader shader("./res/basicShader");
    return 0;
    shader.h
    #ifndef SHADER_H
    #define SHADER_H
    #include <string>
    class Shader
    public:
    Shader(const std::string& fileName);
    virtual ~Shader();
    protected:
    private:
    #endif //SHADER_H
    shader.cpp
    #include "shader.h"
    #include <iostream>
    #include <fstream>
    #include <string>
    Shader::Shader(const std::string& fileName)
    Shader::~Shader()

    Hi Arend Peter,
    Since this forum is to discuss the VS IDE usage, based on your description, it would be the VC++ development issue, to help you resolve this issue as soon as possible, I suggest you post this issue to the VC++ language development forum,
    I think you would get dedicated support there.
    The VC++ forum link:
    https://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=vcgeneral
    Best Regards,
    Jack
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • IDOC Error:Two accounts were transferred but not BSEG-HKONT

    Hi experts
    I got a porblem while posting IDOCs using FB01.
    Error: <b>Two accounts were transferred but not BSEG-HKONT</b>
    On diagnosis i found the reason stated for that error msg is :<i>This error also occurs if more than 1000 line items are transferred. In this case, the transferred data must be distributed across several documents.
    </i>
    But i m unable to understand that, in my idoc it has only 20-50 line items(Segments).
    Moreover if i try to process this idoc from SAP Inbox, it doesnt process and all the idocs that i try to process after this leads to the same error .
    Sometimes i get the error:<i>More than two accounts were transferred</i> which also means the more lineitems transfered.
    Can anyone plz explain me this.
    Whats the solution for the same.
    Each answers will be rewarded for sure.
    Regards
    DhanyaR Nair

    check the accounts parameters of idoc. may be the particular account type fucnctional configuration is mismatch with posting data

  • ILife'11 and "Connection failed" error. I know why but not how to solve

    I've already posted a message where I told that after installed iLife'11, every time I start iMovie the error "+Connection Failed - The server may not exist or is not operational at this time. Check the server name or IP address and your network connection, and try again+".
    Please note the error occur also if I start iWeb and iDvd
    Browsing the Posts i found this interesting message that help me to understand why the error occur:
    http://discussions.apple.com/message.jspa?messageID=5969681
    What I did is to start iPhoto with the option button pressed and defined a new iPhoto library (a different one than my 5GByte iPhoto Library).
    I chose the default iPhoto Library that was empty.
    Well, the pesky error never occur neither with iMovie nor with iDVD or iWeb.
    Just to be sure, I changed again the iPhoto Library choosing my big iPhoto Library.
    Started iMovie.
    While it tries to update the iPhoto event, the "Connection" error occur.
    Same thing if I start iWeb or iDvd.
    Now, how can I fix my iPhoto Library and avoid to make a new Library importing everything again ?

    Hi. Not sure if you got this sorted, but I has similar issues. After much investigation, I found that it was references to photos in iPhoto that were on a PC no longer on my network.
    One error message per photo - I had about 38.
    So I had to go through the library, find the phantom photos, and trash them.
    I did a lot more investigation, though, which you can read about in my blog http://goo.gl/tKL6o
    Hope this helps,
    Duke.

  • Applet runs with jre 1.5 but not jre 1.6

    I'm working on an applet which works just fine when 1.5.0_15 is the latest JRE installed on the PC, but does not work when 1.6.0_6 is installed. In the latter case, the applet does not load due to getting a NoClassDefFoundError. Here's the Java Console error trace:
    java.lang.NoClassDefFoundError: com/hp/nonstop/hsc/core/configuration/ConfigurationMetaData
            at com.hp.nonstop.hsc.tools.configurator.ConfiguratorApplet.init(ConfiguratorApplet.java:53)
            at sun.applet.AppletPanel.run(Unknown Source)
            at java.lang.Thread.run(Unknown Source)
    Caused by: java.lang.ClassNotFoundException: com.hp.nonstop.hsc.core.configurati
    on.ConfigurationMetaData
            at sun.applet.AppletClassLoader.findClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at sun.applet.AppletClassLoader.loadClass(Unknown Source)
            at java.lang.ClassLoader.loadClass(Unknown Source)
            at java.lang.ClassLoader.loadClassInternal(Unknown Source)
            ... 3 moreThe relevant (I think) portions of the <object> generated by the JSP is:
    <object
        classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
        name="ConfiguratorApplet" width="600" height="400"
        codebase="http://java.sun.com/products/plugin/1.3/jinstall-131-win32.cab">
    <param name="java_code" value="com.hp.nonstop.hsc.tools.configurator.ConfiguratorApplet.class">
    <param name="java_codebase" value="/HSC/configurator">
    <param name="java_archive" value="configurator.jar,../lib/configapi.jar,<<other jar files listed here>>">
    <<other param tags included here>>
    </object>The class it can't seem to find (under 1.6) is actually located in the configapi.jar file, which itself is located in the ../lib folder (relative to the /HSC/configurator folder where configurator.jar is located).
    Obviously, when the browser is using JRE 1.5.15 the VM engine can find all the needed classes as the applet runs OK. But when 1.6.6 is installed, things can't be found. I suspect something different in the search paths (though I thought the "java_archive" value was supposed to specify that), in the permissions needed to read the files, or something, but I just can't track down what the difference is (and thus why things are failing with 1.6 installed).
    Any help/ideas would be greatly appreciated!

    Stephen.Thomas wrote:
    have [you] tried moving the configapi.jar into the same folder as the configurator.jarYes, I have. I've also tried re-rooting the page to the lib directory where everything exists; i.e. changing java_codebase to /HSC/lib and changing java_archive so all jars referenced no longer have ../lib/ in them. Same behavior.
    It's almost as if the search path is behaving differently between 1.5 and 1.6, possibly not even being controlled by the values of java_codebase and java_archive at all.

  • Can Grow Vertical Alignment Error in Embedded Report View, but not in .PDF

    Hello,
    I have seen postings about this issue before, but have yet to find a solution. 
    I am using Visual Studio 2008 w/ the basic version of Crystal Reports that is included.
    I have a simple report that displays results of a stored procedure as rows across the report.  One field can be of variable length, anywhere from 0 to 100 characters.  Usually it's something reasonable (less than 40 chars), and so I have only given it so much width in the report.  For when it is longer than that, I turned the "Can Grow" property ON, and set the Maximum Number of Lines property to 0. 
    When the report displays embedded in my Web Form, and this field's data is wider than the space I have allowed, it breaks the data down into multiple lines of the same correct width, as you'd expect, but those lines end up displaced vertically upward several rows, and print directly on top of other data from the above rows, make the report unreadable in that area (and quite ugly overall!).
    If I export this report to a .PDF, it displays perfectly, without the vertical displacement error.
    Anyone know what the official work is on this?  Is there a fix or is this a bug?
    If there is no fix, does anyone know how to direct the report to the .PDF file viewer, so the embedded report remains invisible (and thus hides the ugly error), but the user has the .PDF version to see?  My client ultimately wants to export the report to .PDF, which I have already coded, but it does not open the .PDF Viewer, just saves the report to disk.  However, if I use the Crystal built-in Export button, it first displays a pop-up asking which format to export to, then if .PDF is chosen and okay is clicked, the pop-up switches to contain the .PDF Viewer, and opens the report.  In my user-defined export code, the .PDF is correctly created, but I am missing the step on how to open the .PDF Viewer.
    Any ideas?

    Thanks for the responses.
    Jonathan, moving the field in question to its own details section (details B) did not fix the issue.  The field in question is moved slightly down as its in a new details section with sits slightly lower than details A, but when it has to be broken up into multiple lines, the same issue arises, the field text is displaced vertically upward and sits on top of other data.
    Ludek, I wanted to send the report to a .PDF Viewer in a new browser, and keep the original browser intact.  I'm using code very similar to yours.  To launch the new broswer I added this code to the Page_Load of my main browser:
    btnViewReport.Attributes.Add("onclick", "window.open(Page.aspx', """", """", 'height=200,width=400')")
    When the button is clicked the report is exported, and the new browser opens Page.aspx.
    I use this code in Page_Load of Page.aspx:
            Dim webClient As System.Net.WebClient = New System.Net.WebClient()
            Dim buffer As Byte() = webClient.DownloadData("C:\Reports\Report.pdf")
            If Not buffer.Length.Equals(0) Then
                Response.ContentType = "application/pdf"
                Response.AddHeader("content-length", buffer.Length.ToString())
                Response.BinaryWrite(buffer)
            End If
    Any other ideas on the original vertical displacement issue when using Can Grow, I'd still appreciate it.
    Thanks,
    Scott
    Edited by: Scott Deltorto on Sep 23, 2008 10:15 PM

  • Error message: legal apple id, but not an iCloud account

    I would like to share fotos with a friend who has only a windows-pc. He created an apple-id account, downloaded and installed iCloud for windows. But when he wants to start the program he gets the error-message: your apple-id is legal, but it is not an iCloud-account. He can not start the program. Is there a simple resolution?

    Welcome to the Apple Support Communities
    You have to log in iCloud on an iPhone, iPod touch, iPad or Mac first before being able to use iCloud on your PC. See > http://www.apple.com/icloud/setup
    If you haven't got an iPhone, iPod touch, iPad or Mac, you can't use iCloud

  • Time Machine error -1, cannot access sparsebundle (but not a NAS or WD problem)

    Hello, this is my first post here, so I'll try to make it a good one! 
    I've been wrestling with this problem ever since I bought my Core i7 iMac (SSD + 1TB HD)   over a year ago.  I have not gotten Time Machine to work during that whole time.  Well, I got it to work backing up directly to my internal HD, but that was just a test; it's not what I want.  So let me describe this in the most clear and consise way I can:
    I want the Time Machine disk to be my Synology NAS.  I've configured a share on it correctly.  I have an older iMac running SnowLeopard backing up to the same share on the NAS with TimeMachine successfully.  But, my iMac won't do it.  Whether I create the sparsebundle manually, or I let TimeMachine create it, it always gives the same "error -1".  I wrote a more detailed account of my symptoms here (my message is the reply), when I thought this was a NAS-specific issue. 
    New development: This is not a NAS issue. I found that out by trying an experiment:
    First, I tried to back up my SSD using Time Machine to my internal 1TB disk - I selected the "1 TB Secondary Disk" as the Time Machine disk.  I initiated the backup, and it worked fine, putting the time machine backup in the "Backups.backupsdb" directory structure at the root of the drive.  I then turned off Time Machine and "removed" the 1TB as my backup disk.
    Then, I created a sparsebundle at the root of the drive using this command:
    hdiutil create -size 150g -fs HFS+J -volname "Time Machine" NAME_xxxxxxxxxxxx.sparsebundle
    (where the "xxxxxxxxxxxx" is my ethernet MAC address).  I then selected the "1 TB Secondary Disk" as the Time Machine disk again.  Time Machine found my sparsebundle and started working with it... and got "error -1"!   So even on a local drive, when Time Machine tries to use a sparsebundle for backing up, it still doesn't work. 
    Now, I have the console log entries that were written during the Time Machine backup attempt:
    1/1/13 12:53:59.511 PM com.apple.backupd[4460]: Starting manual backup
    1/1/13 12:54:00.780 PM com.apple.backupd[4460]: Renaming /Volumes/1 TB Secondary Disk/NAME_3c07540fdd8c.sparsebundle to /Volumes/1 TB Secondary Disk/iMac.sparsebundle
    1/1/13 12:54:00.871 PM com.apple.backupd[4460]: detach: could not open /dev/disk4
    1/1/13 12:54:01.260 PM com.apple.backupd[4460]: Resizing backup disk image from 161.06 GB to 999.76 GB
    1/1/13 12:54:02.940 PM com.apple.backupd[4460]: Waiting 60 seconds and trying again.
    1/1/13 12:55:03.378 PM com.apple.backupd[4460]: Resizing backup disk image from 161.06 GB to 999.76 GB
    1/1/13 12:55:06.013 PM com.apple.backupd[4460]: Waiting 60 seconds and trying again.
    1/1/13 12:56:06.619 PM com.apple.backupd[4460]: Resizing backup disk image from 161.06 GB to 999.76 GB
    1/1/13 12:56:09.255 PM com.apple.backupd[4460]: Giving up after 3 retries.
    1/1/13 12:56:19.263 PM com.apple.backupd[4460]: Backup failed with error: 21
    1/1/13 12:56:19.265 PM com.apple.backupd[4460]: [SnapshotUtilities mountPointForVolumeRef] FSGetVolumeInfo returned: -35
    1/1/13 12:56:19.265 PM com.apple.backupd[4460]: Failed to eject volume (null) (FSVolumeRefNum: 0; status: -35; dissenting pid: -1)
    1/1/13 12:56:19.265 PM com.apple.backupd[4460]: Failed to eject Time Machine disk image: /Volumes/1 TB Secondary Disk/iMac.sparsebundle
    So, here I see it tries to resize the sparsebundle to the full volume size, and fails.  I don't think I want it to do this resize, because I don't want it to fill up my whole NAS share.  I searched and found this post, which specifies how to set the permissions in the sparsebundle such that it won't be resized.  I followed those instructions with a new sparsebundle, and see the same problem... tries to resize, and fails.
    I do not have Western Digital software installed and never have.
    I've tried everything on this page.
    It seems like the attempt to resize is corrupting the sparsebundle.  Before starting the backup, I can mount the sparsebundle and manually copy files to it.  After attempting the backup, I can mount the sparsebundle, but I cannot copy anything to it manually.  Note that I can mount the sparsebundle that the MacBook Pro uses for Time Machine, and manually copy files to and from it (in other words, the correct SnowLeopard configuration does allow manual copying). 
    I have tried repairing the sparsebundle using the Disk Utility, which restores the ability to manually copy files to it, but Time Machine once again renders it unwriteable when it attempts to back up.
    Anyone know of anything else I can try?  Thank you so much!
    Dan

    Yeah, sorry about the broken link.  I noticed that link wasn't working after I replied, then I edited my earlier reply.  Also, yes, copying the files was just meant as a test; I created new clean sparsebundles for other tries.
    Anyway, I'm not too worried about the resizing for now; first things first, let's just get Time Machine working  with a sparsebundle at all.
    I don't know how to make Time Machine create its own sparsebundle on my local drive; if there isn't a manually created sparsebundle at the root, it just puts everything in the "Backups.backupsdb" directory structure without a sparsebundle.  However, it of course does create its own sparsebundle when I point it to my NAS share (as I understand it, Time Machine knows the NAS filesystem doesn't support everything it needs, so it creates the sparsebundle to emulate the correct filesystem).  As I have always gotten the same "error -1" when using the NAS share as I did when using the local sparsebundle, I was assuming the same problem was happening in both cases... but now I've checked the console log after doing a backup attempt on the NAS share, and I see different stuff:
    1/2/13 9:21:12.000 PM kernel[0]: AFP_VFS afpfs_mount: /Volumes/TM Backups, pid 9615
    1/2/13 9:21:12.000 PM kernel[0]: AFP_VFS afpfs_mount : succeeded on volume 0xffffff8148d5b008 /Volumes/TM Backups (error = 0, retval = 0)
    1/2/13 9:21:13.000 PM kernel[0]: AFP_VFS afpfs_unmount: /Volumes/TM Backups, flags 0, pid 9624
    1/2/13 9:21:13.000 PM kernel[0]: AFP_VFS afpfs_unmount : We are the last mnt/sbmnt using volume /Volumes/TM Backups 0xffffff8148d5b008
    1/2/13 9:21:13.000 PM kernel[0]: AFP_VFS afpfs_unmount : We are the last volume using socket /Volumes/TM Backups 0xffffff8148d5b008
    1/2/13 9:21:49.647 PM com.apple.backupd[9623]: Starting manual backup
    1/2/13 9:21:49.737 PM com.apple.backupd[9623]: Attempting to mount network destination URL: afp://[email protected]/TM%20Backups
    1/2/13 9:22:00.060 PM com.apple.backupd[9623]: Mounted network destination at mount point: /Volumes/TM Backups using URL: afp://[email protected]/TM%20Backups
    1/2/13 9:22:00.000 PM kernel[0]: AFP_VFS afpfs_mount: /Volumes/TM Backups, pid 9630
    1/2/13 9:22:00.000 PM kernel[0]: AFP_VFS afpfs_mount : succeeded on volume 0xffffff8148ffb008 /Volumes/TM Backups (error = 0, retval = 0)
    1/2/13 9:22:15.323 PM com.apple.backupd[9623]: Creating disk image /Volumes/TM Backups/iMac.sparsebundle
    1/2/13 9:22:46.397 PM com.apple.backupd[9623]: Failed to hide extension on /Volumes/TM Backups/iMac.sparsebundle, error: Error Domain=NSCocoaErrorDomain Code=4 "The file “iMac.sparsebundle” doesn’t exist." UserInfo=0x7fe881407700 {NSURL=file://localhost/Volumes/TM%20Backups/iMac.sparsebundle/, NSFilePath=/Volumes/TM Backups/iMac.sparsebundle, NSUnderlyingError=0x7fe8814073c0 "The operation couldn’t be completed. No such file or directory"}.
    1/2/13 9:23:10.209 PM com.apple.backupd[9623]: Failed to eject volume /Volumes/TM Backups (FSVolumeRefNum: -153; status: -47; dissenting pid: 0)
    1/2/13 9:23:10.210 PM com.apple.backupd[9623]: Waiting 60 seconds and trying again.
    1/2/13 9:24:10.241 PM com.apple.backupd[9623]: Network destination already mounted at: /Volumes/TM Backups
    1/2/13 9:24:56.305 PM com.apple.backupd[9623]: Failed to eject volume /Volumes/TM Backups (FSVolumeRefNum: -153; status: -47; dissenting pid: 0)
    1/2/13 9:24:56.305 PM com.apple.backupd[9623]: Waiting 60 seconds and trying again.
    1/2/13 9:25:56.326 PM com.apple.backupd[9623]: Network destination already mounted at: /Volumes/TM Backups
    1/2/13 9:26:40.171 PM com.apple.backupd[9623]: Failed to eject volume /Volumes/TM Backups (FSVolumeRefNum: -153; status: -47; dissenting pid: 0)
    1/2/13 9:26:40.171 PM com.apple.backupd[9623]: Giving up after 3 retries.
    1/2/13 9:26:50.177 PM com.apple.backupd[9623]: Backup failed with error: 21
    1/2/13 9:26:50.178 PM com.apple.backupd[9623]: [SnapshotUtilities mountPointForVolumeRef] FSGetVolumeInfo returned: -35
    1/2/13 9:26:50.178 PM com.apple.backupd[9623]: Failed to eject volume (null) (FSVolumeRefNum: 0; status: -35; dissenting pid: -1)
    1/2/13 9:26:50.178 PM com.apple.backupd[9623]: Failed to eject Time Machine disk image: /Volumes/TM Backups/iMac.sparsebundle
    So... looking through this, it does some mounting, which all works fine, then it does a create sparsebundle, which appears to work fine, but then it tries to "hide extension", but it can't because it can't find the sparsebundle that it supposedly created.  Then it tries three times to eject the NAS share ('TM Backups'), and fails, and gives up.  At this time I get the "error -1" pop up on my monitor, and check the NAS share (using the disk utility on the NAS managment page), and sure enough there is the sparsebundle "iMac.sparsebundle".  So why does it create it, but then not be able to use it? 
    Skiing tomorrow, must sleep now.  :-)

  • Error with running a jar, but not when i run it in eclispe?

    I built this program which works without any errors in eclispe, it is within a package called com.dceg.rules..
    but when i packaged it into a jar, i get this error...
    java.lang.ClassNotFoundException: com.dceg.rules (file:\C:\Source\dom\Validator Package\Validator.jar!\com\dceg\rules
    ) does not appear to be a valid package
    What can be wrong?
    Here is the manifest file
    Manifest-Version: 1.0
    Class-Path: jargs.jar log4j-1.2.13.jar dnsjava-2.0.2.jar com/dceg/rule
    s/
    Created-By: 1.5.0_06 (Sun Microsystems Inc.)
    Main-Class: com.dceg.rules.Validator
    Here is where the errors comes up from..
    public void getClasses(String pckgname) throws ClassNotFoundException {
    // This will hold a list of directories matching the pckgname. There may be more than one if a package is split over multiple jars/paths
    ArrayList<File> directories = new ArrayList<File>();
    try {
    ClassLoader cld = Thread.currentThread().getContextClassLoader();
    if (cld == null) {
    logger.error(new ClassNotFoundException("Can't get class loader."));
    String path = pckgname.replace('.', '/');
    // Ask for all resources for the path
    Enumeration<URL> resources = cld.getResources(path);
    //System.out.println("r: "+resources.nextElement());
    while (resources.hasMoreElements()) {
    directories.add(new File(URLDecoder.decode(resources.nextElement().getPath(), "UTF-8")));
    } catch (NullPointerException x) {
    logger.error(new ClassNotFoundException(pckgname + " does not appear to be a valid package (Null pointer exception)"));
    } catch (UnsupportedEncodingException encex) {
    logger.error(new ClassNotFoundException(pckgname + " does not appear to be a valid package (Unsupported encoding)"));
    } catch (IOException ioex) {
    logger.error(new ClassNotFoundException("IOException was thrown when trying to get all resources for " + pckgname));
    // For every directory identified capture all the .class files
    for (File directory : directories) {
    if (directory.exists()) {
    // Get the list of the files contained in the package
    String[] files = directory.list();
    for (String file : files) {
    // we are only interested in .class files
    if (file.endsWith(".class")) {
    // removes the .class extension
    classes.put( file.substring(0, file.length() - 6) , (pckgname + '.' + file.substring(0, file.length() - 6)) );
    } else {
    **********throw new ClassNotFoundException(pckgname + " (" + directory.getPath() + ") does not appear to be a valid package");******* <-- error here
    Message was edited by:
    hamham3001

    Heres the code again.. looks better now
    public void getClasses(String pckgname) throws ClassNotFoundException {
            // This will hold a list of directories matching the pckgname. There may be more than one if a package is split over multiple jars/paths
              ArrayList<File> directories = new ArrayList<File>();
            try {
                ClassLoader cld = Thread.currentThread().getContextClassLoader();
                if (cld == null) {
                     logger.error(new ClassNotFoundException("Can't get class loader."));
                String path = pckgname.replace('.', '/');
                // Ask for all resources for the path
                Enumeration<URL> resources = cld.getResources(path);
                //System.out.println("r: "+resources.nextElement());
                while (resources.hasMoreElements()) {
                    directories.add(new File(URLDecoder.decode(resources.nextElement().getPath(), "UTF-8")));
            } catch (NullPointerException x) {
                 logger.error(new ClassNotFoundException(pckgname + " does not appear to be a valid package (Null pointer exception)"));
            } catch (UnsupportedEncodingException encex) {
                 logger.error(new ClassNotFoundException(pckgname + " does not appear to be a valid package (Unsupported encoding)"));
            } catch (IOException ioex) {
                 logger.error(new ClassNotFoundException("IOException was thrown when trying to get all resources for " + pckgname));
            // For every directory identified capture all the .class files
            for (File directory : directories) {
                if (directory.exists()) {
                    // Get the list of the files contained in the package
                    String[] files = directory.list();
                    for (String file : files) {
                        // we are only interested in .class files
                        if (file.endsWith(".class")) {
                            // removes the .class extension
                            classes.put( file.substring(0, file.length() - 6) , (pckgname + '.' + file.substring(0, file.length() - 6)) );
                } else {
                    throw new ClassNotFoundException(pckgname + " (" + directory.getPath() + ") does not appear to be a valid package");
        }

  • Smb error -36 on one server but not another (vpn)

    Here goes:
    I'm connecting using the built-in Apple VPN client to work.
    Once connected, I try to mount two Windows servers using the finder:
    * The first one asks my username/password and mounts no problem.
    * The 2nd doesn't seem to ask for username/password, and just gives me the dreaded "error -36"
    The console says:
    Unknown host
    mount_smbfs: can't get server address: syserr = Network is down
    mount_smbfs: can't get server address 'XXXXXXXXXXX'
    But the network is up (I know, since I am moving files from the other server).
    When connecting from inside the office (not via VPN) all is well.
    What gives?

    Here goes:
    I'm connecting using the built-in Apple VPN client to work.
    Once connected, I try to mount two Windows servers using the finder:
    * The first one asks my username/password and mounts no problem.
    * The 2nd doesn't seem to ask for username/password, and just gives me the dreaded "error -36"
    The console says:
    Unknown host
    mount_smbfs: can't get server address: syserr = Network is down
    mount_smbfs: can't get server address 'XXXXXXXXXXX'
    But the network is up (I know, since I am moving files from the other server).
    When connecting from inside the office (not via VPN) all is well.
    What gives?

Maybe you are looking for