[Novice Problem] With CharacterFormat

Hi everybody,
I am working with TLF for few days and I don't understand something...
I have created a textflow, and I want to apply a style (color, fontFamily...) on selected characters
But when I use CharacterFormat, the style is applied on all the text.
My first try (juste change the colortext) :
Here I create my textflow :
private var _textFlow:TextFlow = null;
                private var _container:Sprite = null;
                public var manager:EditManager;
private function initNote():void
                        var controller:IContainerController;
                        _container = new Sprite();
                        textArea.rawChildren.addChild(_container);
                        _textFlow = new TextFlow ();
                        controller = new DisplayObjectContainerController(_container,textArea.width,textArea.height);
                        _textFlow.flowComposer.addController(controller);
                        _textFlow.addEventListener(StatusChangeEvent.INLINE_GRAPHIC_STATUS_CHANGED, graphicStatusChangeEvent);
                        manager = new EditManager(new UndoManager());
                        _textFlow.interactionManager = manager;
                        _textFlow.interactionManager.setSelection(0,0);
                        _textFlow.flowComposer.updateAllContainers();
                        _textFlow.interactionManager.setFocus();
Here, I want to apply the selected color
private function changeCharacterColor(event:ColorPickerEvent):void
                        var cf:CharacterFormat = new CharacterFormat(currentNote.myTextFlow.characterFormat);
                        cf.color = colorChar.value;
                        currentNote.myTextFlow.characterFormat = cf;
                        currentNote.myTextFlow.flowComposer.updateAllContainers();
I checked  the selection to be sure that it is good (thanks to the TextScrap options). But no problem on this side.
I try today with myTextFlow.interactionManager.selectionState.pointFormat = cf to apply the new color. But it doesn't work too.
I think I have miss something. Can somebody help me?
Thank you very much.
NB: Sorry for my bad english :/ (poor french I am )

