Different result in IE and Netscape

Hi,
I am using JDeveloper 3.2 to create my JSP and BC4J. I deployed them into my web server, but I got different result in IE and Netscape. I amd using web bean method to create my JSP.
When I view my JSP from IE, everything looks as expected. But when I view them from Netscape, some pages did not display correctly.
1. For the JSTab, the Netscape displays different color(blue) in the help text area, but the IE display gray color.
2. If I have a table with many columns (e.g.25) to be displayed and my browser is too small to display them all, the Netscape displays JSRowSetBrowser incorrectly. The top right corner, and bottom right corner did not display at the last column side, instead it displaying in the middle of my JSRowSetBrowser. It also suppressed my one button in the same page. IE displays them all properly.
How do I fix this problem? Please help.
I am using webapp/cabo/images/cabo_styles.css as my style sheet.
Lisa
null

I'm not an expert on Netscape, but I would guess that you're problems are simply caused by the differences between IE and NS.
It is very difficult to write (functional) JS code that works perfectly between the two of them and I bet that JSTab isn't written in such a way.
You may want to try using your own tab object, we do this by creating a page for each tab and making the actual tabs be links to each page. This avoids the use of JavaScript.
Good Luck!!!

Similar Messages

  • XSLT producing different results via debugger and xslt.Transform()

    I'm producing the body of an email via an xsl. I've been having a problem with the html nested inside a <table> tag not displaying correctly. With a bit of help from the good folks over at the asp.net forums, I've tracked the problem down to getting
    different results if I run the xsl via the debugger or via a compiled transform.
    When I debug the xsl it produces
          <table border="1" cellpadding="4" cellspacing="0" style="..." id="tmsEmailTable">
            <tr>
              <th width="50%" align="center"><b>Issue</b></th>
              <th width="50%" align="center"><b>Resolution</b></th>
            </tr>
            <tr>
              <td>Missing Acknowledgement date</td>
              <td><p> Test test</p></td>
            </tr>
            <tr>
              <td>Missing Agent and/or Seller signature</td>
        </table>
    And that's absolutely correct and displays perfectly if I save the result as an html file. But when I use xslt.Transform(..), where xslt is a compiled transform, it produces
    <table border="1" cellpadding="4" cellspacing="0" style="..." id="tmsEmailTable">
                <tr><th width="50%" align="center"><b>Issue</b></th><th width="50%" align="center"><b>Resolution</b></th></tr>
                <tr>
                    <td>
                        Missing Acknowledgement date
                    </td>
                    <td></td>
                </tr>
            </table>
        </p><p> Test test</p></td></tr><tr>
            <td>Missing Agent and/or Seller signature</td>
            <td>
        </table>
    And to make it even more interesting, that extra </table> tag and the misplaced table data only occur on the first table row, but the table rows are generated by an xsl:for-each.
    The relevant bit of the xsl is:
              <table border="1" cellpadding="4" cellspacing="0" style="..." id="tmsEmailTable">
                <tr>
                  <th width="50%" align="center">
                    <b>Issue</b>
                  </th>
                  <th width="50%" align="center">
                    <b>Resolution</b>
                  </th>
                </tr>
                <xsl:for-each select="emailbody/checklist/item">
                  <xsl:if test="string-length(select='issue')>0">
                    <tr>
                      <td>
                        <xsl:value-of select="issue" disable-output-escaping="yes" />
                      </td>
                      <td>
                        <xsl:value-of select="resolution" disable-output-escaping="yes" />
                      </td>
                    </tr>
                  </xsl:if>
                 </xsl:for-each>
              </table>
    The code that generates the compiled transform and the (incorrect) output is:
                Dim xslt As XslCompiledTransform = New XslCompiledTransform(True)
                'Dim xslt As XslTransform = New XslTransform
                xslt.Load(templatePath) 
                Dim objStream As Stream = New MemoryStream(UTF8Encoding.UTF8.GetBytes(xmlData))
                Dim strbldrXML As StringBuilder = New StringBuilder()
                Dim objXmlReader As XmlReader = XmlReader.Create(objStream)
                Dim objXmlWriter As XmlWriter = XmlWriter.Create(strbldrXML)
                xslt.Transform(objXmlReader, objXmlWriter)
    I've checked that templatePath is pointing to the right file, and the source file I'm debugging the xsl against was copied from the xmlData parameter, so I know the same stuff is getting fed into it.
    I've been chasing this for days, and I'm about ready to quit and go get a job at a fast food joint. I'm not wonderful with xsl in general, or xsl in .NET in particular. Somebody PLEASE tell me I'm doing something stupid....
    Rebecca M. Riordan

    Thanks for the replay, Fred, but that wasn't the problem.
    I still don't know what the problem was, but in putting together a sample for review, I cleaned up the code a little (I inherited this), and while it
    appears to be functionally identical, it's working now. Since we're scheduled to go live on Friday, I'm gonna just take the win ;)
    In the unlikely event that anybody's curious, the original, non-functional code, looked like this:
    Public Function createEmailBody(ByVal templateType As String, ByVal xmlData As String) As String
                Dim templatePath, emailBody As String
                templatePath = Me.templatePath & "\" & templateType & ".xsl"
                Dim xpd As New XPathDocument(New StringReader(xmlData))
                Dim xslt As XslCompiledTransform = New XslCompiledTransform(False)
                xslt.Load(templatePath)
                Dim objStream As Stream = New MemoryStream(UTF8Encoding.UTF8.GetBytes(xmlData))
                Dim strbldrXML As StringBuilder = New StringBuilder()
                Dim objXmlReader As XmlReader = XmlReader.Create(objStream)
                Dim objXmlWriter As XmlWriter = XmlWriter.Create(strbldrXML)
                xslt.Transform(objXmlReader, objXmlWriter)
                emailBody = strbldrXML.ToString()
                Return emailBody
    End Function
    In cleaning it up, I wrote this:
    Public Function createEmailBody(ByVal templateType As String, ByVal xmlData As String) As String
                Dim xslt As XslCompiledTransform = New XslCompiledTransform(False)
                Dim templatePath As String = Me.templatePath & templateType & ".xsl"
                xslt.Load(templatePath)
                Dim reader As XmlReader = XmlReader.Create(New MemoryStream(UTF8Encoding.UTF8.GetBytes(xmlData)))
                Dim outSB As StringBuilder = New StringBuilder()
                Dim writer As XmlWriter = XmlWriter.Create(outSB)
                xslt.Transform(reader, writer)
                Dim emailBody As String = outSB.ToString()
                Return emailBody
    End Function
    As I said, they look functionally identical to me, but obviously they're not, because the second one works....
    Rebecca M. Riordan

  • Different results on PC and Mac

    Hello,
    I am a new user of iWeb 09 and I created my first blog.
    But when I publish my site, I got different results when viewing from a Mac or a PC.
    I don't understand why et would appreciate some help to fix that.
    My site is under the following address : www.isadezabo.com
    Thank you for your help.
    Jack

    I looked at your site with Virtualbox, Win XP and MSIE 8.
    The *just try it* page does not display very well. Or rather, barely at all.
    From a design perspective I doubt that a blog is a good choice to present your merchandise.
    I'd rather create dedicated pages based on style, design, topic, etc.
    Or re-design your blog pages without putting to much content in each blog entry. And then check it on a PC.
    Note that browsers each have there way of displaying webpages. And MSIE is not very good at that.
    To promote my merchandise, I present you some iWeb pages made for the iPad, but which really look good on both Mac and PC Desktops.
    It attempts to show that even within (intentionally) limited space you can display whatever you want.
    http://dailynews.webege.com/roodhout/
    http://dailynews.webege.com/ipad/
    http://dailynews.webege.com/cultureclub/
    I haven't much creative abilities, so I used iWork Pages templates. See if it serves as inspiration.

  • Select statement returns different results from 9i and 10g

    Hi all,
    Would appreciate if someone could help to solve this puzzle here:
    I have the exact the statements running on Oracle 9i and 10g, why do they return different results?
    Select unique(GroupDesc) , GroupSeq from Module where ModuleId in (Select ModuleId from User_Access where UserId='admin') and Status='A'
    In Oracle 9i:
    Both columns returned as follows...
    GroupDesc | GroupSeq
    In Oracle 10g:
    Only one column returned, the column with unique keyword was missing...
    GroupSeq
    Could anyone enlighten me?

    yes, the table structure... actually the CREATE TABLE statement...
    with some sample data (INSERT INTO)
    and the actual queries (both of them - copy-paste them from each separate environment)
    you can use tags around the statements this will format it to a fixed font - making it easier to read
    Edited by: Alex Nuijten on Feb 20, 2009 10:05 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Same C++ code gives different result in MacOSX and Ubuntu

    Hi
    I have a C++ program which starts by reading an external file, but changing the name of the file give me different results.
    I selected just the important part and made a simple file with the reading part of my program and can be downloaded here
    http://dl.dropbox.com/u/664351/files.zip
    It just reads the external file and does the output of some values.
    It has two external file examples. If one uses "x.txt" everything works fine, but if we use "dados.txt", which is a copy of "x.txt", the last value in the output is wrong.
    The stranger is that if i use these same files in ubuntu everything works just fine!
    I tried in a MacBook, a MacBook Pro and an iMac (all of them with macosx 10.6) and i always got the error, but not on ubuntu!
    Does anyone has a clue about what is happening here?
    Cheers,
    Marcelo

    marcelobarbosa wrote:
    Does anyone has a clue about what is happening here?
    Change OutFile from a 20 byte character array to a string. GCC isn't able to tell what type that is and is picking int or something, corrupting your memory.

  • Different results from MAX and Labview

    Hi all,
    We did an impact testing a couple of days ago, and I got very big acceleration (the peak is about 300g, which is much larger than the estimated value).
    And then I tried a small imact test in the lab using a steel plate which is less than 1 lb to impact a steel ruler, I still got big peak number (more than 200g, which is impossible). And then I tried the small impact test again by using MAX, the peak number is about 12g, and the curve seems like pretty reasonable. I was wondering why I got different results by using MAX and Labview?
    Also, sometimes when I connect the SCXI-1001 to the computer, it says the USB is malfuntion and cannot be recgonized by the computer, and turns out the driver file does not exists. But most of the time, it works very well and the driver file does exists. Why this happened?
    Thanks.
    Yuan

    jyuan wrote:  but I want to clike one "run button" and get data from strain gage, LVDT, accelerometer at the same time and our tesing duration is just about a few seconds. And also I didn't find a place where I can record the data in MAX
    You can do that.  A task can only have the same types of inputs, meaning Analog Input, Analog Output, Digital Input, Digital Output, etc.  Different sensors are just read with Analog Inputs.  So they all can be in the same task.  In MAX, just set up a task a configure each channel as it should be.  Then use that single task in your LabVIEW code.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • Different Result for SQL and PL/SQL query..need a bit of help

    If i just run:
    SELECT COUNT(*) from DB where (CLOSE_TIME-OPEN_TIME<5) and (CLOSE_TIME-OPEN_TIME>=1) and OPEN_TIME>'1/1/2011';
    It works great.
    If I run
    BEGIN
    SELECT COUNT(*) from DB where (CLOSE_TIME-OPEN_TIME<5) and (CLOSE_TIME-OPEN_TIME>=1) and OPEN_TIME>'1/1/2011';
    END
    I get the following error.
    ORA-04052: error occurred when looking up remote object [email protected]
    ORA-00604: error occurred at recursive SQL level 3
    ORA-06552: PL/SQL: Compilation unit analysis terminated
    ORA-06553: PLS-488: invalid variable declaration: object 'NUMBER' must be a type or subtype
    ORA-02063: preceding 2 lines from SMGLINK

    Hi,
    Whenever you have a problem, post a complete test script that people can run to re-create the problem and test their ideas. Include CREATE TABLE and INSERT statements for any or your own tables needed.
    Post the results you want from that sample data.
    Always say which version of Oracle you're using.
    bostonmacosx wrote:
    If i just run:
    SELECT COUNT(*) from DB where (CLOSE_TIME-OPEN_TIME<5) and (CLOSE_TIME-OPEN_TIME>=1) and OPEN_TIME>'1/1/2011';If OPEN_TIME is a DATE, then don't try to compare it to a string, such as '1/1/2011'. (This is not related to the present problem, only a future one.)
    It works great.
    If I run
    BEGIN
    SELECT COUNT(*) from DB where (CLOSE_TIME-OPEN_TIME<5) and (CLOSE_TIME-OPEN_TIME>=1) and OPEN_TIME>'1/1/2011';
    END
    I get the following error.
    ORA-04052: error occurred when looking up remote object [email protected]
    ORA-00604: error occurred at recursive SQL level 3
    ORA-06552: PL/SQL: Compilation unit analysis terminated
    ORA-06553: PLS-488: invalid variable declaration: object 'NUMBER' must be a type or subtype
    ORA-02063: preceding 2 lines from SMGLINKI would expect a different error "PLS_00428: an INTO clause is expected".

  • Different results for table and dimension operator

    hi
    I am new to Oracle and specially Data Warehousing.
    I created a mapping with a target operator Dimension, it does not give the desired result. Then I changed the target operator to a table, which gives the expected result. All others are the same like the join condition etc.
    I think there is some problem with the dimension, please, help me finding the problem of the dimension.
    Details of the dimension: there are two levels in the dimension. the surrogate key for both the levels is the same (ID) but business keys are different. The business key of the level 1 appears in level 2 and is properly mapped to the same attribute. the surrogate key of both the levels in not mapped to any attributes.
    regards
    Arif
    P.S: I tried to include a screen dump of the mapping here, but not possible.

    I used @section and <?fo:page-number?> of <?fo:page-number-citation:xdofo:lastpage-joinseq?> but I still get wrong numbering by group
    Group1:- 1 of 6
    Group1:- 2 of 6
    Group2:- 1 of 6
    Group3:- 1 of 6
    Group4:- 1 of 6
    Group4:- 2 of 6
    the syntax <?fo:page-number-citation:xdofo:lastpage-joinseq?> is getting total document pages instead of group pages. Desired output is
    Group1:- 1 of 2
    Group1:- 2 of 2
    Group2:- 1 of 1
    Group3:- 1 of 1
    Group4:- 1 of 2
    Group4:- 2 of 2
    Below is my syntax
    In Header section <?for-each@section:G_VENDOR?>
    <?fo:page-number?> of <?fo:page-number-citation:{generate-id()}?>
    In Body
    <?start:body?>
    <?end body?>
    <?split-by-page-break:?>
    <?end for-each?><fo:block id="{generate-id()}"/> --this is in form field
    Please help.
    Thanks,
    Venkat

  • Export to text procuding different results between SDK and Report Viewer.

    We have a 3rd party app that uses Report Viewer v2.5.991 to generate reports. We use the export to text feature and specify 60 lines per page. This produces a report with 60 detail lines and a footer that comes after the sixty for a total of 64 lines per page.
    I am a .NET developer and am using the CrystalDecisions SDK version 13.0.2000.0. I am using the same rpt file and automatically generating the text export using C# .NET. I am specifying TextFormatOptions LinesPerPage of 60. This is producing 60 lines total including the footer.
    Is there an option I am missing in my code to produce the desired results?

    No such thing as Report Viewer v2.5.991. Not as far as I know anyhow...
    Looking at the description of the TextFormatOptions property in the SAP Crystal Reports .NET API Guide:
    Gets or Sets the number of lines per page to use when you export to text.
    So, it looks to me like the property is behaving as expected. E.g.; it is the 3rd party that does something to get 64 lines per page. Perhaps setting the property to 64 will do the trick?
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow us on Twitter

  • Different results from SQLPlus and ResultSet

    Hello!
    I'm using Oracle Server and when I query in SQL-Plus:
    "select count(*) from table1", I get the result "2 rows"
    But - when I query in JDBC:
    PreparedStatement pstmt = dbconn.prepareStatement(same query....);
    pstmt.executeQuery();
    rset=pstmt.getResultSet();
    rset.next ();
    rset.getString (1)
    Returns only "1 row"...
    In addition, when I query for "select * from table1", in JDBC, I get as results only from the 2nd record to the last..."
    In all cases, for some reason, it truncate the first row! :-(
    Why is there a difference between them?
    Thank you all in advance!

    rset.getString (1)If you are doing "select count(*)" that should be getInt(1).
    pstmt.executeQuery();
    rset=pstmt.getResultSet();Try "rset = pstmt.executeQuery()" instead of those two lines. That is the usual way of doing it.
    PreparedStatement pstmt = dbconn.prepareStatement(same query....);Show us the prepareStatement call with the SQL query. Don't edit it in any way, don't abbreviate it, don't even remove a single space in it, copy&paste it exactly the way it is.

  • Different results between DD03L and the same structure in transaction SE11

    Hi Experts,
    I created a 'Z' structure and when I see this structure using trx se11 are displayed 10 fields but when I see this same structure through the table DD03L are displayed 15 fields.
    I created again 2 of 5 fields that were missing and the register was duplicated for that field in the table DD03L .
    Someone already see anything like this??
    Best regards and thanks in advance.
    Caíque Escaler

    hi check this...
    dd03l is for the tables and i didnt think for the structures..and give  the structure name  in the DATA TYPE it will show the structure you had created ..see the header text for the dd03l and u will get  what it is exactly
    se11->data type  zstructure->f7(display)..
    regards,
    venkat

  • [Solved]Getting different results with PKGBUILD and compiling manually

    Hi,
    When I compile this one package manually and install it, it works 100% however when I try it in a PKGBUILD the compile fails.
    Here is the PKGBUILD I have so far (still working on it)
    pkgname=smtp-gated
    pkgver=1.4.16.2
    pkgrel=1
    pkgdesc="This software block SMTP sessions used by e-mail worms and viruses on the NA(P)T router. It acts like proxy, intercepting outgoing SMTP connections and scanning session data on-the-fly. When messages is infected, the SMTP session is terminated. It's to be used (mostly) by ISPs, so they can eliminate infected hosts from their network, and (preferably) educate their users."
    url="http://smtp-proxy.klolik.org/"
    license="GNU"
    arch=('i686' 'x86_64')
    #depends=('')
    #install=smtp-gated.install
    source=("$url/files/$pkgname-$pkgver.tar.gz")
    md5sums=('3857d03c847efd89b052acaeffaa453b')
    build() {
    cd $startdir/src/$pkgname-$pkgver || return 1
    msg CONFIGURE
    #./configure --prefix=/usr || return 1
    ./configure || return 1
    msg MAKE
    make || return 1
    msg INSTALL
    make install INSTALL_ROOT=$startdir/pkg/ || return 1
    And the compile error when I run "makepkg"
    ==> MAKE
    make all-recursive
    make[1]: Entering directory `/root/ABS_snmp-gated/src/smtp-gated-1.4.16.2'
    Making all in src
    make[2]: Entering directory `/root/ABS_snmp-gated/src/smtp-gated-1.4.16.2/src'
    if gcc -DHAVE_CONFIG_H -I. -I. -I.. -DMD5_TEST -march=x86-64 -mtune=generic -O2 -pipe -Wall -MT md5_test-md5.o -MD -MP -MF ".deps/md5_test-md5.Tpo" -c -o md5_test-md5.o `test -f 'md5.c' || echo './'`md5.c; \
    then mv -f ".deps/md5_test-md5.Tpo" ".deps/md5_test-md5.Po"; else rm -f ".deps/md5_test-md5.Tpo"; exit 1; fi
    gcc -march=x86-64 -mtune=generic -O2 -pipe -Wall -Wl,--hash-style=gnu -Wl,--as-needed -o md5-test md5_test-md5.o
    if gcc -DHAVE_CONFIG_H -I. -I. -I.. -march=x86-64 -mtune=generic -O2 -pipe -Wall -MT regex-test.o -MD -MP -MF ".deps/regex-test.Tpo" -c -o regex-test.o regex-test.c; \
    then mv -f ".deps/regex-test.Tpo" ".deps/regex-test.Po"; else rm -f ".deps/regex-test.Tpo"; exit 1; fi
    gcc -march=x86-64 -mtune=generic -O2 -pipe -Wall -Wl,--hash-style=gnu -Wl,--as-needed -o regex-test -lpcre regex-test.o
    regex-test.o: In function `main':
    regex-test.c:(.text+0xc): undefined reference to `pcre_version'
    regex-test.c:(.text+0x3c): undefined reference to `pcre_compile'
    regex-test.c:(.text+0x71): undefined reference to `pcre_exec'
    regex-test.c:(.text+0x88): undefined reference to `pcre_free'
    collect2: ld returned 1 exit status
    make[2]: *** [regex-test] Error 1
    make[2]: Leaving directory `/root/ABS_snmp-gated/src/smtp-gated-1.4.16.2/src'
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/root/ABS_snmp-gated/src/smtp-gated-1.4.16.2'
    make: *** [all] Error 2
    Any pointers or help would be greatly appreciated.
    Last edited by Tinuva (2010-01-27 11:55:41)

    Alright not sure if this is up to standard to go into AUR but this is what I have for now:
    PKGBUILD:
    pkgname=smtp-gated
    pkgver=1.4.16.2
    pkgrel=1
    pkgdesc="This software block SMTP sessions used by e-mail worms and viruses on the NA(P)T router. It acts like proxy, intercepting outgoing SMTP connections and scanning session data on-the-fly. When messages is infected, the SMTP session is terminated. It's to be used (mostly) by ISPs, so they can eliminate infected hosts from their network, and (preferably) educate their users."
    url="http://smtp-proxy.klolik.org/"
    license="GNU"
    arch=('i686' 'x86_64')
    #depends=('')
    install=smtp-gated.install
    source=("$url/files/$pkgname-$pkgver.tar.gz")
    md5sums=('3857d03c847efd89b052acaeffaa453b')
    build() {
    cd $startdir/src/$pkgname-$pkgver || return 1
    msg CONFIGURE
    export LDFLAGS="${LDFLAGS//-Wl,--as-needed}"
    ./configure --prefix=/usr || return 1
    msg MAKE
    make || return 1
    msg INSTALL
    make install INSTALL_ROOT=$startdir/pkg/ || return 1
    install -D -m755 ../../smtp-gated ${startdir}/pkg/etc/rc.d/smtp-gated || return 1
    install -D -m644 ../../smtp-gated.conf ${startdir}/pkg/etc/smtp-gated.conf || return 1
    smtp-gated.install
    # arg 1: the new package version
    post_install() {
    mkdir /var/run/smtp-gated
    mkdir /var/spool/smtp-gated
    mkdir /var/spool/smtp-gated/msg
    chown mail.mail /var/run/smtp-gated
    chown mail.mail /var/spool/smtp-gated -R
    echo "
    SMTP-GATED Instructions:
    After installing SMTP-GATED you need to edit smtp-gated.ini
    Good luck!
    /bin/true
    op=$1
    shift
    $op $*
    smtp-gated that goes into /etc/rc.d/
    #!/bin/bash
    . /etc/rc.conf
    . /etc/rc.d/functions
    # source application-specific settings
    [ -f /etc/conf.d/$NAME ] && . /etc/conf.d/$NAME
    # PATH should only include /usr/* if it runs after the mountnfs.sh script
    PATH=/usr/sbin:/usr/bin:/sbin:/bin
    DESC="SMTP Proxy"
    NAME=smtp-gated
    DAEMON=/usr/sbin/$NAME
    CONFIG=/etc/$NAME.conf
    DAEMON_ARGS="$CONFIG"
    PID=/var/run/$NAME/$NAME.pid
    SCRIPTNAME=/etc/rc.d/$NAME
    # Exit if the package is not installed
    [ -x "$DAEMON" ] || exit 0
    # Read configuration variable file if it is present
    [ -f /etc/conf.d/$NAME ] && . /etc/conf.d/$NAME
    case "$1" in
    start)
    stat_busy "Starting $NAME"
    #[ -z "$PID" ] && $DAEMON $DAEMON_ARGS
    $DAEMON $DAEMON_ARGS &>/dev/null
    if [ $? -gt 0 ]; then
    stat_fail
    else
    add_daemon $NAME
    stat_done
    fi
    stop)
    stat_busy "Stopping $NAME"
    #[ -n "$PID" ] && kill $PID &> /dev/null
    smtp-gated -K &> /dev/null
    if [ $? -gt 0 ]; then
    stat_fail
    else
    rm_daemon $NAME
    stat_done
    fi
    restart)
    $0 stop
    # will not start if not fully stopped, so sleep
    sleep 2
    $0 start
    echo "usage: $0 {start|stop|restart}"
    esac
    smtp-gated.conf that goes into /etc
    # Virus scanning: yes
    # SPAM scanning: yes
    #proxy_name smtp-proxy.mydomain.com
    port 9199
    ; bind_address 192.168.1.254
    ; source_addr 0.0.0.0
    mode netfilter
    ; action_script /etc/smtp-gated-action.sh
    lock_duration 1800
    lock_path /var/spool/smtp-gated/lock
    spool_path /var/spool/smtp-gated/msg
    spool_perm 0660
    pidfile /var/run/smtp-gated/smtp-gated.pid
    ;dumpfile /var/run/smtp-gated/smtp-state-dump
    set_user mail
    priority 5
    lock_on virus,spam,maxhost
    max_connections 64
    max_per_host 10
    ;max_per_ident 6
    ;max_load 3.0
    ignore_errors yes
    spool_leave_on error,spam
    nat_header_type ip-only
    ; abuse [email protected]
    log_helo yes
    log_mail_from accepted,rejected
    log_rcpt_to accepted,rejected
    ; locale pl_PL
    ;scan_max_size 1048576
    ;spam_max_size 0
    spam_max_size 131072
    ;spam_max_load 0.5
    spam_threshold 5.0
    ; scanner_path
    antivirus_type clamd
    antivirus_path /var/lib/clamav/clamd.sock
    antispam_type spamassassin
    antispam_path /var/run/spamd.sock
    Last edited by Tinuva (2010-01-27 12:13:03)

  • Same gui code 2 different results in xp and 7

    First Machine:Xp,netbeans 6.8, jdk 6 update 19(upgraded due to that problem)
    Second Machine:7,netbeans 6.7.1, jdk 6 update 17
    Image1: http://img686.imageshack.us/img686/5781/gui1.jpg
    Image2: http://img30.imageshack.us/img30/3751/gui2y.jpg
    Here is the code:
    public class MyFrame extends JFrame{
    public Point point1;
    public Point point2;
    private ImageIcon imc;
    private ImageIcon imc2;
    private final Color c1 = Color.green;
    private final Color c2 = Color.cyan;
    private final Color c3 = Color.yellow;
    private final Color c4 = Color.red;
    public MyFrame(Point p1,Point p2,String filename1,String filename2){
    super("xxx");
    imc = new ImageIcon(filename1);
    imc2 = new ImageIcon(filename2);
    point1 = p1;
    point2 = p2;
    setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    JLabel emptyLabel = new JLabel("");
    emptyLabel.setPreferredSize(new Dimension(850,650));
    getContentPane().add(emptyLabel, BorderLayout.CENTER);
    //Display the window.
    pack();
    setVisible(true);
    @Override
    public void paint(Graphics g){
    g.setColor( c2 );
    g.fillRect(50, 100, 750, 500);
    g.setColor( c1 );
    g.fillRect( 150, 200, 550, 300 );
    g.setColor( c3 );
    g.drawRect( 100, 150, 650, 400 );
    g.setColor( c4 );
    g.drawLine( 425, 500, 425, 600 );
    imc.paintIcon(this, g, point1.x, point1.y);
    imc2.paintIcon(this, g, point2.x, point2.y);
    }Any solution for that?
    Thanks in advance.
    Edited by: kapodistrias on Mar 31, 2010 12:06 AM

    Really thanks.
    But I think if I had not run it in another machine I would have thought that it was right.
    I have done all the backround but I still cannot add the 2 image icons.
    I tried these inside the jpanel after the background but it seems they don't work.
    Image imc3 = imc.getImage();
    g.drawImage(imc3, point1.x, point1.y, this);
    or
    imc.paintIcon(mypanel, g, point1.x, point1.y);
        public class MyPanel extends JPanel{
            public MyPanel(){
                add(new JLabel(""), BorderLayout.CENTER);
                this.setBackground(c1);
            @Override
            public void paintComponent(Graphics g){
                super.paintComponent(g);
                g.setColor( c2 );
                g.fillRect(50, 100, 750, 500);
                g.setColor( c1 );
                g.fillRect( 150, 200, 550, 300 );
                g.setColor( c3 );
                g.drawRect( 100, 150, 650, 400 );
                g.setColor( c4 );
                g.drawLine( 425, 500, 425, 600 );
                Image imc3 = imc.getImage();
                g.drawImage(imc3, 0, 0, this);
                //imc.paintIcon(mypanel, g, point1.x, point1.y);
                //imc2.paintIcon(mypanel, g, point2.x, point2.y);
        }

  • ClassCastException: different results beteween instanceOf  and getClass

    Hi,
    I have a java based-simulation that contains the following code :
    EDProtocol  prot = null;
    boolean check=false;
                   try {
                        *prot = (EDProtocol) ev.node.getProtocol(pid);*
                        prot.processEvent(ev.node, pid, ev.event);
                                    *check= (ev.node.getProtocol(pid) instanceof DRingProtocol);*
                   } catch (ClassCastException e) {
                        throw new IllegalArgumentException("class: "+ ev.node.getProtocol(pid).getClass()+ "; is instance of DRingProtocol: "+ check);
                   }However, sometimes I get this weird error:
    "Exception in thread "main" java.lang.IllegalArgumentException: Class: DRingProtocol; is instance of DRingProtocol; false"
    How can "prot" not be an instance of its class???
    Thanks
    Mannous

    You havn't specified whether DRingProtocol class is subclass of EDProtocol or superclass.
    If it is subclass then there may be more subclasses of EDProtocol, if this is the case then, at runtime JVM came to know that object returned by getProtocol might not cast to DRingProtocol.
    Change your code to:
    EDProtocol  prot = null;
    boolean check=false;
                   try {
                                   *check= (ev.node.getProtocol(pid) instanceof DRingProtocol);*
                        if(check){
                                       *prot = (EDProtocol) ev.node.getProtocol(pid);*
                            prot.processEvent(ev.node, pid, ev.event);
                   } catch (ClassCastException e) {
                        throw new IllegalArgumentException("class: "+ ev.node.getProtocol(pid).getClass()+ "; is instance of DRingProtocol: "+ check);
                   }Edited by: opsharma on Oct 6, 2008 5:04 AM

  • Filter expression producing different results after upgrade to 11.1.1.7

    Hello,
    We recently did an upgrade and noticed that on a number of reports where we're using the FILTER expression that the numbers are very inflated. Where we are not using the FILTER expression the numbers are as expected. In the example below we ran the 'Bookings' report in 10g and came up with one number and ran the same report in 11g (11.1.1.7.0) after the upgrade and got two different results. The data source is the same database for each envrionment. Also, in running the physical SQL generated by the 10g and 11g version of the report we get different the inflated numbers from the 11g SQL. Any ideas on what might be happening or causing the issue?
    10g report: 2016-Q3......Bookings..........72,017
    11g report: 2016-Q3......Bookings..........239,659
    This is the simple FILTER expression that is being used in the column formula on the report itself for this particular scenario which produces different results in 10g and 11g.
    FILTER("Fact - Opportunities"."Won Opportunity Amount" USING ("Opportunity Attributes"."Business Type" = 'New Business'))
    -------------- Physical SQL created by 10g report -------- results as expected --------------------------------------------
    WITH
    SAWITH0 AS (select sum(case when T33142.OPPORTUNITY_STATUS = 'Won-closed' then T33231.USD_LINE_AMOUNT else 0 end ) as c1,
    T28761.QUARTER_YEAR_NAME as c2,
    T28761.QUARTER_RANK as c3
    from
    XXFI.XXFI_GL_FISCAL_MONTHS_V T28761 /* Dim_Periods */ ,
    XXFI.XXFI_OSM_OPPTY_HEADER_ACCUM T33142 /* Fact_Opportunity_Headers(CloseDate) */ ,
    XXFI.XXFI_OSM_OPPTY_LINE_ACCUM T33231 /* Fact_Opportunity_Lines(CloseDate) */
    where ( T28761.PERIOD_NAME = T33142.CLOSE_PERIOD_NAME and T28761.QUARTER_YEAR_NAME = '2012-Q3' and T33142.LEAD_ID = T33231.LEAD_ID and T33231.LINES_BUSINESS_TYPE = 'New Business' and T33142.OPPORTUNITY_STATUS <> 'Duplicate' )
    group by T28761.QUARTER_YEAR_NAME, T28761.QUARTER_RANK)
    select distinct SAWITH0.c2 as c1,
    'Bookings10g' as c2,
    SAWITH0.c1 as c3,
    SAWITH0.c3 as c5,
    SAWITH0.c1 as c7
    from
    SAWITH0
    order by c1, c5
    -------------- Physical SQL created by the same report as above but in 11g (11.1.1.7.0) -------- results much higher --------------------------------------------
    WITH
    SAWITH0 AS (select sum(case when T33142.OPPORTUNITY_STATUS = 'Won-closed' then T33142.TOTAL_OPPORTUNITY_AMOUNT_USD else 0 end ) as c1,
    T28761.QUARTER_YEAR_NAME as c2,
    T28761.QUARTER_RANK as c3
    from
    XXFI.XXFI_GL_FISCAL_MONTHS_V T28761 /* Dim_Periods */ ,
    XXFI.XXFI_OSM_OPPTY_HEADER_ACCUM T33142 /* Fact_Opportunity_Headers(CloseDate) */ ,
    XXFI.XXFI_OSM_OPPTY_LINE_ACCUM T33231 /* Fact_Opportunity_Lines(CloseDate) */
    where ( T28761.PERIOD_NAME = T33142.CLOSE_PERIOD_NAME and T28761.QUARTER_YEAR_NAME = '2012-Q3' and T33142.LEAD_ID = T33231.LEAD_ID and T33231.LINES_BUSINESS_TYPE = 'New Business' and T33142.OPPORTUNITY_STATUS <> 'Duplicate' )
    group by T28761.QUARTER_YEAR_NAME, T28761.QUARTER_RANK),
    SAWITH1 AS (select distinct 0 as c1,
    D1.c2 as c2,
    'Bookings2' as c3,
    D1.c3 as c4,
    D1.c1 as c5
    from
    SAWITH0 D1),
    SAWITH2 AS (select D1.c1 as c1,
    D1.c2 as c2,
    D1.c3 as c3,
    D1.c4 as c4,
    D1.c5 as c5,
    sum(D1.c5) as c6
    from
    SAWITH1 D1
    group by D1.c1, D1.c2, D1.c3, D1.c4, D1.c5)
    select D1.c1 as c1, D1.c2 as c2, D1.c3 as c3, D1.c4 as c4, D1.c5 as c5, D1.c6 as c6 from ( select D1.c1 as c1,
    D1.c2 as c2,
    D1.c3 as c3,
    D1.c4 as c4,
    D1.c5 as c5,
    sum(D1.c6) over () as c6
    from
    SAWITH2 D1
    order by c1, c4, c3 ) D1 where rownum <= 2000001
    Thank you,
    Mike
    Edited by: Mike Jelen on Jun 7, 2013 2:05 PM

    Thank you for the info. They are definitely different values since ones on the header and the other is on the lines. As the "Won Opportunity" logical column is mapped to multiple LTS it appears the OBI 11 uses a different alogorthim to determine the most efficient table to use in the query generation vs 10g. I'll need to spend some time researching the impact to adding a 'sort' to the LTS. I'm hoping that there's a way to get OBI to use similar logic relative to 10g in how it generated the table priority.
    Thx again,
    Mike

Maybe you are looking for

  • Cannot move junk email to Bulk Mail folder in Yahoo, greyed out

    I've searched but so far no luck.  Ever since I added my two Yahoo email accounts on my iPhone 4, I cannot seem to send junk email from my inbox to my Bulk Mail folder, it is greyed out.  First off, I've confirmed that the Bulk Mail folder on my iPho

  • HT1420 How do I authorise my account on a Mac?

    I don't have any store options.

  • OS 8.6 won't quit or restart after hard shutdown

    While testing a G3 266MHz beige mini tower running OS 8.6, the system hung and refused to shut down even when the power button was pressed and held, so I literally had to pull the plug. The operation it hung on was opening a folder containing a large

  • Replace music

    I had to install a new hard drive and OS X 10.5 on my PowerBook. How do I reinstall my old music library? I have few things in my new library that I would like to save. So I need to merge my old library and new one. Suggestions please.

  • Which Macbook Pro 15" to get?

    Hi, I've been thinking about buying a new Macbook Pro for a while now, as I've been getting tired of my Windows machine, and I plan on going to University next year, I thought it'd be nice to have time to get used to using one. Basically, I have deci