IWS 6.1 SP1 Servlet  fails on Solaris 8 but not on w2k

Is there some trick to getting the servlets support working on iWS 6.x
on solaris? I set the sample servlets up in a metter of mintes in an NT
box and have spent the rest of the day trying to get it working on
Solaris. I see the following in the error log. It may simply be a
classpath issue.
[20/Dec/2001:22:54:28] failure (24943): Internal error: Unexpected error
condition thrown (java.lang.NoClassDefFoundError:
sun/tools/javac/Main,sun/tools/javac/Main), stack:
java.lang.NoClassDefFoundError: sun/tools/javac/Main
     at
org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.java:130)
     at org.apache.jasper.compiler.Compiler.compile(Compiled Code)
     at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadJSP(JspServlet.java:193)
     at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.access$4(JspServlet.java:167)
     at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:477)
     at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:589)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
     at
com.iplanet.server.http.servlet.NSServletRunner.invokeServletService(NSServletRunner.java:891)
     at
com.iplanet.server.http.servlet.WebApplication.service(WebApplication.java:1064)
     at
com.iplanet.server.http.servlet.NSServletRunner.ServiceWebApp(NSServletRunner.java:953)
I attempted to select JDK support and use the /usr/java JDK (JDK 1.2) as
well as the /usr/j2se (JDK 1.4-beta). Every time I attempted to set the
JDK field in the admin server they reverted back to <DISABLED>, and the
java servlet support within the admin server was thereafter fubar.
I would really apprecieate any help on this.
Steven

Hi,
I suppose U've not set the class path variable in the users profile it has to be set in the .profile if Ur using born shell or .login for c shell.
B'coz that's what Ur error message suggests "(java.lang.NoClassDefFoundError:"
Check Ur class path variable in the users profile from the account Ur trying to execute the java program.
example path for born shell "PATH=/usr/j2se/1.3/bin:$PATH"

