Problem with Updating clients with UNIX command

Hi.
Until this day, I used to update all our 50 client macs by manually logging in as administrator via ARD and choosing Software Update from the apple menu, this works always and I use our own servers SUS so the downloading is really fast. Still, this clearly is time consuming and annoying when you have this many clients. I have now done some search and I know I could do this by sending unix command to clients using ARD. First I had problems with running the command, then I noticed I need to run this as root. Then it "works".
Works, not quite. It starts to run, and I can see all the output. I have tried this with few clients and the results are confusing. The following is an output from one client I send the command "softwareupdate -i -r"
SIBELIUS411 (172.17.6.36)
2011-03-25 13:13:20.610 softwareupdate[1692:392b] PackageKit: * Missing bundle identifier: /Library/Receipts/PPDInstallerRI3222E3L.pkg
2011-03-25 13:14:09.636 softwareupdate[1692:392b] PackageKit: Missing bundle path, skipping: <bundle id="com.apple.NetworkUtility"></bundle>
2011-03-25 13:14:09.798 softwareupdate[1692:392b] PackageKit: Missing bundle path, skipping: <bundle id="com.apple.remoteinstallmacosx"></bundle>
2011-03-25 13:14:09.801 softwareupdate[1692:392b] PackageKit: Missing bundle path, skipping: <bundle id="com.apple.server.SystemImageUtility"></bundle>
2011-03-25 13:19:40.016 softwareupdate[1692:903] PackageKit: * Missing bundle identifier: /Library/Receipts/PPDInstallerRI3222E3L.pkg
Software Update Tool
Copyright 2002-2009 Apple
Downloading Safari
Verifying Safari
Waiting to install Safari
Downloading Mac OS X Update Combined
Verifying Mac OS X Update Combined
Waiting to install Mac OS X Update Combined
Downloading Ricoh Printer Software Update
Verifying Ricoh Printer Software Update
Waiting to install Ricoh Printer Software Update
Downloading iWeb Update
Verifying iWeb Update
Waiting to install iWeb Update
Downloading Java for Mac OS X 10.6 Update 4
Verifying Java for Mac OS X 10.6 Update 4
Waiting to install Java for Mac OS X 10.6 Update 4
Downloading iTunes
Verifying iTunes
Waiting to install iTunes
Downloading Remote Desktop Client Update x signature
x RemoteDesktopClient.pkg.tar
x RemoteDesktopClient.pkg
x RemoteDesktopClient.pkg/Contents
x RemoteDesktopClient.pkg/Contents/Archive.bom
x RemoteDesktopClient.pkg/Contents/Archive.pax.gz
x RemoteDesktopClient.pkg/Contents/Info.plist
x RemoteDesktopClient.pkg/Contents/._RemoteDesktopClient.dist
x RemoteDesktopClient.pkg/Contents/RemoteDesktopClient.dist
x RemoteDesktopClient.pkg/Contents/Resources
x RemoteDesktopClient.pkg/Contents/Resources/background.tif
x RemoteDesktopClient.pkg/Contents/Resources/BundleVersions.plist
x RemoteDesktopClient.pkg/Contents/Resources/cleanup_list
x RemoteDesktopClient.pkg/Contents/Resources/da.lproj
x RemoteDesktopClient.pkg/Contents/Resources/da.lproj/Description.plist
x RemoteDesktopClient.pkg/Contents/Resources/da.lproj/InstallationCheck.strings
x RemoteDesktopClient.pkg/Contents/Resources/da.lproj/License.rtf
x RemoteDesktopClient.pkg/Contents/Resources/da.lproj/Localizable.strings
x RemoteDesktopClient.pkg/Contents/Resources/da.lproj/PantherSU.xml
x RemoteDesktopClient.pkg/Contents/Resources/da.lproj/ReadMe.rtf
x RemoteDesktopClient.pkg/Contents/Resources/da.lproj/SUDescription.html
x RemoteDesktopClient.pkg/Contents/Resources/da.lproj/Welcome.rtfd
x RemoteDesktopClient.pkg/Contents/Resources/da.lproj/Welcome.rtfd/icons.png
x RemoteDesktopClient.pkg/Contents/Resources/da.lproj/Welcome.rtfd/TXT.rtf
x RemoteDesktopClient.pkg/Contents/Resources/deleteomatic
x RemoteDesktopClient.pkg/Contents/Resources/Dutch.lproj
x RemoteDesktopClient.pkg/Contents/Resources/Dutch.lproj/Description.plist
x RemoteDesktopClient.pkg/Contents/Resources/Dutch.lproj/InstallationCheck.string s
x RemoteDesktopClient.pkg/Contents/Resources/Dutch.lproj/License.rtf
x RemoteDesktopClient.pkg/Contents/Resources/Dutch.lproj/Localizable.strings
x RemoteDesktopClient.pkg/Contents/Resources/Dutch.lproj/PantherSU.xml
x RemoteDesktopClient.pkg/Contents/Resources/Dutch.lproj/ReadMe.rtf
x RemoteDesktopClient.pkg/Contents/Resources/Dutch.lproj/SUDescription.html
x RemoteDesktopClient.pkg/Contents/Resources/Dutch.lproj/Welcome.rtfd
x RemoteDesktopClient.pkg/Contents/Resources/Dutch.lproj/Welcome.rtfd/icons.png
x RemoteDesktopClient.pkg/Contents/Resources/Dutch.lproj/Welcome.rtfd/TXT.rtf
x RemoteDesktopClient.pkg/Contents/Resources/English.lproj
x RemoteDesktopClient.pkg/Contents/Resources/English.lproj/Description.plist
x RemoteDesktopClient.pkg/Contents/Resources/English.lproj/InstallationCheck.stri ngs
x RemoteDesktopClient.pkg/Contents/Resources/English.lproj/License.rtf
x RemoteDesktopClient.pkg/Contents/Resources/English.lproj/Localizable.strings
x RemoteDesktopClient.pkg/Contents/Resources/English.lproj/PantherSU.xml
x RemoteDesktopClient.pkg/Contents/Resources/English.lproj/ReadMe.rtf
x RemoteDesktopClient.pkg/Contents/Resources/English.lproj/SUDescription.html
x RemoteDesktopClient.pkg/Contents/Resources/English.lproj/Welcome.rtfd
x RemoteDesktopClient.pkg/Contents/Resources/English.lproj/Welcome.rtfd/icons.png
x RemoteDesktopClient.pkg/Contents/Resources/English.lproj/Welcome.rtfd/TXT.rtf
x RemoteDesktopClient.pkg/Contents/Resources/fi.lproj
x RemoteDesktopClient.pkg/Contents/Resources/fi.lproj/Description.plist
x RemoteDesktopClient.pkg/Contents/Resources/fi.lproj/InstallationCheck.strings
x RemoteDesktopClient.pkg/Contents/Resources/fi.lproj/License.rtf
x RemoteDesktopClient.pkg/Contents/Resources/fi.lproj/Localizable.strings
x RemoteDesktopClient.pkg/Contents/Resources/fi.lproj/PantherSU.xml
x RemoteDesktopClient.pkg/Contents/Resources/fi.lproj/ReadMe.rtf
x RemoteDesktopClient.pkg/Contents/Resources/fi.lproj/SUDescription.html
x RemoteDesktopClient.pkg/Contents/Resources/fi.lproj/Welcome.rtfd
x RemoteDesktopClient.pkg/Contents/Resources/fi.lproj/Welcome.rtfd/icons.png
x RemoteDesktopClient.pkg/Contents/Resources/fi.lproj/Welcome.rtfd/TXT.rtf
x RemoteDesktopClient.pkg/Contents/Resources/French.lproj
x RemoteDesktopClient.pkg/Contents/Resources/French.lproj/Description.plist
x RemoteDesktopClient.pkg/Contents/Resources/French.lproj/InstallationCheck.strin gs
x RemoteDesktopClient.pkg/Contents/Resources/French.lproj/License.rtf
x RemoteDesktopClient.pkg/Contents/Resources/French.lproj/Localizable.strings
x RemoteDesktopClient.pkg/Contents/Resources/French.lproj/PantherSU.xml
x RemoteDesktopClient.pkg/Contents/Resources/French.lproj/ReadMe.rtf
x RemoteDesktopClient.pkg/Contents/Resources/French.lproj/SUDescription.html
x RemoteDesktopClient.pkg/Contents/Resources/French.lproj/Welcome.rtfd
x RemoteDesktopClient.pkg/Contents/Resources/French.lproj/Welcome.rtfd/icons.png
x RemoteDesktopClient.pkg/Contents/Resources/French.lproj/Welcome.rtfd/TXT.rtf
x RemoteDesktopClient.pkg/Contents/Resources/German.lproj
x RemoteDesktopClient.pkg/Contents/Resources/German.lproj/Description.plist
x RemoteDesktopClient.pkg/Contents/Resources/German.lproj/InstallationCheck.strin gs
x RemoteDesktopClient.pkg/Contents/Resources/German.lproj/License.rtf
x RemoteDesktopClient.pkg/Contents/Resources/German.lproj/Localizable.strings
x RemoteDesktopClient.pkg/Contents/Resources/German.lproj/PantherSU.xml
x RemoteDesktopClient.pkg/Contents/Resources/German.lproj/ReadMe.rtf
x RemoteDesktopClient.pkg/Contents/Resources/German.lproj/SUDescription.html
x RemoteDesktopClient.pkg/Contents/Resources/German.lproj/Welcome.rtfd
x RemoteDesktopClient.pkg/Contents/Resources/German.lproj/Welcome.rtfd/icons.png
x RemoteDesktopClient.pkg/Contents/Resources/German.lproj/Welcome.rtfd/TXT.rtf
x RemoteDesktopClient.pkg/Contents/Resources/Hints.plist
x RemoteDesktopClient.pkg/Contents/Resources/InstallationCheck
x RemoteDesktopClient.pkg/Contents/Resources/Italian.lproj
x RemoteDesktopClient.pkg/Contents/Resources/Italian.lproj/Description.plist
x RemoteDesktopClient.pkg/Contents/Resources/Italian.lproj/InstallationCheck.stri ngs
x RemoteDesktopClient.pkg/Contents/Resources/Italian.lproj/License.rtf
x RemoteDesktopClient.pkg/Contents/Resources/Italian.lproj/Localizable.strings
x RemoteDesktopClient.pkg/Contents/Resources/Italian.lproj/PantherSU.xml
x RemoteDesktopClient.pkg/Contents/Resources/Italian.lproj/ReadMe.rtf
x RemoteDesktopClient.pkg/Contents/Resources/Italian.lproj/SUDescription.html
x RemoteDesktopClient.pkg/Contents/Resources/Italian.lproj/Welcome.rtfd
x RemoteDesktopClient.pkg/Contents/Resources/Italian.lproj/Welcome.rtfd/icons.png
x RemoteDesktopClient.pkg/Contents/Resources/Italian.lproj/Welcome.rtfd/TXT.rtf
x RemoteDesktopClient.pkg/Contents/Resources/Japanese.lproj
x RemoteDesktopClient.pkg/Contents/Resources/Japanese.lproj/Description.plist
x RemoteDesktopClient.pkg/Contents/Resources/Japanese.lproj/InstallationCheck.str ings
x RemoteDesktopClient.pkg/Contents/Resources/Japanese.lproj/License.rtf
x RemoteDesktopClient.pkg/Contents/Resources/Japanese.lproj/Localizable.strings
x RemoteDesktopClient.pkg/Contents/Resources/Japanese.lproj/PantherSU.xml
x RemoteDesktopClient.pkg/Contents/Resources/Japanese.lproj/ReadMe.rtf
x RemoteDesktopClient.pkg/Contents/Resources/Japanese.lproj/SUDescription.html
x RemoteDesktopClient.pkg/Contents/Resources/Japanese.lproj/Welcome.rtfd
x RemoteDesktopClient.pkg/Contents/Resources/Japanese.lproj/Welcome.rtfd/icons.pn g
x RemoteDesktopClient.pkg/Contents/Resources/Japanese.lproj/Welcome.rtfd/TXT.rtf
x RemoteDesktopClient.pkg/Contents/Resources/kickstart
x RemoteDesktopClient.pkg/Contents/Resources/ko.lproj
x RemoteDesktopClient.pkg/Contents/Resources/ko.lproj/Description.plist
x RemoteDesktopClient.pkg/Contents/Resources/ko.lproj/InstallationCheck.strings
x RemoteDesktopClient.pkg/Contents/Resources/ko.lproj/License.rtf
x RemoteDesktopClient.pkg/Contents/Resources/ko.lproj/Localizable.strings
x RemoteDesktopClient.pkg/Contents/Resources/ko.lproj/PantherSU.xml
x RemoteDesktopClient.pkg/Contents/Resources/ko.lproj/ReadMe.rtf
x RemoteDesktopClient.pkg/Contents/Resources/ko.lproj/SUDescription.html
x RemoteDesktopClient.pkg/Contents/Resources/ko.lproj/Welcome.rtfd
x RemoteDesktopClient.pkg/Contents/Resources/ko.lproj/Welcome.rtfd/icons.png
x RemoteDesktopClient.pkg/Contents/Resources/ko.lproj/Welcome.rtfd/TXT.rtf
x RemoteDesktopClient.pkg/Contents/Resources/makeuser
x RemoteDesktopClient.pkg/Contents/Resources/no.lproj
x RemoteDesktopClient.pkg/Contents/Resources/no.lproj/Description.plist
x RemoteDesktopClient.pkg/Contents/Resources/no.lproj/InstallationCheck.strings
x RemoteDesktopClient.pkg/Contents/Resources/no.lproj/License.rtf
x RemoteDesktopClient.pkg/Contents/Resources/no.lproj/Localizable.strings
x RemoteDesktopClient.pkg/Contents/Resources/no.lproj/PantherSU.xml
x RemoteDesktopClient.pkg/Contents/Resources/no.lproj/ReadMe.rtf
x RemoteDesktopClient.pkg/Contents/Resources/no.lproj/SUDescription.html
x RemoteDesktopClient.pkg/Contents/Resources/no.lproj/Welcome.rtfd
x RemoteDesktopClient.pkg/Contents/Resources/no.lproj/Welcome.rtfd/icons.png
x RemoteDesktopClient.pkg/Contents/Resources/no.lproj/Welcome.rtfd/TXT.rtf
x RemoteDesktopClient.pkg/Contents/Resources/package_version
x RemoteDesktopClient.pkg/Contents/Resources/PlistBuddy
x RemoteDesktopClient.pkg/Contents/Resources/postflight
x RemoteDesktopClient.pkg/Contents/Resources/postflight_actions
x RemoteDesktopClient.pkg/Contents/Resources/postflight_actions/cleanStartup.pl
x RemoteDesktopClient.pkg/Contents/Resources/postflight_actions/copypackages
x RemoteDesktopClient.pkg/Contents/Resources/postflight_actions/deleteObsoleteFil es
x RemoteDesktopClient.pkg/Contents/Resources/postflight_actions/learnFiles
x RemoteDesktopClient.pkg/Contents/Resources/postflight_actions/postflightKicksta rt
x RemoteDesktopClient.pkg/Contents/Resources/postflight_actions/setupLaunchFiles
x RemoteDesktopClient.pkg/Contents/Resources/postflightactions/setupLaunchFilesRFBEventHelper
x RemoteDesktopClient.pkg/Contents/Resources/postflight_actions/setupMenuExtras
x RemoteDesktopClient.pkg/Contents/Resources/postflight_actions/stampBuildNumInPl istStrings
x RemoteDesktopClient.pkg/Contents/Resources/postflight_kickstart
x RemoteDesktopClient.pkg/Contents/Resources/postflightkickstartentries
x RemoteDesktopClient.pkg/Contents/Resources/postflightmakeuserentries
x RemoteDesktopClient.pkg/Contents/Resources/preflight
x RemoteDesktopClient.pkg/Contents/Resources/preflight_actions
x RemoteDesktopClient.pkg/Contents/Resources/preflight_actions/cleanAndPreflightK ickstart
x RemoteDesktopClient.pkg/Contents/Resources/preflight_actions/maybeNukeVNCServer
x RemoteDesktopClient.pkg/Contents/Resources/preflight_actions/moveAsideFirewallD efaultPrefsTiger
x RemoteDesktopClient.pkg/Contents/Resources/preflight_kickstart
x RemoteDesktopClient.pkg/Contents/Resources/preflightkickstartentries
x RemoteDesktopClient.pkg/Contents/Resources/pt.lproj
x RemoteDesktopClient.pkg/Contents/Resources/pt.lproj/Description.plist
x RemoteDesktopClient.pkg/Contents/Resources/pt.lproj/InstallationCheck.strings
x RemoteDesktopClient.pkg/Contents/Resources/pt.lproj/License.rtf
x RemoteDesktopClient.pkg/Contents/Resources/pt.lproj/Localizable.strings
x RemoteDesktopClient.pkg/Contents/Resources/pt.lproj/PantherSU.xml
x RemoteDesktopClient.pkg/Contents/Resources/pt.lproj/ReadMe.rtf
x RemoteDesktopClient.pkg/Contents/Resources/pt.lproj/SUDescription.html
x RemoteDesktopClient.pkg/Contents/Resources/pt.lproj/Welcome.rtfd
x RemoteDesktopClient.pkg/Contents/Resources/pt.lproj/Welcome.rtfd/icons.png
x RemoteDesktopClient.pkg/Contents/Resources/pt.lproj/Welcome.rtfd/TXT.rtf
x RemoteDesktopClient.pkg/Contents/Resources/Spanish.lproj
x RemoteDesktopClient.pkg/Contents/Resources/Spanish.lproj/Description.plist
x RemoteDesktopClient.pkg/Contents/Resources/Spanish.lproj/InstallationCheck.stri ngs
x RemoteDesktopClient.pkg/Contents/Resources/Spanish.lproj/License.rtf
x RemoteDesktopClient.pkg/Contents/Resources/Spanish.lproj/Localizable.strings
x RemoteDesktopClient.pkg/Contents/Resources/Spanish.lproj/PantherSU.xml
x RemoteDesktopClient.pkg/Contents/Resources/Spanish.lproj/ReadMe.rtf
x RemoteDesktopClient.pkg/Contents/Resources/Spanish.lproj/SUDescription.html
x RemoteDesktopClient.pkg/Contents/Resources/Spanish.lproj/Welcome.rtfd
x RemoteDesktopClient.pkg/Contents/Resources/Spanish.lproj/Welcome.rtfd/icons.png
x RemoteDesktopClient.pkg/Contents/Resources/Spanish.lproj/Welcome.rtfd/TXT.rtf
x RemoteDesktopClient.pkg/Contents/Resources/sv.lproj
x RemoteDesktopClient.pkg/Contents/Resources/sv.lproj/Description.plist
x RemoteDesktopClient.pkg/Contents/Resources/sv.lproj/InstallationCheck.strings
x RemoteDesktopClient.pkg/Contents/Resources/sv.lproj/License.rtf
x RemoteDesktopClient.pkg/Contents/Resources/sv.lproj/Localizable.strings
x RemoteDesktopClient.pkg/Contents/Resources/sv.lproj/PantherSU.xml
x RemoteDesktopClient.pkg/Contents/Resources/sv.lproj/ReadMe.rtf
x RemoteDesktopClient.pkg/Contents/Resources/sv.lproj/SUDescription.html
x RemoteDesktopClient.pkg/Contents/Resources/sv.lproj/Welcome.rtfd
x RemoteDesktopClient.pkg/Contents/Resources/sv.lproj/Welcome.rtfd/icons.png
x RemoteDesktopClient.pkg/Contents/Resources/sv.lproj/Welcome.rtfd/TXT.rtf
x RemoteDesktopClient.pkg/Contents/Resources/zh_CN.lproj
x RemoteDesktopClient.pkg/Contents/Resources/zh_CN.lproj/Description.plist
x RemoteDesktopClient.pkg/Contents/Resources/zh_CN.lproj/InstallationCheck.string s
x RemoteDesktopClient.pkg/Contents/Resources/zh_CN.lproj/License.rtf
x RemoteDesktopClient.pkg/Contents/Resources/zh_CN.lproj/Localizable.strings
x RemoteDesktopClient.pkg/Contents/Resources/zh_CN.lproj/PantherSU.xml
x RemoteDesktopClient.pkg/Contents/Resources/zh_CN.lproj/ReadMe.rtf
x RemoteDesktopClient.pkg/Contents/Resources/zh_CN.lproj/SUDescription.html
x RemoteDesktopClient.pkg/Contents/Resources/zh_CN.lproj/Welcome.rtfd
x RemoteDesktopClient.pkg/Contents/Resources/zh_CN.lproj/Welcome.rtfd/icons.png
x RemoteDesktopClient.pkg/Contents/Resources/zh_CN.lproj/Welcome.rtfd/TXT.rtf
x RemoteDesktopClient.pkg/Contents/Resources/zh_TW.lproj
x RemoteDesktopClient.pkg/Contents/Resources/zh_TW.lproj/Description.plist
x RemoteDesktopClient.pkg/Contents/Resources/zh_TW.lproj/InstallationCheck.string s
x RemoteDesktopClient.pkg/Contents/Resources/zh_TW.lproj/License.rtf
x RemoteDesktopClient.pkg/Contents/Resources/zh_TW.lproj/Localizable.strings
x RemoteDesktopClient.pkg/Contents/Resources/zh_TW.lproj/PantherSU.xml
x RemoteDesktopClient.pkg/Contents/Resources/zh_TW.lproj/ReadMe.rtf
x RemoteDesktopClient.pkg/Contents/Resources/zh_TW.lproj/SUDescription.html
x RemoteDesktopClient.pkg/Contents/Resources/zh_TW.lproj/Welcome.rtfd
x RemoteDesktopClient.pkg/Contents/Resources/zh_TW.lproj/Welcome.rtfd/icons.png
x RemoteDesktopClient.pkg/Contents/Resources/zh_TW.lproj/Welcome.rtfd/TXT.rtf
x RemoteDesktopClient.pkg/Contents/version.plist
Verifying Remote Desktop Client Update
Waiting to install Remote Desktop Client Update
Checking packages…
Installing
Waiting for other installations to complete…2011-03-25 13:20:01.468 softwareupdate[1692:37b7] PackageKit: Missing bundle path, skipping: <bundle id="com.apple.remoteinstallmacosx"></bundle>
2011-03-25 13:20:01.471 softwareupdate[1692:37b7] PackageKit: Missing bundle path, skipping: <bundle id="com.apple.server.SystemImageUtility"></bundle>
2011-03-25 13:20:01.540 softwareupdate[1692:37b7] PackageKit: Missing bundle path, skipping: <bundle id="com.apple.NetworkUtility"></bundle>
2011-03-25 13:20:01.731 softwareupdate[1692:37b7] PackageKit: Missing bundle path, skipping: <bundle id="com.apple.remoteinstallmacosx"></bundle>
2011-03-25 13:20:01.734 softwareupdate[1692:37b7] PackageKit: Missing bundle path, skipping: <bundle id="com.apple.server.SystemImageUtility"></bundle>
2011-03-25 13:20:01.808 softwareupdate[1692:37b7] PackageKit: Missing bundle path, skipping: <bundle id="com.apple.NetworkUtility"></bundle>
Validating packages…
Writing files…
Running package scripts…
Removing old files…
Optimizing system for installed software…
Moving items into place…
Registering updated components…
And thats it, it stops there. Few clients completed the task, but the output says that they skipped the installation of all updates. In the case above, there is some skipping too, and I don't know what it means. Yesterday I left one client to this part where its Registering updated components.... , and today when I came in, it's still there, and the task is still running. When I update the clients with the Software Update from apple menu, it takes usually 10 minutes max to complete the whole process, download and install. After I restarted the same client and ran the manual Software Update from apple menu, it shows the same updates, it didn't do anything???
Am I doing something wrong with the command?

