Oc4j thread count under linux

hi all !
i have a memory problem on my as903 on linux and now i'm confused about why there are 18 oc4j threads started for my 5 deployed applications (not to mention the others for administration!??).
right now i wonder if there is a way to configure this thread count ?
anyone of you solved this problem ?
alois

OC4J 903 releases and later have a configurable thread-pool, where you can set the upper and lower bounds for the number of threads to use.
I don't know that this will be the cause of the memory problem you mention, but if you want to tune it, then see: http://otn.oracle.com/docs/products/ias/doc_library/903doc_otn/generic.903/a97677/advanced.htm#1011968
cheers
-steve-

Similar Messages

  • Thread dump under linux

    Hi John,
    My computer(celeron 2.2ghz ,1 GBRAM) is far too slow than turtle if creator is opened. I have changed memory setting but dint help. I am very frustrated, I takes ages to navigate or do anything.
    Could you please outline the steps to generate the thread dump under LINUX, I know u have posted them before but they are for windows.
    Any help will be greratly appreciated.
    Cheers
    kush

    Hi,
    Take a look at the message posted by John regarding the steps to generate the thread dump under linux in the following thread:
    http://swforum.sun.com/jive/thread.jspa?forumID=123&threadID=50464
    Thanks,
    RK

  • Reduce number of running thread under Linux

    Hello,
    How can reduce the number of running thread for coldfusion MX
    7.0.2 server under Linux (they are almost 30; )

    If you create a pool of any sort you will need a point where all requests for a resource from the pool must go via, and that piece of code could potentially become a bottle neck. But if you develop it well there will be a very small piece of code that is sychrnonized that will either put a request in a queue as there are no resources available, or it will provide the requested resource. As far as i am aware there is no safe way around this as you will have multiple threads requesting the resource.

  • High thread count on store.exe

    I understand that the mdb store process utilizes as much memory as is available.  My question is regarding the thread count on the process.  One of the three mailbox servers tends to have a higher thread count than the other two.  It
    usually ranges from 150 to 200 (while the other two are usually 130 to 150) but today it is a little over 300.  The rpc thread count on all the mailbox servers stays pretty low (60 or under) and the rpc thread count on the CAS servers usually
    hang out around 55-65, so that's all good.  All three mailbox servers also use VERY close to the same amount of memory all the time, so that doesn't seem to be making a difference.  I am just trying to determine why the thread count is noticably
    higher.  This server and one of other mailbox servers replicate the public folder database, and I can understand why that would account for some additional activity, but you would think the thread count would be higher on the other server with the public
    folder database as well, but it stays pretty low.  Hardware-wise these servers are all identical.  So is there something I can monitor in perf mon for instance?  I don't want to use experfwiz because that monitors everything under the sun and
    I need it a bit more centralized.  I have googled all over the place and the only thing I can find is that with newer versions of exchange this thread count ranges from 200-300 on heavy usage, and exch07 can handle up to 500 threads, so I can't even find
    which specific things to monitor that directly correlate with this issue.  So while I understand that it's not really too high, I would like to find out why it deviates from the norm if the other two servers are equal for all intents and purposes (same
    hardware, balanced DAG. etc).  I would like to mitigate any potential issues.  Thank you.

    Hi pchw,
    Thank you for your question.
    I am sorry that we could not find the specific things to monitor this issuer directly, because there are many reason which caused it. For example: virus, big size attachment in queue, hardware performance and so on. We could refer to the following steps
    to troubleshoot:
    Restart the service of “Microsoft Exchange transport”;
    Create a new database and move mailbox to new mailbox;
    We could do some disk health check if the load test is normal;
    Collect related application log and system log to
    [email protected] for our troubleshooting.
    We could run SDP on Exchange server and send it to
    [email protected] for our troubleshooting.
    http://blogs.msdn.com/b/askie/archive/2012/05/22/introduction-to-support-diagnostics-platform-sdp.aspx
    We could use tools  and logs to analysis if there are anything wrong or abnormal on Exchange server 2013. our bottle neck is disk IO latency, store.exe do require some CPU usage, but if our disk IO speed can keep in a normal range, the
    CPU usage will be smaller. Exchange is highly rely on disk IO performance because it need lots of IO operation regarding to transaction log and database file. If Disk IO has a high latency, I will definitely impact store.exe, if it`s getting seriously sometimes
    it may cause store.exe no response.        
    We could refer to the following link:
    https://technet.microsoft.com/en-us/library/ee832791(v=exchg.141).aspx
    If there are any questions regarding this issue, please be free to let me know. 
    Best Regard,
    Jim

  • ARIAL FONT IN REPORTS(WINDOWS), NOT SHOWN CORRECTLY UNDER LINUX

    Our Reports are developed under Windows (Report Builder 9.0.4.0.33 and Windows 2000/Windows XP) and generated under Linux (IAS 10.1.2.0.2 with Red Hat Advanced Server). The Report Output is a PDF, that will be downloaded by the user with WEB.SHOW_DOCUMENT. This works fine, but fonts are not shown correctly in the PDF, especially ARIAL, which is the font we use.
    I have run the Fontsolution Configuration Script from Metalink, but we still have a problem.
    When you look at the font.pdf, wich is the testreport from fontsolutions, some sizes and styles of Arial are printed correctly others not.
    Arial 8 is ok, but Arial 10 and Arial 12 are something like Times New Roman.
    Arial 12 Bolded is correct, but Arial 12 italic and Arial 12 bold italic are also not
    the Arial Font.
    How can we correct this problem?
    Regards
    Udo
    These are the files changed by Fontsolution Configuration Script:
    uifont.ali
    # uifont.ali provided in fontsolutions.tar for developer 9.0.2
    # $Header: uifont.ali@@/main/22 \
    # Checked in on Tue Jan 8 15:32:42 PST 2002 by idc \
    # Copyright (c) 1999, 2002 by Oracle Corporation. All Rights Reserved. \
    # $
    # $Revision: /main/22 $
    # Copyright (c) Oracle Corporation 1994, 2002.
    # All Rights Reserved.
    # DESCRIPTION:
    # Each line is of the form:
    # <Face>.<Size>.<Style>.<Weight>.<Width>.<CharSet> = \
    # <Face>.<Size>.<Style>.<Weight>.<Width>.<CharSet>
    # The <Face> must be the name (string/identifier) of a font face. The
    # <Style>, <Weight>, <Width>, and <CharSet> may either be a numeric
    # value or a predefined identifier/string. For example, both US7ASCII
    # and 1 are valid <CharSet> values, and refer to the same character set.
    # The <Size> dimension must be an explicit size, in points.
    # The following is a list of recognized names and their numeric
    # equivalents:
    # Styles Numeric value
    # Plain 0
    # Italic 1
    # Oblique 2
    # Underline 4
    # Outline 8
    # Shadow 16
    # Inverted 32
    # Overstrike 64
    # Blink 128
    # Weights Numeric value
    # Ultralight 1
    # Extralight 2
    # Light 3
    # Demilight 4
    # Medium 5
    # Demibold 6
    # Bold 7
    # Extrabold 8
    # Ultrabold 9
    # Widths Numeric value
    # Ultradense 1
    # Extradense 2
    # Dense 3
    # Semidense 4
    # Normal 5
    # Semiexpand 6
    # Expand 7
    # Extraexpand 8
    # Ultraexpand 9
    # Styles may be combined; you can use plus ("+") to delimit parts of a
    # style. For example,
    # Arial..Italic+Overstrike = Helvetica.12.Italic.Bold
    # are equivalent, and either one will map any Arial that has both Italic
    # and Overstrike styles to a 12-point, bold, italic Helvetica font.
    # All strings are case-insensitive in mapping. Font faces are likely to
    # be case-sensitive on lookup, depending on the platform and surface, so
    # care should be taken with names used on the right-hand side; but they
    # will be mapped case-insensitively.
    # See your platform documentation for a list of all supported character
    # sets, and available fonts.
    # BUGS:
    # o Should accept a RHS ratio (e.g., "Helv = Arial.2/3").
    #===============================================================
    [ Global ] # Put mappings for all surfaces here.
    # Mapping from MS Windows
    #Arial = helvetica
    #"Courier New" = courier
    #"Times New Roman" = times
    #Modern = helvetica
    #"MS Sans Serif" = helvetica
    #"MS Serif" = times
    #"Small Fonts" = helvetica
    "Sadvocra" = helvetica..Oblique.Medium
    "sAdC128d" = helvetica..Plain.Medium
    "CarolinaBar-B39-25F2" = helvetica...Bold
    #"IDAutomationSMICR" = helvetica
    # Mapping from Macintosh
    #"New Century Schlbk" = "new century schoolbook"
    #"New York" = times
    #geneva = helvetica
    #===============================================================
    [ Printer ] # Put mappings for all printers here.
    #===============================================================
    [ Printer:PostScript1 ] # Put mappings for PostScript level 1 printers here.
    # Sample Kanji font mappings
    ...UltraLight..JEUC = "Ryumin-Light-83pv-RKSJ-H"...Light..JEUC
    ...UltraLight..SJIS = "Ryumin-Light-83pv-RKSJ-H"...Light..SJIS
    ...ExtraLight..JEUC = "Ryumin-Light-83pv-RKSJ-H"...Light..JEUC
    ...ExtraLight..SJIS = "Ryumin-Light-83pv-RKSJ-H"...Light..SJIS
    ...Light..JEUC = "Ryumin-Light-83pv-RKSJ-H"...Light..JEUC
    ...Light..SJIS = "Ryumin-Light-83pv-RKSJ-H"...Light..SJIS
    ...DemiLight..JEUC = "Ryumin-Light-83pv-RKSJ-H"...Light..JEUC
    ...DemiLight..SJIS = "Ryumin-Light-83pv-RKSJ-H"...Light..SJIS
    .....JEUC = "GothicBBB-Medium-83pv-RKSJ-H"...Medium..JEUC
    .....SJIS = "GothicBBB-Medium-83pv-RKSJ-H"...Medium..SJIS
    # Mapping from MS Windows
    #Roman = palatino
    #Script = "itc zapf chancery"
    #FixedSys = courier
    #System = helvetica
    # Mapping from Macintosh
    #"Avant Garde" = "itc avant garde gothic"
    # Mapping from Motif display
    #fixed = courier
    #clean = times
    #lucidatypewriter = courier
    #lucidabright = times
    #Arial = helvetica
    #"Courier New" = courier
    #"Times New Roman" = times
    # MICR font
    #helvetica=IDAutomationSMICR
    #===============================================================
    [ Printer:PostScript2 ] # Put mappings for PostScript level 2 printers here.
    # Sample Kanji font mappings
    ...UltraLight..JEUC = "Ryumin-Light-83pv-RKSJ-H"...Light..JEUC
    ...UltraLight..SJIS = "Ryumin-Light-83pv-RKSJ-H"...Light..SJIS
    ...ExtraLight..JEUC = "Ryumin-Light-83pv-RKSJ-H"...Light..JEUC
    ...ExtraLight..SJIS = "Ryumin-Light-83pv-RKSJ-H"...Light..SJIS
    ...Light..JEUC = "Ryumin-Light-83pv-RKSJ-H"...Light..JEUC
    ...Light..SJIS = "Ryumin-Light-83pv-RKSJ-H"...Light..SJIS
    ...DemiLight..JEUC = "Ryumin-Light-83pv-RKSJ-H"...Light..JEUC
    ...DemiLight..SJIS = "Ryumin-Light-83pv-RKSJ-H"...Light..SJIS
    .....JEUC = "GothicBBB-Medium-83pv-RKSJ-H"...Medium..JEUC
    .....SJIS = "GothicBBB-Medium-83pv-RKSJ-H"...Medium..SJIS
    # Mapping from MS Windows
    #Roman = palatino
    #Script = "itc zapf chancery"
    #FixedSys = courier
    #System = helvetica
    # Mapping from Macintosh
    #"Avant Garde" = "itc avant garde gothic"
    # Mapping from Motif display
    #fixed = courier
    #clean = times
    #lucidatypewriter = courier
    #lucidabright = times
    #===============================================================
    [ Printer:PCL5 ] # Put mappings for PCL 5 printers here.
    helvetica = univers
    times = "cg times"
    clean = "antique olv"
    fixed = courier
    lucida = univers
    lucidabright = "cg times"
    lucidatypewriter = courier
    "new century schoolbook" = univers
    terminal = "line printer"
    #===============================================================
    [ Display ] # Put mappings for all display surfaces here.
    #===============================================================
    [ Display:Motif ] # Put mappings for Motif displays here
    # Fix for bug no 778937 DO NOT MOVE!
    Roman.....sjis = lucida.....jeuc
    Script.....sjis = lucidabright.....jeuc
    FixedSys.....sjis = fixed.....jeuc
    System.....sjis = lucida.....jeuc
    .....sjis = .....jeuc
    # Mapping from MS Windows
    Roman = lucida
    Script = lucidabright
    FixedSys = fixed
    System = lucida
    # Mapping from Macintosh
    "Avant Garde" = helvetica
    "Bookman" = times
    #===============================================================
    [ Display:CM ] # Put mappings for all CM displays here.
    # These are DEC-specific, and may need localization
    *..Blink = Blinking
    *..Inverted+Underline.Bold = ReverseBoldUnderline
    *..Inverted+Underline. = UnderlineReverse
    *..Underline.Bold = UnderlineBold
    *..Inverted.Bold = ReverseBold
    *...Bold = Bold
    *..Underline = Underline
    *..Inverted = Reverse
    * = Plain # The font of last resort
    # Oracle Report PDF sections
    # Three new sections have been added:
    # [ PDF ] - Used for font aliasing and Multibyte language support
    # [ PDF:Embed ] - Used for Type 1 font embedding
    # [ PDF:Subset ] - Used for True Type Font subsetting
    [ PDF ]
    # This example shows how to rename helvetica font to Courier font
    # helvetica = Courier
    # You can Alias specific styles of font as below
    # helvetica.12..Bold.. = Courier.14....
    # "Lucida Bright".12..Bold = "New Century Schoolbook"
    # Support for Far Eastern Languages:
    # PDF section can be additionally used to enable Multibyte language support
    # built into Reports. To use this feature with Adobe (r) Acrobat (c), you
    # need to install the Asian font pack available online at the Adobe web site.
    # .....SJIS = "HeiseiKakuGo-W5-Acro"
    # A Japanese report run with Shift-JIS character set is replaced to
    # HeiseiKakuGo-W5-Acro CID font.
    arial = Arial
    "arial" =Arial
    "arial narrow" = "Arial Narrow"
    "courier new" = "Courier New"
    tahoma = Tahoma
    "microsoft sans serif" = "Microsoft Sans Serif"
    "ms sans serif" = "MS Sans Serif"
    "times new roman" = "Times New Roman"
    [ PDF:Embed ]
    # This example shows how to embed Type 1 helvetica font into the PDF file:
    # helvetica = "helvetica.afm helvetica.pfa"
    # You need to specify the .afm file before the .pfa file.
    # The font files must exist in one of the folders specified in REPORTS_PATH.
    [ PDF:Subset ]
    # This example shows how to subset Arial True Type font into the PDF file:
    # helvetica = "Arial.ttf"
    # The True Type font files must exist in any one of the folders specified in
    # REPORTS_PATH.
    helvetica..Oblique.Medium = "Sadvocra.ttf"
    helvetica..Plain.Medium = "Sadc128d.ttf"
    helvetica...Bold = "CarolinaBar-B39-25F2-Normal.ttf"
    # NOTES ON PRECEDENCE OF PDF SECTIONS:
    # If you have entries for a same font in many PDF sections, then Font
    # Aliasing entry will take precedence over Font Embedding entry. Entries
    # in Font Embedding will take precedence over the entries in Font Subsetting
    # section.
    # Generic entries for a font must follow more specific entries for the same
    # font. For instance, if you want to subset helvetica Plain, helvetica Bold,
    # helvetica Italic and helvetica Bold-Italic fonts, your entries must be:
    # [ PDF:Subset ]
    # helvetica..Italic.Bold.. = "Arialbi.ttf"
    # helvetica...Bold.. = "Arialb.ttf"
    # helvetica..Italic... = "Ariali.ttf"
    # helvetica..... = "Arial.ttf"
    # If helvetica..... entry appears in the top of the list, all the styles of
    # helvetica font in the layout will be subset as helvetica Plain font.
    uiprint.txt
    # This is the printer configuration file.
    # The format for entries in this file is:
    # <OSName>:<Type>:<Version>:<Long Name>:<Description File>:
    # The first field is the name of the printer. It is the name you give
    # to lpq.
    # The second field is the type of driver to be used for the printer.
    # Currently, "PostScript" and "ASCII" are the only types of driver for
    # printers supported for now. But in future we may be supporting
    # drivers for other printer types.
    # The third field is the version of the type of printer driver. It's 1
    # or 2 for all PostScript printers; or 1 for ASCII printers.
    # The fourth field is a long description of the printer. This will be
    # presented to the user in the "Choose Printer" dialog window.
    # The fifth field is the printer description file to be used. For
    # PostScript printers it is the PPD file of the printer. (This field is
    # currently unused for ASCII printers.)
    # You can use default.ppd for the description file if you don't have a
    # PPD file for the printer, but it's best to use the correct PPD file
    # for the printer.
    # You must fill in at least the first two fields (printer name and
    # type). If the version is empty, it defaults to "1"; if the long name
    # or description are empty, they will default to empty strings. A
    # version of 1 or an empty long name is fine, but, for PostScript
    # printers, you must fill in the description file name.
    # You don't have to update this file to use any printer. The printer
    # chooser interface let's you select a printer and driver at run time,
    # as well as associate a printer description file to the printer. You
    # should list all printers accessible to users here, however, to
    # simplify selecting a printer.
    # The first entry in this file will be used as the default printer, if
    # no printer was selected in the operating system. (For Unix, the
    # following environment variables will be used in turn to get the
    # default printer's name:
    # TK2_PRINTER
    # ORACLE_PRINTER
    # PRINTER
    # For other platforms, see the Installation and User's Guide for your OS
    # for information on setting the default printer.)
    # WARNING: Do not define multiple entries for the same printer by the
    # same name. Selecting a printer with multiple entries will always result
    # in the first entry being selected. Instead, see if your OS allows you
    # to create an alias for the printer, and use an alias for the second type.
    # The following are examples; replace them with printers accessible from
    # this machine.
    # hqunx15:PostScript:1:The really slow printer on 12th floor:dcln03r1.ppd:
    # hqdev2_pos:PostScript:1:The fast ScriptPrinter in 1281:dclps321.ppd:
    # hqunx106:ASCII:1:LNO printer in the 11th floor printer room:none:
    # hqdev9:PostScript:1:Bogus printer for Reports ASCII QA:default.ppd:
    # hqunx121:PostScript:1:APO printer in 500OP for NLS QA:ok800lt1.ppd:
    # --- Note that the following two printers are aliases for the same
    # --- physical printer, with different names for different types:
    # tk2hp4m:PCL:5:HP printer in 771 for testing PCL:ui4.hpd:
    # tk2bw1ps:PostScript:1:HP printer in 771 for testing PS:hp4mp6_1.ppd:
    # Not A Printer:ASCII:1:Configure your uiprint.txt file:none:
    fontprinter:PostScript:1:printer for fonting fixes:default.ppd:
    datap462.ppd
    *PPD-Adobe: "4.0"
    *% Adobe Systems PostScript(R) Printer Description File
    *% Copyright 1987-1992 Adobe Systems Incorporated.
    *% All Rights Reserved.
    *% Permission is granted for redistribution of this file as
    *% long as this copyright notice is intact and the contents
    *% of the file is not altered in any way from its original form.
    *% End of Copyright statement
    *FormatVersion: "4.0"
    *FileVersion: "3.1"
    *PCFileName: "DATAP462.PPD"
    *LanguageVersion: English
    *Product: "(Dataproducts LZR 2665)"
    *PSVersion: "(46.2) 1"
    *ModelName: "Dataproducts LZR-2665"
    *NickName: "Dataproducts LZR-2665 v46.2"
    *% ==== Options and Constraints =====
    *OpenGroup: InstallableOptions/Options Installed
    OpenUI Option1/Optional Lower Tray: Boolean
    *DefaultOption1: False
    *Option1 True/Installed: ""
    *Option1 False/Not Installed: ""
    CloseUI: Option1
    *CloseGroup: InstallableOptions
    UIConstraints: Option1 False *InputSlot Lower
    *% General Information and Defaults ===============
    *ColorDevice: False
    *DefaultColorSpace: Gray
    *FreeVM: "178744"
    *LanguageLevel: "1"
    *VariablePaperSize: False
    *FileSystem: False
    *Throughput: "26"
    *Password: "0"
    *ExitServer: "
    count 0 eq {  % is the password on the stack?
    true
    dup % potential password
    statusdict /checkpassword get exec not
    } ifelse
    {  %  if no password or not valid
    (WARNING : Cannot perform the exitserver command.) =
    (Password supplied is not valid.) =
    (Please contact the author of this software.) = flush
    quit
    } if
    serverdict /exitserver get exec
    *End
    *Reset: "
    count 0 eq {  % is the password on the stack?
    true
    dup % potential password
    statusdict /checkpassword get exec not
    } ifelse
    {  %  if no password or not valid
    (WARNING : Cannot reset printer.) =
    (Password supplied is not valid.) =
    (Please contact the author of this software.) = flush
    quit
    } if
    serverdict /exitserver get exec
    systemdict /quit get exec
    (WARNING : Printer Reset Failed.) = flush
    *End
    *DefaultResolution: 300dpi
    *?Resolution: "
    save
    initgraphics
    0 0 moveto currentpoint matrix defaultmatrix transform
    0 72 lineto currentpoint matrix defaultmatrix transform
    3 -1 roll sub dup mul
    3 1 roll exch sub dup mul
    add sqrt round cvi
    ( ) cvs print (dpi) = flush
    restore
    *End
    *% Halftone Information ===============
    *ScreenFreq: "50.0"
    *ScreenAngle: "54.0"
    *DefaultScreenProc: Dot
    *ScreenProc Dot: " {dup mul exch dup mul add sqrt 1 exch sub } "
    *ScreenProc Line: "{ pop }"
    *ScreenProc Ellipse: "
    { dup 5 mul 8 div mul exch dup mul exch add sqrt 1 exch sub }"
    *End
    *DefaultTransfer: Null
    *Transfer Null: "{ }"
    *Transfer Null.Inverse: "{ 1 exch sub }"
    *% Paper Handling ===================
    *% Use these entries to set paper size most of the time, unless there is
    *% specific reason to use PageRegion.
    *OpenUI *PageSize: PickOne
    *OrderDependency: 30 AnySetup *PageSize
    *DefaultPageSize: Letter
    *PageSize Letter: "statusdict /lettertray get exec letterR"
    *PageSize Letter.Transverse: "statusdict /lettertray get exec letter"
    *PageSize Legal: "statusdict /legaltray get exec"
    *PageSize Ledger: "statusdict /ledgertray get exec"
    *PageSize Statement: "statusdict /statementtray get exec"
    *PageSize Tabloid: "statusdict /11x17tray get exec"
    *PageSize A3: "statusdict /a3tray get exec"
    *PageSize A4: "statusdict /a4tray get exec a4R"
    *PageSize A4.Transverse: "statusdict /a4tray get exec a4"
    *PageSize A5: "statusdict /a5tray get exec"
    *PageSize B4: "statusdict /b4tray get exec"
    *PageSize B5: "statusdict /b5tray get exec b5R"
    *PageSize B5.Transverse: "statusdict /b5tray get exec b5"
    *CloseUI: *PageSize
    *% These entries will set up the frame buffer. Usually used with manual feed.
    *OpenUI *PageRegion: PickOne
    *OrderDependency: 40 AnySetup *PageRegion
    *DefaultPageRegion: Letter
    *PageRegion Letter: "letterR"
    *PageRegion Letter.Transverse: "letter"
    *PageRegion Legal: "legal"
    *PageRegion Ledger: "ledger"
    *PageRegion Tabloid: "11x17"
    *PageRegion A3: "a3"
    *PageRegion A4: "a4R"
    *PageRegion A4.Transverse: "a4"
    *PageRegion A5: "a5"
    *PageRegion B4: "b4"
    *PageRegion B5: "b5R"
    *PageRegion B5.Transverse: "b5"
    *PageRegion Statement: "statement"
    *CloseUI: *PageRegion
    *% The following entries provide information about specific paper keywords.
    *DefaultImageableArea: Letter
    *ImageableArea Letter: "20 16 591 775 "
    *ImageableArea Letter.Transverse: "18 19 593 773 "
    *ImageableArea Legal: "18 19 593 990 "
    *ImageableArea Ledger: "18 16 1205 775 "
    *ImageableArea Tabloid: "16 19 775 1206 "
    *ImageableArea A3: "18 21 823 1170 "
    *ImageableArea A4: "18 18 576 823 "
    *ImageableArea A4.Transverse: "18 19 577 823 "
    *ImageableArea A5: "18 19 401 577 "
    *ImageableArea B4: "19 15 709 1017 "
    *ImageableArea B5: "20 19 495 709 "
    *ImageableArea B5.Transverse: "20 19 495 709 "
    *ImageableArea Statement: "22 19 374 594 "
    *?ImageableArea: "
    save
    /cvp {(                ) cvs print ( ) print } bind def
    /upperright {10000 mul floor 10000 div} bind def
    /lowerleft {10000 mul ceiling 10000 div} bind def
    newpath clippath pathbbox
    4 -2 roll exch 2 {lowerleft cvp} repeat
    exch 2 {upperright cvp} repeat flush
    restore
    *End
    *% These provide the physical dimensions of the paper (by keyword)
    *DefaultPaperDimension: Letter
    *PaperDimension Letter: "612 792"
    *PaperDimension Letter.Transverse: "612 792"
    *PaperDimension Legal: "612 1008"
    *PaperDimension Ledger: "1224 792"
    *PaperDimension Tabloid: "792 1224"
    *PaperDimension A3: "842 1191"
    *PaperDimension A4: "595 842"
    *PaperDimension A4.Transverse: "595 842"
    *PaperDimension A5: "420 595"
    *PaperDimension B4: "729 1032"
    *PaperDimension B5: "516 729"
    *PaperDimension B5.Transverse: "516 729"
    *PaperDimension Statement: "396 612"
    *RequiresPageRegion All: True
    *OpenUI *InputSlot: PickOne
    *OrderDependency: 20 AnySetup *InputSlot
    *DefaultInputSlot: Upper
    *InputSlot Upper: "0 statusdict /setpapertray get exec"
    *InputSlot Lower: "1 statusdict /setpapertray get exec"
    *?InputSlot: "
    save
    [ (Upper) (Lower) ] statusdict /papertray get exec
    (get exec) stopped ( pop pop (Unknown)} if = flush
    restore
    *End
    *CloseUI: *InputSlot
    *OpenUI *ManualFeed: Boolean
    *OrderDependency: 20 AnySetup *ManualFeed
    *DefaultManualFeed: False
    *ManualFeed True: "statusdict /manualfeed true put"
    *ManualFeed False: "statusdict /manualfeed false put"
    *?ManualFeed: "
    save
    statusdict /manualfeed get {(True)}{(False)}ifelse = flush
    restore
    *End
    *CloseUI: *ManualFeed
    *DefaultOutputOrder: Reverse
    *% Font Information =====================
    *% This datap462.ppd is provided by fontsolutions.tar
    *DefaultFont: Courier
    *Font ArialMT: Standard "(001.004)" Standard ROM
    *Font Arial-ItalicMT: Standard "(001.004)" Standard ROM
    *Font Arial-BoldMT: Standard "(001.004)" Standard ROM
    *Font Arial-BoldItalicMT: Standard "(001.004)" Standard ROM
    *Font ArialNarrow: Standard "(001.004)" Standard ROM
    *Font ArialNarrow-Italic: Standard "(001.004)" Standard ROM
    *Font ArialNarrow-Bold: Standard "(001.004)" Standard ROM
    *Font ArialNarrow-BoldItalic: Standard "(001.004)" Standard ROM
    *Font CourierNewMT: Standard "(001.004)" Standard ROM
    *Font CourierNew-ItalicMT: Standard "(001.004)" Standard ROM
    *Font CourierNew-BoldMT: Standard "(001.004)" Standard ROM
    *Font CourierNew-BoldItalicMT: Standard "(001.004)" Standard ROM
    *Font Courier: Standard "(001.004)" Standard ROM
    *Font Courier-Bold: Standard "(001.001)" Standard ROM
    *Font Courier-BoldOblique: Standard "(001.001)" Standard ROM
    *Font Courier-Oblique: Standard "(001.001)" Standard ROM
    *Font Helvetica: Standard "(001.001)" Standard ROM
    *Font Helvetica-Bold: Standard "(001.001)" Standard ROM
    *Font Helvetica-BoldOblique: Standard "(001.001)" Standard ROM
    *Font Helvetica-Oblique: Standard "(001.001)" Standard ROM
    *Font IDAutomationSMICR: Standard "(001.001)" Standard ROM
    *Font Symbol: Special "(001.001)" Special ROM
    *Font Tahoma: Standard "(001.001)" Standard ROM
    *Font Tahoma-Bold: Standard "(001.001)" Standard ROM
    *Font Times-Bold: Standard "(001.001)" Standard ROM
    *Font Times-BoldItalic: Standard "(001.001)" Standard ROM
    *Font Times-Italic: Standard "(001.001)" Standard ROM
    *Font Times-Roman: Standard "(001.001)" Standard ROM
    *Font TimesNewRomanMT: Standard "(001.001)" Standard ROM
    *Font TimesNewRoman-BoldMT: Standard "(001.001)" Standard ROM
    *Font TimesNewRoman-BoldItalicMT: Standard "(001.001)" Standard ROM
    *Font TimesNewRoman-ItalicMT: Standard "(001.001)" Standard ROM
    *?FontQuery: "
    save
    /str 100 string dup 0 (fonts/) putinterval def
    count 1 gt
    exch dup str 6 94 getinterval cvs
    (/) print print (:) print
    FontDirectory exch known
    {(Yes)}{(No)} ifelse =
    {exit} ifelse
    }bind loop
    (*) = flush
    restore
    *End
    *?FontList: "
    FontDirectory { pop == } bind forall flush
    (*) = flush
    *End
    *% Printer Messages (verbatim from printer):
    *Message: "%%[ exitserver: permanent state may be changed ]%%"
    *Message: "%%[ Flushing: rest of job (to end-of-file) will be ignored ]%%"
    *Message: "\FontName\ not found, using Courier"
    *% Status (format: %%[ status: <one of these> ]%% )
    *Status: "idle"
    *Status: "busy"
    *Status: "waiting"
    *Status: "printing"
    *Status: "warming up"
    *Status: "PrinterError: BD check"
    *Status: "PrinterError: Paper jam"
    *Status: "PrinterError: Replace toner bag"
    *Status: "PrinterError: Warming up"
    *Status: "PrinterError: Timing error"
    *Status: "PrinterError: Fuser check"
    *Status: "PrinterError: Cover opened"
    *Status: "PrinterError: Toner empty"
    *Status: "PrinterError: Empty & reset output bin(s)"
    *Status: "PrinterError: Sorter or jogger error"
    *Status: "PrinterError: Scanner check"
    *% Input Sources (format: %%[ status: <stat>; source: <one of these> ]%% )
    *Source: "serial9"
    *Source: "serial25"
    *Source: "AppleTalk"
    *Source: "Centronics"
    *% Printer Error (format: %%[ PrinterError: <one of these> ]%%)
    *PrinterError: "BD check"
    *PrinterError: "Paper jam"
    *PrinterError: "Replace toner bag"
    *PrinterError: "Warming up"
    *PrinterError: "Timing error"
    *PrinterError: "Fuser check"
    *PrinterError: "Cover opened"
    *PrinterError: "Toner empty"
    *PrinterError: "Empty & reset output bin(s)"
    *PrinterError: "Sorter or jogger error"
    *PrinterError: "Scanner check"
    *%DeviceAdjustMatrix: "[1 0 0 1 0 0]"
    *% Color Separation Information =====================
    *DefaultColorSep: ProcessBlack.60lpi.300dpi/60 lpi / 300 dpi
    *InkName: ProcessBlack/Process Black
    *InkName: CustomColor/Custom Color
    *InkName: ProcessCyan/Process Cyan
    *InkName: ProcessMagenta/Process Magenta
    *InkName: ProcessYellow/Process Yellow
    *% For 60 lpi / 300 dpi =====================================================
    *ColorSepScreenAngle ProcessBlack.60lpi.300dpi/60 lpi / 300 dpi: "45"
    *ColorSepScreenAngle CustomColor.60lpi.300dpi/60 lpi / 300 dpi: "45"
    *ColorSepScreenAngle ProcessCyan.60lpi.300dpi/60 lpi / 300 dpi: "15"
    *ColorSepScreenAngle ProcessMagenta.60lpi.300dpi/60 lpi / 300 dpi: "75"
    *ColorSepScreenAngle ProcessYellow.60lpi.300dpi/60 lpi / 300 dpi: "0"
    *ColorSepScreenFreq ProcessBlack.60lpi.300dpi/60 lpi / 300 dpi: "60"
    *ColorSepScreenFreq CustomColor.60lpi.300dpi/60 lpi / 300 dpi: "60"
    *ColorSepScreenFreq ProcessCyan.60lpi.300dpi/60 lpi / 300 dpi: "60"
    *ColorSepScreenFreq ProcessMagenta.60lpi.300dpi/60 lpi / 300 dpi: "60"
    *ColorSepScreenFreq ProcessYellow.60lpi.300dpi/60 lpi / 300 dpi: "60"
    *% For 53 lpi / 300 dpi =====================================================
    *ColorSepScreenAngle ProcessBlack.53lpi.300dpi/53 lpi / 300 dpi: "45.0"
    *ColorSepScreenAngle CustomColor.53lpi.300dpi/53 lpi / 300 dpi: "45.0"
    *ColorSepScreenAngle ProcessCyan.53lpi.300dpi/53 lpi / 300 dpi: "71.5651"
    *ColorSepScreenAngle ProcessMagenta.53lpi.300dpi/53 lpi / 300 dpi: "18.4349"
    *ColorSepScreenAngle ProcessYellow.53lpi.300dpi/53 lpi / 300 dpi: "0.0"
    *ColorSepScreenFreq ProcessBlack.53lpi.300dpi/53 lpi / 300 dpi: "53.033"
    *ColorSepScreenFreq CustomColor.53lpi.300dpi/53 lpi / 300 dpi: "53.033"
    *ColorSepScreenFreq ProcessCyan.53lpi.300dpi/53 lpi / 300 dpi: "47.4342"
    *ColorSepScreenFreq ProcessMagenta.53lpi.300dpi/53 lpi / 300 dpi: "47.4342"
    *ColorSepScreenFreq ProcessYellow.53lpi.300dpi/53 lpi / 300 dpi: "50.0"
    *% For "Dataproducts LZR 2665" version 46.2
    *% Produced by "GETapd.ps" version 2.0 edit 47
    *% Converted to meet 4.0 specification
    *% Last Edit Date: Sep 15 1992
    *% The byte count of this file should be exactly 011228 or 011572
    *% depending on the filesystem it resides in.
    *% end of PPD file for Dataproducts LZR 2665

    If you want to make platform independent use of fonts, you have to use the family, such as sans serif.
    Arial is owned by monotype (http://monotype.com/). You have to contact them if you wish to redistribute it with your application. They also might have a suitable version that renders nicely under linux.
    Pete

  • Failed to install enterprise manager under linux

    When I installed Oracle 10g(10.2.0.1) under linux, I got an error when running
    /ora01/db/oracle/product/10.2.0.1/bin/emca within oracle universal installer.
    The emConfig.log file shows such error:
    oracle.sysman.emcp.exception.EMConfigException: Invalid value null for parameter PORT
    at oracle.sysman.emcp.ParamsManager.checkParam(ParamsManager.java:2630)
    at oracle.sysman.emcp.EMDBPreConfig.checkConfigParams(EMDBPreConfig.java:1285)
    at oracle.sysman.emcp.EMDBPreConfig.checkParameters(EMDBPreConfig.java:1060)
    at oracle.sysman.emcp.EMDBPreConfig.invoke(EMDBPreConfig.java:174)
    at oracle.sysman.emcp.EMDBPreConfig.invoke(EMDBPreConfig.java:160)
    at oracle.sysman.emcp.EMConfig.perform(EMConfig.java:141)
    at oracle.sysman.assistants.util.em.EMConfiguration.run(EMConfiguration.java:426)
    at java.lang.Thread.run(Thread.java:534)
    So I have to run emca after the oracle installation. I am new to this tool. I modified both tnsnames.ora and listener.ora file to set port to 1521. And then I run emca -config all db,
    but now I cannot pass "entering the password for SYS user" (I already set SYS user's password to oracle, and it works when using sqlplus.) .
    I am totally confused. What should I run emca to set up the enterprise manager's website? Now I can use localhost:5560/isqlplus and localhost:5560/isqlplus/dba.
    Many thanks!!

    I just run emca as oracle instead of root, then the password got passed, but I got new errors:
    Aug 30, 2007 5:59:59 PM oracle.sysman.emcp.EMConfig perform
    SEVERE: Failed to allocate port(s) in the specified range(s) for the following process(es): JMS [5540-5559],RMI [5520-5539],Database Control [5500-5519],EM Agent [3938] | [1830-1849]
    What should I do? Is running emca -config all db necessary to get enterprise manager installed?

  • Too many resources used under Linux

    I have tested sun jvm under linux red-dat 6.2
    and 7.1 (listed by Sun as official platform supported)
    The JVM I test was from 1.3.0 to the 1.4.1
    I have written a simple application server that
    runs java application starting a new JVM.
    When the java application runs (with the -server or
    -hotspot option) I see that 10 java process are
    istantiated. (10 JVM)
    This is a real problem because for 4 users that runs 4
    applications there are 40 JVM running
    (each one allocates about 20 Mb of memory)
    and the system became very slow.
    With the -classic option the situation is better: only 1 JVM
    for application is started, (the application is the same, I
    have change only the -server option with -classic)
    but JVM seems to be less stable: I have a lot of segmentation
    fault errors. (with core dump)
    With the new distribution of Sun JVM (1.4.1) the -classic option
    is no longer supported.
    Does anyone knows if is there a way to have only one JVM
    for application? (-classic does not works well)
    Is there others JVM for linux more stable instead of the Sun one?
    PS: I have tested the same code under win/2000 using JVM 1.3.1_03
    and the -classic option. All goes well (the same application):
    I haver only 1 thread for application without jvm runtime error.
    Now my doubt is: does Sun belive in the Linux Word?
    JVM for Windows is much more stable!!!
    Thank you in advanced and best regards.

    I am assuming that you believe that there are 10 processes because that is what ps shows. However on Linux, each thread in a java program shows up in ps as a separate process. The memory for each "ps process" corresponding to a java thread is shared among all the threads of the JVM. Therefore if you see 10 processes with 20MB each you are not using 200MB, just 20.
    If you are running 4 JVMs then you would be using 40MB not 800 as shown in ps.
    I think Sun's JVM for linux is quite good (as I use it every day). If you need to run so many JVMs you should invest in more memory.
    BTW, How much memory is installed in your system?

  • Different behaviour of file vis under linux and microsoft

    I am porting software written under Windows labview to Linux Labview (6.1). When using the Open/Create/Replace vi in windows if I use a pattern of "*.abc" and enter "123" in the dialogue box a file called "123.abc" will be created which is what I would expect. The same operation under Linux will create a file called "123" without the extension. Is this normal and is there a way of making the linux version behave in the same way as the windows version?

    Sorry about the delay - vacation.
    There appears to be no check box under Linux to use native file dialogs although it does indeed exist under windows. In fact the linux version does use linux file dialogs by default. It seems that the only options are to force the windows version to behave like the the linux version - which is counter intuitive, or write a new file dialog vi for linux.

  • Exception in html parser under Linux

    Hi all,
    Following code is copied from Tech Tip 23Sep1999. I have compiled it and run it under Win98. It works fine for any uri. However, when I try to run it under Linux, it throws exceptions. I noticed that some web site can be parsered with the program in Linux but some can't. I wonder the different between those platforms. Anyone can tell me how to make the program works under Linux.
    Rgds,
    unplug
    configuration
    RedHat 7.1
    JDK1.3.1
    Failed: java GetLinks http://java.sun.com
    Worked: java GetLinks http://www.apache.org
    --begining of code
    import java.io.*;
    import java.net.*;
    import javax.swing.text.*;
    import javax.swing.text.html.*;
    class GetLinks {
    public static void main(String[] args) {
    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 = getReader(args[0]);
    // Parse the HTML.
    kit.read(rd, doc, 0);
    // Iterate through the elements
    // of the HTML document.
    ElementIterator it = new ElementIterator(doc);
    javax.swing.text.Element elem;
    while ((elem = it.next()) != null) {
    SimpleAttributeSet s = (SimpleAttributeSet)
    elem.getAttributes().getAttribute(HTML.Tag.A);
    if (s != null) {
    System.out.println(
    s.getAttribute(HTML.Attribute.HREF));
    } catch (Exception e) {
    e.printStackTrace();
    System.exit(1);
    // Returns a reader on the HTML data. If 'uri' begins
    // with "http:", it's treated as a URL; otherwise,
    // it's assumed to be a local filename.
    static Reader getReader(String uri)
    throws IOException {
    if (uri.startsWith("http:")) {
    // Retrieve from Internet.
    URLConnection conn=
    new URL(uri).openConnection();
    return new
    InputStreamReader(conn.getInputStream());
    } else {
    // Retrieve from file.
    return new FileReader(uri);
    --End of code
    --Exception in Linux
    Exception in thread "main" java.lang.NoClassDefFoundError
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:120)
    at java.awt.Toolkit$2.run(Toolkit.java:512)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:503)
    at javax.swing.text.html.CSS.getValidFontNameMapping(CSS.java:932)
    at javax.swing.text.html.CSS$FontFamily.parseCssValue(CSS.java:1789)
    at javax.swing.text.html.CSS.getInternalCSSValue(CSS.java:531)
    at javax.swing.text.html.CSS.addInternalCSSValue(CSS.java:516)
    at javax.swing.text.html.StyleSheet.addCSSAttribute(StyleSheet.java:436)
    at javax.swing.text.html.HTMLDocument$HTMLReader$ConvertAction.start(HTM
    LDocument.java:2536)
    at javax.swing.text.html.HTMLDocument$HTMLReader.handleStartTag(HTMLDocu
    ment.java:1992)
    at javax.swing.text.html.parser.DocumentParser.handleStartTag(DocumentPa
    rser.java:145)
    at javax.swing.text.html.parser.Parser.startTag(Parser.java:333)
    at javax.swing.text.html.parser.Parser.parseTag(Parser.java:1786)
    at javax.swing.text.html.parser.Parser.parseContent(Parser.java:1821)
    at javax.swing.text.html.parser.Parser.parse(Parser.java:1980)
    at javax.swing.text.html.parser.DocumentParser.parse(DocumentParser.java
    :109)
    at javax.swing.text.html.parser.ParserDelegator.parse(ParserDelegator.ja
    va:74)
    at javax.swing.text.html.HTMLEditorKit.read(HTMLEditorKit.java:239)
    at GetLinks.main(GetLinks.java:23)

    Support for CSS and clearly defined.Also Dictionary getDocumentProperties() is not properly exaplained meaning it doesnt give methods to get all the properties a HTML document can have.

  • Crash (SIGSEGV, SIGILL) of 32bit Hotspot under Linux x86_64 in VMware

    Hello!
    A reproducible crash of these 1.6 32 bit Java VMs is hinderung my application from starting when I want to start it under a x86_64 Linux kernel in VMware (Workstation and ESX):
    - java version "1.6.0_06"
    Java(TM) SE Runtime Environment (build 1.6.0_06-b02)
    Java HotSpot(TM) Client VM (build 10.0-b22, mixed mode, sharing)
    - java version "1.6.0_06"
    Java(TM) SE Runtime Environment (build 1.6.0_06-b02)
    Java HotSpot(TM) Server VM (build 10.0-b22, mixed mode)
    - java version "1.6.0_10-beta"
    Java(TM) SE Runtime Environment (build 1.6.0_10-beta-b23)
    Java HotSpot(TM) Client VM (build 11.0-b11, mixed mode, sharing)
    Tested using there kernels:
    - Linux debian 2.6.18-6-amd64 #1 SMP Sun Feb 10 17:50:19 UTC 2008 x86_64 GNU/Linux
    - Linux openSUSE 2.6.22.5-31-default #1 SMP 2007/09/21 22:29:00 UTC x86_64 x86_64 x86_64 GNU/Linux
    - Linux sles10-sp1-sdm 2.6.16.46-0.12-default #1 Thu May 17 14:00:09 UTC 2007 x86_64 x86_64 x86_64 GNU/Linux
    Sproradic but reproducible JVM (Hotspot) crashes while running a simple garbage collector stress application several times in parallel. hs_err files are generated each time. However, the "Problematic frame" address and library changes every time!
    Examples:
    # Java VM: Java HotSpot(TM) Client VM (10.0-b22 mixed mode, sharing linux-x86)
    # Problematic frame:
    # C [libc.so.6+0xe4c9d] xdr_u_long+0xd
    VM state:not at safepoint (normal execution)
    # Java VM: Java HotSpot(TM) Server VM (10.0-b22 mixed mode linux-x86)
    # Problematic frame:
    # C 0xf7f56acb
    VM state:at safepoint (normal execution)
    # Java VM: Java HotSpot(TM) Server VM (10.0-b22 mixed mode linux-x86)
    # Problematic frame:
    # C [libnss_compat.so.2+0x2e16] nsscompat_getpwnam_r+0x46
    VM state:synchronizing (normal execution)
    The problem only appears using JDK or JRE 1.6 32 bit edition on a Linux 2.6 x86_64 kernel in VMware. Tests using real hardware, using a i686 kernel and using JDK / JRE 1.6 64 bit edition or JDK / JRE 1.5 (32 bit and 64 bit) could not reproduce the crashes.
    Questions:
    - Is there a general stability problem when starting the 32 bit Java VM under Linux 64?
    - Does anybody have similar problems with
    - Java VM 32bit under Linux 64?
    - Java VM in VMware (both ESX and Workstation)?
    Simple stress test application:
    public class GCStress {
    private static Thread[] threads;
    private static java.util.Random random = new java.util.Random();
    private static int maxBytes;
    private static int numThreads;
    public static void main(String[] args) {
    numThreads = Integer.parseInt(args[0]);
    maxBytes = Integer.parseInt(args[1]);
    threads = new Thread[numThreads];
    for (int x = 0; x < numThreads; x++) {
    threads[x] = new Thread(new Allocator(), "Thread_" + x);
    threads[x].start();
    while (true) {
    for (int x = 0; x < numThreads; x++) {
    if (!threads[x].isAlive()) {
    threads[x] = new Thread(new Allocator(), "Thread_r" + x);
    threads[x].start();
    try {
    Thread.sleep(500);
    } catch (InterruptedException e) {
    // ignore
    private static class Allocator implements Runnable {
    public void run() {
    while (true) {
    int tSize = random.nextInt(maxBytes);
    // System.out.println(Thread.currentThread().getName()
    // + " allocating " + tSize / 1024 + "kb");
    byte[] tMemFiller = new byte[tSize];
    try {
    Thread.sleep(random.nextInt(200));
    } catch (InterruptedException e) {
    ; // ignore
    }

    The program is started like this:
    ./jdk1.6.0_06/bin/java -server -Xms32m -Xmx256m GCStress 500 10485760
    And I run it usually 5 times in parallel. 1 time seems not to be enough (I should test that tonight).
    However, I've tested using several -XX: flags, but nothing really helped! (-XX:+UseParallelGC, -XX:-UseTLAB, -XX:+UseSpinning -XX-UseThreadPriorities, -XX:-UseBiasedLocking, -XX:-UseLargePages)
    About the lib: Every time, the content of hs_err is very different. I've also got
    hs_err_pid6201.log:# Problematic frame:
    hs_err_pid6201.log-# C [libc.so.6+0x5a261] IOwfile_seekoff+0x3b4
    hs_err_pid7116.log:# Problematic frame:
    hs_err_pid7116.log-# C 0x36343238
    hs_err_pid7137.log:# Problematic frame:
    hs_err_pid7137.log-# C 0xf7f17f67
    hs_err_pid7192.log:# Problematic frame:
    hs_err_pid7192.log-# C [libc.so.6+0x9d1ae]
    hs_err_pid7223.log:# Problematic frame:
    hs_err_pid7223.log-# C [libc.so.6+0xfef67] __register_frame_info+0xf
    hs_err_pid7232.log:# Problematic frame:
    hs_err_pid7232.log-# C [libc.so.6+0x109cdc]
    hs_err_pid7239.log:# Problematic frame:
    hs_err_pid7239.log-# C [libc.so.6+0x212b3] __newlocale+0x233
    hs_err_pid8569.log:# Problematic frame:
    hs_err_pid8569.log-# C [libc.so.6+0x562b9] IOgetline_info+0x52
    hs_err_pid8571.log:# Problematic frame:
    hs_err_pid8571.log-# C [libc.so.6+0x2b3] rtldglobal+0x2b3
    hs_err_pid8573.log:# Problematic frame:
    hs_err_pid8573.log-# C [libc.so.6+0x9b2b9]
    hs_err_pid8596.log:# Problematic frame:
    hs_err_pid8596.log-# C [libc.so.6+0x2e2d1]
    hs_err_pid8615.log:# Problematic frame:
    hs_err_pid8615.log-# C 0xf7e462b3
    hs_err_pid8635.log:# Problematic frame:
    hs_err_pid8635.log-# C [libc.so.6+0x9148c] glob64+0x40d
    hs_err_pid8642.log:# Problematic frame:
    hs_err_pid8642.log-# C [libc.so.6+0x722b9]
    hs_err_pid8667.log:# Problematic frame:
    hs_err_pid8667.log-# C [libc.so.6+0x67261]
    hs_err_pid9957.log:# Problematic frame:
    hs_err_pid9957.log-# C [libc.so.6+0xc5265]
    libnss is linked during execution:
    hs_err_pid7192.log:f7d77000-f7d7e000 r-xp 00000000 08:01 422025 /emul/ia32-linux/lib/libnss_compat-2.3.6.so
    hs_err_pid7192.log:f7d7e000-f7d80000 rwxp 00006000 08:01 422025 /emul/ia32-linux/lib/libnss_compat-2.3.6.so
    hs_err_pid7223.log:f7d6e000-f7d75000 r-xp 00000000 08:01 422025 /emul/ia32-linux/lib/libnss_compat-2.3.6.so
    hs_err_pid7223.log:f7d75000-f7d77000 rwxp 00006000 08:01 422025 /emul/ia32-linux/lib/libnss_compat-2.3.6.so
    hs_err_pid7232.log:f7db0000-f7db7000 r-xp 00000000 08:01 422025 /emul/ia32-linux/lib/libnss_compat-2.3.6.so
    hs_err_pid7232.log:f7db7000-f7db9000 rwxp 00006000 08:01 422025 /emul/ia32-linux/lib/libnss_compat-2.3.6.so
    hs_err_pid7239.log:f7dbc000-f7dc3000 r-xp 00000000 08:01 422025 /emul/ia32-linux/lib/libnss_compat-2.3.6.so
    hs_err_pid7239.log:f7dc3000-f7dc5000 rwxp 00006000 08:01 422025 /emul/ia32-linux/lib/libnss_compat-2.3.6.so
    hs_err_pid8569.log:f7d4c000-f7d53000 r-xp 00000000 08:01 422025 /emul/ia32-linux/lib/libnss_compat-2.3.6.so
    hs_err_pid8569.log:f7d53000-f7d55000 rwxp 00006000 08:01 422025 /emul/ia32-linux/lib/libnss_compat-2.3.6.so
    hs_err_pid8571.log:f7da2000-f7da9000 r-xp 00000000 08:01 422025 /emul/ia32-linux/lib/libnss_compat-2.3.6.so
    hs_err_pid8571.log:f7da9000-f7dab000 rwxp 00006000 08:01 422025 /emul/ia32-linux/lib/libnss_compat-2.3.6.so
    hs_err_pid8573.log:f7d07000-f7d0e000 r-xp 00000000 08:01 422025 /emul/ia32-linux/lib/libnss_compat-2.3.6.so
    hs_err_pid8573.log:f7d0e000-f7d10000 rwxp 00006000 08:01 422025 /emul/ia32-linux/lib/libnss_compat-2.3.6.so
    hs_err_pid8596.log:f7d74000-f7d7b000 r-xp 00000000 08:01 422025 /emul/ia32-linux/lib/libnss_compat-2.3.6.so
    hs_err_pid8596.log:f7d7b000-f7d7d000 rwxp 00006000 08:01 422025 /emul/ia32-linux/lib/libnss_compat-2.3.6.so
    hs_err_pid8615.log:f7de0000-f7de7000 r-xp 00000000 08:01 422025 /emul/ia32-linux/lib/libnss_compat-2.3.6.so
    hs_err_pid8615.log:f7de7000-f7de9000 rwxp 00006000 08:01 422025 /emul/ia32-linux/lib/libnss_compat-2.3.6.so
    hs_err_pid8635.log:f7d27000-f7d2e000 r-xp 00000000 08:01 422025 /emul/ia32-linux/lib/libnss_compat-2.3.6.so
    hs_err_pid8635.log:f7d2e000-f7d30000 rwxp 00006000 08:01 422025 /emul/ia32-linux/lib/libnss_compat-2.3.6.so
    hs_err_pid8642.log:f7d30000-f7d37000 r-xp 00000000 08:01 422025 /emul/ia32-linux/lib/libnss_compat-2.3.6.so
    hs_err_pid8642.log:f7d37000-f7d39000 rwxp 00006000 08:01 422025 /emul/ia32-linux/lib/libnss_compat-2.3.6.so
    hs_err_pid8667.log:f7d3c000-f7d43000 r-xp 00000000 08:01 422025 /emul/ia32-linux/lib/libnss_compat-2.3.6.so
    hs_err_pid8667.log:f7d43000-f7d45000 rwxp 00006000 08:01 422025 /emul/ia32-linux/lib/libnss_compat-2.3.6.so
    hs_err_pid9957.log:f7d9a000-f7da1000 r-xp 00000000 08:01 422025 /emul/ia32-linux/lib/libnss_compat-2.3.6.so
    hs_err_pid9957.log:f7da1000-f7da3000 rwxp 00006000 08:01 422025 /emul/ia32-linux/lib/libnss_compat-2.3.6.so
    Sample stack trace:
    # An unexpected error has been detected by Java Runtime Environment:
    # SIGSEGV (0xb) at pc=0x67f69b57, pid=9123, tid=3902569360
    # Java VM: Java HotSpot(TM) Server VM (10.0-b22 mixed mode linux-x86)
    # Problematic frame:
    # C 0x67f69b57
    # If you would like to submit a bug report, please visit:
    # http://java.sun.com/webapps/bugreport/crash.jsp
    --------------- T H R E A D ---------------
    Current thread (0x080a4c00): VMThread [stack: 0xe8947000,0xe89c8000] [id=9135]
    siginfo:si_signo=SIGSEGV: si_errno=0, si_code=1 (SEGV_MAPERR), si_addr=0x67f69b57
    Registers:
    EAX=0x67f69b57, EBX=0xf7f62ff4, ECX=0x000e89c6, EDX=0x00000000
    ESP=0xe89c6934, EBP=0xe89c6968, ESI=0x080a4c00, EDI=0x080df118
    EIP=0x67f69b57, CR2=0x67f69b57, EFLAGS=0x00010203
    Top of Stack: (sp=0xe89c6934)
    0xe89c6934: e89c6a10 eabdb800 eaaea220 eabdb838
    0xe89c6944: 0003c586 000023af 0657221a 0805848c
    0xe89c6954: eaaea220 eabdb838 080df0d4 080a4c00
    0xe89c6964: 00000001 e89c6998 064e51cb 080df118
    0xe89c6974: 08058350 e89c6998 0629cb5e 08058450
    0xe89c6984: 0003c586 e89c69d8 f0c719a8 e89c6ae0
    0xe89c6994: 00000001 e89c69b8 064e526c 080df0d4
    0xe89c69a4: 080a4c00 00000000 064f6ddb 080df478
    Instructions: (pc=0x67f69b57)
    0x67f69b47:
    [error occurred during error reporting (printing registers, top of stack, instructions near pc), id 0xb]
    Stack: [0xe8947000,0xe89c8000], sp=0xe89c6934, free space=510k
    Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
    C 0x67f69b57
    V [libjvm.so+0x4e51cb]
    V [libjvm.so+0x4e526c]
    V [libjvm.so+0x4f6cd8]
    V [libjvm.so+0x34c60d]
    V [libjvm.so+0x4dbe4c]
    V [libjvm.so+0x31722e]
    V [libjvm.so+0x5b83cf]
    V [libjvm.so+0x5ba5bb]
    V [libjvm.so+0x55a59d]
    V [libjvm.so+0x322be7]
    V [libjvm.so+0x2ce43b]
    V [libjvm.so+0x3227f7]
    V [libjvm.so+0x294845]
    V [libjvm.so+0x322b8c]
    V [libjvm.so+0x5edede]
    V [libjvm.so+0x5fb0c7]
    V [libjvm.so+0x5fa6dc]
    V [libjvm.so+0x5fa8b1]
    V [libjvm.so+0x5fa48f]
    V [libjvm.so+0x4fe219]
    C [libpthread.so.0+0x5192]
    VM_Operation (0xe371ee1c): GenCollectForAllocation, mode: safepoint, requested by thread 0x08217000
    --------------- P R O C E S S ---------------
    Java Threads: ( => current thread )
    0x082f6400 JavaThread "Thread_528" [_thread_blocked, id=12818, stack(0xddd8a000,0xddddb000)]
    0x080db800 JavaThread "Thread_2" [_thread_blocked, id=9178, stack(0xe8547000,0xe8598000)]
    0x080da400 JavaThread "Thread_1" [_thread_blocked, id=9177, stack(0xe8598000,0xe85e9000)]
    0x080d9800 JavaThread "Thread_0" [_thread_blocked, id=9176, stack(0xe85e9000,0xe863a000)]
    0x080c9800 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=9162, stack(0xe86bb000,0xe870c000)]
    0x080c8400 JavaThread "CompilerThread1" daemon [_thread_blocked, id=9155, stack(0xe870c000,0xe878d000)]
    0x080bdc00 JavaThread "CompilerThread0" daemon [_thread_blocked, id=9147, stack(0xe878d000,0xe880e000)]
    0x080bc800 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=9146, stack(0xe880e000,0xe885f000)]
    0x080a9000 JavaThread "Finalizer" daemon [_thread_blocked, id=9137, stack(0xe88a5000,0xe88f6000)]
    0x080a8000 JavaThread "Reference Handler" daemon [_thread_blocked, id=9136, stack(0xe88f6000,0xe8947000)]
    0x08057800 JavaThread "main" [_thread_blocked, id=9126, stack(0xf7da4000,0xf7df5000)]
    Other Threads:
    =>0x080a4c00 VMThread [stack: 0xe8947000,0xe89c8000] [id=9135]
    0x080cb400 WatcherThread [stack: 0xe863a000,0xe86bb000] [id=9174]
    VM state:at safepoint (normal execution)
    VM Mutex/Monitor currently owned by a thread: ([mutex/lock_event])
    [0x08056388/0x080563b0] Threads_lock - owner thread: 0x080a4c00
    [0x08056848/0x08056860] Heap_lock - owner thread: 0x08217000
    Heap
    def new generation total 7296K, used 7273K [0xe8c40000, 0xe9420000, 0xe9a70000)
    eden space 6528K, 99% used [0xe8c40000, 0xe929c8f0, 0xe92a0000)
    from space 768K, 98% used [0xe92a0000, 0xe935dee8, 0xe9360000)
    to space 768K, 0% used [0xe9360000, 0xe9360068, 0xe9420000)
    tenured generation total 47472K, used 17838K [0xe9a70000, 0xec8cc000, 0xf0c40000)
    the space 47472K, 37% used [0xe9a70000, 0xeabdb838, 0xeabdba00, 0xec8cc000)
    compacting perm gen total 16384K, used 1648K [0xf0c40000, 0xf1c40000, 0xf4c40000)
    the space 16384K, 10% used [0xf0c40000, 0xf0ddc170, 0xf0ddc200, 0xf1c40000)
    No shared spaces configured.
    Dynamic libraries:
    06000000-0665d000 r-xp 00000000 08:02 543502 /usr/java/jdk1.6.0_06/jre/lib/i386/server/libjvm.so
    0665d000-066a1000 rwxp 0065c000 08:02 543502 /usr/java/jdk1.6.0_06/jre/lib/i386/server/libjvm.so
    066a1000-06ac3000 rwxp 066a1000 00:00 0
    08048000-08052000 r-xp 00000000 08:02 541414 /usr/java/jdk1.6.0_06/bin/java
    08052000-08053000 rwxp 00009000 08:02 541414 /usr/java/jdk1.6.0_06/bin/java
    08053000-083a8000 rwxp 08053000 00:00 0 [heap]
    ddd8a000-ddd8d000 ---p ddd8a000 00:00 0
    f7f87000-f7f88000 ---p f7f87000 00:00 0
    f7f88000-f7f89000 rwxp f7f88000 00:00 0
    f7f89000-f7fa3000 r-xp 00000000 08:02 1622023 /lib/ld-2.6.1.so
    f7fa3000-f7fa5000 rwxp 0001a000 08:02 1622023 /lib/ld-2.6.1.so
    fff5f000-fff68000 rwxp fff5f000 00:00 0 [stack]
    ffffe000-fffff000 r-xp ffffe000 00:00 0 [vdso]
    VM Arguments:
    jvm_args: -Xms32m -Xmx128m
    java_command: GCStress 2000 1048570
    Launcher Type: SUN_STANDARD
    Environment Variables:
    PATH=/sbin:/usr/sbin:/usr/local/sbin:/root/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/games:/usr/lib/mit/bin:/usr/lib/mit/sbin
    LD_LIBRARY_PATH=/usr/java/jdk1.6.0_06/jre/lib/i386/server:/usr/java/jdk1.6.0_06/jre/lib/i386:/usr/java/jdk1.6.0_06/jre/../lib/i386
    SHELL=/bin/bash
    HOSTTYPE=x86_64
    OSTYPE=linux
    MACHTYPE=x86_64-suse-linux
    Signal Handlers:
    SIGSEGV: [libjvm.so+0x5edbc0], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
    SIGBUS: [libjvm.so+0x5edbc0], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
    SIGFPE: [libjvm.so+0x4fc630], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
    SIGPIPE: [libjvm.so+0x4fc630], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
    SIGXFSZ: [libjvm.so+0x4fc630], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
    SIGILL: [libjvm.so+0x4fc630], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
    SIGUSR1: SIG_DFL, sa_mask[0]=0x00000000, sa_flags=0x00000000
    SIGUSR2: [libjvm.so+0x4fe670], sa_mask[0]=0x00000000, sa_flags=0x10000004
    SIGHUP: [libjvm.so+0x4fe410], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
    SIGINT: [libjvm.so+0x4fe410], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
    SIGTERM: [libjvm.so+0x4fe410], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
    SIGQUIT: [libjvm.so+0x4fe410], sa_mask[0]=0x7ffbfeff, sa_flags=0x10000004
    --------------- S Y S T E M ---------------
    OS:openSUSE 10.3 (X86-64)
    VERSION = 10.3
    uname:Linux 2.6.22.5-31-default #1 SMP 2007/09/21 22:29:00 UTC x86_64
    libc:glibc 2.6.1 NPTL 2.6.1
    rlimit: STACK 8192k, CORE 0k, NPROC 16384, NOFILE 8192, AS 3334080k
    load average:13.01 11.87 9.18
    CPU:total 1 (1 cores per cpu, 1 threads per core) family 15 model 4 stepping 8, cmov, cx8, fxsr, mmx, sse, sse2, sse3
    Memory: 4k page, physical 2063116k(334428k free), swap 2104472k(2104472k free)
    vm_info: Java HotSpot(TM) Server VM (10.0-b22) for linux-x86 JRE (1.6.0_06-b02), built on Mar 25 2008 00:26:44 by "java_re" with gcc 3.2.1-7a (J2SE release)
    time: Thu May 15 13:26:54 2008
    elapsed time: 365 seconds

  • 816 installer error under linux 7.1

    Hi,
    i tried to install oracle 816 under linux 7.1 . During the time of linking makefile. The following error occur :
    Error in invoking target install of makefile /oraHome/network/lib/ins_net_client.mk
    I have already added the 6.2 backward compatable libs(compat-eqcs,compat-glibc and compat-libs) and
    export LD_ASSUME_KERNEL=2.2.5
    execute the script
    /usr/i386-glibc21-linux/bin/i386-glibc21-linux-env.sh
    It still doesnt work !!! Why ???
    CAN ANY BODY HELP !!! THANK A LOTS !!!
    null

    Read the other threads more carefully next time.
    Alex Voitov posted this ftp site:
    ftp://ftp.kernel.org/pub/software/libs/glibc/hjl/sdk/2.1/
    click README.Oracle8i.
    I also did what you did, but that was not enough, so I tried following the instructions in the README file mentioned above, and then I got oracle installed in Redhat 7.1 with no problems.
    After you install Oracle, you may also want to follow the instructions below.
    Posted by Kamal:
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>
    Oracle Version 8.1.7
    Linux Redhat 7.0
    While installing Oracle you may encounter the error 'not able to connect to oracle'
    during database creation. This is due to glibc package problem.
    Please do the following
    1. Install the compat-glibc RPM for 2.1.3.x
    (This is on the Redhat 7.0 CDs)
    2. cd to the directory where compat-glibc installed the files (for me it's
    /usr/i386-glibc21-linux/lib).
    3. Copy the following files to $ORACLE_HOME/lib:
    libc-2.1.3.so
    libpthread.so
    libdl.so
    ld-linux.so.2
    For me, several of these are symbolic links, so you'll need to copy the target of the
    symbolic link and rename it to the link name when you copy it to $ORACLE_HOME/lib.
    For example, if ls -l shows:
    ld-linux.so.2 -> ld-2.1.3.so
    libc-2.1.3.so
    libdl.so -> libdl.so.2
    libpthread.so -> libpthread.so.0
    Then you will:
    cp ld-2.1.3.so $ORACLE_HOME/lib/ld-linux.so.2
    cp libc-2.1.3.so $ORACLE_HOME/lib
    cp libdl.so.2 $ORACLE_HOME/lib/libdl.so
    cp libpthread.so.0 $ORACLE_HOME/lib/libpthread.so
    4. Create a file in $ORACLE_HOME/lib called libc.so with the following contents (as a
    single line):
    GROUP ( /lib/libc-2.1.3.so /lib/ld-linux.so.2 /libc_nonshared.a )
    Substitute the value of $ORACLE_HOME for and the location of the compat-glibc directory
    for . For example:
    My $ORACLE_HOME is:
    /u01/app/oracle/product/8.1.7
    and my compat-glibc directory is:
    /usr/i386-glibc21-linux/lib
    so the GROUP line looks like this for me:
    GROUP (/u01/app/oracle/product/8.1.7/lib/libc-2.1.3.so
    /u01/app/oracle/product/8.1.7/lib/ld-linux.so.2
    /usr/i386-glibc21-linux/lib/libc_nonshared.a)
    This is all one line.
    5. cd $ORACLE_HOME/bin
    6. Run the following command from the UNIX prompt:
    relink all
    All of the Oracle software, including the assitants, will work fine now.
    I have used this technique for RedHat 7.0 with the 2.2.16 kernel.
    Thanks to Richard Rankin for this simple and reliable method
    Regards
    Kamal
    <HR></BLOCKQUOTE>

  • JCombox does not work under linux (fedora) could you help me???

    Hi All,
    I am implementing a GUI for a linux application. This GUI works fine under windows system. But the JCombobox does not work under Linux system. Would you help me to solve it? Thank you very much!..
    The problem is that I cannot select any other item except the first item in the dropdown box of JCombobox. There is no event generated when I click the combobox, while events are generated for other Buttons.
    This problem exists for the following code when I maximize the window. When the window is minimize to some extend in my problem, it is OK.
    Here is the simplify code:
    import java.awt.*;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.io.Serializable;
    import java.util.Vector;
    import javax.swing.ComboBoxModel;
    import javax.swing.JComboBox;
    import javax.swing.JFrame;
    import javax.swing.event.ListDataEvent;
    import javax.swing.event.PopupMenuEvent;
    import javax.swing.event.PopupMenuListener;
    import java.awt.event.*;
    import javax.swing.*;
    //carmen
    import javax.swing.filechooser.*;
    import javax.swing.event.*;
    import javax.swing.Box;
    import javax.swing.BoxLayout;
    import javax.swing.border.*;
    //import AlwaysSelectableComboBoxDemo.AlwaysSelectableComboBox;
    //import AlwaysSelectableComboBoxDemo.AlwaysSelectableComboBox;
    import java.io.*;
    import java.util.*;
    import java.lang.String.*;
    public class Test extends JFrame
         private JComboBox jComboBox1;
         private JComboBox jComboBox2;
         private JPanel contentPane;
         private JTabbedPane jTabbedPane1;
         //Main Tab
         private JPanel Main;
         private JPanel OutputSimSet;
         private JPanel Test;
         private JPanel ScriptGenTab;
         private JPanel ResultTab;
    //Result Tab
    private JPanel SimResult;
         public Test()
              super();
              //initializeComponent();
              contentPane = (JPanel)this.getContentPane();
              jTabbedPane1 = new JTabbedPane();
              Main = new JPanel();
              OutputSimSet = new JPanel();
              Test = new JPanel();
              ScriptGenTab = new JPanel();
              ResultTab = new JPanel();
              SimResult = new JPanel();
         jComboBox1 = new JComboBox(
                        new String[]{"Item 1","Item 2", "Item 3"});
                        jComboBox1.addActionListener(new ActionListener() {
                        public void actionPerformed(ActionEvent ae) {
                        System.out.println("Yeah");
         jComboBox2 = new JComboBox(
                                  new String[]{"Item 1","Item 2", "Item 3"});
                                  jComboBox2.addActionListener(new ActionListener() {
                                  public void actionPerformed(ActionEvent ae) {
                                  System.out.println("Yeah");
              // jTabbedPane1
              jTabbedPane1.addTab("Main", Main);
              jTabbedPane1.addTab("ScriptGenerator", ScriptGenTab);
              jTabbedPane1.addTab("Simulation Result", ResultTab);
              jTabbedPane1.addChangeListener(new ChangeListener() {
                   public void stateChanged(ChangeEvent e)
                        jTabbedPane1_stateChanged(e);
              // contentPane
              contentPane.setLayout(new BorderLayout(0, 0));
              contentPane.add(jTabbedPane1, BorderLayout.CENTER);
              // Main
              //Main.setLayout(new FlowLayout(FlowLayout.CENTER, 5, 5));
              Main.setLayout(new BorderLayout(0, 0));
              Main.add(OutputSimSet,BorderLayout.NORTH);
              OutputSimSet.setLayout(new FlowLayout(FlowLayout.CENTER, 5, 5));
              OutputSimSet.add(Test, 0);
              Test.setLayout(new FlowLayout(FlowLayout.CENTER, 5, 5));
              Test.add(jComboBox1,0);
              //ResultTab
              ResultTab.setLayout(new BorderLayout(0, 0));
              ResultTab.setBorder(new TitledBorder(""));
              ResultTab.add(SimResult, BorderLayout.NORTH);
              SimResult.setLayout(new FlowLayout(FlowLayout.CENTER, 5, 5));
              SimResult.add(jComboBox2,0);
              // Test
              this.setTitle("Test");
              this.setLocation(new Point(0, 0));
              this.setSize(new Dimension(600, 500));
              this.setVisible(true);
         public void initializeComponent()
         /** Add Component Without a Layout Manager (Absolute Positioning) */
         private void addComponent(Container container,Component c,int x,int y,int width,int height)
              c.setBounds(x,y,width,height);
              container.add(c);
         // TODO: Add any appropriate code in the following Event Handling Methods
         private void jTabbedPane1_stateChanged(ChangeEvent e)
              System.out.println("\njTabbedPane1_stateChanged(ChangeEvent e) called.");
              // TODO: Add any handling code here
         // TODO: Add any method code to meet your needs in the following area
         // TODO: Add any appropriate code in the following Event Handling Methods
         private void jComboBox1_actionPerformed(ActionEvent e)
              System.out.println("\njComboBox1_actionPerformed(ActionEvent e) called.");
              Object o = jComboBox1.getSelectedItem();
              System.out.println(">>" + ((o==null)? "null" : o.toString()) + " is selected.");
              // TODO: Add any handling code here for the particular object being selected
    * Create the GUI and show it. For thread safety,
    * this method should be invoked from the
    * event-dispatching thread.
    private static void createAndShowGUI() {
    //Create and set up the window.
    Test frame = new Test();
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    frame.pack();
    frame.setVisible(true);
    public static void main(String[] args) {
    //Schedule a job for the event-dispatching thread:
    //creating and showing this application's GUI.
    javax.swing.SwingUtilities.invokeLater(new Runnable() {
    public void run() {
    createAndShowGUI();
    }

    package oct03_JCBox;
    import java.awt.BorderLayout;
    import java.awt.Component;
    import java.awt.Container;
    import java.awt.Dimension;
    import java.awt.FlowLayout;
    import java.awt.Point;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import javax.swing.JComboBox;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    import javax.swing.JTabbedPane;
    import javax.swing.event.ChangeEvent;
    import javax.swing.event.ChangeListener;
    public class Test extends JFrame
    private JComboBox jComboBox1;
    private JComboBox jComboBox2;
    private JPanel contentPane;
    private JTabbedPane jTabbedPane1;
    //Main Tab
    private JPanel Main;
    //private JPanel OutputSimSet;
    //private JPanel Test;
    private JPanel ScriptGenTab;
    private JPanel ResultTab;
    //Result Tab
    //private JPanel SimResult;
    public Test()
         super();
         //initializeComponent();
         contentPane = (JPanel)this.getContentPane();
         jTabbedPane1 = new JTabbedPane();
         Main = new JPanel();
         ScriptGenTab = new JPanel();
         ResultTab = new JPanel();
    //     OutputSimSet = new JPanel();
    //     Test = new JPanel();
    //     SimResult = new JPanel();
         jComboBox1 = new JComboBox(
         new String[]{"Item 1","Item 2", "Item 3"});
         jComboBox1.addActionListener(new ActionListener() {
         public void actionPerformed(ActionEvent ae) {
              System.out.println("Yeah");
         jComboBox2 = new JComboBox(
         new String[]{"Item 1","Item 2", "Item 3"});
         jComboBox2.addActionListener(new ActionListener() {
              public void actionPerformed(ActionEvent ae) {
                   System.out.println("Yeah");
         // Main
         //Main.setLayout(new FlowLayout(FlowLayout.CENTER, 5, 5));
         Main.setLayout(new FlowLayout(FlowLayout.CENTER, 5, 5));
         Main.add(jComboBox1);
         //ResultTab  -----     
         ResultTab.setLayout(new FlowLayout(FlowLayout.CENTER, 5, 5));
         ResultTab.add(jComboBox2);
        //      jTabbedPane1
         jTabbedPane1.addTab("Main", Main);
         jTabbedPane1.addTab("ScriptGenerator", ScriptGenTab);
         jTabbedPane1.addTab("Simulation Result", ResultTab);
         jTabbedPane1.addChangeListener(new ChangeListener() {
              public void stateChanged(ChangeEvent e)
                   jTabbedPane1_stateChanged(e);
         // contentPane
         contentPane.setLayout(new BorderLayout(0, 0));
         contentPane.add(jTabbedPane1, BorderLayout.CENTER);
         // Test
         this.setTitle("Test");
         this.setLocation(new Point(0, 0));
         this.setSize(new Dimension(600, 500));
         this.setVisible(true);
         public void initializeComponent()
    //     /** Add Component Without a Layout Manager (Absolute Positioning) */
    //     private void addComponent(Container container,Component c,int x,int y,int width,int height)
    //     c.setBounds(x,y,width,height);
    //     container.add(c);
         // TODO: Add any appropriate code in the following Event Handling Methods
         private void jTabbedPane1_stateChanged(ChangeEvent e)
         System.out.println("\njTabbedPane1_stateChanged(ChangeEvent e) called.");
         // TODO: Add any handling code here
         // TODO: Add any method code to meet your needs in the following area
         // TODO: Add any appropriate code in the following Event Handling Methods
    //     private void jComboBox1_actionPerformed(ActionEvent e)
    //     System.out.println("\njComboBox1_actionPerformed(ActionEvent e) called.");
    //     Object o = jComboBox1.getSelectedItem();
    //     System.out.println(">>" + ((o==null)? "null" : o.toString()) + " is selected.");
    //     // TODO: Add any handling code here for the particular object being selected
         * Create the GUI and show it. For thread safety,
         * this method should be invoked from the
         * event-dispatching thread.
         private static void createAndShowGUI() {
         //Create and set up the window.
         Test frame = new Test();
         frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
         frame.pack();
         frame.setVisible(true);
    public static void main(String[] args) {
         //Schedule a job for the event-dispatching thread:
         //creating and showing this application's GUI.
         javax.swing.SwingUtilities.invokeLater(new Runnable() {
         public void run() {
         createAndShowGUI();
    } Try this - you use too many unnecessary JPanels.
    Which way you prefer with actionPerformed should work either way.
    I think your problem was too many unnecessary Panels and set all attributes before it is added, perhaps,
    not add the panel first and then try to set attributes like layout, color, etc...

  • JCOP tools under linux - no readers detected for activation

    [eclipse 3.1.2, pcsc-lite 1.4, redhat el3]
    I just downloaded the JCOP tools as described in the following post:
    http://forum.java.sun.com/thread.jspa?forumID=23&threadID=722788
    I found that it would not install under linux, because win32 has been specified in the site and feature manifest files. When I removed these entries, it installed OK.
    Now, when I attempt to activate using my "engineering sample" card, the activation wizard notifies me that no PC/SC readers were detected. I'm puzzled by this, since pcsc-lite (1.4) is working well on my system, and I can see the reader & card being detected in pcscd's log. I have also been careful to ensure that eclipse knows about the shared library paths and I've even included jpcsc.jar as an extra library.
    If anyone else has JCOP tools working under linux, I'd appreciate any insights that might help. My issue may be simply that I have downloaded a custom windows distribution (tools.zip) - hence the manifest hack - perhaps there is a linux one?

    Could be the pcsc-lite 1.4 version the problem?
    http://forum.java.sun.com/thread.jspa?forumID=23&threadID=688560PC/SC Support (Linux)
    JCOP Tools only works with pcsc-lite 1.2.0.

  • SetForeground in Applet does not work (Netbeans under Linux)

    I'm attempting to make a Breakout version of java (if I go through with it) and the first issue that I encountered is that I can't change the color of the moving rectangle (you know, the thing you hit the ball with). I tried the code under Textpad on a Windows machine and that worked fine, but not under Netbeans in Linux using jdk 1.6.0_01.
    import java.awt.*;
    import java.applet.*;
    import java.awt.event.*;
    public class Breakout extends Applet implements MouseListener, MouseMotionListener{
         int mouse_x, mouse_y;
         Thread t;
         public void init(){
              addMouseListener(this);
              addMouseMotionListener(this);
         public void start(){
              t= new Thread();
              t.start();
         public void run(){}
         public void mouseClicked(MouseEvent me){ }
         public void mouseEntered(MouseEvent me){ }
         public void mouseExited(MouseEvent me){ }
         public void mousePressed(MouseEvent me){ }
         public void mouseReleased(MouseEvent me){ }
         public void mouseDragged(MouseEvent me){ }
         public void mouseMoved(MouseEvent me){
              mouse_x = me.getX();
              if(mouse_x>=400)
                   mouse_x=400;
              repaint();
         public void stop() {}
         public void destroy(){ }
         public void paint(Graphics g){
              setBackground(Color.black);
              setForeground(Color.white); //doesn't work              
              g.drawRoundRect(mouse_x, 600, 50, 20, 20, 20);
    }I'm wondering if it's because the Applet under Linux uses the Native l&f theme while appets under Windows uses the Windows l&f theme.
    Any thoughts would be helpful!

    setForeground(Color.white); //doesn't work
    g.drawRoundRect(mouse_x, 600, 50, 20, 20, 20);Change this to:
    g.setColor(Color.WHITE);
    g.drawRoundRect(mouse_x, 600, 50, 20, 20, 20);You can move the background setting into method init(), calling it once is enough.
    I'm wondering if it's because the Applet under Linux
    uses the Native l&f theme while appets under Windows
    uses the Windows l&f theme.You use java.awt.Applet, so you use AWT which means there's no L&F theme (as in Swing) but it's native components being responsible.

  • Capturing Video stream with JMF under LINUX??

    Ok, i am confused! I have read lots of info over this subject, but at some sites and forums i read that some people did not succeed in capturing ( and displaying) a live video stream with Java under Linux.
    Is it possible? and if so, can someone give me a sample code or a link to a sample code? thankz a lot!!

    Cross-posted
    http://forum.java.sun.com/post.jsp?forum=54&thread=456420&message=2083138&reply=true

Maybe you are looking for

  • HT5557 How do I completely delete a book?

    How do I completely delete a book? I delete 'this copy' but it still shows up on my shelf.  I want it off my shelf and off my cloud - make it go away!

  • SSRS Windows Authentication Login

    Hi guys, I have been battling with this issue for the past 2 days.  I have deployed my ssrs reports to my test server.  Anytime I try to  access the report manager or reportserver url from another client pc, I am being prompted with a Windows Securit

  • Getting access to MakeProcInstance

    I have been asked to work on a legacy system written in C that has been migrated to Visual Studio and Win7. The function call MakeProcInstance is made for a locally defined CALLBACK function. But it is returning some really strange values - nothing i

  • Help on film transfer choices

    I am producing a documentary. I am using interviews I shot on a Panasonic DVX100A NTSC and I'm using lots of archival footage. I am well into the editing process as my project is already well over an hour. I am having film footage trasferred to Mini

  • Why do I need PAP enabled on Windows for an ASA5510 to use Radius?

    We have an ASA that allows remote VPN users. It connects to a Windows 2008 server. That server connects to a radius server, also Windows 2008. Things work fine if we enable PAP on the radius server, and the remote site server. If we disable PAP on ei