A possible wdbstart bug ?

Recently, installing Oracle 8.1.6 I was unable to get db's up since I found that page documenting a bug on dbstart http://www.oralinux.org/common/bugs.html#dbstart
Why Oracle still hasn't publicize a fix or explanation ?
now I'm having troubles in order to get WebDB 2.2 running
I've installed it correctly but I cannot success in order to get it up
neither by the Oracle Listener (wdbstart is configured as for Solaris, through csh !!!) neither by the CGI through Apache (documentation too poor :(
I have installed webdb and webdb listener completely with any errors, also verified on install logs.
I've to adapt wdbstart because the one that installs linux cd seems for solaris (uses csh)
I change all setenv to export VAR=, etc.... in order to adapt all to bash
I get the webdb listener running with 5 instances but suddenly starts to stop all instances...
For the cgi to run through Apache I allays get 500 internal error or a Bad Request with no entry on apache error logs =/
after discover on that page that all my problems to get db's up was due to an Oracle
undocumented bug, now I don't want to thing anything about my webdb's up errors !
if you can help me with some points..........I will really appreciate
it...
thanks,
Jaume.

Hi
I have encountered same problems as yours. Please let me share you knowledge if you have solved your problem.
Thank you
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Jaume Teixi <[email protected]>:
Recently, installing Oracle 8.1.6 I was unable to get db's up since I found that page documenting a bug on dbstart http://www.oralinux.org/common/bugs.html#dbstart
Why Oracle still hasn't publicize a fix or explanation ?
now I'm having troubles in order to get WebDB 2.2 running
I've installed it correctly but I cannot success in order to get it up
neither by the Oracle Listener (wdbstart is configured as for Solaris, through csh !!!) neither by the CGI through Apache (documentation too poor :(
I have installed webdb and webdb listener completely with any errors, also verified on install logs.
I've to adapt wdbstart because the one that installs linux cd seems for solaris (uses csh)
I change all setenv to export VAR=, etc.... in order to adapt all to bash
I get the webdb listener running with 5 instances but suddenly starts to stop all instances...
For the cgi to run through Apache I allays get 500 internal error or a Bad Request with no entry on apache error logs =/
after discover on that page that all my problems to get db's up was due to an Oracle
undocumented bug, now I don't want to thing anything about my webdb's up errors !
if you can help me with some points..........I will really appreciate
it...
thanks,
Jaume.<HR></BLOCKQUOTE>
null

Similar Messages

  • Thinkpad S540 possible BIOS bug concerning WOL

    I have had a Thinkpad S540 for a few months, and have it installed as dual boot Windows 8.1 and arch linux.  After completely shutting the machine down from linux I found that the battery would be down to around 70% charge after three days unused, and decided to investigate this problem since it was not reasonable for a new battery to lose charge at anything like this rate.
    By chance I came across a piece of information concerning the issue of disabling WOL (Wake on LAN) on the network interface, since I had seen one report that by default WOL is enabled and this requires power to be going to the network interface even when shut down in order to be able to respond to magic packets to start the machine up when it is shut down.
    First I checked the BIOS WOL setting and found it was set to "AC only" by default. So I changed it to disabled. This machine has the latest available BIOS version 1.54.
    However on investigating this after rebooting in linux I found that 
    # cat /sys/class/net/enp3s0/device/power/wakeup
    enabled
    # ethtool enp3s0 | grep Wake-on
    Supports Wake-on: pumbg
    Wake-on: g
    So WOL was still enabled despite it being set to disabled in the BIOS!
    I learned that I can make sure that in arch linux the WOL setting can be changed to set to disabled after bootup by using a udev rule:
    # cat 70-disable_wol.rules
    ACTION=="add", SUBSYSTEM=="net", KERNEL=="enp3s0", RUN+="/usr/bin/ethtool -s enp3s0 wol d"
    Then rebooting the machine I checked the WOL setting and it really is disabled now:
    # ethtool enp3s0 | grep Wake-on
    Supports Wake-on: pumbg
    Wake-on: d
    # cat /sys/class/net/enp3s0/device/power/wakeup
    disabled
    So I then ensured that the battery was 100% charged and shut down the machine and left it two and a half days - rebooting this morning the battery was still at 100% charge and no longer discharges unnecessarily when the machine is switched off,  so this is a clear indication of a bug in the BIOS for the WOL setting - it is still enabled despite the BIOS saying it is disabled!
    How do I report this to Lenovo so that they can fix the BIOS and release a new one that is working?
    I am aware of other users with different Thinkpads who seem to have the same problem, so this may be more widespread an issue than just on the S540.  
    It is also not just an issue with the battery running down when fully shut down but will likely also be a problem for a machine in suspend mode since the network interface may be consuming a watt or so of power when in suspend, which will again run the battery down at an unacceptable rate.
    I cannot imagine any use case where it would be necessary to have WOL enabled on a laptop that is mostly going to be used mobile - so having the default setting to AC only enabled, and having a BIOS bug enabling it when it is explicitely disabled is a serious problem.

    Anyone running windows in the same laptop can check the same issue of battery drain due to WOl being enabled by default - in the Device Manager under the network card, opening the settings menu for the ethernet wired card the default for Wake-on-LAN on my computer was set to enabled. This can be changed to disabled, and you may need to also disable the setting for Wake on Magic Packet. Also in the Power Management tab it is possible to uncheck the settings for "Allow this device to wake the computer" and "Only allow a magic packet to wake the computer"
    In my laptop these were all set to enabled by default.

  • Possible code bug causing crash on Wine/Linux

    As I am running Linux, I don't expect support as such but thought I would offer a possible contribution to the beta program as follows:
    When starting Safari under Wine (an implementation of the Win32 API) on Linux, I get the following debug message:
    DIB_GetBitmapInfo (44): unknown/wrong size for header
    What I understand this to mean is that the Windows function GetBitmapInfo is being passed a dodgy parameter.
    This is followed by a crash for me, but I guess on Windows, is quietly ignored.
    I have seen a report on CodeProject regarding an identical crash caused by a coder setting the biSize member of the bmiHeader (BITMAPHEADERINFO) element of a BITMAPINFO structure to the incorrect size. In the example given, it had been set to sizeof(BITMAPINFO) rather than sizeof(BITMAPINFOHEADER)
    e.g.
    bmpInfo.bmiHeader.biSize = sizeof (BITMAPINFO);
    instead of
    bmpInfo.bmiHeader.biSize = sizeof (BITMAPINFOHEADER);
    For any devs. interested as to whether there may be a bug, the call stack generated by Wine, showing the offsets from the base address of coregraphics.dll (loaded at 0x6b000000) is as follows, with the crash actaully occurring at '=> 1'
    Backtrace:
    =>1 0x6b262e97 in coregraphics (+0x262e97) (0x0033ed38)
    2 0x6b0f9da4 in coregraphics (+0xf9da4) (0x0033f31c)
    3 0x6b1e0fff in coregraphics (+0x1e0fff) (0x0033f4bc)
    4 0x6b1d19ee in coregraphics (+0x1d19ee) (0x0033f578)
    As I say, I'm not expecting any feedback on this - I'm just being neighbourly I also fully accept that I may be completely wrong in my assessment of the issue.
    Dell Inspiron   Other OS  

    There was an even earlier build than the two mentioned.
    Talk about "early revisions" I guess so, and it doesn't look like there will be a unified version tomorrow.
    I recall AYM had a note about video performance and in that instance, the build on the DVD was never than what was on the hard drive and within a week or so disk drives carried the "new, improved" video on disk as well.
    There may be other changes that go hand-in-hand other than build, too. Did they look at the Boot ROM and SMC Version of the systems?
    Boot ROM Version: MP11.005C.B00
    SMC Version: 1.7f6

  • Possible Tab Bug?

    The current bug: Adding an additional tab below another will cause the tab to looked messed up. The work around suggested was to create a page (with new tabs), publish it as a portlet underneath a main tab. Then you will visually see tabs underneath tabs.
    The new problem you get with this work around is your content underneath the sub-tab will not show up the first load. You have to click on another tab, then back to the previous tab to show the content.
    Another weird thing I ran across having to do with regions and published folders. I found that you cannot set a corrent percentage within regions when folders are added to regions.
    For instance; Under a tab, divid a region into two regions. The first region make 5% and the second 95%; now when you add your (folder) portlets underneath both regions you will see when viewing it, that it will show up 50% and 50%. If you take out the folder portlet on region 1, and add a application portlet; everything shows up fine.
    I have come across varies things like this, but I will start posting the errors and possible work arounds.

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>The new problem you get with this work around is your content underneath the sub-tab will not show up the first load. You have to click on another tab, then back to the previous tab to show the content.<HR></BLOCKQUOTE>
    I noticed this also. (in 3.0.6.7.2 on NT).
    What's funny about this is that this is exactly the same as a bug with sub-tabs in the EA release. Maybe the data structure of a sub-tab and a page in a tab is very similar...
    null

  • Foreach syntax + generics, Possible compiler bug?

    I'm encountering an odd problem trying to use generics and the foreach (colon) syntax. The code in question:
    for (Iterator<String> it = col.getParameterNames().iterator(); it.hasNext();) {}
    for (String paramName : col.getParameterNames()) {}col is an instance of an inner class of the class whose method this code snippet is from, getParameterNames has the signature:
    public Set<String> getParameterNames();
    The first line, using the Iterator<String> explicitly, compiles fine. The second line, when present, raises the compiler error:
    found : java.lang.Object
    required: java.lang.String
    for (String paramName : col.getParameterNames()) {
    I cannot seem to reliably reproduce this situation in other (simpler) classes I write, but this one in particular seems to trigger it. Is it possible this is a compiler bug, or might there be something I'm doing incorrectly that I'm missing? Are my expectations about how the second line should work incorrect? It seems to in other circumstances...
    javac is 1.6.0_01. Any ideas?

    Here is a quick update, I'm more inclined to think of this as bad behavior now.
    This code compiles:
    public class Test {
    Vector<InnerTest> inners = new Vector<InnerTest>();
        public class InnerTest {        
           public Set<String> someSet() { return (new HashMap<String,String>()).keySet(); }
        public Test() {
            for (InnerTest it : inners) {
                for (String s : it.someSet()) {        
    }however, the following does not:
    public class Test {
    Vector<InnerTest> inners = new Vector<InnerTest>();
        public class InnerTest<P> {        
           public Set<String> someSet() { return (new HashMap<String,String>()).keySet(); }
        public Test() {
            for (InnerTest it : inners) {
                for (String s : it.someSet()) {        
    }Again, the problem might be with my expectations (I haven't gone through the specifications yet with this in mind), but I can't fathom how or why the unused parameter would make a difference in that method's tpye matching.

  • Possible Keyword Bug

    Okay,
    I think I have found a possible bug with keywords, or maybe just an incositancy. It's kind of a messy situation so I'm hoping someone can help me out or maybe point me in the right direction to send this feedback to Apple.
    I had a bunch of jpeg files from my older cameras that had already been tagged with keywords (in the IPTC keyword field I believe). Once I imported all of these into Aperture I stripped the keywords from all the images. That worked fine.
    Before I get into the actual issue let me give a little bit of information on my Aperture library layout: I have folders created by year, then 1 project per month. So I have something like this:
    2002
    01 Janurary
    02 Feburary
    2003
    01 Janurary
    What's weird is if I create a new smart album at the folder level, the keywords listed in the search box are appropriate (only those actually added to images). However if I click on Library and create a new smart album (so that it searches the whole library) it lists all of my current keywords, plus all of those that I had removed (from the original files).
    Anyone else run across this? Anyone know how to fix it? It's just a minor inconvience, but it does make it a bit of a pain to have a whole ton of keywords to select from in the search box (most of them no longer having any images associated with them).
    Also I have searched for images that match the old keywords and it doesn't find any.
    Thanks,
    Mark

    She suggests..
    "Go to Window > Show Keywords HUD, and see if they are there. If so, you should be able to delete them from there."
    Hopefully, they will then disappear from the Library list.
    if not, it does seem like a bug.
    Message was edited by: notorious

  • How It Was Fixed (Possible Software Bug Not Hardware): Getting the iMac Screen/Menus Garbled and/or Yellow Circle Before Getting Into Finder Issues?

    Hi. Possible fix done to my late- 2009 iMac's screen/graphics issue that may work God willing, hopefully for most [In my case it sometimes had that yellow circle that appears before it goes to the Finder but mostly it was a messed up desktop and menus (unreadable mostly) after months, prayers and weeks of fixing it; recommended to be read entirely first coz' it's a bit complicated (like a lot of subplots). If uncomfortable to try coz' it involved a GPU stress test, contact your authorized Apple service center for their advice]. I had an iMac (late 2009) screen garbling a few hours ago (was weeks ago when it resurfaced until it got worse that it's at every boot on Mavericks):
    †        I booted to Snow Leopard USB external (my back-up OS) drive then run the first    person shooter at redeclipse.net. I set everything to max, including the display, resolution and graphics setting with fullscreen and v-sync on. I then refreshed it which brought it back to normal (I then tested it's stability with GPUTest 0.7 with Furmark for 15 minutes). * if the display options have been set to max before, bring it back to the default then refresh and then max it again Possibly any games that's has the graphic settings (or more advanced) of Red Eclipse could work (other free ones are Xonotic and Open Arena which are based on Quake 1 or 3s engine I believe).
    Optional but not recommended (have warrantied if that's still available or have it repaired at authorized service centers):
    If that doesn't work, review articles and videos on how to open an Intel iMac and get an iPhone/iPad/another way to get to the 'net ready for research (I opened mine very carefully on the right side with a cutter with blade extended far prying it carefully then I inserted a flat end, sturdy plastic used for mixing epoxy then removed the cutter carefully to let the plastic mixing tool do the prying) to see if the cable connected to the logicboard which is on top of, is connected (mine was detached but I'm not sure if the adjusting and tilting of the screen overtime for 2 & 1/2 years, detached it) then do † above again.
    It could to be a software problem, a possible Apple ATI driver bug that takes overtime to surface (2 1/2 years it resurfaced because this started in my case after upgrading to Lion when Apple coded things mostly from the ground up. Snow Leopard didn't have this problem). 
    Thank you for your time. Have a great upcoming sunday mass/great upcoming weekend. I hope this helps.
    God bless, Rev. 21:4, Matt. 16:18

    Does an external display also act in a similar manner as the internal one?
    Some earlier Intel-based iMacs had graphic processor card issues; not sure what
    the symptoms of the majority of them were, but some had odd patterns, others
    went black, and some would range from OK to totally unusable. Among others.
    So there is a chance the graphic processor may be going out; or just the circuitry
    that controls the backlight. An inverter may be weak or other circuit to the display
    could be wearing out.
    http://www.apple.com/retail/geniusbar/
    If you have access to an Apple Store with Genius bar, they can perform some kinds
    of diagnostic tests there even though the computer is out-of-warranty; that may be
    of help to narrow down the cause of the symptoms you've noticed. They may not be
    able to repair it, however, at an Apple Store; as it is rather old by today's standard.
    An Apple Authorized Service Provider could do repairs and testing on older models
    the Apple Store's Genius and other may not be set up to handle due to vintage.
    Find an Apple Authorized Service Provider
    Visit an Apple Retail Store
    There is a country locator page to help find either of the above in regions outside
    of the US & Canada, not sure how the above links would work; and it appears my
    bookmarks to the country locator page may not be accessible now to post here.
    You may be able to get an idea about what kinds of parts support the display
    function by name by looking into an iFixit.com repair guide for your iMac series.
    Hopefully the parts supporting the display are the reason it is dimming down, as
    a graphic processor failure likely would exhibit other behaviors than just dimming.
    PS: I see you've added content to your thread after I'd started working on this
    & the answer likely is a hardware repair; professional testing is worth the time
    and you seem to have at least one other thread on the same topic....
    Good luck & happy computing!
    edited 2x

  • Possible "unlock" bug

    Greetings.
    I decided to post this here, as I dont have developer access for bugreporting site.
    Using "The new iPad 3" with latest iOS 7.1.2
    I found a strange bug by accident. I can repeat it, although it doesn't always work out.
    Here it goes: When I turn my iPad on from black screen to start screen and slide unlock
    bar like this (Finnish language set)
    If I stop there (correct spot changes and not always the same) and then flip iPad, so
    screen turns automatically (up and side both works).
    This will result so, that unlock bar is stuck and I can't open iPad anymore. Not without turning
    power off and then back on. This problem came with 7.0+
    Would be intresting to know, if this is known thing and can others repeat this with other
    iPads?
    Thanks for your time.

    I would suggest getting a copy of wireshark and see if the browser is behaving, I have seen
    lots of issues where the server is closing the connection and Safari still tries to send more data, which
    violates the RFC. You would also notice lots of tcp connections being opened possibly as well if the
    site finishes loading. I have been trying to use Safari exclusively for a while, but somehow I always end up in Firefox. Hopefully they will have most of the gotcha's under wraps soon, but until than their is always
    Firefox.

  • Possible Liquid Bug: Moving data into e-commerce layout

    Liquid will not seemingly pass any data from outside an e-commerce layout into an e-commerce layouts is intentional or a bug.
    If you create an include place it in a template then try to pass any data ie assign into any ecommerce layout it does not work.
    If you need more help with reproducing this let me know.

    What I have is a gloabal.inc this contains liquid that I would like to be used across a site ie url manipulations date manipulations and many many more. This is inside a head.inc placed at the very top of the template pages.
    What this means is that the global.inc gets rendered first before anything else. You can then run liquid return results and then use it over and over with a simple {{myResult}} tag almost anywhere on a site. It works great, it is simple, fast to implement and has many applications. I can even create a library of .inc liquid files and can place their include's at will in global.inc and then access variables across a site to add and remove functionality. (Of course this is dependant on what you want to do and if it really needs to be global of course.)
    I get that it is dependant on the way BC loads but if that is the reason then the ecommerce must render before the page template. Maybe it does, maybe there is another reason. If it is possible then it would be great to have working.
    Is there other ways to get the result I want yes. But is it as simple, as fast and as easy to implement, add and remove no. If there is a better way I am all ears.

  • Possible strange bug with parallel loops in LV2010

    I have a specific code which does not execute correctly in parallel, but making almost any small change to the code causes it to work.  Even more bizarre, I can change it so that it sometimes works correctly, and somtimes doesn't. Interested?  Read on...
    I have a relatively simple VI (to compute 2D Wavelet Denoising on planes of a 3D array) with the following block diagram (debugging not allowed):
    The parallel loop is set to 8 automatically-partitioned instances, and I've tested this on 2-core and 8-core machines.  When the #cores wired into the loop is not one, several of the iterations do not compute (for example 4 out of 24).  I can check this by putting a break in the VI called inside the loop and counting how many times it is called.
    I can do a number of things to make all iterations run:
    - put an indicator inside the loop on the iteration number, or anything else (except the P node)
    - wire the iteration number outside the loop to an indicator
    - remove the case structure
    - remove the loop in the other case (it's at the moment identical except for a call to a different VI which uses Discrete WT instead of Undecimated WT -- if I change the other case to match this one, the other case runs fine but this one still fails)
    - change code outside the loop
    - turn on debugging!
    - change the loop setup to another number of instances other than 8
    - change the loop setup to set the number of partitions
    I can also do a number of things that do not solve the problem:
    - rewriting the loop from scratch
    - copying the loop from the other case
    - saving for LV2009 (in which everything runs as expected) and then reloading (and presumably recompiling) in 2010
    Stranger still, if I replace the called VI with a dummy VI (which simply adds one to the input 2D array so I can tell if it executes), then as long as the other wires are still wired in, it sometimes executes all iterations, and sometimes doesn't (roughly 50% split)!!!  Any other changes and it always works fine.
    I've managed to replace as much as possible with dummy code and still keep the results the same (i.e. sometimes executing all iterations and sometimes not).
    If you want to check it out (on a multicore machine with LV2010), run LoopTest.vi, and the results at the index shown should sometimes be 13 and sometimes 14. Changing #cores to 1 will always give a result of 14, changing WT to DWT always gives 14, even though the code inside both cases is identical!
    Hope it's not just me, otherwise I'll be sure that LV hates me!
    Attachments:
    LoopTest.zip ‏355 KB

    OK, here's a new version that exhibits the same behaviour, but is hopefully simpler to understand.
    The expected result is to add one to the whole array, however sometimes not all of the parallel iterations are executed.  Run ParallelLoopTest.vi from the attached ZIP file on a multi-core machine to verify.  This screenshot shows that sometimes it works correctly, and sometimes not:
    The code in the other case is identical (created by duplicating the case) but always works correctly.
    Attachments:
    ParallelLoopTest.zip ‏63 KB

  • ORA-20876 in csv export from interactive report = Possibly a bug?

    Hi Apex team,
    yesterday i tried to download data to csv from an interactive report. The resulting csv file contained a "ORA-20876: Stop APEX Engine" only and no other data. I played around with other reports in my application and had no problems with exports.
    After some investigation i found out that the buggy report contains a column of display type "Display as text (based on a LOV, escape special characters)". When I changed this column type to "Standard Report Column" for example, the error didn't appear anymore and the csv export contained complete data.
    Maybe this is a bug? The environment is Apex 4.1.1.00.23 on 11g (UTF-8). Is there a workaround available?
    Regards,
    Jens
    Edited by: j.gauger on 06.02.2013 14:10
    Additional Information
    The problem seems to occur only if a Shared Components LOV of type "Static" is referenced in the IR column.

    Hi,
    what happens if you take the query from IR report and create a new classic report?
    On this report enable csv export and then try the export.
    Maybe that (format) data are causing export to fail.
    Try to export just one row in your IR report (and classic report), so that you add where rownum < 2.
    Regards,
    Aljaz
    Edited by: Aljaz on 6.3.2012 23:11
    Edited by: Aljaz on 6.3.2012 23:29

  • Help with Possible Mask Bug in CF8

    When letting a user edit their PRICE field at my website, I
    populate the field with the VALUE attribute (as seen below) using a
    MASK:
    <CFINPUT TYPE="TEXT" NAME="price" VALUE="#price#" SIZE="7"
    MAXLENGTH="7" MASK="9999999">Enter your price
    <B>without</B> decimals, cents, or dollar signs.
    Examples: 45, 1, 17900.
    However, when pulling the number from the database, CF8 will
    add trailing zeros to the number!!!!
    For example: if #price# equals 25, the value populated in the
    field is 2500000!!!
    Is this a bug? When I reamove the mask, it works fine. It's
    not doing this on my CF 4.5 (installed on my own server). I am
    using a paid providers' CF8.
    If it is a bug, how would I fix this and how do you report a
    bug? This is the 2nd one I found using CF8 (the other was
    Validate="integer" actually allows "$" as an integer ...also "$$$"
    and "$454$3$$3$", etc.)
    -Tony

    tony17112acst wrote:
    > Is this a bug? It's not doing this on my CF 4.5
    (installed on my own server).
    hmm... the 'mask' attribute was introduced in CFMX7...
    Azadi Saryev
    Sabai-dee.com
    http://www.sabai-dee.com

  • Possible GET_PRINT_DOCUMENT bug (signature 2)

    APEX 4.0.2
    Oracle 11.2.0.1.0
    Based on our testing, GET_PRINT_DOCUMENT only returns XML for report queries within the current application.
    i.e. It appears the GET_PRINT_DOCUMENT API ignores the value passed into p_application_id.
    I verified this behavior on apex.oracle.com:
    http://apex.oracle.com/pls/apex/f?p=29224
       l_xsd_blob := APEX_UTIL.GET_PRINT_DOCUMENT (
        p_application_id      => l_app_id,
        p_report_query_name   => l_report_name,
        p_report_layout_name => null,
        p_report_layout_type => null, 
        p_document_format     => 'xml',
        p_print_server => null);Does this look like a bug?

    Marc,
    Thanks for the quick response and all of your recent help regarding advanced printing.
    Once the bug is filed, is there a way for me to monitor the status on Metalink?
    Best wishes,
    Eric

  • Possible Problem/Bug In GridBag Layout ????

    I've done hundreds of Gridbag layouts in the past 2 years and just noticed this weird little behavior today.....
    Basically what I'm trying to do is arrange panels like this.....
    +--------+--------+--------+
    |        |        |        |
    |   A    |    B   |   C    |
    |        |        |        |
    +--------+----+---+--------+
    |             |            |
    |     D       |      E     |
    |             |            |
    +-------------+------------+The obvious thing to do is to
    o make the gridwidths of
    B, D, E = 2
    A, C = 1
    D and E should each share one unit of
    B's 2 width.
    Tried it in my code with my real UI and it didn't work, so then I tested it
    out using a Gridbag tool where you can set parameters on the fly quickly and
    surely enough it did not work there either.
    The GridBagLayout is refusing to split B into 2 portions for the 2nd row
    to use in an unalligned fashion. I either get
    +--------+--------+--------+
    |        |        |        |
    |   A    |    B   |   C    |
    |        |        |        |
    +--------+----+---+--------+
    |        |                 |
    |     D  |           E     |
    |        |                 |
    +--------+-----------------+  or
    +--------+--------+--------+
    |        |        |        |
    |   A    |    B   |   C    |
    |        |        |        |
    +--------+----+---+--------+
    |                 |        |
    |     D           |  E     |
    |                 |        |
    +--------+--------+--------+ depending on the order in which I add my panels to the layout.
    even though my gridx, gridy and widths and heights are properly set for
    obtaining the result I want.
    Can someone confirm that this is a bug in the GridBagLayout or share the trick for
    getting around this?

    Thanks for the reply - I can set the weights however
    I wish and I never see box D extending even one pixel
    into the A-B boundary.This does what you say...
    import java.awt.*;
    import javax.swing.*;
    public class TestFrame extends JFrame {
      public TestFrame() {
        JPanel panel = new JPanel(new GridBagLayout());
        GridBagConstraints gbc = new GridBagConstraints();
        gbc.gridx = 0;
        gbc.gridy = 0;
        gbc.fill = GridBagConstraints.BOTH;
        gbc.weighty = 0.5; 
        panel.add(new JButton("A"), gbc);
        gbc.gridx = 1;   
        gbc.gridwidth = 2; 
        panel.add(new JButton("B"), gbc);
        gbc.gridx = 3;   
        gbc.gridwidth = 1;
        panel.add(new JButton("C"), gbc);
        gbc.gridx = 0;
        gbc.gridy = 1;
        gbc.gridwidth = 2;
        gbc.weightx = 0.5;
        panel.add(new JButton("D"), gbc);
        gbc.gridx = 2;
        panel.add(new JButton("E"), gbc);
        getContentPane().add(panel);
        setSize(400, 300);
        setDefaultCloseOperation(EXIT_ON_CLOSE);
      public static void main(String[] args) {
        TestFrame frame = new TestFrame();
        frame.setVisible(true);
    }But i'm sure it's not a satisfactory layout because button A does not want to resize horizontally at all. But of course, a mix of grid layouts does the trick:
    import java.awt.*;
    import javax.swing.*;
    public class TestFrame extends JFrame {
      public TestFrame() {
        JPanel panel = new JPanel(new GridLayout(2, 1));
        JPanel top = new JPanel(new GridLayout(1, 3));
        top.add(new JButton("A"));
        top.add(new JButton("B"));
        top.add(new JButton("C"));
        panel.add(top);
        JPanel buttom = new JPanel(new GridLayout(1, 2));
        buttom.add(new JButton("D"));
        buttom.add(new JButton("E"));
        panel.add(buttom);
        getContentPane().add(panel);
        setSize(400, 300);
        setDefaultCloseOperation(EXIT_ON_CLOSE);
      public static void main(String[] args) {
        TestFrame frame = new TestFrame();
        frame.setVisible(true);
    }

  • Unicode line-drawing characters - possible Java bug?

    Hi all, I am trying to draw a box using line drawing characters in UTF-8. I make the UTF-8 box file in Microsoft Word where it looks aligned. However, when I run my Java program to display the box in a JTextArea, it is all out of alignment like below. Is this a bug in Java that prevents it from displaying aligned line-drawing characters? I am tearing my hair out over this so your help is much appreciated.
    Regards,
    Rianmal.
    &#9556;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9559;
    &#9553;&#9553;&#9553;&#9553;&#9553;&#9553;&#9553;&#9553;&#9553;&#9553;&#9553;&#9553;&#9553;&#9553;&#9553;&#9553;&#9553;&#9553;&#9553;&#9553;&#9553;
    &#9553; &#9553;
    &#9553;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#9553;
    &#9553;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#9553;
    &#9553;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#9553;
    &#9553;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#9553;
    &#9553;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#9553;
    &#9553;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#9553;
    &#9553;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#9553;
    &#9553;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#9553;
    &#9562;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9565;

    sabre,
    Looks like monospaced isn't found on windows (vista)... So I used "Courier New" instead.
    Sabre20090412a.java is saved with encoding=UTF-8 (i.e. CP1252) instead of the default ASCII, which doesn't support the extended characters.
    package forums;
    import java.awt.Font;
    import javax.swing.JFrame;
    import javax.swing.JTextArea;
    public class Sabre20090412a
      private static final String text;
      static {
        String t;
        t =  "&#9556;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9559;\n"; // LINE 12
        t += "&#9553;&#9553;&#9553;&#9553;&#9553;&#9553;&#9553;&#9553;&#9553;&#9553;&#9553;&#9553;&#9553;&#9553;&#9553;&#9553;&#9553;&#9553;&#9553;&#9553;&#9553;\n";
        t += "&#9553;                   &#9553;\n";
        t += "&#9553;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#9553;\n";
        t += "&#9553;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#9553;\n";
        t += "&#9553;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#9553;\n";
        t += "&#9553;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#9553;\n";
        t += "&#9553;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#9553;\n";
        t += "&#9553;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#9553;\n";
        t += "&#9553;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#9553;\n";
        t += "&#9553;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#8729;&#9553;\n";
        t += "&#9562;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9565;\n"; // LINE 23
        text = t;
      public static void createAndShowGUI() {
        final JFrame frame = new JFrame("Test");
        final JTextArea ta = new JTextArea();
        ta.setFont(new Font("Courier New", Font.PLAIN, 14)); // <<<<< Note font-name="Courier New"
        ta.setText(text);
        frame.setContentPane(ta);
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.pack();
        frame.setLocationRelativeTo(null);
        frame.setVisible(true);
      public static void main(String[] args) {
        javax.swing.SwingUtilities.invokeLater(new Runnable() {
          public void run() {
            createAndShowGUI();
    build (NOTE the -encoding utf-8)*
    cd /d C:\Java\home\src\forums
    "C:\Program Files\Java\jdk1.6.0_12\bin\javac.exe" -encoding utf-8 -Xlint -d C:\Java\home\classes -cp c:\java\home\src;.;C:\Java\home\classes C:\Java\home\src\forums\Sabre20090412a.java
    run
    cd /d C:\Java\home\src\forums
    "C:\Program Files\Java\jdk1.6.0_12\bin\java.exe" -cp C:\Java\home\classes forums.Sabre20090412a
    References:
    http://www.google.com/search?q=warning%3A+unmappable+character+for+encoding+Cp1252&hl=en
    http://en.wikipedia.org/wiki/Windows-1252 #says 1252== IANIA UTF-8 except
    http://www.utf8-chartable.de/unicode-utf8-table.pl #page for 2500 onwards
    http://forums.sun.com/thread.jspa?threadID=5185338 #-encoding
    http://www.java2s.com/Code/Java/2D-Graphics-GUI/Listallavailablefontsproviedinthesystem.htm
    Roedy Green rocks!
    http://mindprod.com/jgloss/font.html#AVAILABLEJ
    http://mindprod.com/applet/fontshower.html
    Thanx for the fish!
    Cheers. Keith.

Maybe you are looking for