Any idea?
I work with sdk 3.2, (it's an AIR application), ad the FP 10.
I saw that I have the old version of TLF : http://livedocs.adobe.com/labs/textlayout/flashx/textLayout/events/SelectionEvent.html
and note this one : http://help.adobe.com/en_US/Flex/4.0/langref/flashx/textLayout/events/SelectionEvent.html
Do you know if I can use the TLF Build 370 with my sdk 3.2 ? If it's yes what have I to do?
If I can't use the latest version of TFL :
My actual problem is (I am still working on the style of selected character :'( )  in my version of TLF with a SelectionEvent, I just can use
event.selectedElementRange because the event.selectionState doesn't exist. Do you know how to have the selectionState corresponding?
private function addListenerTextFlow(e:FlexEvent):void
            myTextFlow.addEventListener(SelectionEvent.SELECTION_CHANGE, handleSelectionCharacter);
        public function handleSelectionCharacter(event:SelectionEvent):void
            this.noteOptions.myNoteOptionsCharacter.selectedRange = event.selectedElementRange;
this.noteOptions.myNoteOptionsCharacter.selectionState = ???? ;
            this.noteOptions.myNoteOptionsCharacter.cf = new CharacterFormat;
and when I apply a style :
private var selectedRange:ElementRange;
private var selectionState: SelectionState
private function changeCharacterFont(event:ListEvent):void
            cf.fontFamily = fontList.value.toString();
            (currentNote.myTextFlow.interactionManager as EditManager).applyCharacterFormat(cf, selectionState);
            currentNote.myTextFlow.flowComposer.updateAllContainers();
As you can see to apply my font it is missing the arg2 (selectionState), but I have an ElementRange. Can I "transform" an ElementRange into a SelectionState?
Please, I need your help :'(

Similar Messages

  • A simple problem with sateful Session beans

    Hi,
    I have a really novice problem with stateful session bean in Java EE 5.
    I have written a simple session bean which has a counter inside it and every time a client call this bean it must increment the count value and return it back.
    I have also created a simple servlet to call this session bean.
    Everything seemed fine I opened a firefox window and tried to load the page, the counter incremented from 1 to 3 for the 3 times that I reloaded the page then I opened an IE window (which I think is actually a new client) but the page counter started from 4 not 1 for the new client and it means that the new client has access to the old client session bean.
    Am I missing anything here???
    Isn�t it the way that a stateful session bean must react?
    This is my stateful session bean source.
    package test;
    import javax.ejb.Stateful;
    @Stateful
    public class SecondSessionBean implements SecondSessionRemote
    private int cnt;
    /** Creates a new instance of SecondSessionBean */
    public SecondSessionBean ()
    cnt=1;
    public int getCnt()
    return cnt++;
    And this is my simple client site servlet
    package rezaServlets;
    import java.io.*;
    import java.net.*;
    import javax.ejb.EJB;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import test.SecondSessionRemote;
    public class main extends HttpServlet
    @EJB
    private SecondSessionRemote secondSessionBean;
    protected void processRequest (HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException
    response.setContentType ("text/html;charset=UTF-8");
    PrintWriter out = response.getWriter ();
    out.println("<html>");
    out.println("<head>");
    out.println("<title>Servlet main</title>");
    out.println("</head>");
    out.println("<body>");
    out.println("<h1>Our count is " + Integer.toString (secondSessionBean.getCnt ()) + "</h1>");
    out.println("</body>");
    out.println("</html>");
    out.close ();
    protected void doGet (HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException
    processRequest (request, response);
    protected void doPost (HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException
    processRequest (request, response);
    }

    You are injecting a reference to a stateful session bean to an instance variable in the servlet. This bean instance is shared by all servlet request, and that's why you are seeing this odd behavior.
    You can use type-leve injection for the stateful bean, and then lookup the bean inside your request-processing method. You may also save this bean ref in HttpSession.
    @EJB(name="ejb/foo", beanName="SecondBean", beanInterface="com.foo.foo.SecondBeanRemote")
    public MyServlet extends HttpServlet {
    ic.lookup("java:comp/env/ejb/foo");
    }

  • Problem with display of pages in IE

    I'll keep this short and simple, I'm not after criticism of my work but if it is a mess then I understand, I've re-coded a website designed by a friend who has joined the army & is currently serving so I cannot get in touch with him for help, I'm a novice website designer but I'm stumped as to why my pages are behaving the way they are
    I've made a website for a friend's pub and it all looked brilliant in DreamWeaver CS5's Design View so I went ahead and used ftp program FileZilla to send it live on my domain and basically it shifted my pictures and it displays differently in IE to what it does in Chrome e.g. My "Find Us" page has a large white bar at the bottom in IE which shouldn't be there and I can't get rid of it, but it doesn't show in chrome?
    Any help or code I may be able to implement would be greatly appreciated, thanks Freecey.
    Edit: Forgot to add the link to my site - www.thelightdragoon.co.uk
    Also I am aware of the problems with the Home Page & the Menu Page but I am yet to attempt to fix those yet.

    You still have a problem on that page.
    <head>
    <meta name="generator" content="HTML Tidy for Linux (vers 25 March 2009), see www.w3.org" /><object type="{0C55C096-0F1D-4F28-AAA2-85EF591126E7}" id="cosymantecbfw" class="c1"></object>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    Note that you STILL have an <object> tag within the head region.  That's invalid.
    Also, you are using absolute positioning to place elements within your header region - that's definitely suboptimal and unnecessary since it precludes centering the page in various width viewports.  However, if you make the following changes you can muddle by -
    1.  Change the CSS for #outerShadow to set the left/right margins to "auto".  Make it position:relative.
    2.  Change the left values for the absolutely positioned elements to whatever you need for them to be correctly located within #outerShadow.
    3.  Twiddle the remaining out of place element margins to locate them correctly within #outerShadow.
    That should do it.  But the real way to build this page is without using absolute positioning at all.  It's not necessary and will always make your maintenance more complicated as long as you have it.

  • Problem with printing to a HP Photosmart Premium C410

    Printer purchased and installed on July 9, 2011. Connected wirelessly to a D-Link Xtreme N GIGABIT  Router  Model   DIR-655. Router IP address 192.168.0.1
    The printer worked fine until last week. Then one of our Laptops could suddenly not print or scan anymore.
    There are Two Dell Laptops connected to the same router.
    The first Laptop, Dell XPS M1530 running Windows Vista Home Premium Service Pack 2, 4GB Ram 32 bit OS. This machine can print to HP C410 printer directly with no problems. It can see the printer’s embedded web server at 192.168.0.254 and can scan from there into a file on the laptop or can print the just scanned image from the embedded web server.  It can also print to it using HP eprint.
    The second Laptop, Dell Inspiron M1545 running Windows 7 Home Premium Service Pack 2, 3GB Ram 64 bit OS. This machine CANNOT print directly to the HP printer.  It can see the printer’s embedded web server at 192.168.0.24 and can scan from there into a file on the laptop (I used a PDF format and brought it up in Adobe Reader to be sure) but it CANNOT print the just scanned image from the embedded web server.  The print process fails and shows the document still in the spool queue with an error status. It can print to the HP C410 using HP eprint.
    I have used the HP suggested process of uninstalling all the printer software and re-installing it from the original CD (tried this three times) and by downloading it from www.hp.com. I have also installed the HP fix titled: Following a Network Installation, the Product Loses Functionality and Is Missing from the Devices and Printers Menu after the Computer Is Restarted in Windows 7 (64-bit Only)  
    I installed the fix after a complete un-install / re-install cycle.   I have run the HP Print Diagnostic Utility at this point in the process and it returns a clean (All Green Check Marks) report but its final test print fails in the same manner.  
    Thanks in advance for help in solving this problem.

    So, this post, as well written as it is, went totally ignored by the HP personnel that are supposedto be "helping" us poor novices? WOW! No wonder this crap gets thrown out of the house so often.
    I have two HP network printers. An HP Officejet 4500 G510g-m, and a HP Photosmart Premium C410a, and they are the most unreliable pieces of "equipment" that I have in my network. This is absolutely trhe crappiest bunch of junk on the market. The only thing worse than these "devices" is the support from HP for them.
    I also have a HP Photosmart C5280 AIO, and a Deskjet D2345 Printer. I have little, to no, problems with these two. The "flagships" of my network imaging are the worst, of the worst.

  • Problem with Image Inspector

    I have instatlled Dreamweaver CS5.  I want to insert a background image in a table.  The property inspector only shows the background color change option.  The folder option for selecting an image file is not showing.  Is this a problem with the program or can it be added by some menu command?

    garywpaul wrote:
    SnakEyez
    Oops, looks like I stepped on your post...sorry 'bout that.
    Gary
    No problem Gary. Happens all the time.  Your code way is correct, but I've noticed a lot of people asking about the GUI, so I've tried to familiarize myself with it a little more and have started to understand the frustration of some of the more novice users.  Some of these more common functions could be made more accessible and maybe the answer is a more customized CSS properties panel or a different CSS properties window altogether since some styling is in that "Properties" window and others in the "CSS Panel".  Just some thoughts I've had since seeing all these posts anymore.

  • Reboot problems with iMac dual intel 1.83 OS 10.4.6

    Needing help. Mac user since 1999 but I'm feeling like a novice with this. Wife was playing Sims 2 when it locked up and wouldn't allow the game to be turned off. Did a forced restart, disk went to the grey screen with the spinning gear for an extended period. Went to bed and the next morning the blue screen was on with OS X label as if computer was booting successfully but the hard drive sounded as if it was stuck in a loop. Got the installation disc and figured out how to eject the game and install the disc. Did safe boot and computer will goto the grey screen with the spinning gear and then will turn itself off.
    Tried to reinstall OS X 10.4.4 while archiving in a separate folder and after verifying the disc the install fails. Ran hardware check came back o.k. Tried to boot from install disc and it just takes me back to the install disc start-up. Ran disc utility to repair premissions and it hung up after 30 minutes and the hard drive sounded like it was stuck in a loop. Ran disc utility to repair hard drive, first checks came back o.k. and then stated it was not completed due to an underlying issue when it tried to back out.
    The hard drive is partitioned from boot camp, deleted windoze and tried to install OS X on the 20 gigs partitioned. The disc again verified but then failed- which threw me for a loop (does not appear dirty or scratched). My intention was to boot up on the partition and then try to retrieve pictures and videos on the hard disc, unfortunately only 1/2 is currently backed up.
    I have not tried fsck yet because I was confused how to get to it, I think I am supposed to use the start up disc and go to the terminal application then enter the command, is this correct?
    Unfortunately I am having to type this at work while the computer is at home- so if there are suggestions please dump them on me and I will try all of them tonight. No broken folders, kernal panics or exclamation points thus far.
    Thanks for all the help.

    Welcome to Apple Discussions!
    When you verified with disk utility the disk, you basically ran fsck. Permissions are another factor here, but the fact it failed the disk check suggest major directory problems with the hard disk. Unfortunately the only third party directory repair utilities that I know work well currently are for PowerPC Macs only. If you have another Mac, suggest putting the iMac in target disk mode and see if it is seen by the other Mac. The target disk mode is described by this article:
    http://docs.info.apple.com/article.html?artnum=58583
    If it is, then you can recover your data.
    If it is not, my suggestion is to get an external Firewire hard drive, and Prosoft Data Rescue and see if it is able to recover the information to it.
    http://www.macsales.com/ sells equivalent Firewire hard drives for good prices, and http://www.prosofteng.com/ is where to get Data Rescue.
    In addition, there may be suggestions people in the Boot Camp forum can offer:
    http://discussions.apple.com/forum.jspa?forumID=1165
    My suggestion is to find a way to completely and safely remove Boot Camp and only use it on non-production machines.
    I don't think your problem is an online networking issue, which I see you posted in that forum.

  • Importing problems with MP4 files.

    A friend of mine wanted me to make a DVD  with some media files that they sent me (all with .mp4 extentions). I've just purchased CS6 Premuin Pro so I thought I'd try ENCORE to do it with (previously I've been using DVDStyler). However I had problems with importing the mp4 files they sent. Some of the files import OK, but with others I get this error:
    Couldn't import file FILENAME, Quicktime and/or the appropriate codec do not appear to be installed.
    Now I did have Quicktime Alternative, along with the K-Lite Mega Codec Pack installed. Did a bit of searching and found advice to remove the K-Lite pack and Quicktime Alternative, and update with Quicktime and another set of Codecs (I've installed the Windows 7 codec pack v4.06, as I'm using Win7). However, I'm still getting the same error message when I try and import some of the files. I don't know their origin or what created them as such. However, I did download a copy of MediaInfo and got the following for each type of file.
    A file that imports OK:
    Format                              
    : MPEG-4
    Format profile                      
    : Base Media / Version 2
    Codec ID                            
    : mp42
    File size                           
    : 257 MiB
    Duration                            
    : 57mn 12s
    Overall bit rate mode               
    : Variable
    Overall bit rate                    
    : 629 Kbps
    Encoded date                        
    : UTC 2012-10-08 02:42:29
    Tagged date                         
    : UTC 2013-05-13 04:48:47
    gsst                                
    : 0
    gstd                                
    : 3432140
    gssd                                
    : BADC21C45HH1368304023137487
    gshh                                
    : r18---sn-ntq76n7s.c.youtube.com
    Video
    ID                                  
    : 1
    Format                              
    : AVC
    Format/Info                         
    : Advanced Video Codec
    Format profile                      
    : [email protected]
    Format settings, CABAC              
    : No
    Format settings, ReFrames           
    : 1 frame
    Codec ID                            
    : avc1
    Codec ID/Info                       
    : Advanced Video Coding
    Duration                            
    : 57mn 12s
    Bit rate                            
    : 530 Kbps
    Maximum bit rate                    
    : 2 652 Kbps
    Width                               
    : 640 pixels
    Height                              
    : 360 pixels
    Display aspect ratio                
    : 16:9
    Frame rate mode                     
    : Constant
    Frame rate                          
    : 25.000 fps
    Color space                         
    : YUV
    Chroma subsampling                  
    : 4:2:0
    Bit depth                           
    : 8 bits
    Scan type                           
    : Progressive
    Bits/(Pixel*Frame)                  
    : 0.092
    Stream size                         
    : 217 MiB (84%)
    Tagged date                         
    : UTC 2012-10-08 02:42:31
    Audio
    ID                                  
    : 2
    Format                              
    : AAC
    Format/Info                         
    : Advanced Audio Codec
    Format profile                      
    : LC
    Codec ID                            
    : 40
    Duration                            
    : 57mn 12s
    Bit rate mode                       
    : Variable
    Bit rate                            
    : 96.0 Kbps
    Maximum bit rate                    
    : 104 Kbps
    Channel(s)                          
    : 2 channels
    Channel positions                   
    : Front: L R
    Sampling rate                       
    : 44.1 KHz
    Compression mode                    
    : Lossy
    Stream size                         
    : 39.3 MiB (15%)
    Title                               
    : IsoMedia File Produced by Google, 5-11-2011
    Encoded date                        
    : UTC 2012-10-08 02:42:30
    Tagged date                         
    : UTC 2012-10-08 02:42:31
    A file that doesn't import:
    Format                              
    : Flash Video
    File size                           
    : 269 MiB
    Duration                            
    : 56mn 55s
    Overall bit rate mode               
    : Variable
    Overall bit rate                    
    : 661 Kbps
    liveXML                             
    : <?xpacket begin="" id="W5M0MpCehiHzreSzNTczkc9d"?>
    Video
    Format                              
    : AVC
    Format/Info                         
    : Advanced Video Codec
    Format profile                      
    : [email protected]
    Format settings, CABAC              
    : Yes
    Format settings, ReFrames           
    : 6 frames
    Codec ID                            
    : 7
    Duration                            
    : 56mn 55s
    Bit rate mode                       
    : Variable
    Maximum bit rate                    
    : 555 Kbps
    Width                               
    : 640 pixels
    Height                              
    : 360 pixels
    Display aspect ratio                
    : 16:9
    Frame rate mode                     
    : Constant
    Frame rate                          
    : 25.000 fps
    Standard                            
    : Component
    Color space                         
    : YUV
    Chroma subsampling                  
    : 4:2:0
    Bit depth                           
    : 8 bits
    Scan type                           
    : Progressive
    Audio
    Format                              
    : AAC
    Format/Info                         
    : Advanced Audio Codec
    Format profile                      
    : LC
    Codec ID                            
    : 10
    Duration                            
    : 56mn 55s
    Channel(s)                          
    : 2 channels
    Channel positions                   
    : Front: L R
    Sampling rate                       
    : 44.1 KHz
    Compression mode                    
    : Lossy
    Just what is the problem here? Why will the first type of file import OK, but the second not, and what can be done about that (do I need to load an extra codec, and if so what)?  The odd thing is that using a program like DVDStyler, I can load those files and actually build a DVD. And yes, I know that's an entirely different program, but it just seems odd to me that an open-source program seems to do something Encore can't (and I'd much rather use Encore to build DVDs). No doubt this is something obvious but I'm a novice with Encore and Premiere, so I'm missing it anyway.

    Codec packs, even the "better" ones, do not typically provide codecs that Premiere and Encore can use.
    The "problem" file is a flash format (whether it is an mp4 container or not).
    "Consumer" type DVD authoring/burning applications, and even more so, all in one apps like windows movie maker etc, may be more "powerful" when you are trying to take a large range of formats and create a DVD with relatively few options. This is not Encore's strength.
    Encore will reject almost anything that has flaws it isn't able to handle, but more importantly (once you get to this step), it will treat as noncompliant (and  re-transcode) anything that is not DVD compliant.
    My guess is that you need to get  the flash into something that will work better for transcoding to DVD compliant.
    I would first try to bring one of the problem files into Adobe Media Encore, and see if you can export an MPEG2-DVD file.
    Not that, while there are some less known DVD resolutions, I assume you are going to end up with 720x576 PAL. I wonder what the quality will look like....
    If you are just looking to get the files onto a DVD to play on a DVD player, just stick with DVDStyler.

  • Has anyone else had any problems with their phone over heating and shutting down?

    I've had my phone for less a month and I've already had issues with my iphone 4. On several occassions it has overheated and shut down. On one occasion I put the phone in the side pocket of my purse where, I also had a charger for my camera. When I removed the phone, it was hot...not warm but hot! On another occasion I was at the movies and put the phone face down on my lap, at one point i touched the phone and again it was hot. When the movie was over, and I looked at the phone it had shut down....this has happened a few  times more since then. I've also had problems with the phone shutting down on it's own. I took it to my local apple store and the representative looked at my phone and ran a diagnostic check for me. He said the everything on my phone looked normal and that my phone probably needs a "breaking in" period...to give it a couple of months...He really didn't tell me much more...I don't use my phone for more than the basics...calling, texting, and some mild app use...I don't understand how I can be having these problems when I've had my phone for less than a month...The rep tried selling my the Apple insurance. He told me that through ATT I only have 30 days, and I would be better off getting this insurance. I feel very dissastisfied with the service I got. I was done with my appointment within 10 mins, I don't think the representative took the time to listen to my concerns.

    Thanks for your reply, but I guess whether this was a silly question is a matter of opinion. That is the whole purpose having these forums...so that people can post their questions, silly or not. Maybe you are an Apple expert or have "techy" knowledge, but I don't. So what may be silly or stupid for you, can be completely different for a novice apple consumer like me. If you must know, I did do my research, and I did do the basic trouble shooting.All to no avail. I took my phone to the apple store, had it diagnosed and was told some very inaccurate information. I ended up going back today, and got a second opinion. This person actually took the time to talk to me and to better explain Applecare and my warranty. She also told me that there is no such thing as a "break in" period, and when there is a shutting down issue, even after a "restore" that it was better to get it replaced. Which is what she did. She replaced my phone. Obviously, the first person, by his own admission, was too tired and ready to go home to actually take the time to explain and offer other options...

  • WLS 7.0 sp2 - Servlet Problems with SOAP messages

              I'm using Weblogic 7.0 SP2 and trying to create a Servlet to receive SOAP wrapped
              XML messages. I'm getting the following error. Is this a problem with WLS7.0sp2's
              support of JAXM? The System.out.println's indicate I have successfully received
              the incoming SOAP request and then successfully formatted the SOAP response, but
              upon returning saving the response it appears to blow up. Does anyone have any
              suggestions?
              I need to do the following in a servlet:
              - receive an incoming SOAP request with an embedded XML message
              - perform some processing
              - return a SOAP response with an embedded XML message
              Should I be using JAXM? Or can I do this same task easily with JAX-RPC?
              <Feb 24, 2004 4:10:42 PM AST> <Error> <HTTP> <101017> <[ServletContext(id=260434
              7,name=isd.war,context-path=)] Root cause of ServletException
              java.lang.Error: NYI
              at weblogic.webservice.core.soap.SOAPMessageImpl.saveRequired(SOAPMessag
              eImpl.java:360)
              at javax.xml.messaging.JAXMServlet.doPost(Unknown Source)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
              at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
              at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run
              (ServletStubImpl.java:1058)
              at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
              pl.java:401)
              at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
              pl.java:306)
              at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
              n.run(WebAppServletContext.java:5445)
              at weblogic.security.service.SecurityServiceManager.runAs(SecurityServic
              eManager.java:780)
              at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
              rvletContext.java:3105)
              at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
              pl.java:2588)
              at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:213)
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:189)
              >
              I've stripped the code down so that all it does is verifies the incoming SOAP/XML
              request and creates a hard-coded response... be gentle... I'm a novice at this
              import javax.xml.soap.*;
              import javax.servlet.*;
              import javax.servlet.http.*;
              // import javax.xml.transform.*;
              import java.util.*;
              import java.io.*;
              public class RegisterServlet extends HttpServlet
              static MessageFactory fac = null;
              static
              try
              fac = MessageFactory.newInstance();
              catch (Exception ex)
              ex.printStackTrace();
              public void init(ServletConfig servletConfig) throws ServletException
              super.init(servletConfig);
              public void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException,
              IOException
              try
              System.out.println("** Note: doPost() Entering req = " + req);
              // Get all the headers from the HTTP request
              MimeHeaders headers = getHeaders(req);
              // Get the body of the HTTP request
              InputStream is = req.getInputStream();
              // Now internalize the contents of a HTTP request
              // and create a SOAPMessage
              SOAPMessage msg = fac.createMessage(headers, is);
              System.out.println("** Note: doPost() Step A");
              SOAPMessage reply = null;
              reply = onMessage(msg);
              System.out.println("** Note: doPost() Step B reply = " + reply);
              if (reply != null)
              * Need to call saveChanges because we're
              * going to use the MimeHeaders to set HTTP
              * response information. These MimeHeaders
              * are generated as part of the save.
              if (reply.saveRequired())
              System.out.println("** Note: doPost() Step C reply.saveRequired()");
              reply.saveChanges();
              resp.setStatus(HttpServletResponse.SC_OK);
              putHeaders(reply.getMimeHeaders(), resp);
              // Write out the message on the response stream
              OutputStream os = resp.getOutputStream();
              System.out.println("** Note: doPost() Step D os = " + os);
              reply.writeTo(os);
              os.flush();
              else
              resp.setStatus(HttpServletResponse.SC_NO_CONTENT);
              catch (Exception ex)
              throw new ServletException("** Error: SAAJ POST failed: " + ex.getMessage());
              static MimeHeaders getHeaders(HttpServletRequest req)
              Enumeration enum = req.getHeaderNames();
              MimeHeaders headers = new MimeHeaders();
              while (enum.hasMoreElements())
              String headerName = (String)enum.nextElement();
              String headerValue = req.getHeader(headerName);
              StringTokenizer values =
              new StringTokenizer(headerValue, ",");
              while (values.hasMoreTokens())
              headers.addHeader(headerName,
              values.nextToken().trim());
              return headers;
              static void putHeaders(MimeHeaders headers, HttpServletResponse res)
              Iterator it = headers.getAllHeaders();
              while (it.hasNext())
              MimeHeader header = (MimeHeader)it.next();
              String[] values = headers.getHeader(header.getName());
              if (values.length == 1)
              res.setHeader(header.getName(),
              header.getValue());
              else
              StringBuffer concat = new StringBuffer();
              int i = 0;
              while (i < values.length)
              if (i != 0)
              concat.append(',');
              concat.append(values[i++]);
              res.setHeader(header.getName(), concat.toString());
              // This is the application code for handling the message.
              public SOAPMessage onMessage(SOAPMessage message)
              SOAPMessage replymsg = null;
              try
              System.out.println("** Note: OnMessage() Entering msg = " + message);
              //Extract the ComputerPart element from request message and add to reply SOAP
              message.
              SOAPEnvelope reqse = message.getSOAPPart().getEnvelope();
              SOAPBody reqsb = reqse.getBody();
              //System.out.println("** Note: OnMessage() Step B");
              System.out.println("** Note: OnMessage () Step A Soap Request Message Body = "
              + reqsb);
              //Create a reply mesage from the msgFactory of JAXMServlet
              System.out.println("** Note: OnMessage () Step B");
              replymsg = fac.createMessage();
              SOAPPart sp = replymsg.getSOAPPart();
              SOAPEnvelope se = sp.getEnvelope();
              SOAPBody sb = se.getBody();
              System.out.println("** Note: OnMessage () Step C Soap Reply Before Message Body
              = " + sb);
              se.getBody().addBodyElement(se.createName("RegisterResponse")).addChildElement(se.createName("ErrorCode")).addTextNode("000");
              System.out.println("** Note: OnMessage () Step D Soap Reply After Message Body
              = " + sb);
              replymsg.saveChanges();
              System.out.println("** Note: OnMessage() Exiting replymsg = " + (replymsg));
              catch (Exception ex)
              ex.printStackTrace();
              return replymsg;
              

    Michael,
    I got the same error on WLS8.1/Win2K professional and apache FOP (old version).
    After digging into the WLS code and FOP(old version). i found the conflict happens
    on
    the "org.xml.sax.parser" system property. In WLS code, they hard coded like the
    following when startup weblogic server:
    System.setProperty("org.xml.sax.parser", "weblogic.xml.jaxp.RegistryParser");
    But the FOP code try to use the "org.xml.sax.parser" system property to find the
    sax parser then conlict happens.
    Here is the response from BEA support :
    "I consulted with our developers regarding the question of whether we can change
    the hard-coded value for the java system property: org.xml.sax.parser by using
    a configuration parameter and I found that unfortunately there is no specific
    setting to change the value. As you had mentioned in your note the org.xml.sax.parser
    system property can be changed programmatically in your application code."
    I solve my problem by using newer apache FOP (it never use the system property:org.xml.sax.parser
    any more) and XML Registy for WLS8.1.
    Good luck.
    David Liu
    Point2 Technologies Inc.
    "p_michael" <[email protected]> wrote:
    >
    Help.
    When we migrated from WLS 6.1 to WLS 7.0 SP2 when encountered a problem
    with XML
    parsing that did not previously exist.
    We get the error "weblogic.xml.jaxp.RegistryParser is not a SAX driver".
    What does this mean? And, what should we do about it.
    p_michael

  • Problem with downloading an issue to an Android tablet

    We're experiencing a problem with downloading an issue to an Android tablet.
    Adobe Content Viewer on a Samsung Galaxy Tab 2 attempts to download an issue, but after about 30 seconds of downloading ACW stops and without any error message returns to the previous state showing again the Download button. The Internet connection is good. Everything also works perfectly on other tablets we tried - ASUS Transformer and a previuos generation of Galaxy Tab.
    Is there any common resolution for this problem?

    I may not be using the correct jargon,,,,when I click on Amazon's link for the AmazonApp store download, an Adobe box comes up, so I follow the cues I get on the screen.  I don't know what else to do....my 1st step..https:/www.amazon.com/app-email    you have chosen to open Amazon_Appstore-release.apk which is apk file from: https://amznadsi-a.akamaihd.net  what should Firefox do with this file?  Save File  I click on OK    Then a download box comes up, which I click on, then there is 'Finder' and 'Adobe Reader'.  Adobe reader is highlighted, so I click, then OK and I get a box "Amazon_Appstore-release(9).apk" is an application which was downloaded from the Internet.  Are you sure you want to open it?  Cancel  Open.  I click Open.  Then a box that says  Adobe Reader could not open 'Amazon_Appstore-release(9).apk' because it is either not a supported file type or because the file was damaged (for example, it was sent as an email attachment and wasn't correctly decoded.)  I am a novice with this stuff....I hope you can help me.  Thanks  Char

  • Problem with hotmail calendar display

    Problems with hotmail calendar display.

    I am almost a total computer novice and am having what I think is the same problem  Just got my first Apple computer (Macbook Pro).  MSN Hotmail is my email account.  All the events on my 'hotmail' account are now unreadble because they are squished to the left side of the screen and I don't find any instructions as to how to fix this in the system. This problem didn't exist when I first started using my MAC two days ago, but now I'm stuck.  Everything else in my 'hotmail' seems to work fine.  Don't know what Chrome or Firefox is or if there is a cost for them.  Also, have never downloaded a program if any kind.
    My calendar is critically important to me and I don't have a clue as to what to do now.  Hope you can help.
    Thanks.  Linda

  • Is anybody NOT having a problem with G2 touch's WiFi connection?

    I am disappointed that after eagerly anticipating the "Lets Rock" event and the release of a new iPod Touch, with the intention of purchasing one now, it seems that from this and other forums there is a major problem with the WiFi on the Gen 2. There are several threads reporting that the new G2 Touch will not connect to the internet via WiFi using WPA secure networks and this is putting me of buying at the moment which is very frustrating.
    However, before I am aware that people often only post here if they are having problems with an Apple product and not if they are not, so before casting judgement and deciding not to buy I would like to know whether this issue is affecting all of the new G2 Touch's.
    So...is anyone NOT having any WiFi problems and finding that they are able to connect easily to WPA/2 secured networks and routers?
    I hope so as I was so looking forward to getting a Touch, but I won't yet if there is a definite fault with the G2.

    have had no repies as yet so i thought of a new approach , thus i also cannot connect to my linksys54gs router (no problem with psp or xbox) and would like some help /advise from those in the know,after tapping blue arrow for wifi and choosing the regognised network my touch asks for ip address
    subnet mask
    router
    dns
    search domain
    http proxy off/manual/auto
    server
    port
    authentication
    username
    password
    And all this without any instructions! the big selling plus of touch is wifi but now i am trully fed up after 2 days of trying a novice approach to set up .
    Can anyone please help
    Apple please read my feed back from a first time unhappy customer ,-maybe i will just get a refund ..
    help!!!

  • Problems with Tomcat & Eclipse on MacOSX

    Hi everybody. I have a problem with Tomcat and Eclipse. I must make an application with JSF for my dissertation and i even become a new Mac user so i have some problems. I have installed Eclipse 3,3 Europe on Mac OSX 10,4, also I have installed Tomcat 5,5 setting up environment variable and users of Tomcat. Well, when I try to connect them creating a new server in Eclipse and select Tomcat as server and relative folder of origin, the problems begin. When I try to run on server a JSF project(naturally I have imported all the necessary libraries) it give this error to me: Could not load the Tomcat incomplete serveur configuration at /Servers/Tomcat v5.5 serveur at localhost-config.The configurator mau be corrupt or. Reason: Could not load the Tomcat incomplete serveur configuration at /Servers/Tomcat v5.5 serveur at localhost-config.The configurator mau be corrupt or incomplete. On what it can depend? It is possible that is a JRE problem? I do not find the folder jre on my file system(are novice with the mac). Thanks to all.

    This seems like a question that would be better put to an Eclipse forum.

  • Problems with update / permissions

    Hi
    I have a problem with my 15" mid 2010 macbook Pro with 8GB RAM, running Lion with 10.7.4.
    Problem:
    I cannot update the SW running the Apple update - I finds the new updates for iMovie, iPhoto, Java etc, but when asking it to install them, it prompts me that I cannot install due to not having the correct permissions.
    The problem occured approx 3-4 weeks ago. Before that I had never experienced this before...
    I have repaired the permissions, but that didn't help - does anyone have a solution to this?
    FYI I'm still a novice on the Mac - so I'm learning everyday....
    Br
    Per

    Besides repairing permissions with disk utility, you need to reset your user permissions. Follow instructions here:
    Repairing User Permissions in OS X Lion
    You’ll need to reboot to perform this, and then use the same resetpassword utility that is used to change passwords in Lion, but instead choosing a hidden option.
    When you use the Disk Utility app and Repair Permissions — it doesn’t actually repair the permission settings on folders and files in your Home folder where your documents and personal applications reside.
    In Lion, there is an additional Repair Permissions application utility hidden away. This toolis located inside boot Repair Utilities. Here’s how to access it.
    Restart Lion and hold down the Command and R keys.
    You will boot into the Repair Utilities screen. On top, in the Menu Bar click the Utilities item then select Terminal.
    In the Terminal window, type resetpassword and hit Return.
    The Password reset utility launches, but you’re not going to reset the password. Instead, click on the icon for your Mac’s hard drive at the top. From the drop-down below it, select the user account where you are having issues.
    At the bottom of the window, you’ll see an area labeled ‘Reset Home Directory Permissions and ACLs’. Click the Reset button there.
    The reset process takes a couple of minutes. When it’s done, quit the programs you’ve opened and restart your Mac. Notice that ‘Spotlight’ starts re-indexing immediately.

  • Problem with COPA extractor 1_CO_PA ...

    Hi all,
        I am facing a problem with COPA extractor where delta is bringing in records which have been commited to database more that 6 hours ago.  I understand that according to a note that COPA extractors have a default safety interval of 30 minutes but 6 hours is too much.
    Is there any way I can change that?  Is there any customizing option?  Note 392876 explans how to change the safety interval to 5 minutes but I dont know if it is applicable for our patch level? 
    We are at PI->2004_1_500 patch SAPKIPZI69.
    Also the safety limit is also maintained in ROOSOURCE-DELTASAFE2 field, should I just change it there?
    any help is appreciated...
    thanks

    I see that you are not so novice!
    Please, how can I check the time and time zone in R/3 and BW?
    Thank you in advance

Maybe you are looking for

  • SOLUTION - How to display a BLOB content in Portal Report

    Courtesy of Kelly Wong: 1. Every time a record of the file information is inserted into the PORTAL30.WWDOC_DOCUMENT table while you inserted a record to the blob field in a portal form that you created. [The fact that a file uploaded appears in the W

  • Bridge CS6: Output to PDF not working/Blank

    Using Mac Mini: Lion OS. Adobe CS6 Photoshop / Bridge This Output worked in the past. Sometime in the last month it has stopped working. I select three images for examples and want to create a simple pdf (content sheet) Nothing fancy, no watermark. I

  • Lines in a Illustrator-created PDF

    I am having issues when some people print a PDF I created from Illustrator. It looks like the border around the page is going through the page diagonally. It does not appear like this when viewed as a PDF. This is a multi-page printout tiled 5 pages

  • Create an context menu item to open a file on a specific display

    Hello, I have an external display connected to my MBP, but I don't always need to use it so it's not always on. I'd like to have a way to open a file (or application) on a specified display on a case by case basis. I know that I can assign an applica

  • Shared heading missing from sidebar

    i have a macbook pro listed below, plus an imac 2.66 intel core 2 duo. i can see the mac book pro in the sidebar of the imac, but not the other way round. a while ago i remember "hiding" the shared tab from the sidebar, now i can not retrieve it .bot