JTextPane StyledDocument insertString multi Icon problem (BUG?)

Hi,
Now I am trying to insert some icons to the StyledDocument of JTextPane.
I found a problem that if I want to insert the same Icon (actually the same style which contains this icon) into the StyledDocument for more than one time, only the first insert operation works.
But if I insert a whitespace (or other non-zero length text) between the twe icon, it can works. I don't know it's my mis-using of this StyledDocument or it's a bug of JTextPane and StyledDocument?
Thanks!
My sample code below: To Run this code, you need to add a "icon" named "t1.jpg" in your project directory ^_^
import java.awt.BorderLayout;
import javax.swing.ImageIcon;
import javax.swing.JFrame;
import javax.swing.JTextPane;
import javax.swing.text.Style;
import javax.swing.text.StyleConstants;
import javax.swing.text.StyleContext;
import javax.swing.text.StyledDocument;
public class JTextPaneInsertIcons
     public static void main(String[] args) throws Exception
          JTextPane pane = new JTextPane();
          ImageIcon icon = new ImageIcon("t1.jpg");
          StyledDocument styledDocument = pane.getStyledDocument();
          Style iconStyle = styledDocument.addStyle("icon", null);
          StyleConstants.setIcon(iconStyle, icon);
          styledDocument.insertString(styledDocument.getLength(), " ", iconStyle);
          styledDocument.insertString(styledDocument.getLength(), " ", iconStyle);
          styledDocument.insertString(styledDocument.getLength(), "\n", StyleContext.getDefaultStyleContext().getStyle(StyleContext.DEFAULT_STYLE));
          styledDocument.insertString(styledDocument.getLength(), " ", iconStyle);
          styledDocument.insertString(styledDocument.getLength(), " ", StyleContext.getDefaultStyleContext().getStyle(StyleContext.DEFAULT_STYLE));
          styledDocument.insertString(styledDocument.getLength(), " ", iconStyle);
          JFrame frame = new JFrame();
          frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
          frame.getContentPane().add(pane, BorderLayout.CENTER);
          frame.setSize(360, 180);
          frame.setVisible(true);
}

OK, OK, I got it.
Thank you so much!
It seems I need to solve this problem ugly like this:
import java.awt.BorderLayout;
import javax.swing.ImageIcon;
import javax.swing.JFrame;
import javax.swing.JTextPane;
import javax.swing.text.AttributeSet;
import javax.swing.text.Element;
import javax.swing.text.Style;
import javax.swing.text.StyleConstants;
import javax.swing.text.StyleContext;
import javax.swing.text.StyledDocument;
public class JTextPaneInsertIcons
     static StyledDocument styledDocument;
     public static void main(String[] args) throws Exception
          JTextPane pane = new JTextPane();
          ImageIcon icon = new ImageIcon("1.jpg");
          styledDocument = pane.getStyledDocument();
          Style iconStyle = styledDocument.addStyle("icon", null);
          StyleConstants.setIcon(iconStyle, icon);
          insertOne(iconStyle);
          insertOne(iconStyle);
          JFrame frame = new JFrame();
          frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
          frame.getContentPane().add(pane, BorderLayout.CENTER);
          frame.setSize(600, 400);
          frame.setVisible(true);
     private static void insertOne(Style style) throws Exception
          if (style.getAttribute(StyleConstants.IconAttribute) != null)
               if (styledDocument.getLength() > 0)
                    Element e = styledDocument.getCharacterElement(styledDocument.getLength() - 1);
                    AttributeSet attributeSet = e.getAttributes();
                    if (style.getAttribute(StyleConstants.IconAttribute) == attributeSet
                              .getAttribute(StyleConstants.IconAttribute))
                         styledDocument.insertString(styledDocument.getLength(), " ", StyleContext
                                   .getDefaultStyleContext().getStyle(StyleContext.DEFAULT_STYLE));
          styledDocument.insertString(styledDocument.getLength(), " ", style);
}

