PHP Connection fails, but works over saprfc_test.php

Hi,
I can make a connection to SAP using saprfc_test.php but when I try and do this with my php script at the command line it fails with this error:
C:\Documents and Settings\arundelr>php -c C:\www_root\Apache2.2\php.ini C:\www_r
oot\htdocs\newphpsaprfc\parser.php
Order Number: 0000427138
PHP Warning:  RFC Error Info :
Group    : 102
Key      : RFC_ERROR_COMMUNICATION
Message  : Connect to message server failed
Connect_PM  MSHOST=sapdev.host.com, R3NAME=FRD, GROUP=PUBLIC
LOCATION    CPIC (TCP/IP) on local host
ERROR       Group PUBLIC not found
TIME        Mon Jul 09 17:28:30 2007
RELEASE     640
COMPONENT   LG
VERSION     5
RC          -6
I do not specify a group when I use saprfc_test.php but I notice this is reporting it as PUBLIC.  Does anybody have any bright ideas?
cheers
Rob.
MODULE      lgxx.c
LINE        3531
DETAIL      LgIGroup
COUNTER     1
in C:\www_root\htdocs\newphpsaprfc\includes\processor.php on line 15
RFC connection failed
C:\Documents and Settings\arundelr>

specifying "MSHOST"=>"", did the trick.