I am having the same issue. I send the unix command to some test clients to install all updates. The process never finishes and stays at "Registering updated companents....". (See screen shot)
I have manually restarted some of the clients after waiting a very long time. All updates seem to have been installed. I am wondering why the task hangs at this point. I want to be able to ran ASU with this Unix method on the 450+ macs that I manage at work, but it scares me that the task never seems to finish.

Similar Messages

  • Problem using CORBA clients with RMI/EJB servers..!!!???

    Hi,
    I have a question on using EJB / or RMI servers with CORBA clients using
    RMI-IIOP transport, which in theory should work, but in practice has few
    glitches.
    Basically, I have implemented a very simple server, StockTreader, which
    looks up for a symbol and returns a 'Stock' object. In the first example, I
    simplified the 'Stock' object to be a mere java.lang.String, so that lookup
    would simply return the 'synbol'.
    Then I have implemented the above, as an RMI-IIOP server (case 1) and a
    CORBA server (case 2) with respective clients, and the pair of
    client-servers work fine as long as they are CORBA-to-CORBA and RMI-to-RMI.
    But the problem arises when I tried using the RMI server (via IIOP) with the
    CORBA client, when the client tries to narrow the object ref obtained from
    the naming service into the CORBA idl defined type (StockTrader) it ends up
    with a class cast exception.
    This is what I did to achieve the above results:
    [1] Define an RMI interface StockTrader.java (extending java.rmi.Remote)
    with the method,
    public String lookup( String symbol) throws RMIException;
    [2] Implement the StorckTrader interface (on a PortableRemoteObject derived
    class, to make it IIOP compliant), and then the server to register the stock
    trader with COS Naming service as follows:
    String homeName =....
    StockTraderImpl trader =new StockTraderImpl();
    System.out.println("binding obj <" homeName ">...");
    java.util.Hashtable ht =new java.util.Hashtable();
    ht.put("java.naming.factory.initial", args[2]);
    ht.put("java.naming.provider.url", args[3]);
    Context ctx =new InitialContext(ht);
    ctx.rebind(homeName, trader);
    [3] Generate the RMI-IIOP skeletons for the Implementation class,
    rmic -iiop stock.StockTraderImpl
    [4] generate the IDL for the RMI interface,
    rmic -idl stock.StockTraderImpl
    [5] Generate IDL stubs for the CORBA client,
    idlj -v -fclient -emitAll StockTraderImpl.idl
    [6] Write the client to use the IDL-defined stock trader,
    String serverName =args[0];
    String symList =args[1];
    StockClient client =new StockClient();
    System.out.println("init orb...");
    ORB orb =ORB.init(args, null);
    System.out.println("resolve init name service...");
    org.omg.CORBA.Object objRef
    =orb.resolve_initial_references("NameService");
    NamingContext naming =NamingContextHelper.narrow(objRef);
    ... define a naming component etc...
    org.omg.CORBA.Object obj =naming.resolve(...);
    System.out.println("narrow objRef: " obj.getClass() ": " +obj);
    StockTrader trader =StockTraderHelper.narrow(obj);
    [7] Compile all the classes using Java 1.2.2
    [8] start tnameserv (naming service), then the server to register the RMI
    server obj
    [9] Run the CORBA client, passing it the COSNaming service ref name (with
    which the server obj is registered)
    The CORBA client successfully finds the server obj ref in the naming
    service, the operation StockTraderHelper.narrow() fails in the segment
    below, with a class cast exception:
    org.omg.CORBA.Object obj =naming.resolve(...);
    StockTrader trader =StockTraderHelper.narrow(obj);
    The <obj> returned by naming service turns out to be of the type;
    class com.sun.rmi.iiop.CDRInputStream$1
    This is of the same type when stock trader object is registered in a CORBA
    server (as opposed to an RMI server), but works correctly with no casting
    excpetions..
    Any ideas / hints very welcome.
    thanks in advance,
    -hari

    On the contrary... all that is being said is that we needed to provide clearer examples/documentation in the 5.1.0 release. There will be no difference between the product as found in the service pack and the product found in the 5.1.1. That is, the only substantive will be that 5.1.1 will also
    include the examples.
    "<=one way=>" wrote:
    With reference to your and other messages, it appears that one should not
    expect that WLS RMI-IIOP will work in a complex real-life system, at least
    not now. In other words, support for real-life CORBA clients is not an
    option in the current release of WLS.
    TIA
    "Eduardo Ceballos" <[email protected]> wrote in message
    news:[email protected]...
    We currently publish an IDL example, even though the IDL programmingmodel in Java is completely non-functional, in anticipation of the support
    needs for uses who need to use IDL to talk to the Weblogic server,
    generically. This example illustrates the simplest connectivity; it does not
    address how
    to integrate CORBA and EJB, a broad topic, fraught with peril, imo. I'llnote in passing that, to my knowledge, none of the other vendors attempt
    this topic either, a point which is telling if all the less happy to hear.
    For the record then, what is missing from our distribution wrt RMI-IIOPare a RMI-IIOP example, an EJB-IIOP example, an EJB-C++. In this you are
    correct; better examples are forth coming.
    Still, I would not call our RMI-IIOP implementation fragile. I would saythat customers have an understandably hard time accepting that the IDL
    programming model is busted; busted in the sense that there are no C++
    libraries to support the EJB model, and busted in the sense that there is
    simply no
    support in Java for an IDL interface to an EJB. Weblogic has nothing to doit being busted, although we are trying to help our customers deal with it
    in productive ways.
    For the moment, what there is is a RMI (over IIOP) programming model, aninherently Java to Java programming model, and true to that, we accept and
    dispatch IIOP request into RMI server objects. The way I look at it is this:
    it's just a protocol, like HTTP, or JRMP; it's not IDL and it has
    practically nothing to do with CORBA.
    ST wrote:
    Eduardo,
    Can you give us more details about the comment below:
    I fear that as soon as the call to narrow succeeds, the remainingapplication will fail to work correctly because it is too difficult ot
    use an idl client in java to work.It seems to me that Weblogic's RMI-IIOP is a very fragile
    implementation. We
    don't need a "HelloWorld" example, we need a concrete serious example(fully
    tested and seriously documented) that works so that we can get a betteridea
    on how to integrate CORBA and EJB.
    Thanks,
    Said
    "Eduardo Ceballos" <[email protected]> wrote in message
    news:[email protected]...
    Please post request to the news group...
    As I said, you must separate the idl related classes (class files and
    java
    files) from the rmi classes... in the rmic step, you must set a newtarget
    (as you did), emit the java files into that directory (it's not clearyou
    did this), then remove all the rmi class files from the class path... ifyou
    need to compile more classes at that point, copy the java files to theidl
    directly is you must, but you can not share the types in any way.
    I fear that as soon as the call to narrow succeeds, the remainingapplication will fail to work correctly because it is too difficult otuse
    an idl client in java to work.
    Harindra Rajapakshe wrote:
    Hi Eduardo,
    Thanks for the help. That is the way I compiled my CORBA client, by
    separating the IDL-generated stubs from the RMI ones, but still I
    get a
    CORBA.BAD_PARAM upon narrowing the client proxy to the interfacetype.
    Here's what I did;
    + Define the RMI interfaces, in this case a StockTrader interface.
    + Implement RMI interface by extendingjavax.rmi.PortableRemoteObject
    making
    it IIOP compliant
    + Implemnnt an RMI server, and compile using JDK1.2.2
    + use the RMI implementation to generate CORBA idl, using RMI-IIOPplugin
    utility rmic;
    rmic -idl -noValueMethods -always -d idl stock.StockTraderImpl
    + generate Java mappings to the IDL generated above, using RMI-IIOPplugin
    util,
    idlj -v -fclient -emitAll -tf src stocks\StockTrader.idl
    This creates source for the package stock and also
    org.omg.CORBA.*
    package, presumably IIOP type marshalling
    + compile all classes generated above using JDK1.2.2
    + Implement client (CORBA) using the classes generated above, NOTthe
    RMI
    proxies.
    + start RMI server, with stockTrader server obj
    + start tnameserv
    + start CORBA client
    Then the client errors when trying to narrow the obj ref from the
    naming
    service, into the CORBA IDL defined interface using,
    org.omg.CORBA.Object obj =naming.resolve(nn);
    StockTrader trader =StockTraderHelper.narrow(obj); // THIS
    ERRORS..!!!
    throwing a CORBA.BAD_PARAM exception.
    any ideas..?
    Thanks in advance,
    -hari
    ----- Original Message -----
    From: Eduardo Ceballos <[email protected]>
    Newsgroups: weblogic.developer.interest.rmi-iiop
    To: Hari Rajapakshe <[email protected]>
    Sent: Wednesday, July 26, 2000 4:38 AM
    Subject: Re: problem using CORBA clients with RMI/EJBservers..!!!???
    Please see the post on june 26, re Errors compiling... somewherein
    there,
    I suspect, you are referring to the rmi class file when you are
    obliged
    to
    completely segregate these from the idl class files.
    Hari Rajapakshe wrote:
    Hi,
    I have a question on using EJB / or RMI servers with CORBA
    clients
    using
    RMI-IIOP transport, which in theory should work, but in practice
    has
    few
    glitches.
    Basically, I have implemented a very simple server,
    StockTreader,
    which
    looks up for a symbol and returns a 'Stock' object. In the firstexample, I
    simplified the 'Stock' object to be a mere java.lang.String, so
    that
    lookup
    would simply return the 'synbol'.
    Then I have implemented the above, as an RMI-IIOP server (case
    1)
    and a
    CORBA server (case 2) with respective clients, and the pair of
    client-servers work fine as long as they are CORBA-to-CORBA andRMI-to-RMI.
    But the problem arises when I tried using the RMI server (via
    IIOP)
    with
    the
    CORBA client, when the client tries to narrow the object ref
    obtained
    from
    the naming service into the CORBA idl defined type (StockTrader)
    it
    ends
    up
    with a class cast exception.
    This is what I did to achieve the above results:
    [1] Define an RMI interface StockTrader.java (extending
    java.rmi.Remote)
    with the method,
    public String lookup( String symbol) throws RMIException;
    [2] Implement the StorckTrader interface (on a
    PortableRemoteObject
    derived
    class, to make it IIOP compliant), and then the server to
    register
    the
    stock
    trader with COS Naming service as follows:
    String homeName =....
    StockTraderImpl trader =new StockTraderImpl();
    System.out.println("binding obj <" homeName ">...");
    java.util.Hashtable ht =new java.util.Hashtable();
    ht.put("java.naming.factory.initial", args[2]);
    ht.put("java.naming.provider.url", args[3]);
    Context ctx =new InitialContext(ht);
    ctx.rebind(homeName, trader);
    [3] Generate the RMI-IIOP skeletons for the Implementation
    class,
    rmic -iiop stock.StockTraderImpl
    [4] generate the IDL for the RMI interface,
    rmic -idl stock.StockTraderImpl
    [5] Generate IDL stubs for the CORBA client,
    idlj -v -fclient -emitAll StockTraderImpl.idl
    [6] Write the client to use the IDL-defined stock trader,
    String serverName =args[0];
    String symList =args[1];
    StockClient client =new StockClient();
    System.out.println("init orb...");
    ORB orb =ORB.init(args, null);
    System.out.println("resolve init name service...");
    org.omg.CORBA.Object objRef
    =orb.resolve_initial_references("NameService");
    NamingContext naming=NamingContextHelper.narrow(objRef);
    ... define a naming component etc...
    org.omg.CORBA.Object obj =naming.resolve(...);
    System.out.println("narrow objRef: " obj.getClass() ":"
    +obj);
    StockTrader trader =StockTraderHelper.narrow(obj);
    [7] Compile all the classes using Java 1.2.2
    [8] start tnameserv (naming service), then the server to
    register
    the
    RMI
    server obj
    [9] Run the CORBA client, passing it the COSNaming service ref
    name
    (with
    which the server obj is registered)
    The CORBA client successfully finds the server obj ref in the
    naming
    service, the operation StockTraderHelper.narrow() fails in thesegment
    below, with a class cast exception:
    org.omg.CORBA.Object obj =naming.resolve(...);
    StockTrader trader =StockTraderHelper.narrow(obj);
    The <obj> returned by naming service turns out to be of the
    type;
    class com.sun.rmi.iiop.CDRInputStream$1
    This is of the same type when stock trader object is registeredin a
    CORBA
    server (as opposed to an RMI server), but works correctly with
    no
    casting
    excpetions..
    Any ideas / hints very welcome.
    thanks in advance,
    -hari

  • HT6147 Problems after updating iPad2 with iOS7.0.6. Has anyone had this problem?

    Problems after updating iPad2 with iOS7.0.6. Has anyone had this problem? I lost my notes, calendar, songs, games+ more. I've tried everything to restore these, but it won't let me. HELP!!!!'

    Restore from iCloud Backup
    1. Settings>General>Reset>Erase all content and settings
    2. Tap Erase
    3. You'll see Apple logo and progress bar
    4. Hello
    5. Slide to set up
    6. Set language
    7. Set country
    8. Choose Wi-Fi network; enter Wi-Fi password
    9. (a) Use Location Service (b) Don't Use Location Service
    10. Select option
    11. (a) Setup as New iPad (b) Restore from iCloud Backup (c) Restore from iTune Backup
    12. Selected Restore from iCloud Backup
    13. Enter password for iCloud
    14. Agree to Terms and Conditions
    15. Setup Apple ID
    16. Select backup
    17. Restoring from iCloud
    18. Hello
    19. Restore Completed. Your iPad was restored successfully. There are just a few more steps to follow and then you're done!
    20. Continue
    21. Finish setting iCloud enter Password
    22. Updating iCloud settings
    23. Create a Passcode
    24. Welcome to iPad
    25. Get Started
    26. Restoring Apps and Media
    27. Enter Apple ID and Password
    28. Notice: Restore Incomplete, some items could not be downloaded from the Store. If they are on your computer, you can restore them by syncing with iTune
    29. Connect iPad to iTune to sync with computer
    30. Sync Music, Videos and Album Artwork

  • Problems with ARD and SwUpd Unix Command

    Hi everybody
    I have a problem sending UNIX commands to my clients, I work in a school with 500 macs, with 10.4 and 10.5 systems and all the computers download the updates from my Software Update Server, but when I try to send the command from ARD (sudo softwareupdate -i -a) the clients attemp to connect to Apple's servers instead my own SUS. It seems when I try to install with sudo command, overrides the address of my server.
    I show you the output:
    $ sudo softwareupdate -i -a
    password:
    2009-09-22 12:14:31.712 softwareupdate456 loader:didFailWithError:NSError "XML parser error:
    Encountered unknown tag style on line 5
    Old-style plist parser error:
    Malformed data byte group at line 5; invalid hex
    " Domain=SUCatalogLoader Code=0 UserInfo={
    NSLocalizedDescription = "XML parser error:\n\tEncountered unknown tag style on line 5\nOld-style plist parser error:\n\tMalformed data byte group at line 5; invalid hex\n";
    NSURL = http://swscan.apple.com/content/catalogs/index-1.sucatalog;
    Error: XML parser error:
    Encountered unknown tag style on line 5
    Old-style plist parser error:
    Malformed data byte group at line 5; invalid hex
    Software Update Tool
    Copyright 2002-2005 Apple
    When I try this command as a normal user, everything is ok:
    $ softwareupdate --list
    2009-09-22 12:15:03.569 softwareupdate458 Loading CatalogURL http://xserve.fcaq.k12.ec:8088/index.sucatalog
    Software Update Tool
    Copyright 2002-2005 Apple
    Software Update found the following new or updated software:
    * iPhoto504-5.0.4
    iPhoto Update (5.0.4), 41980K recommended
    * JavaForMacOSX104Release7-1.0
    Java for Mac OS X 10.4, Release 7 (1.0), 82580K recommended
    * iTunesX-9.0.0
    iTunes (9.0.0), 87530K recommended
    * QuickTime-7.6.4
    QuickTime (7.6.4), 51340K recommended restart
    * RemoteDesktopAdmin33-3.3 v1.1
    Remote Desktop Admin Update (3.3 v1.1), 57530K recommended
    * SecUpd2009-005PPC-1.0
    Security Update 2009-005 (PowerPC) (1.0), 81690K recommended restart
    I hope you can help me... Thank you so much

    I have the exact same problem with two PowerMac G5's. I need to have full resolution on the remote G5 which has no monitor connected, but only get to choose between PAL and NTSC TV resolution. This is really annoying, and in my opinion a major bug in ARD 3.1 and below. Why is the user forced to see such a small remote window if the remote computer is capable of much more?

  • Problem using VB Client with a JAVA Webservice

    Hi people!
    I'm using JDeveloper (9.0.3) to create a JAVA Webservice on OC4J container. I followed tutorial of Oracle and I got to execute my webservice, including I can invoke my methods by HTTP using HTML forms.
    I need to invoke my methods using a VB Client with MIcrosoft SOAP ToolKit. My VB code is:
    Function autenticar(login As String, senha As String)
    Dim ObjWS As New MSSOAPLib30.SoapClient30
    Dim retorno As Variant
    Call ObjWS.MSSoapInit("http://10.71.200.40:8888/iSimp-Web-Root/br.gov.anp.isimp.controleVersao.ControleVersaoEJB?WSDL")
    retorno = ObjWS.autentica(login, senha)
    autenticar = retorno
    End Function
    My webservice publish a method called autentica that receives two parameters (a login and a password) and authenticates to obtain access to my system.
    When I try to execute this function, I got this message error:
    No deserializer found to deserialize a ":login" using encoding style "http://schemas.xmlsoap.org/soap/encoding/". [java.lang.illegalArgumentException]
    Anyone knows what is this error?

    If you could post what solved your problem that would be useful for others that run into the same issue. Thanks if possible!
    Mike.

  • Problem using instant client with Win 7

    Hi,
    I have a Powerbuilder application that runs very well with Win XP and Oracle client 8 to 10.
    With new computers (Win 7), we try to use instant client... but there are problems with accents ! In fact, all accents are replaced by a "¿" in the database.
    It only appears when we are using our programs from a Win 7 machine with instant client.
    Do you know if there is something to configure to solve this problem ?
    Best regards.

    user1931557 wrote:
    Hi,
    I have a Powerbuilder application that runs very well with Win XP and Oracle client 8 to 10.
    With new computers (Win 7), we try to use instant client... but there are problems with accents ! In fact, all accents are replaced by a "¿" in the database.
    It only appears when we are using our programs from a Win 7 machine with instant client.
    Do you know if there is something to configure to solve this problem ?
    Best regards.
    If the characters only appear on certain clients, then they are NOT being "replaced ... in the database".  What you are seeing is an issue with presentation, not data.

  • Problem synchronizing windows clients with solaris 10 NTP server

    Hello everyone,
    I realyy need help on the following:
    I tried to synchronize windows 2003 as client with NTP server running in Solaris 10
    My Time Zone in the NTP server is GMT+3, and in my windows is also set to GMT+3
    When I start NTP server and clients , I got 6 hours delay between the clients and the server
    I tried to synchronize the Solaris server with another solaris system, the synchronization is working fine
    Your help
    Regards
    Hakim Fourar

    True (but only for later releases). But since he mentioned getting a 6 hour offset after starting them, that makes me think that the systems are communicating, and that the time zones are incorrect.
    This is easily verified by using 'ntpq -p' and 'date ; date -u'. The first will show if the client thinks it is synchronized to a server (and what the UTC offset is in miliseconds). The second will show the date in the default timezone and in UTC.
    If you're not using POSIX, you'd think that GMT+XX meant east of UTC, but for POSIX, it means west of UTC.
    Darren

  • I have a problem when update tables with a database link (APEX)

    Hi, I search answers for my problem and I not found a solution. My problem start when I open page with database link statement in APEX. I drop tables and execute this for update the tables in APEX.
    EXECUTE IMMEDIATE 'CREATE TABLE XXXXXXX
    AS
    SELECT A1,A2,A3
    FROM AAA@BBB';
    I use Mozilla Firefox and isn't always updated the tables because it shows dialog for downloading file "f". I rename the file to txt and I see the text "IBMPC/WIN_NT-8.1.0"...
    In the explorer always show a window only the text "IBMPC/WIN_NT-8.1.0"...
    What is the solution for my problem? I need update this tables.
    Thanks. John.

    It's easy. It doesn't work a database link, on apex, with a pl/sql code or store procedure.
    I saw that many people had the same problem but I don't see a solution.
    As I put up, I want to remove my tables on APEX and copy the table of my Oracle database with the update dates.
    The posts are from the same problem as my English is very bad, it got to help explain the problem.
    I have a page with a pl/sql code. This code in Oracle is correctly.
    For example, with this code I update the table PRUEBAS with the data of TABLEX.
    BEGIN
    BEGIN
    EXECUTE IMMEDIATE 'DROP TABLE "PRUEBAS"';
    EXCEPTION WHEN OTHERS THEN NULL;
    END;
    EXECUTE IMMEDIATE 'CREATE TABLE "PRUEBAS"
    AS
    SELECT AAA,
    BBB,
    CCC
    FROM TABLEX';
    END;
    But, in this code, I have the problem.
    BEGIN
    BEGIN
    EXECUTE IMMEDIATE 'DROP TABLE "PRUEBAS"';
    EXCEPTION WHEN OTHERS THEN NULL;
    END;
    EXECUTE IMMEDIATE 'CREATE TABLE "PRUEBAS"
    AS
    SELECT AAA,
    BBB,
    CCC
    FROM TABLEX@DB_LINK';
    END;
    I sometimes get an error. Sometimes it works fine, but half of the tries Apex returns "IBMPC/WIN_NT-8.1.0" in the browser and I am not using an IBM PC or Win NT...
    And i read that In the alert_xe.log file there are a error of core dump... ... :S or that the application return corrupt headers.... Is a problem of versions?
    I used a synonym and I have the same problem.      
    Even if I run the code on SQL COMMANDS (SQL WORKSHOP) it shows dialog for downloading file "f". I rename the file to txt and I see the text "IBMPC/WIN_NT-8.1.0"...
    The problem is in Mozilla Firefox and in IE.
    I have the OracleXE 10g (Application Express 3.0.1.00.08).
    And the question is.. ... ... ... ... What is the solution? :)
    Thanks.
    John.

  • Problem in updating apps with incorrect (old) e-mail addresses

    I have a major problem. I cannot update my phone with any apps. It brings up an old incorrect e-mail address when I try and do this.
    On my computer and on my phone settings is the correct e-mail address.
    How do I get rid of this e-mail address and get my correct one to display so I can update ?

    The Mail.app stores all sent message recipients to the list of Previous Recipients in Mail and the autofill feature pulls from the Address Book and the list of Previous Recipients.
    At the Mail.app menu bar, go to Window and select Previous Recipients.
    A previous recipient entered in the Address Book will have a vCard icon to the left of the name. You can remove a previous recipient from the list or add a previous recipient to the Address Book that is not already entered.

  • Problem: Jstl update query with Jquery script

    Hi all,
    i'm writing a jsp page with this 3 star rating Jquery script to show and vote some <div> (results) .
            <script type="text/javascript">
                                        jQuery(document).ready(function($) {
                                            $("#${Rss.pages_id}").stars({
                                                cancelShow: false,
                                                captionEl: $("#<%=i%>"),
                                                callback: function(ui, type, value){
                                                    alert("Callback! ID = ${Rss.pages_id} Clicked: " + type + ", value: " + value );
                                            $("#${Rss.pages_id}").stars("select", ${Rss.trust_value})
                                    </script>Now i want update the value in my DB(MySql) everytime that i will click on my "star rating"..i want do this with an jstl update query.
    Someone can help me?? Thanks

    Just so as you remember that jquery/javascript is completely client side.
    JSP/JSTL is completely server side.
    The only way to invoke java/JSP from javascript code is to make an http request - normally via ajax.
    Given that, it doesn't make sense to put jquery code and a JSTL update query within the same JSP page.
    The code to update the database should be a seperate resource called by ajax from the main page.
    In that case, it doesn't have to be (and probably shouldn't be) done with JSTL. It is better done with java code within servlet/beans.
    cheers,
    evnafets

  • Problem In connecting Client with oracle

    hello all,
    I am trying to connect a system, with my oracle server, but the client machine is also having oracle installed on it. Is it possible to connect same machin with my oracle server. I am working on Oracle 8i.

    Except version incompatibility, any Oracle system can connect to any Oracle DB, any Oracle server can work as Client to another Oracle server.
    On the machine that works as Client you have only to configure a TNS alias to connect to the DB on the other machine.

  • BIOS PROBLEM after updating bios with liveupdate

    i need help. my pc was doing fine until i updated the bios and drivers.
    now it can't even boot to bios. can't see or do anything .
    tried to repair my self by some doing some research,
    resetting the cmos and removing the battery but no luck until now.
    my situation is similar to this video.
    hope someone could help me out.

    Quote from: ghost.u94 on 13-June-15, 18:41:14
    solved- it was the dimm 3 and 4 which got errors.
    not using dual channel now. only using DIMM1,2 but at least it boots up.
    Then your board is most likely defective. Reseat cpu and see if pins in the socket are bent. Else it might be the slots or their wiring.

  • NPE with WebService client with JDeveloper 10.1.3

    Hi folks,
    I am having weird NullPointerException with a WebService client I generated with the WEB Service Proxy wizard in JDeveloper 10.1.3.
    The thing is, the client runs fine as long as there are NO NULL FIELDs in the "double" type returned objects. I don't know about other types, but I am sure it fails with doubles.
    If there is a NULL value in the returned Bean, then marshaling fails with a NullPointerException.
    I guess it is not a Server problem since clients in .NET and AXIS works just fine.
    I don't think it has anything to do with it, but, server is in JBoss-4.0.4.GA with JBossWS-1.0.3.
    May be a bug in JDEV's WebService client code?
    The first line is the deserializer returning a null value. The second is the line with the NPE:
    member = myns2__double__double_Double_Serializer.deserialize(ns4_r1_IA_C1_QNAME, reader, context);
    instance.setR1_IA_C1(((Double)member).doubleValue());
    Any help will be appreciated.
    Best regards.

    This is not an elegant solution.
    I’ve the same problem you have, so the only thing that I thought to solve this problem was to change the sentences one by one replacing with if(member != null) between both sentences.
    I use an editor that can change regular expressions.
    This works fine, but I think there might be a better solution.
    I hope this can help.
    Regards.

  • Need help with update statement with multiple joins

    I've got the following select statement that is pulling 29 records:
    SELECT
    PPA.PROJECT_ID,
    PPA.SEGMENT1,
    peia.expenditure_item_id,
    peia.expenditure_type,
    pec.expenditure_comment
    FROM PA.PA_PROJECTS_ALL PPA,
    pa.pa_expenditure_items_all peia,
    pa.pa_expenditure_comments pec
    where PPA.segment1 < '2008' and
    PPA.project_id = 52 and -- just run for project # 20077119 for testing
    peia.expenditure_type = 'PAYROLL' and
    peia.project_id = ppa.project_id and
    PEC.EXPENDITURE_ITEM_ID = PEIA.EXPENDITURE_ITEM_ID;
    I need to update the pec.expenditure_comments to a static field for those 29 records. I assume I should start with the following, but not sure how to complete the where:
    update
    pa.pa_expenditure_comments pec
    set pec.expenditure_comment = 'REFERENCE HD#728'
    where
    First time that we've ever needed to update, so any and all help appreciated.

    Try using exists:
    update pa.pa_expenditure_comments pec
    set    pec.expenditure_comment = 'REFERENCE HD#728'
    where exists ( select null
                   from   pa.pa_projects_all ppa
                   ,      pa.pa_expenditure_items_all peia
                   ,      pa.pa_expenditure_comments pec2
                   where  ppa.segment1 < ''    -- not sure what you posted here, so for next time:
                                               -- please put your examples between the code tags.
                   and    ppa.project_id = 52  -- just run for project # 20077119 for testing
                   and    peia.expenditure_type = 'PAYROLL'
                   and    peia.project_id = ppa.project_id
                   and    pec2.expenditure_item_id = peia.expenditure_item_id
                   and    pec2.expenditure_item_id = pec.expenditure_item_id
                 );

  • Help with updating databse with cfloop

    I want to move data from one column to another. I thought I could just query points2 column then use a cfloop to update the data to points1 column. Finally null out points2 column.
    Below is my code on the first 2 steps. Unfortunately, I get the following error:
    Syntax error in UPDATE statement.
    The error occurred in wwwroot\forms\changepoints.cfm Line 18
    <cfquery name="getPoints" datasource="#dsn2#">
    SELECT leaderID, points2
    from leaderboard
    </cfquery>
    <cfloop query="getPoints" startrow=1 >
      <CFQUERY NAME="DoUpdate" DATASOURCE="#dsn2#">
           UPDATE leaderboard
           SET points1=#getPoints.points2#
          WHERE leaderID=#getPoints.leaderID#    (line 18)
        </CFQUERY>
    </cfloop>
    What am I doing wrong?

    Like Dan said before, I think you could replace this:
    <!--- query to get all points --->
    <cfquery name="getPoints" datasource="#dsn#">
    SELECT leaderID, points2
    from leaderboard
    where (points2 IS not NULL) AND (tournID = 1)
    </cfquery>
    <!--- loop the points into the new column: points2 --->
    <cfloop query="getPoints" startrow=1 >
      <CFQUERY NAME="DoUpdate" DATASOURCE="#dsn#">
           UPDATE leaderboard
           SET points1=#getPoints.points2#
           WHERE (leaderID=#getPoints.leaderID#) AND (tournID = 1)
        </CFQUERY>
    </cfloop>
    With this:
    <cfquery name="updatePoints" datasource="#dsn#">
    UPDATE leaderboard
    SET points1=points2
    WHERE (points2 IS NOT NULL) AND tournID =1
    </cfquery>
    Update queries run record by record, so you don't have to worry about it scrambling the values between rows (which you expressed as a concern in reply to Dan).  It's best to let the database handle this rather than by looping in ColdFusion - it will be much more efficient that way.
    -Carl V.

Maybe you are looking for

  • Dynamic source file names

    Hi all, I am planning to load data from a flat file using an external table in an OWB mapping. Will my mapping work correctly if my file name changes at every load...as an example file name in October is sales_200310 in november it will be sales_2003

  • Lightroom 4.3 metadata doesn't xfr to Bridge CS6

    I am trying to print contact sheets in Bridge using keywords and/or star ratings from Lightroom. I'm doing that because rendering is incredibly slow if I try to do the same thing in LR even when I choose 240 ppi in the menu. I've tried suggestions fr

  • How do I send a document while in the document - the send to under File is greyed out.

    New to Mozilla Thunderbird and use a mac.

  • URLSessionFormat and CF5 to CFMX 7 upgrade

    This CFM code: <cfoutput><p><a href="#urlsessionformat('')#">urlsessionformat</a></p></cfoutput> Generates this HTML code: <p><a href=";jsessionid=e8302116b2ad1d6232f7?CFID=892&CFTOKEN=75270ce4619eef58-061CB9E0-1185-E9 A7-25E95C31210E5230&jsessionid=

  • Quicktime X Secondary Full Screen

    I have used my pro version of Quicktime 7 for presentations for many years. I have grown very attached to the setting that allowed me to hit "Command-F" and the video would jump to a secondary screen (my projector) and play the video. I have noticed