Similar Messages

  • ORA-22835: Buffer too small for CLOB to CHAR  on Solaris but not Windows

    Hi,
    I get the following error on Solaris but not Windows equivalent 10.2 installations
    ORA-22835: Buffer too small for CLOB to CHAR or BLOB to RAW conversion (actual: 4575, maximum: 4000)
    ORA-06512: at line 65
    the code causing the problem is:
    SELECT A.TABLE_NAME, A.DEFAULT_DIRECTORY_NAME, B.LOCATION,
    CASE
    WHEN INSTR(A.ACCESS_PARAMETERS,'RECORDS FIXED')<>0 THEN
    SUBSTR(A.ACCESS_PARAMETERS,INSTR(A.ACCESS_PARAMETERS,'RECORDS FIXED')+14,3)
    ELSE NULL
    END RSZ FROM USER_EXTERNAL_TABLES A, USER_EXTERNAL_LOCATIONS B
    WHERE A.TABLE_NAME = B.TABLE_NAME(+);
    the entire code being executed is:
    DECLARE
    EX BOOLEAN;
    CNT NUMBER;
    SQL1 VARCHAR2(4000);
    FLEN NUMBER;
    BSIZE NUMBER;
    TABNAME VARCHAR2(4000);
    DEFDIR VARCHAR2(4000);
    RSZ VARCHAR2(4000);
    ECODE NUMBER(38);
    ERRMSG VARCHAR2(4000);
    CURSOR C1 IS
    SELECT A.TABLE_NAME, A.DEFAULT_DIRECTORY_NAME, B.LOCATION,
    CASE
    WHEN INSTR(A.ACCESS_PARAMETERS,'RECORDS FIXED')<>0 THEN
    SUBSTR(A.ACCESS_PARAMETERS,INSTR(A.ACCESS_PARAMETERS,'RECORDS FIXED')+14,3)
    ELSE NULL
    END RSZ FROM USER_EXTERNAL_TABLES A, USER_EXTERNAL_LOCATIONS B
    WHERE A.TABLE_NAME = B.TABLE_NAME(+);
    TYPE C1_TYPE IS TABLE OF C1%ROWTYPE;
    REC1 C1_TYPE;
    BEGIN
    OPEN C1;
    FETCH C1 BULK COLLECT INTO REC1;
    FOR I IN REC1.FIRST .. REC1.LAST
    LOOP
    UTL_FILE.FGETATTR(NVL(REC1(I).DEFAULT_DIRECTORY_NAME,'CARDSLOAD'),
    REC1(I).LOCATION, EX, FLEN, BSIZE);
    IF EX THEN
    IF INSTR(TO_CHAR(REC1(I).RSZ),'\.')<>0 THEN
         DBMS_OUTPUT.PUT_LINE('INVALID RECORDSIZE OR CORRUPTED FILE');
         END IF;
         DBMS_OUTPUT.PUT_LINE('Table Name: ' || TO_CHAR(REC1(I).TABLE_NAME));     
    DBMS_OUTPUT.PUT_LINE('File Exists '||REC1(I).LOCATION);
         DBMS_OUTPUT.PUT_LINE('File Length: ' || TO_CHAR(FLEN));
         DBMS_OUTPUT.PUT_LINE('Record Size: ' || TO_CHAR(REC1(I).RSZ));
    DBMS_OUTPUT.PUT_LINE('Block Size: ' || TO_CHAR(BSIZE));
         DBMS_OUTPUT.PUT_LINE('# RECORDS: ' || FLEN/TO_NUMBER(REC1(I).RSZ));
         BEGIN
         CNT:='';
         SQL1:='SELECT COUNT(*) FROM '|| REC1(I).TABLE_NAME;
         EXECUTE IMMEDIATE SQL1 INTO CNT;
    DBMS_OUTPUT.PUT_LINE('SELECT COUNT FOR: ' || REC1(I).TABLE_NAME||' = '||CNT);
         EXCEPTION
         WHEN OTHERS THEN
         DBMS_OUTPUT.PUT_LINE('SELECT COUNT FAILED FOR: ' || REC1(I).TABLE_NAME);
         ECODE := SQLCODE;
    ERRMSG := SQLERRM;
    DBMS_OUTPUT.PUT_LINE(ECODE||' '||ERRMSG);
         END;
    ELSE
    DBMS_OUTPUT.PUT_LINE(REC1(I).TABLE_NAME||' '||REC1(I).LOCATION||' File Does Not Exist');
    END IF;
         DBMS_OUTPUT.PUT_LINE('-----------------------------------------------------');
    END LOOP;
    CLOSE C1;
    EXCEPTION
    WHEN OTHERS THEN RAISE;
    END;
    Any ideas why Solaris but not Windows would have this problem?
    Thanks,
    Victor

    Check out Bug 4715104 - ORA-22835 / truncated data from USER/ALL/DBA_EXTERNAL_TABLES

  • WSUS SP2; SCCM 2012 SP1; Sync failed: WSUS update source not found

    Hi,
    I have installed the Fresh SCCM 2012 SP1 and WSUS 3.0 SP2 + KB2720211 + KB2734608. However, still the Sync is getting failed. This is what I am getting in the wsyncmgr and WCM logs:
    wsyncmgr:
    Sync failed: WSUS update source not found on site PR1. Please refer to WCM.log for configuration error details.. Source: getSiteUpdateSource
    SMS_WSUS_SYNC_MANAGER 1/9/2015 12:00:00 PM
    3668 (0x0E54)
    STATMSG: ID=6703 SEV=E LEV=M SOURCE="SMS Server" COMP="SMS_WSUS_SYNC_MANAGER" SYS=ABC.XYZ.net SITE=PR1 PID=2724 TID=3668 GMTDATE=Fri Jan 09 18:00:00.537 2015 ISTR0="getSiteUpdateSource" ISTR1="WSUS update source not found
    on site PR1. Please refer to WCM.log for configuration error details." ISTR2="" ISTR3="" ISTR4="" ISTR5="" ISTR6="" ISTR7="" ISTR8="" ISTR9="" NUMATTRS=0
    SMS_WSUS_SYNC_MANAGER 1/9/2015 12:00:00 PM
    3668 (0x0E54)
    Sync failed. Will retry in 60 minutes SMS_WSUS_SYNC_MANAGER
    1/9/2015 12:00:00 PM 3668 (0x0E54)
    WCM:
    Checking for supported version of WSUS (min WSUS 3.0 SP2 + KB2720211 + KB2734608)
    SMS_WSUS_CONFIGURATION_MANAGER 1/9/2015 11:19:03 AM
    4176 (0x1050)
    Checking runtime v2.0.50727... SMS_WSUS_CONFIGURATION_MANAGER
    1/9/2015 11:19:03 AM 4176 (0x1050)
    Did not find supported version of assembly Microsoft.UpdateServices.Administration.
    SMS_WSUS_CONFIGURATION_MANAGER 1/9/2015 11:19:03 AM
    4176 (0x1050)
    Checking runtime v4.0.30319... SMS_WSUS_CONFIGURATION_MANAGER
    1/9/2015 11:19:03 AM 4176 (0x1050)
    Did not find supported version of assembly Microsoft.UpdateServices.Administration.
    SMS_WSUS_CONFIGURATION_MANAGER 1/9/2015 11:19:03 AM
    4176 (0x1050)
    Supported WSUS version not found SMS_WSUS_CONFIGURATION_MANAGER
    1/9/2015 11:19:03 AM 4176 (0x1050)
    STATMSG: ID=6607 SEV=E LEV=M SOURCE="SMS Server" COMP="SMS_WSUS_CONFIGURATION_MANAGER" SYS=ABC.XYZ.net SITE=PR1 PID=2724 TID=4176 GMTDATE=Fri Jan 09 17:19:03.489 2015 ISTR0="DEF.XYZ.net" ISTR1="" ISTR2="" ISTR3=""
    ISTR4="" ISTR5="" ISTR6="" ISTR7="" ISTR8="" ISTR9="" NUMATTRS=0
    SMS_WSUS_CONFIGURATION_MANAGER 1/9/2015 11:19:03 AM
    4176 (0x1050)
    Remote configuration failed on WSUS Server.
    SMS_WSUS_CONFIGURATION_MANAGER 1/9/2015 11:19:03 AM
    4176 (0x1050)
    STATMSG: ID=6600 SEV=E LEV=M SOURCE="SMS Server" COMP="SMS_WSUS_CONFIGURATION_MANAGER" SYS=ABC.XYZ.net SITE=PR1 PID=2724 TID=4176 GMTDATE=Fri Jan 09 17:19:03.515 2015 ISTR0="DEF.XYZ.net" ISTR1="" ISTR2="" ISTR3=""
    ISTR4="" ISTR5="" ISTR6="" ISTR7="" ISTR8="" ISTR9="" NUMATTRS=0
    SMS_WSUS_CONFIGURATION_MANAGER 1/9/2015 11:19:03 AM
    4176 (0x1050)
    I have used the default port numbers 80 and 443 still the sync is failing. Please provide your advise to fix this issue.
    Regards,
    Malwinder

    WCM:
    Checking for supported version of WSUS (min WSUS 3.0 SP2 + KB2720211 + KB2734608)
    It's not only a matter of installing the console, but also those hotfixes on a remote server ...
    Torsten Meringer | http://www.mssccmfaq.de

  • Error in Solaris but not in Windows

    I have an application that is reading from a database, cleaning the results of all html tags, and writing to a new database. It all works fine on a Windows machine with jdk1.3. However, it throws the error I have attached to the message on the Solaris box. It has to do with the html cleaning. When I take it out, it works on both machines. Why though. Here is the code for the html cleaning and the error: 5 Dukes to whoever can help.
    Code:
          * Removes the html formatting for a string and stores it in a file
          * @return java.lang.String
          * @param htmlText java.lang.String
          * @param outputText java.lang.String
         public static String removeHtml(String htmlText) throws IOException     
              String returnValue = "";
              EditorKit kit = new HTMLEditorKit();          
              Document doc = kit.createDefaultDocument();          
              // The Document class does not yet handle charset's properly.          
              doc.putProperty("IgnoreCharsetDirective", Boolean.TRUE);          
              try          
                   // Create a reader on the HTML content.     
                   Reader rd = new StringReader(htmlText);
                   // Parse the HTML.               
                   kit.read(rd, doc, 0);               
                   //Write the cleaned text to file
                   //writeOutputFile(doc, outputFile);     
                   //Set returnValue to cleaned text
                   returnValue = doc.getText(0, doc.getLength()).toString();
              catch (Exception e)          
                   e.printStackTrace();          
              return returnValue;
         }Error:
    java.lang.NoClassDefFoundError: sun/awt/motif/MToolkit
    at java.lang.Class.forName1(Native Method)
    at java.lang.Class.forName(Class.java:142)
    at java.awt.Toolkit$2.run(Toolkit.java:533)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:524)
    at java.awt.Toolkit.getEventQueue(Toolkit.java:1179)
    at java.awt.EventQueue.isDispatchThread(EventQueue.java:534)
    at javax.swing.text.StyleContext.reclaim(StyleContext.java(Compiled Code))
    at javax.swing.text.StyleContext.reclaim(StyleContext.java(Compiled Code))
    at javax.swing.text.AbstractDocument$AbstractElement.finalize(AbstractDocument.java(Compiled Code))
    at java.lang.ref.Finalizer.invokeFinalizeMethod(Native Method)
    at java.lang.ref.Finalizer.runFinalizer(Finalizer.java(Compiled Code))
    at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java(Compiled C

    Here is the code where I am calling the html cleaner method. This works fine in a Windows env but fails in Solaris. If I comment out the call to removeHtml(value).trim it will work. It will even work if I make a different call removeHtml("string to strip") from the main method. Why would it work in one place but not the other in Solaris, and why would it always work in Windows? Does anybody have any ideas?
               while (rs.next ()) {
                    for (int i = 1; i <= columnCount; ++i) {
                        String value = rs.getString (i);
                        if (rs.wasNull ()){
                            value = "<null>";
                        String columnName = rsmd.getColumnName(i).trim();
                        if(clean&&(columnName.equalsIgnoreCase("DESC")
                                  ||columnName.equalsIgnoreCase("HEADER")
                                  ||columnName.equalsIgnoreCase("TEXT")))
                             //Clean the text
                             //value = removeHtml(value).trim(); //remove html markup
                             value = value.replace('\n', ','); //remove new lines
                             value = value.replace('\r', ','); //remove carriage returns
                             value = replaceString(value, "&mdash", "-"); //remove dash markup
                           outputBuffer.append (value.trim());                      
                        outputBuffer.append ("||");
                    outputBuffer.append ("{{NEWLINE}}");
                }

  • Task fails on server but not on my development PC

    hi
    I have this annoying error on my server but not in my PC,
    When I run the task from VisualStudio2010 it works perfectly. Then I deploy the package to my SqlServer2012 "Intgegration Services Catalogs" and run the deployed package from the SqlManagementConsole I got the error.
    The source is an oracle DB and the query wich calculate the field "MONJTO_HRSEXTR" do it with this "sum(nvl(h.monto,0)) monto_hrsext" on the select statement.
    I guess the problem is SSIS thinks that the column MONTO_HRSEXTR is "Unicode string[DT_WSTR]" with "lenght=38" and when the conversion process try to cast to Decimal(12,2) it fails. There are 2 big questions here
    1.Why it works on my development PC and not in the server when deployed?
    2.why the "Data Conversion Transtormation Editor" thinks the field is a  Unicode string[DT_WSTR] if that field is a sum result from numerics fields in the oracle table
    Thanks a lot!!! for any Idea
    Salu2 Sergio T

    Hello
    Thanks for your time, I made a modification
    to the package to redirect all rows
    that cause error
    All errors are rows with decimal values
    ​​such as "11.3" "33.44"
    All values ​​are using "," instead of
    "." and that's the problem
    what is strange is that the same source,
    in both cases the same database
    It will be something related to the
    configuration of the oracle client on the Windows
    server? The Oracle is in another server, a unix server.
    I do not know much about oracle.
    I know we use TSNnames for connecting, but I really don't know what to see, any idea??
    thanks again for your time Jan
    Salu2 Sergio T

  • User Authentication Failed via http BUT not with Visual Administrator !!?

    OS : Win 2k3 Server UK * DB : SQL Server 2005
    SAP Netweaver 2004s Application Java
    Hi All,
    Since a couple of days, I have a problem concerning authentication to the java apllication on a SAP Netweaver 2004s.
    Using the user ‘Administrator’, I CAN logon the Visual Administrator tool, with the same user I tried to logon via http://host:port/nwa without success.
    At the beginning, I was thinking about a problem of password then I enabled the emergency user SAP*, the problem was the same. Ok with Visual Administrator but not via http.
    Here is two logs found in folder : D:\usr\sap\SID\JC02\j2ee\cluster\server0\log\system\
         security.3.log
         <i>#1.5#001871E5EA3A00550000006D0000172800043B836D838427#1191335570983#/System/Security/Audit#sap.com/com.sap.security.core.admin#com.sap.security.core.util.SecurityAudit#Guest#0####5aac137070f411dcc513001871e5ea3a#SAPEngine_Application_Thread[impl:3]_11##0#0#Warning#1#com.sap.security.core.util.SecurityAudit#Plain###Guest     | LOGIN.ERROR     | null     |      | Login Method=[default], UserID=[Administrator], IP Address=[192.168.10.125], Reason=[Authentication did not succeed.]#</i>
         server.0.log
         <i>#1.5#001871E5EA3A0052000000130000172800043B835E3661D1#1191335314249#/System/Server/SLDService##com.sap.sldserv.SldServerFrame######c1a349a070f311dcaa68001871e5ea3a#SAPEngine_System_Thread[impl:5]_71##0#0#Warning#1#com.sap.sldserv.SldServerFrame#Plain###Failed to collect SLD data. Failed to send HTTP data: 401 : Unauthorized. Please check if the target SLD system is available and the SLD bridge is started there.#</i>
    &#61664; I tried to connect http://host:port/sld same problem User Authentication Failed
    <b>Do you have an idea for me? Why a user can connect via Visual Administrator and not via the http interface?</b>
    Thanks in advance
    Yves

    Hi,
    I found the solution this last week-end.
    This behavior let's thinking to a problem of authentication.
    But the problem was in SQL, an index was missing in table J2EE_CONFIG, called J2EE_CONFIG_I3
    Cheers
    Yves

  • SCOM 2012 SP1 is failing to install - SQL not compatible

    I'm getting an error when installing SCOM 2012 SP1 stating the SQL is not supported. I have seen a few posts on the forum about this error message but so far none of the resolutions resolved my issue.
    Using named instance on port 2433.  Entering SQL\instance and port 2433 yields same message as seen in another post:
    "The installed version of SQL server is not supported.  Verify that the computer and installed version of SQL Server meet the minimum requirements for installation.  Please see the Supported Configurations document for further information."
    I noticed I get this in my OpsMgrSetupWizard.log
    [15:03:28]: Error: :StackTrace:   at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
       at System.Management.ManagementScope.InitializeGuts(Object o)
       at System.Management.ManagementScope.Initialize()
       at System.Management.ManagementObjectSearcher.Initialize()
       at System.Management.ManagementObjectSearcher.Get()
       at Microsoft.EnterpriseManagement.OperationsManager.Setup.Common.SetupValidationHelpers.GetRemoteOSVersion(String remoteComputer)
    [15:03:28]: Debug: :IsSQLOnAValidComputer: remote OS version string was null or empty.
    Notice the last line - IsSQLOnAValidComputer is null/empty.  The solutions I found are to open the ports between these servers but the SQL server and SCOM server are on the same network - no firewall between them.  The registry key for domain firewall
    policy to 'EnableFirewall' is 0.  The firewall service is disabled on both machines.
    I am running the installation as a domain service account - for the DAA.  It has local admin on the SQL and SCOM server.  It has sysadmin DB access to the instance.
    SCOM Server:
    Server 2008 R2 Standard SP1
    SQL Server:
    Server 2008 R2 Enterprise SP1 | SQL 2012 RM 64-bit version 11.0.2100.60
    Any help is greatly appreciated.

    Glad to hear the issue has been resolved. Thanks for the update.
    Niki Han
    TechNet Community Support

  • Why has CAST(FieldName to float) failed in view but not in SELECT?

    I've just solved a problem but I'm still not sure what the problem is!
    I have a data (staging) table with all values stored as text. The data is converted to the correct data-type and also aggregated somewhat in a view. A select statement with the conversion works. A select statement with the conversion and aggregation (GROUP
    BY) works. Creating a view of the conversion and aggregation works. However, on selecting from the view (e.g. SELECT TOP 1000 * FROM ViewName) it fails saying it cannot convert from varchar to float. There are no visible characters in the field apart from
    numbers between 0 and 9, a decimal point and sometimes a leading minus sign (-).
    The fix? Cast to money and then cast to float.
    The problem? I don't know! What was the problem? Some of the values had up to 10 decimal places. Was that a problem? Was it really an overflow error masquerading as conversion error? The longest strings present were:
    -2.609763091
    -0.082456066
    -0.674010546
    -2.563428427
    -0.016109637
    -0.313600766
    -0.104452264
    -0.853811384
    -0.302529502
    -0.000362354
    -0.002961949
    -0.319269185
    -0.001970796
    Would really like to know what caused this so I can spot it in future before it happens.
    Cheers.
    JCEH

    One possibility is that the two execution plans are different.  The logical order of the way SQL processes the clauses a SELECT query is FROM, ON, OUTER, WHERE, GROUP BY, CUBE | ROLLUP, HAVING, SELECT, DISTINCT, ORDER BY, TOP.  (Actually that's
    what I learned, now there are some additional things like APPLY, but for our purposes we can ignore them).  The important thing to know is that that is the LOGICAL order, but SQL is allowed (and often does) go change that order to anything it wants as
    long as it returns the correct result. 
    So, for example, if your FROM clause a number of rows and some of those rows contain data which would cause a CAST (or anything else) in the SELECT clause to fail, but those rows are eliminated by your WHERE clause.  Then SQL could do
    FROM, WHERE, SELECT and the query works, or
    FROM, SELECT, WHERE and the query fails.  And, in general, you cannot control which plan SQL will use.
    So, for example, if you have a table named T with two integer columns I and J and some rows in the table have a value of 0 in the column J and you run
    SELECT I/J FROM T WHERE J<>0
    it might work and you might get a divide by zero error.  So one safe way to handle this is to write your query as
    SELECT I/(CASE WHEN J <> 0 THEN J ELSE NULL END) WHERE J<>0
    Another way would be to create a temp table and write an insert statement that inserted into that temp table only the rows where J<>0 and then do the query from the temp table.  Since that is two SQL commands, SQL is forced to do them in order,
    it cannot combine them and reorder the processing, that would look like
    Create Table #T(I int, J int);
    Insert Table #T(I, J)
    Select I, J FROM T WHERE J<>0;
    Select I/J From #T;
    Drop Table #T;
    You could try doing the equivalent of one of those to your query and see if that makes the problem go away.
    Now I know you are going to ask "Why did the view use to work and it doesn't anymore?" and "Why does using the view and the table return different results".  My guess is that you are getting different plans for the view and the table,
    why that is, I don't know, it is often difficult to answer that type of question.  My best guess for why the view used to work, then you ALTERED it, and then changed it back to the original form and it fails even though it is exactly the same as the old
    view that was working is, when you had the old view, then was a cached execution plan that was working.  That execution plan might have been created a good while ago.  When you ALTERED it, you, of course, got a new plan.  Then when you ALTERED
    it back to the original form, it no longer had the plan it had been using, so had to create a new one, and this new plan was different than the old one.
    Finally, if this is the cause of your problem, then you are not guaranteed that the convert to money, then to float is a permanent fix.  If you have column headers which cannot be converted to either money or float, then it could be the convert to money
    then to float is enough to get SQL to do the WHERE first, then the SELECT.  But there is no guarantee that will be true forever.  Changes in your data distribution and release level of SQL might make that version do the select first and then the
    where.
    Tom

  • Dlopen works on Solaris but not on Linux.

    Can anyone explain why this is happening? Save the 5 source files and run the 'build' script.
    On a Solaris system it works:
    SunOS wibble 5.11 snv_124 i86pc i386 i86pc
    g++ (GCC) 3.4.3 (csl-sol210-3_4-20050802)
    Copyright (C) 2004 Free Software Foundation, Inc.
    This is free software; see the source for copying conditions. There is NO
    warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
    Call dlopen
    In bar
    dlopen returns fecb0348
    After dlopen
    On a Linux system it does not work:
    Linux uce-build 2.6.9-34.ELsmp #1 SMP Fri Feb 24 16:54:53 EST 2006 i686 athlon i386 GNU/Linux
    g++ (GCC) 3.4.5 20051201 (Red Hat 3.4.5-2)
    Copyright (C) 2004 Free Software Foundation, Inc.
    This is free software; see the source for copying conditions. There is NO
    warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
    Call dlopen
    dlopen returns ./testlib.so: undefined symbol: f
    After dlopen
    foo.h
    class foo {
    public:
    foo();
    virtual ~foo();
    void bar();
    private:
    newClass.h
    class newClass {
    public:
    newClass();
    virtual ~newClass();
    private:
    foo.cpp
    #include "foo.h"
    #include <stdio.h>
    foo::foo() { }
    foo::~foo() { }
    void foo::bar() {
    printf("In bar\n");
    main.cpp
    #include <stdio.h>
    #include <cstdlib>
    #include "foo.h"
    #include <dlfcn.h>
    #include <link.h>
    using namespace std;
    foo f;
    int main(int argc, char** argv) {
    printf("Call dlopen\n");
    void *handle;
    if (handle = dlopen("./testlib.so", RTLD_NOW) ) {
    printf("dlopen returns %p \n", handle);
    } else {
    printf("dlopen returns %s \n", dlerror());
    printf("After dlopen\n");
    return 0;
    newClass.cpp
    #include "newClass.h"
    #include "foo.h"
    extern foo f;
    newClass n;
    newClass::newClass() {
    f.bar();
    newClass::~newClass() { }
    build
    uname -a
    g++ --version
    g++ -fpic -c -g -o newClass.o newClass.cpp
    g++ -shared -o testlib.so newClass.o
    g++ -c -g -o foo.o foo.cpp
    g++ -c -g -o main.o main.cpp
    g++ -ldl -o testcase main.o foo.o
    ./testcase

    Edit: I succeeded to solve it accidentally. I did the following: Sign the jar in Netbeans, clean and build, the jar didn't work, I wiped out the .ks from the jar and clean and build again. Now it worked.
    Edited by: Vitali.pom on Oct 30, 2011 1:28 AM

  • PUT Blobs of size greater than 5.5MB fail with HTTPS but not HTTP

    I have written a Cygwin app that uploads (using the REST API PUT operation) Block Blobs to my Azure storage account, and it works well for different size blobs when using HTTP. However, use of SSL (i.e. PUT using HTTPS) fails for Blobs greater than 5.5MB.
    Blobs less than 5.5MB upload correctly. Anything greater and I find that the TCP session (as seen by Wireshark) reports a dwindling window size that goes to 0 once the aforementioned number of bytes have been transferred. The failure is very repeatable and
    consistent. As a point of reference,  PUT operations against my Google/AWS/HP accounts work fine when using HTTPS for various object sizes, which suggests my problem is not in my client but specific to the HTTPS implementation on the MSAZURE storage servers. 
    If I upload the 5.5MB blob as two separate uploads of 4MB and 1.5MB followed by a PUT Block List, the operation succeeds as long as the two uploads used
    separate HTTPS sessions. Notice the emphasis on separate. That same operation fails if I attempt to maintain an HTTPS session across both uploads. This is another data point that seems to suggest that the Storage
    server has a problem 
    Any ideas on why I might be seeing this odd behavior that appears very specific to MS Azure HTTPS, but is not seen when used against AWS/Google/HP cloud storage servers?

    Hi,
    I'm getting this problem also when trying to upload blobs > 5.5mb using the Azure PHP SDK with HTTPS.
    There is no way I can find to get a blob > 5.5mb to upload, unless you use http, rather than https, which is not a good solution.
    I've written my own scripts to use the HTTP_Request2 library, to send the request as a test, and it fails with that also when using the 'socket' method.
    However, if I write a script using the PHP Curl extension directly, then it works fine, and blobs > 5.5mb get uploaded.
    It seems to be irrelevant which method is used, uploading in 1 go, or using smaller chunks, the PHP SDK seems broken.
    Also, I think I've found another bug in the SDK, when you do the smaller chunks, the assigning of the BlockID is not correct.
    In: WindowsAzure/Blob/BlobRestProxy.php
    Line: $block->setBlockId(base64_encode(str_pad($counter++, '0', 6)));
    That is incorrect usage of the str_pad function, and if you upload a huge blob that needs splitting, then the blockIDs will after a while become a different length and therefore fail.
    It should be: str_pad($counter++, 6, '0',STR_PAD_LEFT);
    I also think there is 1 too many base64_encodes() in there, as I think its being done twice, once in that line, and then again within the createBlobBlock() just before the send() for a 2nd time.
    Can someone please advice, when this/these bug(s) will be fixed in the PHP SDK, as at the moment its useless to me as I cant upload things securely.

  • AVAudioPlayer failing on Device but not simulator

    I am using AudioQueues to record sound (using the SpeakHere example as a jumping off point) and AVAudioPlayer to play the recorded sound. This has been working just fine in the simulator. I've just tried it on the iPhone and it is failing. There are no errors from the initWithContentsOfURL method but [avPlayer play] returns NO. No messages or error information that I can discern. Here is the code:
    NSString *path = [Recording fullPathWithName:selectedRecording.filename];
    NSFileManager *mgr = [NSFileManager defaultManager];
    BOOL exists = [mgr fileExistsAtPath:path];
    if (exists)
    NSError *error;
    self.avPlayer = [[AVAudioPlayer alloc] initWithContentsOfURL:[NSURL fileURLWithPath:path] error:&error];
    NSLog([error localizedDescription]);
    NSLog([error localizedFailureReason]);
    if(error.code == kAudioFileUnsupportedFileTypeError)
    NSLog(@"Got kAudioFileUnsupportedFileTypeError initializing AVAudioPlayer");
    avLevelMeter.player = avPlayer;
    avPlayer.delegate = self;
    avPlayer.currentTime = selectedRecording.currentSeconds;
    if ([avPlayer play])
    self.state = PLAYING;
    self.startTime = [NSDate dateWithTimeIntervalSinceNow:-selectedRecording.currentSeconds];
    [self updateTimeDisplay];
    [self startUpdateTimer];
    else
    [Utility showAlertWithTitle:@"Playing"
    message:@"Unknown error trying to play the recording."
    delegate:self
    tag:0
    cancelButtonTitle:@"OK"
    otherButton1Title:nil
    otherButton2Title:nil];
    I am recording into a .wav formatted envelope. Initially I was recording in a slightly compressed format (ulaw at 11K bps) but I went back to the standard kAudioFormatLinearPCM format at 44K bps and it still refuses to play.
    Any ideas?
    Message was edited by: btschumy

    SOLVED
    The problem is that, the recorder sets the AudioSession Property, but doesn't set it back for playback.
    add the following to to your recorder->StopRecord() function and it will then all work
    UInt32 category = kAudioSessionCategory_MediaPlayback;
    XThrowIfError(AudioSessionSetProperty(kAudioSessionProperty_AudioCategory, sizeof(category), &category), "couldn't set audio category!");
    Barnaby

  • Reading input from servlet works in Windows but not Kubuntu

    I'm working on an applet/servlet/mysql database application and recently switched from Windows Vista (yeah, yeah) to Kubuntu Gutsy Gibbon. In Vista, everything worked fine (bet you've never heard anyone say that before), but in Kubuntu, I get a FileNotFound exception at the line where I initialize the ObjectInputStream (the ObjectOutputStream line doesn't throw an exception, but it doesn't look like that one works either (I output queries and such to the log files when the servlet receives them, but the logs are empty)). I tried everything I could think of (tomcat is fine, the servlet is where it should be, etc), but nothing seems to work.
    Here's the code from my applet:
    //open the connection to the servlet
    URLConnection servletConnection = servletLocation.openConnection();
    //inform the connection that we will send output and accept input
    servletConnection.setDoOutput(true);
    servletConnection.setDoInput(true);
    //don't use a cached version of URL connection.
    servletConnection.setUseCaches(false);
    servletConnection.setDefaultUseCaches(false);
    //we will send java serialized objects
    servletConnection.setRequestProperty("Content-Type", "application/x-java-serialized-object");
    //send the object to the servlet using serialization
    //*THIS LINE DOESN'T THROW AN EXCEPTION*/
    ObjectOutputStream output=new ObjectOutputStream(servletConnection.getOutputStream());
    //serialize the object
    output.writeObject(data);
    output.flush();     
    output.close();
    //get the object input stream and receive a vector
    /*THIS LINE THROWS A FILENOTFOUND EXCEPTION*/
    ObjectInputStream input=new ObjectInputStream(servletConnection.getInputStream());               
    thing = input.readObject();
    input.close();
    As you can see, I use the same servletConnection for both the output as well as the input. I don't know why one would work and not the other.
    Any input would be great. Just to reiterate, it worked fine in Vista. I'm boggled.
    Thanks.

    If its a sand box restriction you should get a security restriction. How ever getting a FileNotFountException in an applet means that your code try to access a local file some ware which is not allowed in an applet unless it is signed.
    Give us the code that you use to create the URL object. You should not use hard coded URLs in an applet. You have to get the Document URL or Codebase URL of applet and then modify it to derive the URL of the servlet.

  • Servlet failed with ServletException occurs the first time I try to access a jsp

    Can any one tell why this exception occurs the first time I try to
              access a jsp. After the first time it doesn't occur. This happens only
              on solaris platform.
              Thanks,
              Shankar.
              Fri Jul 28 15:02:51 PDT 2000:<I> <ListenThread> Adding address:
              192.168.0.36/192.168.0.36 to licensed client list
              Fri Jul 28 15:02:51 PDT 2000:<I> <ServletContext-General> file: init
              Fri Jul 28 15:02:55 PDT 2000:<I> <ServletContext-General> *.jsp: init
              Fri Jul 28 15:02:55 PDT 2000:<I> <ServletContext-General> *.jsp: param
              verbose initialized to: true
              Fri Jul 28 15:02:55 PDT 2000:<I> <ServletContext-General> *.jsp: param
              packagePrefix initialized to: jsp_servlet
              Fri Jul 28 15:02:55 PDT 2000:<I> <ServletContext-General> *.jsp: param
              compileCommand initialized to: /usr/bin/javac
              Fri Jul 28 15:02:55 PDT 2000:<I> <ServletContext-General> *.jsp: param
              srcCompiler initialized to weblogic.jspc
              Fri Jul 28 15:02:55 PDT 2000:<I> <ServletContext-General> *.jsp: param
              superclass initialized to null
              Fri Jul 28 15:02:55 PDT 2000:<I> <ServletContext-General> *.jsp: param
              workingDir initialized to: /space/shankar/weblogic/myserver/classfiles
              Fri Jul 28 15:02:55 PDT 2000:<I> <ServletContext-General> *.jsp: param
              pageCheckSeconds initialized to: 1
              Fri Jul 28 15:02:55 PDT 2000:<I> <ServletContext-General> *.jsp:
              initialization complete
              Fri Jul 28 15:02:55 PDT 2000:<E> <ServletContext-General> Servlet failed
              with ServletException
              [AddToMap: pattern=/login.jsp class=jsp_servlet.login]
              at java.lang.Throwable.fillInStackTrace(Native Method)
              at java.lang.Throwable.fillInStackTrace(Compiled Code)
              at java.lang.Throwable.<init>(Compiled Code)
              at java.lang.Exception.<init>(Compiled Code)
              at
              javax.servlet.ServletException.<init>(ServletException.java:88)
              at
              weblogic.servlet.jsp.AddToMapException.<init>(AddToMapException.java:14)
              at weblogic.servlet.JSPServlet.service(JSPServlet.java:118)
              at javax.servlet.http.HttpServlet.service(Compiled Code)
              at
              weblogic.servlet.internal.ServletStubImpl.invokeServlet(Compiled Code)
              at
              weblogic.servlet.internal.ServletContextImpl.invokeServlet(Compiled
              Code)
              at
              weblogic.servlet.internal.ServletContextImpl.invokeServlet(Compiled
              Code)
              at
              weblogic.servlet.internal.ServletContextManager.invokeServlet(Compiled
              Code)
              at weblogic.socket.MuxableSocketHTTP.invokeServlet(Compiled
              Code)
              at weblogic.socket.MuxableSocketHTTP.execute(Compiled Code)
              at weblogic.kernel.ExecuteThread.run(Compiled Code)
              Fri Jul 28 15:02:55 PDT 2000:<I> <ServletContext-General> servletimages:
              init
              

    Try a different brand of discs.  Try restarting your computer.

  • SSL/TLS clients binds fail to Solaris 10 06/06 DS5.2p4 Server

    hello all,
    this is a bizarre issue that i think is related to the solaris version that is running on the directory server, at least this appears to the the issue. i have 2 SunDS servers running solaris 10 06/06 and the other solaris 10 01/06 with DS5.2p4. both have SSL enabled, the certs i signed with my own CA which i maintain with tinyca2. the directory starts fine and is listening on both 389(ldap) and 636(ldaps). i am able to successfully bind to both servers on the non-secure ports fine, commands like getent, finger, id are pulling the people from the directory. when i enable the clients to use ssl/tls those same commands fail against the solaris 10 06/06 machine but NOT the solaris 10 01/06 server. on the linux machines i'm getting "nscd: pam_ldap: could not search LDAP server" errors and on the solaris machines "Mesg: openConnection: failed to initialize TLS security" and "libsldap: Status: 7 Mesg: Session error no available conn."
    using "ldapsearch -x -ZZ" from the clients is successful to both systems, and i can use "openssl s_client" to view the certs fine. another bizzare occurance is when i do "getent passwd" i see the local and ldap users but "getent passwd ldap_user" will return nothing. again this are against the solaris 10 06/06 machine.
    has anyone see this before? i'm going to open a service request for sun on this but i wanted to see if anyone else has run into this.

    there was a problem with the certificate db which was causing this.

  • Windows 2008 r2 SP1 installation failed with unspecified error 0x80004005 - E_FAIL

    Hi Team,
    We have SQL data base server with Win 2008 r2 OS.When trying install Sp1 it fails after reboot with unspecified error -0x80004005 - E_FAIL.
    Server having snap drive connected with 6 SQL data bases. Sp1 installation running 7 hrs and falling after couple of reboot.
    Any help appreciated.CBS log attached.
    ================================ 2015-01-24 18:48:22, Info CBS Starting TrustedInstaller initialization. 2015-01-24 18:48:22, Info CBS Loaded Servicing Stack v6.1.7601.17514 with Core: C:\Windows\winsxs\amd64_microsoft-windows-servicingstack_31bf3856ad364e35_6.1.7601.17514_none_678566b7ddea04a5\cbscore.dll
    2015-01-24 18:48:23, Info CSI 00000001@2015/1/24:18:48:23.137 WcpInitialize (wcp.dll version 0.0.0.6) called (stack @0x7fee8d4e94d @0x7fee9079839 @0x7fee90434d3 @0xff03e94c @0xff03d769 @0xff03daff) 2015-01-24 18:48:23, Info CBS Could not load SrClient DLL
    from path: SrClient.dll. Continuing without system restore points. 2015-01-24 18:48:23, Info CSI 00000002@2015/1/24:18:48:23.139 WcpInitialize (wcp.dll version 0.0.0.6) called (stack @0x7fee8d4e94d @0x7fee90c6806 @0x7fee9092a9c @0x7fee90435a9 @0xff03e94c @0xff03d769)
    2015-01-24 18:48:23, Info CSI 00000003@2015/1/24:18:48:23.139 WcpInitialize (wcp.dll version 0.0.0.6) called (stack @0x7fee8d4e94d @0x7fee9988728 @0x7fee9988856 @0xff03e444 @0xff03d7ae @0xff03daff) 2015-01-24 18:48:23, Info CBS Ending TrustedInstaller initialization.
    2015-01-24 18:48:23, Info CBS Starting the TrustedInstaller main loop. 2015-01-24 18:48:23, Info CBS TrustedInstaller service starts successfully. 2015-01-24 18:48:23, Info CBS SQM: Initializing online with Windows opt-in: False 2015-01-24 18:48:23, Info CBS
    SQM: Cleaning up report files older than 10 days. 2015-01-24 18:48:23, Info CBS SQM: Requesting upload of all unsent reports. 2015-01-24 18:48:23, Info CBS SQM: Failed to start upload with file pattern: C:\Windows\servicing\sqm\*_std.sqm, flags: 0x2 [HRESULT
    = 0x80004005 - E_FAIL] 2015-01-24 18:48:23, Info CBS SQM: Failed to start standard sample upload. [HRESULT = 0x80004005 - E_FAIL] 2015-01-24 18:48:23, Info CBS SQM: Queued 0 file(s) for upload with pattern: C:\Windows\servicing\sqm\*_all.sqm, flags: 0x6 2015-01-24
    18:48:23, Info CBS SQM: Warning: Failed to upload all unsent reports. [HRESULT = 0x80004005 - E_FAIL] 2015-01-24 18:48:23, Info CBS No startup processing required, TrustedInstaller service was not set as autostart, or else a reboot is still pending. 2015-01-24
    18:48:23, Info CBS NonStart: Checking to ensure startup processing was not required. 2015-01-24 18:48:23, Info CSI 00000004 IAdvancedInstallerAwareStore_ResolvePendingTransactions (call 1) (flags = 00000004, progress = NULL, phase = 0, pdwDisposition = @0x136f6c0
    2015-01-24 18:48:23, Info CSI 00000005 Creating NT transaction (seq 1), objectname [6]"(null)" 2015-01-24 18:48:23, Info CSI 00000006 Created NT transaction (seq 1) result 0x00000000, handle @0x23c 2015-01-24 18:48:23, Info CSI 00000007@2015/1/24:18:48:23.144
    CSI perf trace: CSIPERF:TXCOMMIT;1211 2015-01-24 18:48:23, Info CBS NonStart: Success, startup processing not required as expected. 2015-01-24 18:48:23, Info CBS Startup processing thread terminated normally 2015-01-24 18:48:23, Info CSI 00000008 CSI Store
    3877440 (0x00000000003b2a40) initialized 2015-01-24 18:48:23, Info CBS Session: 30423046_1416810351 initialized by client RMT. 2015-01-24 18:48:24, Info CSI 00000009@2015/1/24:18:48:24.057 CSI Transaction @0x1761b90 initialized for deployment engine {d16d444c-56d8-11d5-882d-0080c847b195}
    with flags 00000002 and client id [26]"TI5.30423046_1416810351:1/" 2015-01-24 18:48:24, Info CSI 0000000a@2015/1/24:18:48:24.059 CSI Transaction @0x1761b90 destroyed 2015-01-24 18:48:24, Info CBS Appl: DetectUpdate, Package: Microsoft-Windows-SecureStartup-OC-Package~31bf3856ad364e35~amd64~~6.1.7600.16385,
    Remote Parent: DirectoryServices-DomainController-Tools, Intended State: Staged 2015-01-24 18:48:24, Info CBS Appl: DetectUpdate, Package: Microsoft-Windows-SecureStartup-OC-Package~31bf3856ad364e35~amd64~~6.1.7600.16385, Remote Parent: DirectoryServices-DomainController-Tools,
    Intended State: Staged 2015-01-24 18:48:24, Info CBS Appl: Evaluating applicability block(detectUpdate part), disposition is: Staged, applicability: NotApplicable, result applicability state: Staged 2015-01-24 18:48:24, Info CBS Appl: Package: Microsoft-Windows-SecureStartup-OC-Package~31bf3856ad364e35~amd64~~6.1.7600.16385,
    Update: BdeAducExtTool, Applicable: NeedsParent, Dis 2015-01-24 18:48:24, Info CBS Appl: DetectUpdate, Package: Microsoft-Windows-WMI-SNMP-Provider-Package~31bf3856ad364e35~amd64~~6.1.7600.16385, Remote Parent: SNMP, Intended State: Installed 2015-01-24 18:48:24,
    Info CBS Appl: Evaluating applicability block(detectUpdate part), disposition is: Staged, applicability: Applicable, result applicability state: Installed 2015-01-24 18:48:24, Info CBS Appl: Package: Microsoft-Windows-WMI-SNMP-Provider-Package~31bf3856ad364e35~amd64~~6.1.7600.16385,
    Update: WMISnmpProvider, Applicable: Applicable, Dis 2015-01-24 18:48:24, Info CBS Appl: DetectUpdate, Package: Microsoft-Windows-IIS-WebServer-Package~31bf3856ad364e35~amd64~~6.1.7600.16385, Local Parent: IIS-WebServerRole, Intended State: Staged 2015-01-24
    18:48:24, Info CBS Appl: Evaluating applicability block(detectUpdate part), disposition is: Staged, applicability: NotApplicable, result applicability state: Staged 2015-01-24 18:48:24, Info CBS Appl: Package: Microsoft-Windows-IIS-W

    Appreciate your suggestion Dave,
    Any idea what could be cause of this failure.?Do you see anything from the CBS logs.
    This server attached with SNAP drive luns,is there something or SQL application preventing this installation ?
    After reboot it revert the installation...it shows "Failure config service pack..reverting changes,do not not turn off your computer".
    Surprisingly it happens both of our SQL data base server.
    Do you think Increasing MaxNumFilters to
    14 shall work ?
    =====================
    =================================CheckSUR.Log==========
    Checking System Update Readiness.
    Binary Version 6.1.7601.22471
    Package Version 26.0
    2015-02-01 09:37
    Checking Windows Servicing Packages
    Checking Package Manifests and Catalogs
    Checking Package Watchlist
    Checking Component Watchlist
    Checking Packages
    Checking Component Store
    Summary:
    Seconds executed: 555
     No errors detected

Maybe you are looking for

  • InfoPackage selection offset with OLAP variable

    Hi Bw Gurus, I have a requirement to load ODS with full upload everytime but in order to reduce repeated loads I am trying to use a DATE field which is not part of communication str. as a selection critera in InfoPacakge. I changed DS to include this

  • Essbase SSO Token with OBIEE 11g

    Has anyone had success is setting up SSO token security in OBIEE 11g for Essbase. I have followed the steps in the documents of 11.1.1.x and still am not getting users to authenticate against the cube I am using. When I log in as one of those users,

  • Set passcode for nokia c3

    is it possible to set a passcode like the iphone everytime i try to use the phone Solved! Go to Solution.

  • IMac hanging unresponsive during Yosemite 10.2.2 update

    This update began automatically while I was on vacation and has been hanging, with blank screen for hours. Although the hard drive seems to be running when I press the keyboard space bar, the machine is unresponsive to Command-L or any other input. H

  • Catalog not readable from a portable hard drive...

    I have been using a portable hard drive as my master files since I started using LR and so this is a first for me. When I create the catalog on my laptop on the portable drive that is attached and then plug the drive into my desktop to continue worki