Similar Messages

  • OS X 10.8.4 wifi says "connection failed", but connects anyway; cannot save password

    I am using OS X 10.8.4 that came with my MBP. When I connect to my home wifi that requires a WPA 2 password, it says "Connection Failed", but anyway connects to the internet. Also, my password is not being saved, and I need to enter it everytime.
    After reading several forums, I have already tried the following:
    1. removing airport preference list from Library/Preferences/SystemConfiguration
    2. Removing network password from the keychain
    3. Using Keychain first aid
    4. Using disk utility and doing repair disk.
    5. Doing DHCP release in Network Preferences.
    6. Removing my network from the preferred network list and connecting again.
    I am using a D-link modem. It should not be a problem, because the same MBP could remember the password before. The problem happened when I tried to fix my wifi because it would take long to connect after waking from sleep, when I deleted the airport preferences list, and removed the keyring.

    Back up all data. Don't continue unless you're sure you can restore from a backup, even if you're unable to log in.
    This procedure will unlock all your user files (not system files) and reset their ownership and access-control lists to the default. If you've set special values for those attributes on any of your files, they will be reverted. In that case, either stop here, or be prepared to recreate the settings if necessary. Do so only after verifying that those settings didn't cause the problem. If none of this is meaningful to you, you don't need to worry about it.
    Step 1
    If you have more than one user account, and the one in question is not an administrator account, then temporarily promote it to administrator status in the Users & Groups preference pane. To do that, unlock the preference pane using the credentials of an administrator, check the box marked Allow user to administer this computer, then reboot. You can demote the problem account back to standard status when this step has been completed.
    Enter the following command in the Terminal window in the same way as before (triple-click, copy, and paste):
    { sudo chflags -R nouchg,nouappnd ~ $TMPDIR.. ; sudo chown -R $UID:staff ~ $_ ; sudo chmod -R u+rwX ~ $_ ; chmod -R -N ~ $_ ; } 2> /dev/null
    This time you'll be prompted for your login password, which won't be displayed when you type it. You may get a one-time warning to be careful. If you don’t have a login password, you’ll need to set one before you can run the command. If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator.
    The command will take a noticeable amount of time to run. Wait for a new line ending in a dollar sign (“$”) to appear, then quit Terminal.
    Step 2 (optional)
    Take this step only if you have trouble with Step 1 or if it doesn't solve the problem.
    Boot into Recovery. When the OS X Utilities screen appears, select
    Utilities ▹ Terminal
    from the menu bar. A Terminal window will open.
    In the Terminal window, type this:
    res
    Press the tab key. The partial command you typed will automatically be completed to this:
    resetpassword
    Press return. A Reset Password window will open. You’re not  going to reset a password.
    Select your boot volume ("Macintosh HD," unless you gave it a different name) if not already selected.
    Select your username from the menu labeled Select the user account if not already selected.
    Under Reset Home Directory Permissions and ACLs, click the Reset button.
    Select
     ▹ Restart
    from the menu bar.

  • I can not upgrade the Muse. Says that the connection failed, but she's perfect. What to do to upgrade my Muse? Thank you!

    I can not upgrade the Muse. Says that the connection failed, but she's perfect. What to do to upgrade my Muse? Thank you!

    Hi
    Are you getting message to connect internet every time you are trying to use Muse or while upgrading ?
    Please check these threads for more details :
    https://forums.adobe.com/message/4726378
    https://forums.adobe.com/message/4409975
    Thanks,
    Sanjit

  • NETWORK marked [FAIL] but works...

    Hi everyone,
    Recently, during boot, network is marked as failed but everyhting works properly... This only happens with wireless connection (ipw2100), ethernet is marked [DONE] and works too 
    Thanks in advance for any advice...
    Cheers

    I'm not sure if I completely understand your post, but if you have multiple network interfaces and one fails, then network shows fail even if others were successful. There's a bug report filed about it, but it's been quite a while without being fixed...
    And if that doesn't answer your question then ignore me.

  • C3-00 Wlan Connection Failed (but not before)

    Hi!
    I bought a C3-00 today, at the begining, I could connect on my access point, but after charging my Nokia, I could'nt attach to the access point. This message appears now: "Wlan Connection Failed". I read some stuff about firmware update but I can't update my firmware because the 7th version is not available in my region (I'm belgian).
    Someone have an idea of the problem?
    Thanks.
    Edit:
    My router is a Bbox2 (Belgacom Box)
    Edit2:
    I've just try and it's work, it pretty weird. Do you thing problem comes from my router?

    Hi babyhedgehog,
    Thank you for your post and welcome to the forums!
    The security code is tied to the phone, not your SIM card. So, we would advice you to soft reset your phone again and try the default security code, which is 12345.
    If restoring factory settings does not resolve your issue, you can also try to hard reset your phone. This will remove all settings and personal data from your phone, so we recommend that you first back up your phone with Nokia Suite.
    To hard reset your phone, just dial *#7370#. 
    Let us know if this helps,
    Puigchild
    If you find this post helpful, a click upon the white star at bottom would always be appreciated.
    If it also solves your problem, clicking ACCEPT AS SOLUTION below it will benefit other users!

  • Facebook App not working over 3G, but works over Wi-Fi.

    I have a BlackBerry® Curve™ 3G 9330 Social Messaging Ready smartphone. My current software version is 6.0 Bundle 2333. My Facebook application worked perfectly fine when I got the phone a few months ago over the Verizon 3G network and Wi-Fi, but when I recently updated Facebook to version 2.0.0.58, it does not work over 3G anymore. But everytime I try to connect via 3G it says "We cannot reach the Facebook server at this time. Please try again later. (100)" It does however still work over Wi-Fi.
    I have tried various attempts to fix it: uninstalling the App and re-installing it and also removing the battery and putting it back in (hard reset), but nothing has worked.
    Is anyone else have this same issue? Is there a way to restore my Blackberry to its factory settings so that I can just use the older version of the Facebook App [that was previously installed]?
    Thank you.

    Hey metalhourse90,
    I can see from your PIN that you currently don't have browsing services included in your data plan. I would advise contacting your wireless provider to have this enabled.
    Thanks,
    -FS
    Come follow your BlackBerry Technical Team on Twitter! @BlackBerryHelp
    Be sure to click Kudos! for those who have helped you.
    Click Solution? for posts that have solved your issue(s)!

  • VPN connect via menu extra fails, but works via prefpane - anybody else?

    Is anybody out there with the same symptom, getting an error message when trying to establish a VPN connection via VPN menu extra but being able to connect properly via networking prefpane? Would be interesting to know if this could be a bug worth sending a report to Apple...
    PB G4, Mac OS X 10.5.5

    Tim, you made it. Another example for that famous tricky problems after OS migration. I had the VPN prefs already on Mac OS X 10.4 and trusted them on Mac OS X 10.5 after their automatic
    adoption too...
    Thx mate!

  • Midisport 2x2 on osx 10.5.8 fails  (but works in Fusion with Vista)

    Windows definitely wins this one. On the same machine, Windows just works. The Mac, not so much.
    I installed the midisport mac drivers, and after that the lights on the device turned on. So far so good.
    But:
    GarageBand shows 0 midi inputs
    Audio Midi Setup shows no midi input
    MIDI Monitor shows no midi inputs
    The hardware is correctly cabled. I'm using VMWare Fusion with Windows Vista on the same machine, and midi input works in Windows with a program called Anvil Studio. I can record midi from my keyboard (but with a huge delay).
    VMWare Fusion is the only Mac program that notices that the midi adapter is there. The menus shows: Virtual Machine/USB/Connect Midiman USB Device.
    Any suggestions for other things to try? How can I verify that the driver is properly loaded? I see this:
    root 116 0.0 0.2 137576 6772 ?? S 9:55AM 0:00.43 /Library/StartupItems/M-Audio Firmware Loader/MAFL
    How do you get a list of usb devices on a Mac? System Profiler shows it as a Composite Device (I think). No further info available. If VMWare Fusion can see that it's a Midiman USB Device, why can't System Profiler tell what it is?
    Another wrinkle: Besides working in Vista with Anvil Studio, I haven't found another Windows utility that sees the midi input. For example, MIDI-OX tells me there is no midi device.
    Hardware:
    midisport 2x2
    MacBook Pro osx 10.5.8
    Yamaha P-90 keyboard

    http://www.m-audio.com/index.php?do=support.drivers&f=847 there is something you need to load for this little piece of plastic.

  • "filter failed" HP printers fails to work over the network

    I got the common error "filter failed" when using my HP Color Laserjet 1600 through the network. Yet the printer works fine using directly from the computer it is connected via usb.
    This is my home network and I am not here often, but I am fairly sure everything worked out-of-the-box few weeks ago...
    I already tried both suggestion from the wiki, I started and enable avahi-daemon in all computers and the set the permission of the usb port to 0666:
    % lsusb | grep Hew
    Bus 001 Device 003: ID 03f0:3a17 Hewlett-Packard Printing Support
    % ls -l /dev/bus/usb/001/003
    crw-rw-rw- 1 root lp 189, 2 4 set 11.00 /dev/bus/usb/001/003
    I am stuck, any insights? What can I try?
    Last edited by ezzetabi (2013-09-04 09:13:00)

    try making certain that you have the latest drivers installed, which you can caget fron HP. After downloading do to system prefs>>print/fax. hightlight the HO1320n (use the - key). then use the add 9+) key ang select the HP1320n icon to add the nem printer. Set the HP as your your default printer. When you go to print for the first time, make sure that the selected printed is the the HP1320. It should go. Sometimes it need to be re-created when there are multiples.
    Good luck and hope this helps

  • Https 1.4.1 post fails but works in 1.3

    I have a simple app that runs fine on 1.3.1_04 but it does not run on
    1.4.* When I debug I notice 1.3 passes SSL as the protocol and 1.4 passes TLSv1.
    Does anyone know how to resolve this problem? Can I use HttpURLConnection? Do I need to use sockets?
    The error occurs when I try and post the username and password.
    WARNING and ERROR
    SEND TLSv1 ALERT: warning, description = close_notify.
    java.io.IOException: Server returned HTTP response code: 401 for URL: https://ww3.mydomain.com/
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLCon
    nection.java:709)
    at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:238
    at java.net.HttpURLConnection.getResponseMessage(HttpURLConnection.java:
    304)
    at com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnectionOldImpl
    .getResponseMessage(DashoA6275)
    at SASa.doHTTPTransaction(SASa.java:443)
    at SASa.main(SASa.java:79)
    CODE
    import java.io.*;
    import java.io.ByteArrayInputStream;
    import java.io.InputStream;
    import java.io.IOException;
    import java.io.OutputStream;
    import java.net.HttpURLConnection;
    import java.net.URL;
    import java.security.Security;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Enumeration;
    import java.util.HashMap;
    import java.util.Iterator;
    import java.util.Map;
    import java.util.Properties;
    import org.jdom.Document;
    import org.jdom.input.DOMBuilder;
    import org.jdom.output.XMLOutputter;
    import org.w3c.tidy.Tidy;
    public class SASa
    public static void main(String arguments[])
    String
    region = "",//arguments[0],
    username = "",//arguments[1],
    password = "",//arguments[2],
    accountNumber = "",//arguments[3],
    speed = "",//arguments[4],
    ispCode = "WN";
    List
    cookies = new ArrayList();
    try
    // These two lines add the JSSE service provider into the runtime so that we can do HTTPS.
    System.setProperty("java.protocol.handler.pkgs", "com.sun.net.ssl.internal.www.protocol");
    Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());
    // BEGIN: Step 1
    // Request the first page to get a required cookie.
    URL
    u0 = new URL("https://ww3.mydomain.com/");
    Properties
    h0 = new Properties(),
    p0 = new Properties();
    Map
    r0 = null;
    h0.setProperty("User-Agent", "Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0)");
    p0.setProperty("Username", "user");
    p0.setProperty("Password", "pwd");
    r0 = doHTTPTransaction(u0, "POST", h0, p0);
    dumpResponse(r0);
    // END: Step 1
    // BEGIN: Step 2
    URL
    u1 = new URL("https://ww3.mydomain.com/page2");
    Properties
    h1 = new Properties(),
    p1 = new Properties();
    Map
    r1 = null;
    h1.setProperty("User-Agent", "Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0)");
    h1.setProperty("Content-Type", "application/x-www-form-urlencoded");
    h1.setProperty("Proxy-Connection", "Keep-Alive");
    // Set the cookie for THIS request using the cookie received from the LAST response...
    cookies.addAll((List)((Map)r0.get("headers")).get("Set-Cookie"));
    System.out.println("setting cookie: " + constructCookieHeaderValueString(cookies));
    h1.setProperty("Cookie", constructCookieHeaderValueString(cookies));
    p1.setProperty("Username", "user");
    p1.setProperty("Password", "pwd");
    r1 = doHTTPTransaction(u1, "POST", h1, p1);
    dumpResponse(r1);
    URL
    u2 = new URL("https://ww3.mydomain.com/page3");
    Properties
    h2 = new Properties(),
    p2 = new Properties();
    Map
    r2 = null;
    h2.setProperty("User-Agent", "Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0)");
    h2.setProperty("Content-Type", "application/x-www-form-urlencoded");
    h2.setProperty("Proxy-Connection", "Keep-Alive");
    System.out.println("setting cookie: " + constructCookieHeaderValueString(cookies));
    h2.setProperty("Cookie", constructCookieHeaderValueString(cookies));
    p2.setProperty("__Click", "");
    r2 = doHTTPTransaction(u2, "GET", h2, p2);
    dumpResponse(r2);
    System.exit(1);
    // END: Step 2
    // BEGIN: Step 3
    URL
    u3 = new URL("https://ww3.mydomain.com/page4");
    Properties
    h3 = new Properties(),
    p3 = new Properties();
    Map
    r3 = null;
    h3.setProperty("User-Agent", "Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0)");
    h3.setProperty("Content-Type", "application/x-www-form-urlencoded");
    h3.setProperty("Proxy-Connection", "Keep-Alive");
    // Set the cookie for THIS request using the cookie received from the LAST response...
    System.out.println("setting cookie: " + constructCookieHeaderValueString(cookies));
    h3.setProperty("Cookie", constructCookieHeaderValueString(cookies));
    r3 = doHTTPTransaction(u3, "GET", h3, p3);
    dumpResponse(r3);
    System.exit(1);
    // END: Step 3
    catch (Exception e)
    e.printStackTrace();
    * Executes the HTTP request for a given URL, using a given HTTP method, given a set of form
    * variables (aParameterSet) and HTTP headers.
    private static Map doHTTPTransaction(URL aURL, String aMethod, Properties aHeaderSet, Properties aParameterSet)
    Map
    result = new HashMap();
    try
    HttpURLConnection
    connection = (HttpURLConnection)aURL.openConnection();
    connection.setFollowRedirects(true);
    connection.setRequestMethod(aMethod);
    setHeadersForConnection(connection, aHeaderSet);
    connection.setDoOutput(aMethod.equals("POST") ? true : false);
    connection.connect();
    System.out.println("\n\nConnected to '" + aURL + "'.");
    if (aMethod.equals("POST"))
    pushQueryStringToConnection(connection, constructQueryString(aParameterSet));
    result.put("response", connection.getResponseMessage());
    result.put("headers", getResponseHeadersFromConnection(connection));
    result.put("body", getResponseBodyFromConnection(connection));
    catch (Exception e)
    e.printStackTrace();
    return result;
    * Sets the HTTP request headers from a set of key/value pairs.
    * TODO: This works fine for SAS, but probably needs to be made more robust for multi-value headers.
    private static void setHeadersForConnection(HttpURLConnection aConnection, Properties aHeaderSet)
    try
    Enumeration
    headerNames = aHeaderSet.propertyNames();
    String
    headerName = null,
    headerValue = null;
    while (headerNames.hasMoreElements())
    headerName = (String)headerNames.nextElement();
    headerValue = aHeaderSet.getProperty(headerName);
    aConnection.setRequestProperty(headerName, headerValue);
    catch (Exception e)
    e.printStackTrace();
    * Builds a multi-value (cookie) HTTP header string from a set of strings.
    private static String constructCookieHeaderValueString(List aValueList)
    String
    result = null,
    value = null;
    StringBuffer
    buffer = new StringBuffer();
    for (int x = 0; x < aValueList.size(); x++)
    value = (String)aValueList.get(x);
    buffer.append(value.substring(0, value.indexOf(';')));
    if ((x + 1) < aValueList.size())
    buffer.append("; ");
    result = buffer.toString();
    return result;
    * Builds a multi-value HTTP header string from a set of strings.
    private static String constructHeaderValueString(List aValueList)
    String
    result = null;
    StringBuffer
    buffer = new StringBuffer();
    for (int x = 0; x < aValueList.size(); x++)
    buffer.append((String)aValueList.get(x));
    if ((x + 1) < aValueList.size())
    buffer.append(",");
    result = buffer.toString();
    return result;
    * Builds an HTTP query string from a set of key/value pairs.
    * TODO: This works fine for SAS, but probably needs to be made more robust for multi-value keys.
    private static String constructQueryString(Properties aParameterSet)
    String
    result = null;
    StringBuffer
    buffer = new StringBuffer();
    Enumeration
    propertyNames = aParameterSet.propertyNames();
    String
    propertyName = null,
    propertyValue = null;
    while (propertyNames.hasMoreElements())
    propertyName = (String)propertyNames.nextElement();
    propertyValue = aParameterSet.getProperty(propertyName);
    buffer.append(propertyName);
    buffer.append("=");
    buffer.append(propertyValue);
    if (propertyNames.hasMoreElements())
    buffer.append("&");
    result = buffer.toString();
    return result;
    * Writes a pre-formatted query string to the OutputStream for a request to the server.
    private static void pushQueryStringToConnection(HttpURLConnection aConnection, String aQueryString)
    try
    OutputStream
    out = aConnection.getOutputStream();
    System.out.println("\nSending query string: " + aQueryString);
    out.write(aQueryString.getBytes());
    out.flush();
    out.close();
    catch (Exception e)
    e.printStackTrace();
    * Gets the response headers returned by the server as a result of the request.
    private static Map getResponseHeadersFromConnection(HttpURLConnection aConnection)
    Map
    result = new HashMap();
    try
    String
    headerName = null;
    List
    headerValues = null;
    boolean
    headers = true;
    int
    i = 1;
    while (headers == true)
    headerName = aConnection.getHeaderFieldKey(i++);
    if (headerName != null)
    if (result.get(headerName) == null)
    headerValues = new ArrayList();
    else
    headerValues = (List)result.get(headerName);
    headerValues.add(aConnection.getHeaderField(headerName));
    result.put(headerName, headerValues);
    else
    headers = false;
    catch (Exception e)
    e.printStackTrace();
    return result;
    * Reads the InputStream to get the body content returned by the server as a result of the request.
    private static Map getResponseBodyFromConnection(HttpURLConnection aConnection)
    Map
    result = new HashMap();
    try
    int
    i = 0;
    InputStream
    in = aConnection.getInputStream();
    StringBuffer
    buffer = new StringBuffer();
    while(i != -1)
    i = in.read();
    if (i != -1 )
    buffer.append((char)i);
    in.close();
    String
    body = buffer.toString();
    result.put("raw", body);
    result.put("xml", getBodyAsXML(new ByteArrayInputStream(body.getBytes())));
    catch (Exception e)
    e.printStackTrace();
    return result;
    private static Document getBodyAsXML(InputStream anInputStream)
    Document
    document = null;
    try
    DOMBuilder
    builder = new DOMBuilder();
    Tidy
    tidy = new Tidy();
    tidy.setQuiet(true);
    tidy.setXmlOut(true);
    tidy.setOnlyErrors(true);
    tidy.setShowWarnings(false);
    // OPTIONAL STUFF
    tidy.setDropEmptyParas(true);
    tidy.setDropFontTags(true);
    tidy.setMakeClean(true);
    document = builder.build(tidy.parseDOM(anInputStream, null));
    catch (Exception e)
    e.printStackTrace();
    return document;
    * Prints out the entire response received by executing the HTTP request to the server.
    private static void dumpResponse(Map aResult)throws Exception
    System.out.println("Printing Data \n\n");
    dumpResponse((String)aResult.get("response"));
    dumpResponseHeaders((Map)aResult.get("headers"));
    dumpResponseBody((Map)aResult.get("body"));
    * Prints out the response (i.e., "OK", "NOT FOUND", etc.) received by executing the HTTP request to the server.
    private static void dumpResponse(String aResult)throws Exception
    System.out.println("DUMPING RESULT");
    FileWriter fw = new FileWriter("output.txt", false);
    Writer out = new BufferedWriter(fw);
    out.write("------------------------------------------------------------------------------------------\n");
    out.write("RESULT: \n");
    out.write(aResult);
    out.write("\n------------------------------------------------------------------------------------------\n");
    out.flush();
    out.close();
    fw.close();
    * Prints out the headers received by executing the HTTP request to the server.
    private static void dumpResponseHeaders(Map aHeaderSet)throws Exception
    System.out.println("DUMPING HEADERS");
    FileWriter fw = new FileWriter("output.txt", true);
    Writer out = new BufferedWriter(fw);
    out.write("------------------------------------------------------------------------------------------\n");
    out.write("HEADERS: \n");
    Iterator
    iterator = aHeaderSet.keySet().iterator();
    String
    headerName = null;
    List
    headerValues = null;
    while (iterator.hasNext())
    headerName = (String)iterator.next();
    headerValues = (List)aHeaderSet.get(headerName);
    for (int x = 0; x < headerValues.size(); x++)
    out.write(headerName + ": " + headerValues.get(x) + "\n");
    out.write("\n------------------------------------------------------------------------------------------\n");
    out.flush();
    out.close();
    fw.close();
    * Prints out the body received by executing the HTTP request to the server.
    private static void dumpResponseBody(Map aBody)throws Exception
    System.out.println("DUMPING XML");
    XMLOutputter
    outputter = new XMLOutputter("\t", true);
    FileWriter fw = new FileWriter("file.txt", false);
    Writer out = new BufferedWriter(fw);
    out.write(aBody.get("raw").toString());
    out.flush();
    out.close();
    fw.close();

    The code that actually fails is:
         * Writes a pre-formatted query string to the OutputStream for a request to the server.
         private static void pushQueryStringToConnection(HttpURLConnection aConnection, String aQueryString)
              try
                   OutputStream
                        out = aConnection.getOutputStream();
                   System.out.println("\nSending query string: " + aQueryString);
                   out.write(aQueryString.getBytes());
                   out.flush();
                   out.close();
              catch (Exception e)
                   e.printStackTrace();
    I get an HTTPS connection without any problem but I can't send any additional data. 1.3 Works without any problem. 1.4 sends a different protocol(TLSv1) than 1.3(SSL). Is there a way to change the protocol to SSL? Or do I need to use sockets.
    The code included in my first post should work for any https site but how can I send username and password information. The server I am hitting does not appear to use TLSv1 as a protocol.

  • WLST deploy fails but works fine via admin console

    RHEL 5.6
    Jrockit 1.6.0_20-R28.1.0-4.0.1
    Weblogic 10.3
    Alfresco 3.3.4 (295)
    Oracle 10.2.0.4
    I'm experiencing problems when attempting to deploy a WAR using WLST using the below python script. If I deploy this WAR using the Weblogic Admin Console, all works well. When I attempt the same deployment using WLST, the deployment 'appears' to work and the script shows no sign of error BUT the application does NOT show up at all in the admin console. I'm using the same authentication information in both scenarios.
    connect(username,password,'t3://' + adminServer + ':8001')
    try:
    edit()
    startEdit(waitTimeInMillis=30000)
    except:
    traceback.print_exc(file=sys.stdout)
    print "Failed to aquire edit lock"
    # cannot undo when we do not has the lock
    #undo(defaultAnswer='y')
    #stopEdit()
    sys.exit(1)
    try:
    for app in cmo.getAppDeployments():
    if app.getName() == appname:
    print ('Application \'' + appname + '\' is already deployed, removing previous deployment...')
    undeploy(appname)
    break
    except:
    traceback.print_exc(file=sys.stdout)
    print "Undeploy failed"
    undo(defaultAnswer='y')
    stopEdit(defaultAnswer='y')
    sys.exit(1)
    try:
    deploy(appname, source, target, upload='true', block='true')
    except:
    traceback.print_exc(file=sys.stdout)
    print "Deploy failed"
    undo(defaultAnswer='y')
    stopEdit(defaultAnswer='y')
    sys.exit(1)
    try:
    save()
    activate()
    except:
    traceback.print_exc(file=sys.stdout)
    print "Activate failed"
    undo(defaultAnswer='y')
    stopEdit(defaultAnswer='y')
    sys.exit(1)
    disconnect()
    Is it possible to deploy the application unzipped?
    - CDM

    Hi Sebastian,
    You need to be connected to master database when executing GRANT VIEW SERVER. Try the following it will work:
    USE [master]
    GO
    GRANT VIEW SERVER STATE TO [Domain\User]
    Regards,
    Basit A. Farooq (MSC Computing, MCITP SQL Server 2005 & 2008, MCDBA SQL Server 2000)
    http://basitaalishan.com
    Please remember to click "Mark as Answer" on the post that helps you, and to click
    "Unmark as Answer" if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • URL Branch with java script  target fails, but works as button press

    I have a java script that displays a "report is loading" message when the page's submit button is pressed via the optional URL redirect attribute of the button.
    Unfortunately, I had to remove the optional URL Redirect so that I could perform some computations and processes as a result of the button press.
    I tried to put the script link in a branch attached to the button, but it failed with the following error.
    ERR-1777: Page 11 provided no page to branch to. Please report this error to your application administrator.
    Restart Application
    After the branch to the java script, there is an unconditional branch to page 11.
    Any one encounter this issue before and, if so, is there a work around?

    Hi
    Can you not use a URL redirect on the button to call your Javascript function - the Javascript will display the message you want to display, then call
    doSubmit('request_name');
    ...to submit your page, picking up all your processes/computations etc
    You then need to define a branch on your page which is conditional on the value of REQUEST - in this case request would be 'request_name'.
    regards
    Andrew
    UK

  • FTP 553 upload FAILED in LION ( cuteftp, transmit, coda, cyberduck all fail) , But works in Windows 7.

    Hi folks,
    I hv a big trouble in FTP upload.
    I own a VPS server, and now is rush time I need to upload some file.
    Now, I use CUTEFTP, TRANSMIT, CODA, CYBERDUCK in my updated LION, ALL FAILED.
    and also, I can not use those client to creat a new file, and not allow to do anything.
    maybe you will say, " check your VPS setting ".
    the points are:
    1. I can use those client in sometimes, and error in sometimes.
    2. I can do anything, including upload, download, editing, creating file in my other WINDOWS 7.
    Okay, Anyone know the solution? Please help me.. thank you so much.
    p.s, ftp is easy job. I dont why APPLE **** this up like always.

    Problem solved!
    I found out how to get FTP to work on my Macs. It was just a hunch, but I tried it and BANGERS ON! (FYI: Bangers is an English slang term for sausages, the kind that is usually enjoyed with a sparkling fermented beverage. Ergo, bangers on implies that the work is done. Time to celebrate.)
    As you know, the Macintosh is a very sturdy operating system based almost entirely on Unix, but with a candy apple shell GUI. The developers of this candy coating went to great lengths to provide transparent services to the users that once were only available to the zealous key coders of yesteryear. File Sharing is one such feature. All one has to do is turn it on and specify a folder, and that folder makes itself discoverable on the local network. Oddly though, having it on interferes with passive FTP. All I did to make passive FTP work was to inadvertently decide that maybe … just maybe … it was a problem because it was another kind of File Transfer Protocol. So, I tried turning it off and the rest is history.
    BANGERS ON!

  • Create index fails (but worked previously)

    oracle 8.1.6 / solaris 7
    I installed InterMedia a few weeks ago (after many problems with configuring
    the listener and tnsnames) and created 3 text indexes on 2 tables(one column
    being a CLOB). The searches worked great (using "contains"). Next I tried to
    create a preference using ctx_ddl.create_preference andctx_ddl.set_attribute
    to allow for streaming of docs on the server. When Itried to create the index
    on the docs, it failed, giving me the
    ORA - 29885 error.
    Today, I needed to truncate the tables I created with the 3 indexes; in order
    to do so, I had to drop the index (FORCE) and when trying to recreatethem, it
    failed, giving me the error below. IT WAS WORKING 2 WEEKS AGO! WHAT
    HAPPENED??? The metalink site does not have good info and is TOO slow.
    null

    here's the error message:
    ORA-29855:error occurred in the execution of ODCIINDEXCREATE routine
    ORA-20000:interMedia Text error: DRG-50704: Net8 listener is not running or
    cannot start external procedures ORA-28575: unable to open RPC connection to
    externalprocedure agent ORA-06512: at "CTXSYS.DRUE", line 126 ORA-06512: at
    "CTXSYS.TEXTINDEXMETHODS", line 54 ORA-06512: at line 1
    oracle 8.1.6 / solaris 7
    I installed InterMedia a few weeks ago (after many problems with configuring
    the listener and tnsnames) and created 3 text indexes on 2 tables(one column
    being a CLOB). The searches worked great (using "contains"). Next I tried to
    create a preference using ctx_ddl.create_preference andctx_ddl.set_attribute
    to allow for streaming of docs on the server. When Itried to create the index
    on the docs, it failed, giving me the
    ORA - 29885 error.
    Today, I needed to truncate the tables I created with the 3 indexes; in order
    to do so, I had to drop the index (FORCE) and when trying to recreatethem, it
    failed, giving me the error below. IT WAS WORKING 2 WEEKS AGO! WHAT
    HAPPENED??? The metalink site does not have good info and is TOO slow.
    null

  • Connect by not working over 5 rows

    Hi,
    I am currently using the following SQL statement to return a products details the number of times it had a quantity for, so one set of details is printed for each item:
    SELECT
    t.INVOICEID,
    t.PRODUCTNAME,
    t.PRODUCTNO,
    t.QUANTITY
    FROM
    SELECT
    INVOICE.INVOICEID,
    PRODUCTS.PRODUCTNAME,
    PRODUCTS.PRODUCTNO,
    INVOICEDETAILS.QUANTITY
    FROM INVOICE,
    INVOICEDETAILS,
    PRODUCTS
    WHERE 1=1
    AND INVOICE.INVOICEID = 1882
    AND INVOICEDETAILS.INVOICEID = INVOICE.INVOICEID
    AND INVOICEDETAILS.PRODUCTID = PRODUCTS.PRODUCTID
    order by PRODUCTS.PRODUCTNO)
    t connect by rownum <= t.quantity order by t.PRODUCTNO
    this works but it seams to break whn the quantity exceeds 5 then it seams to cap the result by some random factor
    e.g.
    INVOICEID PRODUCTNAME PRODUCTNO QUANTITY
    1882 Dark Chocolate Cheesecake CK2S 2
    1882 Blueberry Cheesecake CK4S 3
    1882 Strawberrie Cheese Cake CK5 2
    returns:
    INVOICEID PRODUCTNAME PRODUCTNO QUANTITY
    1882 Dark Chocolate Cheesecake CK2S 2
    1882 Dark Chocolate Cheesecake CK2S 2
    1882 Blueberry Cheesecake CK4S 3
    1882 Blueberry Cheesecake CK4S 3
    1882 Strawberrie Cheese Cake CK5 2
    returns 5 rows when it should be 7.
    any ideas on this one would be great, i don't know alot about the connect by so can't get my head around this one.
    Cheers
    Ed

    OK, step 1, create a collection type, this is a nested table type.
    SQL> CREATE OR REPLACE type varchar2_table AS TABLE OF VARCHAR2 (4000);
      2  /
    Type created.
    SQL> The collection type is pretty much an array, i.e. a list of strings. Using the TABLE () syntax we can query it as if it was a relational table, e.g.
    SQL> SELECT column_value
      2  FROM   TABLE (varchar2_table ('a', 'b', 'c'));
    COLUMN_VALUE
    a
    b
    c
    SQL>We then created a function which takes a number (n) as a parameter and returns a collection with n elements via the EXTEND (n) method. These n elements will translate to n rows later on.
    SQL> CREATE OR REPLACE FUNCTION many (
      2     n IN NUMBER)
      3     RETURN varchar2_table
      4  IS
      5     m varchar2_table := varchar2_table ();
      6  BEGIN
      7     m.EXTEND (n);
      8     RETURN m;
      9  END;
    10  /
    Function created.
    SQL>We then use the TABLE syntax to treat the function's return value as a relational table. At the same time we pass the value of table_name.quantity to indicate how many elements we want in the collection. These are translated into rows by the TABLE () function and hence we get a sort of cross-product between each row and the rows returned by the TABLE function.
    SQL> SELECT invoice_id, productname, productno, quantity
      2  FROM   table_name t, TABLE (many (quantity));
    INVOICE_ID PRODUCTNAME                    PROD   QUANTITY
          1882 Dark Chocolate Cheesecake      CK2S          2
          1882 Dark Chocolate Cheesecake      CK2S          2
          1882 Blueberry Cheesecake           CK4S          3
          1882 Blueberry Cheesecake           CK4S          3
          1882 Blueberry Cheesecake           CK4S          3
          1882 Strawberrie Cheese Cake        CK5           2
          1882 Strawberrie Cheese Cake        CK5           2
    7 rows selected.
    SQL> P.S. We will need to see the errors to diagnose your problem. Try typing SHOW ERRORS in SQL*Plus to see the compilation errors for the function.