Similar Messages

  • Multi-select LOV bug and Developer6i R2 Patch7

    Has anyone verified that Patch7 corrects the problem with multi-
    select LOV bug (see below). The Headstart6i Report Launch form
    (QMS0012F) exhibits this bug (when using the demo reports for
    example) and we were unsuccessful applying the workaround (see
    below). We will upgrade to Patch7 if this bug is fixed or we
    could use a little help from the HeadStart team correcting the
    Report Launch form to get around this bug. Thanks, Keith
    We have found one odd quirk with Headstart 6i and Forms
    6i versions 6.0.13 and higher.
    Description ===========
    1. When using a multi-select LOV (which is displayed in a modal
    dialog window), you select the records you want, press OK, and
    the application exits.
    2. When using a shuttle control to move records from left to
    right or vice versa, you select the records you want, press '>'
    to move them, and the application exits. This occurs in Forms
    6.0.8.13.0 and higher. It did NOT occur in prior releases. This
    is some kind of forms bug.
    Workaround ==========
    For some reason the call to procedure 'renumber' in
    qms$msel.process_records in qmslib65.pll causes the application
    to exit. If you copy the code from renumber to all the places
    from which it is called, it works fine.

    So far as I know, this bug has not yet been corrected.
    You will have to apply the fix as described in your email
    message.
    Regards, Lauri

  • [svn:fx-4.x] 15006: Menu check icon mirroring bug fix

    Revision: 15006
    Revision: 15006
    Author:   [email protected]
    Date:     2010-03-24 16:38:11 -0700 (Wed, 24 Mar 2010)
    Log Message:
    Menu check icon mirroring bug fix
    http://bugs.adobe.com/jira/browse/SDK-25976 - Un-mirror the check icon when layoutDirection=rtl for menu/menuBar
    Update MenuCheck and MenuCheckDisabled to use layoutDirection=LTR
    QE notes: none
    Doc notes: none
    Bugs: SDK-25976
    Reviewer: Kevin
    Tests run: checkintests
    Is noteworthy for integration: no
    Ticket Links:
        http://bugs.adobe.com/jira/browse/SDK-25976
        http://bugs.adobe.com/jira/browse/SDK-25976
    Modified Paths:
        flex/sdk/branches/4.x/frameworks/projects/sparkskins/src/mx/skins/spark/MenuCheck.mxml
        flex/sdk/branches/4.x/frameworks/projects/sparkskins/src/mx/skins/spark/MenuCheckDisabled .mxml
        flex/sdk/branches/4.x/frameworks/projects/wireframe/src/mx/skins/wireframe/MenuCheck.mxml
        flex/sdk/branches/4.x/frameworks/projects/wireframe/src/mx/skins/wireframe/MenuCheckDisab led.mxml

    90% of browser rendering problems are caused by invalid code.   See details here:
    http://validator.w3.org/check?verbose=1&uri=http%3A%2F%2Fwww.i-sensors.com%2F
    You have a bunch of unclosed <img /> tags on your menus.
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb

  • WRV200 multi SSID problem

    Hi. now i'm using WRV200 Router model.(use Multi SSID)
    - first and second SSID and encryption method is WPA-PSK, working well and no problem.
    - third SSID is working well first day, but next day, can be search SSID, but not getting a IP and connection failed.
      (if appear this enter administrator mode, not changed any other information, just click to save settings, then i use third SSID in oneday)
    - third SSID encryption method is WEP
    - Channels are used to channel 6
    - in this case, how can i fixed it?
      is this problem, SSID's problems? or channel's proble?
      why occur to multi SSID problem?
    pls help me

    The goal is to create one WLAN (wifi) with wpa2 and mac filtering that connect direcly to the physical network with server access, and the other WLAN (public) with only wpa2 protection and in isolated VLAN, for the guest.
    Suppose to have two SSID wifi and public (the second in the router web ui), both WPA2 Personal w/o MAC Filtering and w/o VLAN.
    I use only PC.
    With my laptop (windows 7) and two other laptop (win XP, win 7), I can see both SSID in wireless list, can connect to the first SSID.
    When I try to connect to the second SSID, the connection fail
    In the attachment you can see the actual router configuration.
    In the page Status -> Wireless LAN, ONLY one SSID is displayed (but is this web ui bug?).
    Thanks in advance

  • JTextPane, StyledDocuments

    Hello,
    I have just been studying the Documents and StyledDocuments, however I cannot get my JTextPane to show any of my data. I have a few questions:
    1. Does anyone know of a good practical tutorial for working with the JTextPane and a Styled Documents?
    2. Does anyone know of a set of classes that will interpret input from files other than plain text (take the binary input of a wordprocessing style file and display it correctly as formatted text in a JTextPane or some other Object)?
    3. Is there an easier way of dealing with formatting text than using a StyledDocument?
    4. Here is a copy of my code for the simple test I wrote with Styled Documents and JTextPanes: If possible can anyone tell me what is wrong with this?
    package FileReader;
    import javax.swing.*;
    import javax.swing.text.*;
    import java.awt.event.*;
    import java.awt.*;
    import java.util.*;
    public class JTextPaneTest extends JFrame {
    private JTextPane txtPne = null;
    private DefaultStyledDocument docu = null;
    private StyleContext styles = new StyleContext();
    private JScrollPane pne = null;
    private StringContent strCon = new StringContent();
      public JTextPaneTest() {
        super("Stylized Text Pane");
        //SimpleAttributeSet set1 = new SimpleAttributeSet();
        Enumeration enum = styles.getStyleNames();
        while(enum.hasMoreElements()){
          System.out.println((String)enum.nextElement());
        try{
          strCon.insertString(0,"\tHere is some text\nThis is a simple Test\n\nNew Paragraph?");
          System.out.println(strCon.getString(0,strCon.length()));
        catch(BadLocationException e){
          e.printStackTrace();
        Style styl = styles.getStyle("default");
        StyleConstants.setBold(styl,false);
        StyleConstants.setFontSize(styl,14);
        StyleConstants.setFontFamily(styl,"SanSerif");
        docu = new DefaultStyledDocument(strCon,styles);
        txtPne = new JTextPane(docu);
        pne = new JScrollPane(txtPne);
        this.getContentPane().add(pne);
        this.setSize(400,400);
        this.setVisible(true);
      public static void main(String[] args) {
        final JTextPaneTest jTextPaneTest = new JTextPaneTest();
        jTextPaneTest.addWindowListener(
          new WindowAdapter(){
            public void windowClosing(WindowEvent e){
              System.exit(0);
    }Running the file does not show any value in the document, although I passed it an object that implements the Content interface.
    Any help greatly appreciated,
    Dan Hughes

    Here is a sample coding for u :-)
    import javax.swing.*;
    import java.awt.*;
    import javax.swing.text.*;
    public class ColorTextPane extends JFrame {
    JTextPane text=new JTextPane();
    StyledDocument doc;
    SimpleAttributeSet set=new SimpleAttributeSet();
    public ColorTextPane()
    this.getContentPane().add(text,BorderLayout.NORTH);
    this.getContentPane().add(new JLabel("This is a simple JTextPane Demo !"),BorderLayout.CENTER);
    text.setText("This is a simple JTextPane Demo !");
    doc=text.getStyledDocument();
    StyleConstants.setForeground(set,Color.blue);
    try{
    doc.remove(10,6);
    doc.insertString(10,"simple",set);
    doc.remove(5,2);
    StyleConstants.setForeground(set,Color.red);
    StyleConstants.setFontFamily(set,"Chevera");
    StyleConstants.setFontSize(set,22);
    doc.insertString(5,"is",set);
    }catch(BadLocationException b){}
    this.setSize(250,120);
    this.setVisible(true);
    public static void main(String a[])
    new ColorTextPane();

  • Icon Problem vs Warranty

    The icon problem happened to me and after trying everything I put it in a Apple dealer. Is this type problem included in the Warranty? The product just had 3 weeks and it stoped working properly. The dealer says I have to pay the repair.
    Thank you.

    I've also tried that. The iPod is already in repair and the retailer said I had to pay, I was just seeing if I had the right to argue on this subject. Guess not.
    Thank you for your help. It's a shame that so many people are having these problems and Apple still has no answer.
    Well hope the next one to buy has more luck or chooses another product.
    Thank you once more.

  • Reporting some proxy problems/bugs

    Is there a way to report problems/bugs in the proxy software without having support? I believe this can be done for Java, but what about the proxy?
    In our environment we are using the proxy software (currently v4.0.5, but I haven't seen these items in the release notes of the newer versions of the software) in the reverse proxy mode and have encountered what I believe may be a couple of bugs.
    Possibly related to a previous poster's "Content-length mismatch" error message, it seems that some app servers respond to an If-modified-since conditional GET request incorrectly by sending a Content-length header along with the "304 not modified response" (there should be no such header in a 304 response). When proxy caching is enabled and the GZip compression filter is used, one result I have seen is the "Content-length match" error message which happens when the incorrectly included Content-length header has a non-zero value. A different result occurs when the incorrectly included Content-length header has a value of zero - the proxy response body gets truncated (completely removed).
    A second issue I have seen is with the reverse proxy's handling of a POST with a trailing CR/LF which some browsers (IE) send incorrectly (there should be no such trailing CR/LF in a POST request). The proxy seems to handle the trailing CR/LF for the request/response, however if HTTP1.1 keepalive is used and the POST is followed by a GET request on the same open connection from the browser then the access log entry for the GET request will be broken across two lines.
    Hopefully someone from Oracle monitoring these forums will pass these on to the proxy dev team.

    Yep, I realize Safari on Windows uses Windows Internet Options to get proxy server info BUT the Windows Internet Options don't provide a place to specify the proxy login information.
    As a result, when the browser contacts the proxy it usually (or should) prompt the user for the login info. Safari did the first time and I told it to save the info. Then my login info changed and rather than prompt for it again, Safari sits there and doesn't load any pages.
    IE7 uses the same proxy without problems because IE uses the domain login credentials to connect to the proxy server.
    Google Chrome uses the Windows Internet Options for proxy support and it prompts me to login to the proxy each time I fire it up and access a website.
    Mozilla Firefox 3.0.4 will prompt me for login information if the login info it has stored won't work for the proxy connection.
    Opera 9.62 prompts me for the proxy login information each time I fire it up, just like Google Chrome.
    Out of all of those browsers, Safari is the only one that can't use the proxy because I can't change the login information for the proxy connection.
    Peace...

  • OWB 11.2.0.1 – Known Problems/bugs resolutions ?

    OWB 11.2.0.1 – Known Problems/bugs resolutions ?
    ==========================================
    We are using OWB 11gR2, Java(TM) Platform     1.5.0_17, Oracle IDE     11.2.0.1.0.
    We are finding the strange behavior in OWB Design center. Here is the situation.
    1) OWB Design Center>Databases>Defined Module> Mappings>MAP1>Mapping Editor>Expression Editor>
    Output attributes>Expression Builder
    Specify the expression and press OK.
    Another Expression Builder opens up with blank window. We need to specify the expression again.
    2) Same as above after opening expression Builder, if we go to another apps (eg. SQL Developer, MS Word) and come back expression Builder disappeared from the context.
    We find only Expression Editor. Design Center Hangs. It is not responding to any KEYs. We need to kill the application via task manager and re-start.
    Are these issues related to OWB client piece or OWB Client+Server piece?
    We did not find any events reporting at DB alert Logs for such events. Do we need to set up some trace ON to record such events?
    Are there any log files/tables record such events at OWB repository level to trace back?
    Do we have OWB 11.2.0.1 known issues/bugs, resolutions list posted somewhere?
    Thanks in helping.

    We reviewed the release notes, where it says this patch will improve performance (Bug 7359939).
    We find another note in metalink (provided by our DBA team) says
    Poor Performance of Mapping Validation / Generation in: OWB 11.2.0.1 + Megapatch 10270220 and OWB 11.2.0.2 [ID 1303177.1]
    Are we going to face a new problem after applying this patch?
    Thanks in helping.

  • GreenSock Doubling Problem (Bug?)

    I've run into an issue where if I set the visibility to an object that is being tweened to 1, GS creates a second instance of the object.
    In the attached file, click the 'btn' and notice that a 2nd row of envelopes is created and they are not blitted like the original instance.
    Bug or operator error?
    Thanks.
    www.thepixelfarm.com/tmp/GS_doublingProb01.zip

    This is NOT a bug. See the answer in the GreenSock forums:
    http://forums.greensock.com/topic/6163-greensock-doubling-problem-bug/

  • Ios 7 icon problems still persist in air 3.9.0.1030

    In the release notes of air 3.9.0.1030 sdk it says:
    Notable bug fixes:
    [3622405] [AIR] [iOS7] - iOS7 requires 5 new icon sizes: 76px, 120px, 152px, 40px, 80px
    But i cant still select those icon sizes when publishing? is still being any problem?

    You can edit the xml then compile with command line. But I am still having a few tweaking issues but it should work this way.  But yes I hope we get a new build soon.....

  • Uix 2.2.8 multi monitor related bug

    Hi,
    I have a multi monitor system, on the seconnd screen, there is the browser , showing a page which has a Date Picker and a LOV. If I click on one of the icons, the window opens, and then all of a sudden jumps to the first screen with IE, with Mozilla it already opens on the first one. Same screen would be nice though.
    Bye Jan

    Hello Jan,
    In the UIX javascript code the newly opened window's coordinates are checked to make sure it is not partially off the screen. If so, the window's coordinates are adjusted to put it on the screen.
    I think there is a bug in IE which doesn't treat the multi-monitors as a single monitor, or something like that. Unfortunately, I doubt we can do anything about this.
    Are you saying it works in Mozilla, correct?
    Thanks,
    Jeanne

  • Icon problem in forms 10g

    hii
    I have oracle 10g forms installed on my pc, I want to display some icons on the button.i have done all of the required things like:I have kept all the gif icons in the particular place,& have changed the formsweb.cfg file by changing imagebase parameter to codebase,& I have changed the same path in the registry.dat file,as well as I have set the iconic property too,,,
    Now the main problem is that I am unable to see all these icons at the run time,at the design time icons are viewable,,wat changes should I do now???
    Plz help
    mohan kumar........

    hi,
    below is my complete registry.dat text.---------
    # This is the Registry file.
    # This file contains the logical [Java] Class name and an associated
    # [numerical] identifier that will be used to refer to objects of the
    # class in order to reduce the amount of information that needs to be
    # repeatedly transmitted to the client.
    # This file is of the Form understood by java.util.Properties (for now)
    # The System Level sound file is relative to the CODEBASE
    oracle.classById.1=oracle.forms.engine.Runform
    oracle.classById.4=oracle.forms.handler.FormWindow
    oracle.classById.5=oracle.forms.handler.AlertDialog
    oracle.classById.6=oracle.forms.handler.DisplayList
    oracle.classById.7=oracle.forms.handler.LogonDialog
    oracle.classById.8=oracle.forms.handler.DisplayErrorDialog
    oracle.classById.9=oracle.forms.handler.ListValuesDialog
    oracle.classById.10=oracle.forms.handler.EditorDialog
    oracle.classById.11=oracle.forms.handler.HelpDialog
    oracle.classById.12=oracle.forms.handler.FormStatusBar
    oracle.classById.13=oracle.forms.handler.MenuInfo
    # oracle.classById.14=UNUSED
    oracle.classById.15=oracle.forms.handler.ApplicationTimer
    oracle.classById.16=oracle.forms.handler.MenuParametersDialog
    oracle.classById.17=oracle.forms.handler.PromptListItem
    oracle.classById.18=oracle.forms.handler.CancelQueryDialog
    oracle.classById.257=oracle.forms.handler.TextFieldItem
    oracle.classById.258=oracle.forms.handler.TextAreaItem
    oracle.classById.259=oracle.forms.handler.FormCanvas
    oracle.classById.261=oracle.forms.handler.ButtonItem
    oracle.classById.262=oracle.forms.handler.CheckboxItem
    oracle.classById.263=oracle.forms.handler.PopListItem
    oracle.classById.264=oracle.forms.handler.TListItem
    oracle.classById.265=oracle.forms.handler.CfmVBX
    oracle.classById.266=oracle.forms.handler.CfmOLE
    oracle.classById.267=oracle.forms.handler.RadioButtonItem
    oracle.classById.268=oracle.forms.handler.ImageItem
    oracle.classById.269=oracle.forms.handler.IconicButtonItem
    oracle.classById.270=oracle.forms.handler.BlockScroller
    oracle.classById.271=oracle.forms.handler.JavaContainer
    oracle.classById.272=oracle.forms.handler.TabControl
    oracle.classById.273=oracle.forms.handler.ComboBoxItem
    oracle.classById.274=oracle.forms.handler.TreeItem
    oracle.classById.281=oracle.forms.handler.PopupHelpItem
    # Defaults for the Font details, all names are Java Font names. Each of
    # these parameters represents the default property to use when none is
    # specified.
    # defaultFontname represents the default Java fontName.
    # defaultSize represents the default fontSize. Note that the size is
    # multiplied by 100 (e.g. a 10pt font has a size of 1000).
    # defaultStyle represents the default fontStyle, PLAIN or ITALIC.
    # defaultWeight represents the default fontWeight, PLAIN or BOLD.
    default.fontMap.defaultFontname=Dialog
    default.fontMap.defaultSize=900
    default.fontMap.defaultStyle=PLAIN
    default.fontMap.defaultWeight=PLAIN
    # Default Font Face mapping.
    # appFontname represents a comma delimited list of Application Font Names.
    # javaFontname represents a comma delimited list of Java Font Names.
    # The number of entries in the appFontname list should match the number in
    # the javaFontname list. The elements of the list are comma separated and
    # all characters are taken literally, leading and trailing spaces are
    # stripped from Face names.
    # Note that this file uses the Java 1.1 Font names in order to be able to
    # handle the NLS Plane (BUG #431051)
    default.fontMap.appFontnames=Courier New,Courier,courier,System,Terminal,Fixed,Fixedsys,Times,Times New Roman,MS Sans Serif,Arial
    default.fontMap.javaFontnames=MonoSpaced,MonoSpaced,MonoSpaced,Dialog,MonoSpaced,Dialog,Dialog,Serif,Serif,Dialog,SansSerif
    # The Application Level icon files are relative to the DOCUMENTBASE
    # example: icons/
    # or an absolute URL.
    # example: http://www.forms.net/~luser/d2k_project/
    default.icons.iconpath=oracle\forms\icn
    default.icons.iconextension=gif
    # Application level settings to control UI features
    app.ui.lovButtons=false
    app.ui.requiredFieldVA=false
    # The background color is specified as an RGB triple.
    app.ui.requiredFieldVABGColor=255,0,0

  • Thread Status Icon Problem

    Hi,
    A problem that I have been facing for quite a while now is that several threads appear with the status icon which means that "Threads whose contents have changed since my last visit (semi orange icons)" but the issue is that I have never visited those threads. So how come they are marked with such a status (they should just be white icons).
    Please check this out
    Regards

    A problem that I have been facing for quite a while
    now is that several threads appear with the status
    icon which means that "Threads whose contents have
    changed since my last visit (semi orange icons)" but
    the issue is that I have never visited those threads.
    So how come they are marked with such a status (they
    should just be white icons).Mmmm shouldn't then they be orange if youv'e never visited them?
    OK I also sometimes have problems, I log in and got a big list of unread or semi-unread threads. And suddenly somewhere in the middle of all them one or two that are white showing that I've completely read them. But it is not possible, unless of course someone other is not working under my account which I hope is not true ;)
    Probably someone just edited the post and it doesn't mean that thread has been updated?
    Anyway to be frank for me this possible bug is on a very low priority because it happens quite rare and the problems coming out of this are quite tiny. I'd classify this bug as "cosmetic" ;)
    Gints Plivna
    http://www.gplivna.eu

  • Multi-Camera Problems in Premiere CC v7.1.0 (141)

    I have the CC edition of Premiere and it automatically updated a couple days ago to v.7.1.0 (141), but ever since the update, I've tried to create multi-camera sequences, nest it in a target sequence and instead of just showing 1 layer of vidoe and 1 layer of audio in the target sequence, it shows all videos and all audio from the multi-camera sequence.  Because of it, I can no longer enable multi-camera editing.  Can someone help or anyone else having similar problems?  I'm using a MBP OSX (v10.9), 2.7 GHz Intel Core i7, 16 GB RAM.

    Is the "linked selection" icon selected or not? You can find that on the top right of your timeline. Toggling it allows you to drop a nested sequence (eg. multicam) on a timeline as either one single nested clip or as the expanded view with all the clips showing which it sounds like you are referring to. It's the middle icon here:
    Good luck!

  • Problem/bug with AIR 3.0

    Hi guys,
    I'm here again. I got this error when I tried to publish my project with AIR 3.0.. Actually, I've created an application usign AIR 2.6 (default comes with CS 5.5). It was used to get published and I used to update it on regular basis. Few days back I had to copy AIRSDK3 folder to Adobe's program files' folder, where I renamed AIR2.6 to anything else and AIRSDK3 to AIR2.6... Today, when I tried to publish my same project,  I got this following error. Hope that would help adobe (as it is beta version).
    (By the way, when I renamed the folders to their original names, it worked and published).

    Steve,
    We have seen the same thing and reported it to Forte. We have not yet
    heard back with a bug report number...
    For now, we have removed all comments from our sql code.
    Derk
    >
    We have just switched from version 2.0.H.1 to version 3.0.F.2 in development,
    and have discovered a bug with comments in SQL code.
    Anywhere in a cursor definition, or within SQL code in a method, if we use the
    multi-line comment format "/* ... */" even on a single line, then the code
    compiles fine, but crashes at runtime with a "Invalid SQL Command" error. It
    looks as though Forte is including the comment as part of the SQL!
    Has anyone else seen this problem? We have not found it in the known bugs list
    for 3.0.F.2 or the fixed bugs list for 3.0.G
    This worked fine for us prior to version 2, and if we don't get it fixed in
    Forte, it means a lot of rework to change the existing comments to single-line
    "// ..." format.
    Regards,
    Steve Isaac
    Senior Consultant, Information Services Group
    Hydro Electric Corporation of Tasmania
    4 Elizabeth St, Hobart, Australia, 7000
    Phone : +61 03 6230 5161
    e-mail: [email protected]
    Check out: http://mama.indstate.edu/users/sodana/lucado.html
    *** Derk Norton ***
    *** U S WEST Communications Voice : (303) 965-8772 ***
    *** 1801 California Street FAX : (303) 896-3565 ***
    *** Denver, Colorado 80202 Email : [email protected] ***
    **********************************************************************

Maybe you are looking for

  • How to use an BPM Instance Variable in JSP page

    Hi All, I am using the JSP Presentation, but i don't know how to use an Instance variable in JSP page, that instance already declared in the process. And Can u explain the syntax that to include the JS file into jsp page Regards Vasu. Edited by bpmva

  • Organizing pictures in IPhoto

    If I have uploaded photos from multiple CDs and cameras into the same album, i.e. "ireland 2007," how do I organize them so that the same photos are together? My recent family vaccation produced lots of pictures on multiple cameras and I would like t

  • How to I get the Macintoch HD file to my desktop?

    I want my Mac HD file to be on the desktop? how can I do that? Kindly let me know

  • Trying to open images, but getting kicked out of Photoshop

    Trying to open an image and getting an error message that pops up stating: "The instruction at "01xda24b6b" referenced memory at "0x00000028". The memory could not be read. Tried clicking on OK to terminate or Cancel to debug. But still everytime I o

  • Music appearing on my list not downloaded by me

    I am a new user and have only downloaded two free songs so far. Ihave been in the process of importing my cd collection for now. All of a sudden there are songs showing up that I've never heard of. why is this happening and how do I get it to stop. A