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

Similar Messages

  • Create Index fail in process chain

    Hi Friends,
    I have a process chain in production system which loads inventory data everyday at 6:00Am.
    2 days back R3 production system failed and the data is not loaded into BI.  It was stopped at Delete Index step. I have started again by selecting Repeat then it worked and the infopackage is also executed successfully.
    After that it is failed at Create index step and giving message " Job cancelled after system exception ERROR_MESSAGE". Till then it is giving same problem everyday.
    Could you guys help me how to solve this and execute the chain successfully.
    Thanks & Regards

    Hi,
    Try to create index for the cube manually i.e got info cube , Right Click -> manage->performance-> perform check index - if red do repair index, if it will not help then create index. After that run it though process chain
    Hope it will resolve your problem.
    Sangita

  • CREATE INDEX fails with "insufficient privilege"

    Hello. I've never used TEXT before and frankly my first experience isn't going well. The long and the short of it is that when I ask 11g to make an index (authenticated to the schema) I get an error stack suggesting privilege problems:
    ORA-20000: Oracle Text error:
    DRG-50857: oracle error in drvxtabc.create_indexes:TC
    ORA-01031: insufficient privileges
    ORA-06512: at "CTXSYS.DRUE", line 160
    ORA-06512: at "CTXSYS.CATINDEXMETHODS", line 97
    I've concocted this simple case so you can see my work:
    create table a_ctxtest
         mykey int not null,
         mytext varchar2(200),     
         constraint px_testkey primary key ( mykey )
    create index itx_test on a_ctxtest( mytext ) indextype is ctxsys.ctxcat PARAMETERS ('STORAGE mystore');
    This code, found in this forum, had been run earlier in the session:
    begin
    ctx_ddl.create_preference('mystore', 'BASIC_STORAGE');
    ctx_ddl.set_attribute('mystore', 'I_TABLE_CLAUSE', 'tablespace users storage (initial 32k)');
    ctx_ddl.set_attribute('mystore', 'K_TABLE_CLAUSE', 'tablespace users storage (initial 32k)');
    ctx_ddl.set_attribute('mystore', 'R_TABLE_CLAUSE', 'tablespace users storage (initial 32k) lob (data) store as (disable storage in row cache)');
    ctx_ddl.set_attribute('mystore', 'N_TABLE_CLAUSE', 'tablespace users storage (initial 32k)');
    ctx_ddl.set_attribute('mystore', 'I_INDEX_CLAUSE', 'tablespace users storage (initial 32k) compress 2');
    ctx_ddl.set_attribute('mystore', 'P_TABLE_CLAUSE', 'tablespace users storage (initial 32k)');
    ctx_ddl.set_attribute('mystore', 'S_TABLE_CLAUSE', 'tablespace users storage (initial 32k)');
    end;
    Hints or even outright commands back toward something that works as expected would certainly be welcome.

    I am going to guess that you are probably missing the create trigger privilege. I have provided a reproduction of your error, followed by granting of create trigger, followed by successful creation of the index. The required privileges can either be granted individually or through roles such as resource and ctxapp.
    SCOTT@orcl_11g> create user test identified by test
      2  /
    User created.
    SCOTT@orcl_11g> alter user test quota 100m on users
      2  /
    User altered.
    SCOTT@orcl_11g> grant connect to test
      2  /
    Grant succeeded.
    SCOTT@orcl_11g> grant create table to test
      2  /
    Grant succeeded.
    SCOTT@orcl_11g> grant execute on ctx_ddl to test
      2  /
    Grant succeeded.
    SCOTT@orcl_11g> connect test/test
    Connected.
    TEST@orcl_11g>
    TEST@orcl_11g> create table a_ctxtest
      2  (
      3  mykey int not null,
      4  mytext varchar2(200),
      5  constraint px_testkey primary key ( mykey )
      6  )
      7  /
    Table created.
    TEST@orcl_11g> begin
      2  ctx_ddl.create_preference('mystore', 'BASIC_STORAGE');
      3  ctx_ddl.set_attribute('mystore', 'I_TABLE_CLAUSE', 'tablespace users storage (initial 32k)');
      4  ctx_ddl.set_attribute('mystore', 'K_TABLE_CLAUSE', 'tablespace users storage (initial 32k)');
      5  ctx_ddl.set_attribute('mystore', 'R_TABLE_CLAUSE', 'tablespace users storage (initial 32k) lob (data) store as (disable storage in row cache)');
      6  ctx_ddl.set_attribute('mystore', 'N_TABLE_CLAUSE', 'tablespace users storage (initial 32k)');
      7  ctx_ddl.set_attribute('mystore', 'I_INDEX_CLAUSE', 'tablespace users storage (initial 32k) compress 2');
      8  ctx_ddl.set_attribute('mystore', 'P_TABLE_CLAUSE', 'tablespace users storage (initial 32k)');
      9  ctx_ddl.set_attribute('mystore', 'S_TABLE_CLAUSE', 'tablespace users storage (initial 32k)');
    10  end;
    11  /
    PL/SQL procedure successfully completed.
    TEST@orcl_11g> create index itx_test on a_ctxtest( mytext ) indextype is ctxsys.ctxcat PARAMETERS ('STORAGE mystore')
      2  /
    create index itx_test on a_ctxtest( mytext ) indextype is ctxsys.ctxcat PARAMETERS ('STORAGE mystore')
    ERROR at line 1:
    ORA-29855: error occurred in the execution of ODCIINDEXCREATE routine
    ORA-20000: Oracle Text error:
    DRG-50857: oracle error in drvxtabc.create_indexes:TC
    ORA-01031: insufficient privileges
    ORA-06512: at "CTXSYS.DRUE", line 160
    ORA-06512: at "CTXSYS.CATINDEXMETHODS", line 97
    TEST@orcl_11g> drop index itx_test
      2  /
    Index dropped.
    TEST@orcl_11g> connect scott/tiger
    Connected.
    SCOTT@orcl_11g>
    SCOTT@orcl_11g> grant create trigger to test
      2  /
    Grant succeeded.
    SCOTT@orcl_11g> connect test/test
    Connected.
    TEST@orcl_11g>
    TEST@orcl_11g> create index itx_test on a_ctxtest( mytext ) indextype is ctxsys.ctxcat PARAMETERS ('STORAGE mystore')
      2  /
    Index created.
    TEST@orcl_11g>

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

  • Creating Index Failing

    When i try to create a complex FBI it throws me everytime same error , how can i achieve it please.
    SQL> create index sr_merged_data_new_FBI_REC on SR_MERGED_DATA_NEW DECODE(SOURCE_SYSTEM,'S', CAST( FROM_TZ( CAST(SR_DATE_RECD AS TIMESTAMP) , 'GMT') AT TIME ZONE sessiontimezone AS DATE), 'Q', SR_DATE_RECD)
      2  /
    create index sr_merged_data_new_FBI_REC on SR_MERGED_DATA_NEW DECODE(SOURCE_SYSTEM,'S', CAST( FROM_T
    ERROR at line 1:
    ORA-03113: end-of-file on communication channel
    Awais

    >on SR_MERGED_DATA_NEW DECODE
    Shouldn't the DECODE be preceded by an open bracket  (and a corresponding close bracket at the end) ?
    Hemant K Chitale

  • Create Installer Fail, but Application success. HELP, URGENT!

    Hi all,
    I met a strange problem. My labview 8.5 PDS failed to create Installer, yet the application can be built and run. When I want to  create the installer, no information in the "Additional Installer", and no *.bld files created. When I want to build it, some error information reported as below:
    "CDK_Build_Invoke.vi.ProxyCaller >> CDK_Build_Invoke.vi >> CDK_Engine_Main.vi >> CDK_Engine_PreBuild.vi >> CDK_Validate_DistParts.vi >> CDK_DistParts_GetInstalledProducts.vi >> NI_MDF.lvlib:MDFProdInfoList_Open.vi" . 
    When I tried to create a simple vi show a random number, the application can run, the installer can not be built. The error information changed: "CDK_Build_Invoke.vi.ProxyCaller >> CDK_Build_Invoke.vi >> CDK_Engine_Main.vi >> CDK_Engine_PreBuild.vi >> CDK_Validate_DistParts.vi >> CDK_DistParts_GetInstalledProducts.vi >> NI_MDF.lvlib:MDFCommon_Open.vi".
    Additional Information: Before I re-install my windows xp, the Labview Application Builder worked.
    And I've tried the conversations "http://forums.ni.com/ni/board/message?board.id=170&message.id=316712&requireLogin=False" , "http://forums.ni.com/ni/board/message?board.id=250&thread.id=29940&view=by_date_ascending&page=2"  and "http://forums.ni.com/ni/board/message?board.id=170&message.id=244845&query.id=526126#M244845". But I'm not such lucky.
    I've even tried to re-install LabView including deleting LabView related registry key value.
    Thanks.
    Black Ma 
    Attachments:
    additional Installer blank.GIF ‏70 KB

    MaGH, I've having a very similar issue with LV2009.
    The build was unseccessful.
    Possible reasons
    CDK_Build_Invoke.vi.ProxyCaller >> CDK_Build_Invoke.vi >> CDK_Engine_Main.vi >> CDK_Engine_PreBuild.vi >> CDK_Validate_DistParts.vi >> CDK_DistParts_GetInstalledProducts.vi >> NI_MDF.lvlib:MDFCommon_Open.vi
    Details:
    Visit the Request Support page at ni.com/ask to learn more about resolving this problem. Use the following information as a reference:
    Of course reinstalling, mass compiling, deleting and recreating didn't help.
    I've attached a sample code here:
    http://forums.ni.com/t5/LabVIEW/Installer-Build-Unsuccesful/td-p/1646134
    Have you been able to solve this problem?
    I don't really know how I can distribute my products....
    thanks

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

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

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

  • 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

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

  • JRE7 throws exception Can't create cache file but work fine with JRE6

    I am using J-free chart for rendering charts. My application is work fine with JRE6 but while using JRE7 i am getting following exception
    Caused by: javax.imageio.IIOException: Can't create cache file!
         at javax.imageio.ImageIO.createImageOutputStream(Unknown Source)
         ... 18 more
    Caused by: java.io.IOException: The system cannot find the path specified
         at java.io.WinNTFileSystem.createFileExclusively(Native Method)
         at java.io.File.createTempFile(Unknown Source)
         at javax.imageio.stream.FileCacheImageOutputStream.<init>(Unknown Source)
         at com.sun.imageio.spi.OutputStreamImageOutputStreamSpi.createOutputStreamInstance(Unknown Source)
         ... 19 more

    I was not able to reproduce this with Java 7u3 (32bit) on a Windows 7 (32bit).
    What specific version of Java were you using at the time of error?
    - ShakR

  • Logic pro x, A whole bunch of my audio units failed but worked fine a minute ago

    Audio units failed message as half my audio units now will not load.
    I have 32 lives and rescanned everything. Did not work.
    I own the software and it was all working just fine until I loaded up a different song. Logic glitched out.
    The Audio units are still checked in prefs in logic like normal.
    Audio units still show up in the project but will no open.  They have a question mark. I've seen this before and was able to figure it out with one or two but not half my AU's. Something is different.
    I have just loaded the update a week ago and logic was working fine.
    I tried deleting my cache with anything Logic x, that did not work.
    I restarted the computer several times, no luck.
    HALP!!! Thank you for your time
    Couldn't be at a worse time as I have a deadline tomorrow for an album I am so close to finishing.. WHY???

    If you mean all plugins have this issue then...
    In Logic's Prefs Audio/Devices, make sure CoreAudio is checked...
    Failing that, or if only some plugins have this issue...
    Are the plugins that don't work, all ones wrapped in 32lives?
    Do any of Logic's own plugins rather than 3rd party ones, have this problem?

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

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

Maybe you are looking for

  • How to edit a photo in Lr4, continued...

    The purpose of this thread is to continue the Lr4 editing tips & tricks started in the beta forum.

  • Should I do this with Java Code or Stored Procs ? (for best performance)

    Hi All, I need to decide where should I implement my business logic, in Java code or Stored procs. Here is the requirement : - One Order has 70 products (Order_Table ) - Can be duplicate products, so I have to do summarize / grouping by product - For

  • End users get blank result from VC model calling an R/3 BAPI.

    Hello everyone. We have build a VC model calling a Z*BAPI that we built in the R/3 backend.  Everything works fine through DEV and QAS.  However in our production environment when an end user attempts to run the VC application and search for a record

  • SetRepo command to view the current Index repository location

    Hi, I am using the following command to view the current location of the index repository. ./lh -Djava.ext.dirs=/usr/WebSphere/AppServer/java/jre/lib/ext:/usr/WebSphere/AppServer/lib setRepo -icom.ibm.websphere.naming.WsnInitialContextFactory -c Howe

  • Can't get in system pre - accounts

    I modified some changes in system preference -> accounts just now, can't remember what to be exact. Just called up that I enabled VoiceOver and changed List of Accounts to Names and Passwords, and enabled accounts name on menu bar , but when I logged