Maybe you are looking for

  • Downloads disappear after finishing?

    So about 5 days ago this problem started. I've tried everything, uninstalling, reinstalling, installing older versions of Firefox, everything in the help file about this, going into about:config to set scanning to false, uninstalling my virus program

  • Satellite U400: Need Vista install order and Control buttons don't work

    I bought an Satellite U400-11T model with french windows Vista. I want to change the french Vista to hungarian Vista. Of course I bought a legal vista HUN and downloaded the drivers etc. I am interrested in about the install order called installation

  • Hyperion Enterprise Reporting

    My Hyperion Salesperson tells me Hyperion Enterprise Reporting in no longer supported for Essbase, but that conflicts with reports I am getting from Hyperion Support that they are releasing upgrades to go with Essbase 6.2 and 6.5. Does anyone know wh

  • Console connection to Windows Console via RDP

    RDP 5.2 has the option of connecting to the console of a Windows Terminal Server. Is this also possible from SGD? There is no option for the console connection for /opt/tarantella/bin/bin/ttatsc SGD version is 4.2 Thanks in adavance, Remold Krol

  • For those having issues with unhiding or re-downloading Cloud purchases

    I've had a lot of issues with "unhiding" previously hidden cloud purchases, so I wanted to put a thread out there that might help people avoid the mistakes I made... Things that did not work: - Going to the iTunes Store to re-download (the album or s