Problem with Prininting in AIX 5.2

I have a prgram that prints a JeditorPane to a Printer. Its workin fine in windows environment. I can print to most of the printers from Windows. But when I go to AIX 5.2 printing is not in a desired format. It seems that the printer prints a PostScript Datastream, treating it as a ASCII stream. I am guessing so, because of the print output starts from %! ps-3 adobe ..... which is the PostScript header. I have read that, Windows and MacOS has the PostScript Driver (Available in Adobe), which might interprete the PS datastream with printer driver. Is there any GhostScript Driver available for AIX 5.2?? Or is it there any other way that I can get rid of this problem?? really appriciate a quick response.....
Regards
Varuna.

Hi Rakesh,
I think you need to make sure that the conflicting tcodes must be removed from all the roles assigned to the user otherwise there is a possibility that the risk still shows up on the user even though you deleted the tcodes from one of the roles.
Hope this helps.
Regards,
Kiran Kandepalli.

Similar Messages

  • Anyone had problems with BouncyCastle on AIX using IBM's JVM 1.3.0?

    I'm having an issue on AIX with IBM's JVM 1.3.0; the same code and configuration has worked on other OSs and JVMs, including the IBM JVM on Linux and Win2K. The JVM is barfing with a ClassCastException before even the first line of my code is being executed. The rather cryptic (no pun intended) error message is:
    Exception in thread "main" java.lang.ClassCastException: org.bouncycastle.jce.X509Principal
    The only reference I've seen on this is here:
    http://groups.google.com/groups?q=java.lang.ClassCastException:+org.bouncycastle.jce.X509Principal&hl=en&safe=off&rnum=1&selm=8s3l7u%249ks1%40webint.na.informix.com
    Anyone else seen this? Any AIX/IBM JVM 1.3.0/BouncyCastle users out there?
    TIA,
    Matthew
    Matthew T. Adams [[email protected]]
    Software Engineer, Architecture Group
    www.highwire.com

    You have the same problem that I was very annoyed.
    Remove your IBMJCEfw.jar from %JAVA_HOME%/jre/lib/ext directory.
    Anyway , I believe this message and exception is not appropriate ,
    or at least unkind one.
    I hope the ClassCastException will be handled and another message
    and Exception thrown such as "UnverifiedProviderException" in
    future release of JCE.
    # I'll submit a bug-report later.
    UKAI Hiroshi

  • Weird Terminal problem with AIX

    Hi,
    I have kind of an odd problem with the Terminal.app that I hope someone can assist me in figuring out.
    I'm connecting to an AIX 5.3 server and the top portion of the window is always "cut off". It's there, it's just one screen up in the buffer and I can't figure out why. I can connect with iTerm and things display appropriately.
    Below is a link to a side by side picture of Terminal.app (left) and iTerm (right). If I scroll up in the Terminal.app buffer, I can see the missing lines from the top of the screen.
    http://picasaweb.google.com/andy.black10/Misc#5407855064094337554
    Thanks,
    Andy

    Minor point: would you please fill in your Forum profile information, at least the Mac OS X operating system version.
    I'm currently using Leopard and I can reproduce this problem in Terminal vs iTerm. I used your script output (thank you) in order to generate the escape sequences.
    BY THE WAY, if the script output contains any sensitive login info, you might want to change your password on the Pharamcy OSU system
    It looks like there is a Terminal problem handling Scrolling Regions as set by <esc>[1;24r. It looks like <esc>[0J is not erasing from the current cursor position to the end of the display, but rather it starts the erase above the current cursor position. The erase behavior without a scrolling region appears better, but not perfect.
    I would encourage you to file a bug with Apple at either:
    <http://www.apple.com/feedback/macosx.html>
    or
    <http://bugreporter.apple.com>
    Free ADC (Apple Developer Connection) account needed for BugReporter
    The BugReporter would be better.
    If you want, I have a little script that can be used to demonstrate the problem
    #!/usr/bin/env bash
    echo -e "e[1;24re[He[0Je[He[0Je[?6he[1;24re[He[0Jc"
    for j in {1..3}
    do
    echo BEFORE should remain on screen $j $j $j $j $j
    done
    for j in {4..23}
    do
    echo FILLER should be erased $j $j $j $j $j
    done
    echo -e "e[4;24re[He[0Jc"
    for j in {4..23} # our next command prompt will be 24th line
    do
    echo AFTER should remain on screen $j $j $j $j $j
    done
    Here is example output from Terminal:
    BEFORE should remain on screen 1 1 1 1 1
    AFTER should remain on screen 4 4 4 4 4
    AFTER should remain on screen 5 5 5 5 5
    AFTER should remain on screen 6 6 6 6 6
    AFTER should remain on screen 7 7 7 7 7
    AFTER should remain on screen 8 8 8 8 8
    AFTER should remain on screen 9 9 9 9 9
    AFTER should remain on screen 10 10 10 10 10
    AFTER should remain on screen 11 11 11 11 11
    AFTER should remain on screen 12 12 12 12 12
    AFTER should remain on screen 13 13 13 13 13
    AFTER should remain on screen 14 14 14 14 14
    AFTER should remain on screen 15 15 15 15 15
    AFTER should remain on screen 16 16 16 16 16
    AFTER should remain on screen 17 17 17 17 17
    AFTER should remain on screen 18 18 18 18 18
    AFTER should remain on screen 19 19 19 19 19
    AFTER should remain on screen 20 20 20 20 20
    AFTER should remain on screen 21 21 21 21 21
    AFTER should remain on screen 22 22 22 22 22
    AFTER should remain on screen 23 23 23 23 23
    and here is example output from iTerm:
    BEFORE should remain on screen 1 1 1 1 1
    BEFORE should remain on screen 2 2 2 2 2
    BEFORE should remain on screen 3 3 3 3 3
    AFTER should remain on screen 4 4 4 4 4
    AFTER should remain on screen 5 5 5 5 5
    AFTER should remain on screen 6 6 6 6 6
    AFTER should remain on screen 7 7 7 7 7
    AFTER should remain on screen 8 8 8 8 8
    AFTER should remain on screen 9 9 9 9 9
    AFTER should remain on screen 10 10 10 10 10
    AFTER should remain on screen 11 11 11 11 11
    AFTER should remain on screen 12 12 12 12 12
    AFTER should remain on screen 13 13 13 13 13
    AFTER should remain on screen 14 14 14 14 14
    AFTER should remain on screen 15 15 15 15 15
    AFTER should remain on screen 16 16 16 16 16
    AFTER should remain on screen 17 17 17 17 17
    AFTER should remain on screen 18 18 18 18 18
    AFTER should remain on screen 19 19 19 19 19
    AFTER should remain on screen 20 20 20 20 20
    AFTER should remain on screen 21 21 21 21 21
    AFTER should remain on screen 22 22 22 22 22
    AFTER should remain on screen 23 23 23 23 23

  • Strange problem with AIX server and windows clients

    I am having a real bizzare problem with WLS 7.0.1 running on AIX 5.1 and
    clients on windows. We have J2SE Swing application as a client.
    If the client is w2k or XP, the first client gets good response. If I start
    another client the second client is horribly slow (2 sec vs 16 sec). Even if
    I kill the first client the second client continues to be slow. If I have 2
    clients open together, the first one continues giving 2 sec response while
    the second one continues with 16 sec. For that matter if I start another
    client after shutting down first one I get slow (16 sec) response.
    If the client is NT client I always get good and consistent response from
    the server. Irrespective of how many client I have on the NT machine, I keep
    getting good response. NT and W2K laptops are seating right next to each
    other on the same n/w and infact the NT is a much slower and lessor memory
    machine than W2K.
    We did similar tests keeping server on Solaris or NT server or W2K server,
    and the clients "behave" normally i.e I get consistent repsponse time (it
    may be slow or fast, but it is consistent and is consistent b/w NT and W2K).
    We even tried putting my laptop on the same network as the AIX server, but
    it did not help. Unfortunately some of our clients will be using AIX and
    W2K.
    HELP!!!!

    "Cameron Purdy" <[email protected]> wrote in message
    news:[email protected]..
    Sounds like a reverse DNS lookup or similar network timeout.Thanks for the suggestion, but then why would the first client on w2k or XP
    get a better performance and the subsequent clients get worse performance?
    >
    Peace,
    Cameron Purdy
    Tangosol, Inc.
    http://www.tangosol.com/coherence.jsp
    Tangosol Coherence: Clustered Replicated Cache for Weblogic
    "vinay moharil" <[email protected]> wrote in message
    news:[email protected]..
    I am having a real bizzare problem with WLS 7.0.1 running on AIX 5.1 and
    clients on windows. We have J2SE Swing application as a client.
    If the client is w2k or XP, the first client gets good response. If Istart
    another client the second client is horribly slow (2 sec vs 16 sec).
    Even
    if
    I kill the first client the second client continues to be slow. If I
    have
    2
    clients open together, the first one continues giving 2 sec response
    while
    the second one continues with 16 sec. For that matter if I start another
    client after shutting down first one I get slow (16 sec) response.
    If the client is NT client I always get good and consistent responsefrom
    the server. Irrespective of how many client I have on the NT machine, Ikeep
    getting good response. NT and W2K laptops are seating right next to each
    other on the same n/w and infact the NT is a much slower and lessor
    memory
    machine than W2K.
    We did similar tests keeping server on Solaris or NT server or W2Kserver,
    and the clients "behave" normally i.e I get consistent repsponse time(it
    may be slow or fast, but it is consistent and is consistent b/w NT andW2K).
    We even tried putting my laptop on the same network as the AIX server,
    but
    it did not help. Unfortunately some of our clients will be using AIX and
    W2K.
    HELP!!!!

  • Problem with refresh of snapshot

    I am facing one problem with refresh of a snapshot. In the front end (developed in D2K) there is a PL/SQL code written which loops through user_snapshots and refreshes each snapshots one by one.
    With one particular snapshot its giving the error. I traced the session and found the problematic snapshot. I tried to refresh the same snapshot with some other user with DBA role granted to it and its working fine.
    Now I logged in to SQL Plus with the user Z0000 ( This is the user with which the application user logs in to the application) and tried to rerfresh the snapshot. Its giving me ORA-03113 end-of-file on communication channel. Then I granted DBA role to user Z000 and then tried to refresh its again giving the same error.
    I tried with many different users and its working fine.
    Any ideas where could be the problem.
    Thanks
    Sidhu
    Database is 10gR2 on AIX 5.3
    Message was edited by:
    Sidhu

    Hi,
    did you try to do it locally?
    Maybe a possible problem on the network.
    This issue remembers me a bug on older versions.
    It is strange on a 10.2
    Acr

  • Problem with the Enterprise Manager

    Hi!
    I have a problem with the webbased EM (Port 1811). After restarting emctl I don't have any diagram (e.g. for the cpu usage) in the EM. It seems as if there is no picture...
    Are there any services which collect these information from AIX?
    Any ideas?

    Hi!
    I have a problem with the webbased EM (Port 1811). After restarting emctl I don't have any diagram (e.g. for the cpu usage) in the EM. It seems as if there is no picture...
    Are there any services which collect these information from AIX?
    Any ideas?

  • Problem with:  select 'c' as X from dual

    Problem with 'select 'c' as X from dual'
    I get 2 different results when I execute the above with SQLPlus (or java) depending on the instance I am connected to. For one instance the result is a single character and for the other the character is padded with blanks to 32 chars in the SQLPlus window (and java). Does anyone know what database setting causes this to happen? Is it a version issue ?
    Test #1: Oracle 9.2.0.6 - SQLPlus result is padded with blanks
    SQL*Plus: Release 9.2.0.1.0 - Production on Mon Dec 10 09:27:58 2007
    Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
    Connected to:
    Oracle9i Enterprise Edition Release 9.2.0.6.0 - 64bit Production
    With the Partitioning option
    JServer Release 9.2.0.6.0 - Production
    SQL> select 'c' as X from dual;
    X
    c
    SQL>
    Test #2 Oracle 9.2.0.1 SQLPlus result is a single character.
    SQL*Plus: Release 9.2.0.1.0 - Production on Mon Dec 10 09:29:27 2007
    Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
    Connected to:
    Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.1.0 - Production
    SQL> select 'c' as X from dual;
    X
    c
    SQL>

    Using 9.2.0.6 On AIX 5.2 I get the single byte result:
    UT1 > select 'c' as X from dual;
    X
    c
    If the databases are on different Oracle Homes you may want to check the sqlplus global logon files for any set commands.
    If you executed the two sql statements from different OS directories you may also want to check your sqlpath for sqlplus .logon files.
    Try issueing clear columns and repeating the statement. Are the results the same?
    HTH -- Mark D Powell --

  • Problem with Pro*C reading BLOB field from Oracle 10g

    Hello Experts,
    We have a Pro*c application which is reading the BLOB data fields (a PNG image file) from Oracle data base. It holds the BLOB fields returned from the SQL query into a Unsigned Char structure in Pro*C. The program used work fine on AIX 32 – bit 4.3 and Oracle 8.1 environment.
    Recently, we have upgraded the environment to AIX 64-bit 5.3 and Oracle 10g.Since after the Pro*c program has problem in reading the Blob filed.
    Below is the query we are trying to execute –
    EXEC SQL
    SELECT
    signtre_image, image_file_name_ext
    INTO
    :msipLocalImage INDICATOR :msipLocalImage_i,
    :file_name_ext INDICATOR :file_name_ext_i
    FROM
    dcs_sign
    WHERE
    signtre_nbr = :signtre_nbr;
    Here signtre_image is the BLOB fields and msipLocalImage is a Pro*C structure define as below –
    typedef struct tagSignImage
    long len; /* Image length */
    unsigned char img[1]; /* Pointer to first byte. */
    } MOTS_SIGN_IMAGE;
    The quesry does not give any error or exception message in the Pro*C , program just stops at the point of executing the quesry..When we run the query commenting the BLOB filed it works fine. Also, the query runs good when we run it in the Oracle editor.
    There seems to be problem with the way we are reading the BLOB field in the new Oracle 10g enviromet.
    Does any body have any idea what’s wrong with this query? We really need it to work.
    Any Help will be greatly appreciated.
    Thanks,
    - Rajan Yadav

    Thanks a ton for your response.
    We made the necessary changes as suggested by you.This time we got another flavour of error - SQL Error Code - Inconsistent error while reading BLOB.
    Another thing we noticed is that the data field which we are trying to read is defined as LONG RAW instead of a BLOB in data base.
    Are these two things related in any sense or is there anything else which is causing the error.
    Once again Thanks for your help.
    - Rajan Yadav

  • Problem with C++ parser V2

    Hi,
    I encountered some problems with C++ XML Parser on NT (0acle 8.1.7).
    I can't use the function print on a Node
    => error LNK2001: unresolved external symbol "public: void __thiscall Node::print(unsigned char *,unsigned int,unsigned int,unsigned int)" (?print@Node@@QAEXPAEIII@Z)
    is this function exported ??
    I have not this problhme on Unix !
    (to work around on NT, i use the printBuffer function)
    Thanks,
    null

    Do you know when this future release will be available for NT, AIX and Compaq ?
    null

  • Problems with WEBUTIL_CORE on OAS 10.1.2 (CLIENT_IMAGE.READ_IMAGE_FILE)

    Hello,
    I get a problem with webutil 106 on Application Server 10.1.2.0.2 (RedHat 4)
    Some functions raise errors as :
    oracle.forms.net.ConnectionException: Abandon de la session Forms <839> : communication avec le processus runtime impossible.
    at oracle.forms.net.ConnectionException.createConnectionException(Unknown Source)
    at oracle.forms.net.HTTPNStream.getResponse(Unknown Source)
    at oracle.forms.net.HTTPNStream.doFlush(Unknown Source)
    at oracle.forms.net.HTTPNStream.flush(Unknown Source)
    at java.io.DataOutputStream.flush(Unknown Source)
    at oracle.forms.net.StreamMessageWriter.run(Unknown Source)
    For testing, I use the demo form WU_TEST_106 and I encounter this problem with :
    CLIENT_IMAGE.READ_IMAGE_FILE
    I get another problem with SHOWBEANS(FALSE) that doesn't terminate (showbeans(true) works fine)
    I've tried others Webutil functions that works fine
    I've another platform with same release of Webutil / OAS 10.1.2 / Redhat4 which works fine (the major difference is that OAS was installed with portal in this last platform).
    I've made those test with same client and same database (10g)
    Any ideas ?

    Seems to be a bug. That was the response from Oracle support (Metalink)
    Response:
    Your issue seems to be related to bug 5594702 - Abstract: EJB30 ENTITY BEAN WITH @ID AND @COLUMN ANNOTATION FAILS TO DEPLOY ON AIX.
    There is an issue with the IBM JDK/JRE 1.5's processing of annotations.
    Links:
    http://www.theserverside.com/discussions/thread.tss?thread_id=37764
    http://www-128.ibm.com/developerworks/forums/dw_thread.jsp?forum=367&thread=112543&cat=10
    When processing annotations it returns boolean values as false.
    Work-around:
    Fully specify the @Column annotation's boolean values. If insertable and updatable are set to false (which will happen due to this bug) then TopLink sets the PK
    mapping to read-only and the exception seen is expected.
    Note: nullable attribute of the @Colmun is not used in the EJB3/JPA preview of 10.1.3.0 If the customer MUST override the default column name then they should use:
    @Column(name="column-name", insertable=true, updatable=true)
    If they do not wish to override the default column name then simply do not use an @Column annotation.
    It can be deleted or commented out in the JDev generated code.
    There are two reported annotation processing issues with the AIX JVM. One was fixed in SR1 and the other is fixed
    in SR3 (due out Oc 11 - today). Upgrading to these more recent JVM releases may also address this issue.
    RECOMMENDED SOLUTIONS:
    1. Upgrade the IBM AIX JVM to SR3.
    OR
    2. Fix all generated @Column annotations as described above

  • The problem with Complex Job Manager in Business Connector.

    Hi,
    I have a problem with the service "Complex Job Manager" in Business Connector.
    Sometimes this service hangs and a minus value (such as -83452 sec) appears in the column "Next run".
    What can I improve?
    I have BC ver. 4.7 with CoreFix 9, Java ver. 1.3.1 (46.0), system AIX.
    Please help me.
    Thanks,
    Robert

    Sorry, Raja.
    I saw many questions about Business Connector in this category (Process Integration) and I thought that is a right place for my question.
    In your opinion, where is a better place for my question?
    Regards,
    Robert

  • Problem with listener process

    Hi all,
    First, happy new year for everybody.
    I'm under Linux and i have a problem with a listener process in Oracle 10g 10.1.0.3.
    From time to time, my listener process hang-up and it becomes impossible to obtain a Oracle connection.
    With unix 'ps' command, i can see strange process.
    # ps auxw | grep lsn
    oracle 27728 0.0 0.1 37100 4760 ? S Dec23 0:02 /u01/app/oracle/product/10.1.0/db_1/bin/tnslsnr LISTENER -inherit
    oracle 17161 0.0 0.1 37100 4760 ? S Dec25 0:00 /u01/app/oracle/product/10.1.0/db_1/bin/tnslsnr LISTENER -inherit
    oracle 18134 0.0 0.1 18688 5892 ? S Dec25 0:00 /u01/app/oracle/product/10.1.0/db_1/perl/bin/perl /u01/app/oracle/product/10.1.0/db_1/sysman/admin/scripts/lsnr_log_status.pl
    oracle 18145 0.0 0.0 2136 908 ? S Dec25 0:00 sh -c /u01/app/oracle/product/10.1.0/db_1/bin/lsnrctl > /tmp/0lHBosCvOe
    oracle 18146 0.0 0.0 16144 4064 ? S Dec25 0:00 /u01/app/oracle/product/10.1.0/db_1/bin/lsnrctl
    oracle 31474 0.0 0.1 17332 4588 ? S Dec25 0:00 /u01/app/oracle/product/10.1.0/db_1/perl/bin/perl /u01/app/oracle/product/10.1.0/db_1/sysman/admin/scripts/lsnrresp.pl
    oracle 309 0.0 0.1 18688 5892 ? S Dec25 0:00 /u01/app/oracle/product/10.1.0/db_1/perl/bin/perl /u01/app/oracle/product/10.1.0/db_1/sysman/admin/scripts/lsnr_log_status.pl
    oracle 326 0.0 0.0 2128 904 ? S Dec25 0:00 sh -c /u01/app/oracle/product/10.1.0/db_1/bin/lsnrctl > /tmp/zlihqS914Z
    oracle 327 0.0 0.0 16148 4072 ? S Dec25 0:00 /u01/app/oracle/product/10.1.0/db_1/bin/lsnrctl
    oracle 752 0.0 0.0 2128 908 ? S Dec25 0:00 sh -c /u01/app/oracle/product/10.1.0/db_1/bin/lsnrctl > /tmp/K5geR0wcyN
    oracle 753 0.0 0.1 16160 4220 ? S Dec25 0:00 /u01/app/oracle/product/10.1.0/db_1/bin/lsnrctl
    oracle 4270 0.0 0.0 2120 908 ? S Dec25 0:00 sh -c /u01/app/oracle/product/10.1.0/db_1/bin/lsnrctl > /tmp/9ov0ZwbS5e
    oracle 4271 0.0 0.1 16156 4224 ? S Dec25 0:00 /u01/app/oracle/product/10.1.0/db_1/bin/lsnrctl
    oracle 9227 0.0 0.0 2132 908 ? S Dec25 0:00 sh -c /u01/app/oracle/product/10.1.0/db_1/bin/lsnrctl > /tmp/qv5iJttPbm
    oracle 9228 0.0 0.1 16168 4216 ? S Dec25 0:00 /u01/app/oracle/product/10.1.0/db_1/bin/lsnrctl
    ... etc ...
    root 9310 0.0 0.0 1612 472 pts/2 S 08:35 0:00 grep lsn
    If a stop and restart the listener, i don't have any more problem.
    I suspect OEM agent because each time i noted the problem, the agent was running .
    What occurs? Thanks for your help.

    Hi,
    we had exactly the same problem this morning with our listener. We don't run OEM, and the listener.log file didn't have any errors in it. The log shows new connections up to the point where the second process starts (we know this from date stamps on the processes) and the next thing that appears is the listener starting again (after I've killed both listener processes and started the listener again)
    log extract
    09-JUN-2006 09:50:53 * (CONNECT_DATA=(SID=orac10g)(CID=PROGRAM=C:\Program Files\Precedent Version 2\PFW2.exe)(HOST=05BLG297)(USER=pettsc))) * (ADDRESS=(PROTOCOL=tcp)(HOST=172.16.204.76)(PORT=1451)) * establish * orac10g * 0
    TNSLSNR for IBM/AIX RISC System/6000: Version 10.2.0.1.0 - Production on 09-JUN-2006 10:03:42
    Copyright (c) 1991, 2005, Oracle. All rights reserved.
    System parameter file is /oracle/product/10.2.0/network/admin/listener.ora
    Log messages written to /oracle/product/10.2.0/network/log/listener.log
    Trace information written to /oracle/product/10.2.0/network/trace/listener.trc
    Trace level is currently 0
    Started with pid=3178550
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=churchill.blg.co.uk)(PORT=1521)))
    According to the actual process - the secondary lsnr process's parent was the initial one. It's almost like the first process spawned the second one.
    We thought it might be one of the limits (we're running AIX 5) on the user running the process - but I suspect not as the same user is running the Oracle DB processes and they don't have any issues.
    Thoughts?
    Dave

  • Problem with starting JSPM

    Hi all,
    I have a problem with starting JSPM. We have just upgraded to SAP NWS 2004s SP11 SR2. We are in AIX server. So to execute JSPM, I log on to AIX server using PUTTy with <SID>adm. I go to /usr/sap/<SID>/DVEBMGS00/j2ee/JSPM and i execute the "go" program. But I have the following thing :
    Current log directory is /usr/sap/OWA/DVEBMGS00/j2ee/JSPM/log/log_2007_04_25_14_54_53.
    Waiting for SDTServer to connect on hostname froafbwod1/10.8.134.129 socket 6240 ...
    So what happend, I don't understand anything...Pls, someone can help me?
    Thanks for your reply...

    Hi,
    Hope this helps you - http://help.sap.com/saphelp_nw04s/helpdata/en/42/e7e7cb64ac3ee4e10000000a1553f7/content.htm
    JSPM: Better Know It Now Than Later
    JSPM does not start
    JSPM DIR_EPS_ROOT error during the execution of the JSPM_PROCESS phase
    Bye...

  • Problems with JApplet, jar-Archive, packages and IE5

    Hello!
    I have a problem with a JApplet and Internet Explorer 5. I made a jar archive of my classes. The classes are
    members of a package. The jar archive also contains images.
    The structure of the archive:
    com/mycomp/myapp/DemoApplication.class
    com/mycomp/myapp/DemoApplet.class
    <more classes>
    com/mycomp/myapp/images/hp_logo.gif
    com/mycomp/myapp/images/test.gif
    <more images>
    The archive is stored locally in a directory which contains also the html file.
    I used the sdk 1.3.1 to compile the classes.
    My problem: when I start the html file on NT with IE5, I get the error message below:
    I try to create a label containing an icon with:
    topLabel.setIcon(new javax.swing.ImageIcon(getClass().getResource("images"+fs+"hp_logo.gif")));It works on Sun with Netscape 4.67 and SDK 1.3.1 installed.
    Should I move the images directory inside the jar archive to another place or is the html code not correct?
    The error message:
    java.lang.NullPointerException
         at javax.swing.ImageIcon.<init>(Unknown Source)
         at com.mycomp.myapp.DemoApplication.initComponents(DemoApplication.java:158)
         at com.mycomp.myapp.DemoApplication.<init>(DemoApplication.java:55)
         at com.mycomp.myapp.DemoApplet.<init>(DemoApplet.java:24)
         at java.lang.Class.newInstance0(Native Method)
         at java.lang.Class.newInstance(Unknown Source)
         at sun.applet.AppletPanel.createApplet(Unknown Source)
         at sun.plugin.AppletViewer.createApplet(Unknown Source)
         at sun.applet.AppletPanel.runLoader(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)The html file:
    <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
    <html>
      <head>
        <title>DemoApplet</title>
      </head>
      <body>
    <BODY LINK="#0000ff" VLINK="#800080" BGCOLOR="#37a1a7">
          <h1>DemoApplet</h1>
          <!--"CONVERTED_APPLET"-->
    <!-- HTML CONVERTER -->
    <SCRIPT LANGUAGE="JavaScript"><!--
        var _info = navigator.userAgent; var _ns = false; var _ns6 = false;
        var _ie = (_info.indexOf("MSIE") > 0 && _info.indexOf("Win") > 0 && _info.indexOf("Windows 3.1") < 0);
    //--></SCRIPT>
    <COMMENT><SCRIPT LANGUAGE="JavaScript1.1"><!--
        var _ns = (navigator.appName.indexOf("Netscape") >= 0 && ((_info.indexOf("Win") > 0 && _info.indexOf("Win16") < 0 && java.lang.System.getProperty("os.version").indexOf("3.5") < 0) || (_info.indexOf("Sun") > 0) || (_info.indexOf("Linux") > 0) || (_info.indexOf("AIX") > 0) || (_info.indexOf("OS/2") > 0)));
        var _ns6 = ((_ns == true) && (_info.indexOf("Mozilla/5") >= 0));
    //--></SCRIPT></COMMENT>
    <SCRIPT LANGUAGE="JavaScript"><!--
        if (_ie == true) document.writeln('<OBJECT classid="clsid:CAFEEFAC-0013-0001-0000-ABCDEFFEDCBA" WIDTH = 695 HEIGHT = 525  codebase="http://java.sun.com/products/plugin/1.3.1/jinstall-131-win32.cab#Version=1,3,1,0"><NOEMBED><XMP>');
        else if (_ns == true && _ns6 == false) document.writeln('<EMBED type="application/x-java-applet;jpi-version=1.3.1"  CODE = com.mycomp.myapp.DemoApplet CODEBASE = "." ARCHIVE = "DemoApplet.jar,classes12.zip" WIDTH = 800 HEIGHT = 600  scriptable=false pluginspage="http://java.sun.com/products/plugin/1.3.1/plugin-install.html"><NOEMBED><XMP>');
    //--></SCRIPT>
    <APPLET  CODE = com.mycomp.myapp.DemoApplet CODEBASE = "." ARCHIVE = "DemoApplet.jar,classes12.zip" WIDTH = 695 HEIGHT = 525></XMP>
    <PARAM NAME = CODE VALUE = com.mycomp.myapp.DemoApplet >
    <PARAM NAME = CODEBASE VALUE = "." >
    <PARAM NAME = ARCHIVE VALUE = "DemoApplet.jar,classes12.zip" >
    <PARAM NAME="type" VALUE="application/x-java-applet;jpi-version=1.3.1">
    <PARAM NAME="scriptable" VALUE="false">
    </APPLET>
    </NOEMBED></EMBED></OBJECT>
    <!--
    <APPLET CODE = DemoApplet CODEBASE = "." ARCHIVE = "DemoApplet.jar,classes12.zip" WIDTH = 695 HEIGHT = 525>
    </APPLET>
    -->
    <!--"END_CONVERTED_APPLET"-->
      </body>
    </html>Thank you for your help!
    Gruesse,
    Torsten

    seems like it couldn't find the image file... try to give it the absolute path to the file first to see if this is the root of the problem... and then try to find alternative ways to not give it the absolute path...

  • GUI problem with UNIX

     

    Hi Vasundhara,
    Try grouping the widgets in to a panel.
    Thanks,
    Madhu
    -----Original Message-----
    From: vasundhara [mailto:[email protected]]
    Sent: Wednesday, April 25, 2001 9:15 AM
    To: [email protected]; Joseph Mirwald
    Subject: Re: (forte-users) GUI problem with UNIX
    Hi Joseph
    We are using Forte 3.0 M2 on Solaris 5.8 The problem is with the push
    buttons, After we grid the controls and they look intact in the NT
    environment, but when we open the same window in SOlaris the controls are
    far apart.Do you have any idea about this?
    Regards
    Vasundhara
    ----- Original Message -----
    From: Joseph Mirwald <mailto:[email protected]>
    To: vasundhara <mailto:[email protected]> ;
    [email protected] <mailto:[email protected]>
    Sent: Wednesday, April 25, 2001 10:13 AM
    Subject: Re: (forte-users) GUI problem with UNIX
    Hello vashundara,
    please say which Version of Forte and which kind/version your UNIX OS is.
    There are some problems on AIX V4.3.x (Motif 2.x) and older releasese of
    Forte (up to Forte 3.M.x) and so on and it is necessary to look what it is.
    Maybe it is possible for you to say which widgets are the problem.
    Thanks forward
    Joseph Mirwald
    At 15:25 23.04.01 +0530, vasundhara wrote:
    Hi
    We are facing a strange problem when we try to port our application from NT
    to UNIX. The problem is that the GUI doesnt come properly. As per my
    knowledge gridding all the controls on the GUI shouldnot create this
    problem, but inspite of this we are facing it. Did anyone comeacross this
    situation?
    Thanks in advance
    Regards
    Vasundhara N.C
    Wisor Telecom Pvt Ltd
    Bangalore
    India

Maybe you are looking for