Frame access from servlet not working

Dear all,
I am running my servlets on Tomcat 5.5 and using JDK 1.6. I have a small program that uses codecs to access frames from a video file. PreAccessCodec implements Codec interface and PostAccessCodec extends PreAccessCodec. I set the two codecs into the processor's codec chain. The program is implemented as a thread and once started grabs frames and stores the images in a certain interval. The problem is this: whenever I start the thread from a main program, everything runs without a glitch. However, when I put the code in init() method of the servlet, I get the following error message:
The input format is not compatible with the given codec plugin: com.mapper.utils.PostAccessCodec@69d02b
Failed to realize: com.sun.media.ProcessEngine@1478a43
  Cannot build a flow graph with the customized options:
    Unable to add customed codecs:
      com.mapper.utils.PreAccessCodec@15356d5
      com.mapper.utils.PostAccessCodec@69d02b
Error: Unable to realize com.sun.media.ProcessEngine@1478a43 I am using netbeans 5.5.1 to deploy my servlets. I doubt that the problem is with classpaths because the servlet doesn't complain when I am using JMF's classes like Processor.
I would really appreciate any help.
Thank you.
Message was edited by:
calculemus

The GE.iH() method should return false for
a ..head-full ..en-headed, not headless
environment, and I expect (from what you
reported above) that will return false for both
your servlet and application, and is apparently
not the problem.It returned false when I tried GE, and it was not the problem as you suggested. However, I now noticed in the logs:
java.awt.HeadlessException
I use Netbeans for the development, and I tried using -Dheadless=true and -Dheadless=false, it did not change anything...
I think it is time to check that assumption
more carefully.
My impression is that PreAccessCodec and
it's 'Post' equivalent are mentioned a lot in JMF
example code, but are custom classes,
built to suit the use at the time. Did you write the
Pre/PostAccessCodecs for this app.?Yes I customized them from the JMF sample codes. They are in the classpaths and are correctly read by the servlet. I did some logging and I actually saw that the code inside Pre/PostAccess was logging when my servlet was run.
>
So, what I am thinking, is that while the JMF
based Processor class may well be on the
server's
classpath, perhaps Pre/PostAccessCodec classes
are not.
oes a jar appear in the WEB-INF/lib directory,
that contains the Pre/PostAccessCodec.class?
Failing that, are the classes themselves in
WEB-INF/classes/(sub-dir according to package name)/ ?Nevertheless, just to double check I checked WEB-INF directory and the classes appear correctly in their appropriate 'package-folders'.
I figured out where exactly the thread was not running. In my PostAccessCodec class, I had overloaded getSupportedInputFormats() function to return RGB format.
public Format [] getSupportedInputFormats() {
Format [] fomats = {new RGBFormat()};
return fomrats;
When I changed it to return {VideoFormat()}, the codec initializes, but I get nothing when I want to access the frame.
I guess I will have to start another thread.
@moderators, please move the post if it is inappropriate to put it in this thread, my apologies.
The problem is still there and I am not able to get the frame access not working from the servlet. :(
Message was edited by:
calculemus
Message was edited by:
calculemus

Similar Messages

  • Output byte[] (image) to JSP page from Servlet - not working - why??

    I'm testing some new code in my servlet. I'm changing the method I use for pulling an image from the db (which is stored in a Blob column) and then displaying it in a Jsp page via <img src="go.callServlet">
    The new way works up until the code that outputs the image (bytes).
    Here's a snippet of the code -
                   rs = stmt.executeQuery("Select image from images");
                   rs.next();
                   Blob blobimage = rs.getBlob(1);          
                   int index = 0;             
                in = blobimage.getBinaryStream();        
                BufferedImage orig = ImageIO.read(in);    
                //resize image
                GraphicsConfiguration gc = getDefaultConfiguration(); //calls method in servlet
                 BufferedImage image = toCompatibleImage(orig, gc); //calls method in servlet                   
                 final double SCALE = (double)max_Width_Large/(double)image.getWidth(null);
                 int w = (int) (SCALE * image.getWidth(null));
                 int h = (int) (SCALE * image.getHeight(null));
                 final BufferedImage resize = getScaledInstance(image, w, h, gc);
                   //convert bufferedimage to byte array
                   ByteArrayOutputStream bytestream = new ByteArrayOutputStream();                                        
                  // W R I T E                                        
                  ImageIO.write(resize,"jpeg",bytestream);                                                                      
                  byte[] bytearray = bytestream.toByteArray();
                  bytestream.flush();
                  res.reset();
                   res.setContentType("image/jpeg");                   
                   while((index=in.read(bytearray))!= -1 ) {                         
                             res.getOutputStream().write(bytearray,0,index);
                   res.flushBuffer();              
                   in.close();     
                   //....               I know for a fact that the process of getting the image as a blob, making a BufferedImage from it, having the BufferedImage resized, and then converted into a byte[] array, works! I tested by putting the result into a db table.
    I just don't understand why it is that as soon as it gets to the code where it should output the image, it doesn't work. Its frustrating:(
    Here's the code I use regularly to output the image to the jsp, works all the time. The reason I've changed the method, is because I wanted to resize the image before displaying it, and keep it to scale without losing too much quality.
    rs = stmt.executeQuery("Select image from testimages");
                   rs.next();
                   Blob blobimage = rs.getBlob(1);
                   int index = 0;             
                in = blobimage.getBinaryStream();
                  int blob_length = (int)blobimage.length();
                  byte[] bytearray = new byte[blob_length];
                  res.reset();
                  res.setContentType("image/jpeg");
                   while((index=in.read(bytearray))!= -1 ) {
                             res.getOutputStream().write(bytearray,0,index);
                   res.flushBuffer();
                   in.close();     
    //...Can someone shed some light on this trouble I'm having?
    Much appreciated.

    I hate to bother you again BalusC, but I have another question, and value your expertise.
    With regards to using the BufferedInput and Output Streams - I made the change to my code that is used for uploading an image to the db, and I hope I coded it right.
    Can you please take a look at the snippet below and see if I used the BufferedOutputStream efficiently?
    The changes I made are where I commented /*Line 55*/ and /*Line 58*/.
    Much appreciated.
         boolean isPart = ServletFileUpload.isMultipartContent(req);
             if(isPart) { //40
              // Create a factory for disk-based file items
              FileItemFactory factory = new DiskFileItemFactory();
              // Create a new file upload handler
              ServletFileUpload upload = new ServletFileUpload(factory);                    
              java.util.List items = upload.parseRequest(req); // Create a list of all uploaded files.
              Iterator it = items.iterator(); // Create an iterator to iterate through the list.                         
              int image_count = 1;
         while(it.hasNext()) {                                                       
              //reset preparedStatement object each iteration
              pstmt = null;
                 FileItem item = (FileItem)it.next();     
                 String fieldValue = item.getName();     
                 if(!item.isFormField()) {//30
              //when sent through form
              File f = new File(fieldValue); // Create a FileItem object to access the file.
              // Get content type by filename.
                 String contentType = getServletContext().getMimeType(f.getName());
                 out.print("contenttype is :"+contentType+"<br>");                    
                 if (contentType == null || !contentType.startsWith("image")) {                               
                     String message = "You must submit a file that is an Image.";
                     res.sendRedirect("testing_operations.jsp?message="+message);
                       return;
              }//if
              //#### Code Update 3/18/09 ####
    /*line 38*/     BufferedInputStream bis = new BufferedInputStream(new FileInputStream(f));
              BufferedImage bug_lrg_Img = ImageIO.read(bis);                                           
              //code to resize the image;
              BufferedImage dimg = new BufferedImage(scaledW,scaledH,BufferedImage.TYPE_INT_RGB);
              //more code for resizing
              //BufferedImage dimg now holding resized image                           
                  ByteArrayOutputStream bytestream = new ByteArrayOutputStream();
                // W R I T E
                /* Line 55 */     
                   /*  ??? - is a BufferedOutputStream more efficient to write the data */
                   BufferedOutputStream bos = new BufferedOutputStream(bytestream);
                   /*line 58 */     
                   //changed from  ImageIO.write(dimg,"jpg",bytestream);                                  
                   //to
                   ImageIO.write(dimg,"jpg",bos);
              // C L O S E
              bytestream.flush();
                   /* Line 63 */
                   byte[] newimage = bytestream.toByteArray();                    
              pstmt = conn.prepareStatement("insert into testimages values(?)");                              
              pstmt.setBytes(1,newimage);
              int a = pstmt.executeUpdate();     
                   bis.close();
                bytestream.close();
                   bos.close();
                  //...

  • "access restrictions" did not work sometimes when using 3-tier DeskI.

    My customer found that "access restrictions" did not work sometimes when using 3-tier DeskI.
    But this issue can be solved by logging on from another machine, or restarting the DeskI.
    For I can reproduce this issue, so I just want to know that:
    1.What is it probably related to?
    2.If this issue happens again, what can I suggest my customer for tracking it?
      For example, get some log files from servers etc.
    Thanks!

    Hi Sarah,
    Also you can try the following solution.
    1. Import the universe.
    2. Go to manage access restrictions
    3. Remove the restriction .
    4. Again create the rescrition and unchecked the " limit size of result set to"
    5. Now assign it to the unlimited results group ( this is the name of
    the group we have given to those users who should be able to retrieve
    more than X rows)
    6. Now we save the universe. (Dont export the universe).
    I hope this will help you.
    Regards,
    Sarbhjeet Kaur

  • Windows 8 Last Access Time Stamps not working

     Hi I have been trying to fix a issue with last access time stamps not working when I open a file
    so will have time on created modified and accessed from when created but some are wrong like one file
    saying
    created ‎Sunday, ‎September ‎14, ‎2014, ‏‎5:19:32 AM
    modified  ‎Sunday, ‎September ‎14, ‎2014, ‏‎5:19:32 AM
    accessed Sunday, ‎September ‎14, ‎2014, ‏‎5:19:32 AM
    I'm not sure what can cause this please help thank you

    Hi whowhatwere,
    Are you only confused about the last access time not change when you open a file?
    If you want to know more details about modified and created time, we can refer to the following KB.
    http://support.microsoft.com/kb/299648/en-us
    About the accessed time, please refer to the following blog.
    How do I access a file without updating its last-access time?
    http://blogs.msdn.com/b/oldnewthing/archive/2011/10/10/10222560.aspx
    The blog mentioned that: In fact, the intuitive definition of access is more specific: It's "the last time I opened, modified, printed, or otherwise performed some sort of purposeful action on the file."
    Best regards,
    Fangzhou CHEN
    Fangzhou CHEN
    TechNet Community Support

  • How to connect to MS Access from servlet uploaded in TOMCAT server

    Hi,
    I want to access MS Access from servlet .I use TOMCAT server.I want to know what should i do.How to get drivers and how to set class path for them.
    Please help me in finding the solution
    thanks and Regards

    HI,
    try this
    <Code>
    response.setContentType(CONTENT_TYPE);
         PrintWriter out = response.getWriter();
         java.sql.DatabaseMetaData dm = null;
         java.sql.ResultSet rs = null;
         try
              Class.forName("sun,jdbc.odbc.JdbcOdbcDriver");
              Connection con = java.sql.DriverManager.getConnection("jdbc:odbc:dsnName","","");
              dm = con.getMetaData();
              out.println("<html>");
              out.println("<head><title>Servlet1</title></head>");
              out.println("<body bgcolor=\"lightblue\">");
              if(con!=null){
                   dm = con.getMetaData();
                   out.println("<B><br>Driver Information</B>");
                   out.println("\n\t<br><br>Driver Name: "+ dm.getDriverName());
                   out.println("\n\t<br>Driver Version: "+ dm.getDriverVersion ());
                   out.println("\n\t<br>Database Information ");
                   out.println("\n\t<br>Database Name: "+ dm.getDatabaseProductName());
                   out.println("\n\t<br>Database Version: "+ dm.getDatabaseProductVersion());
                   out.println("\n\t<br><br>Avalilable Catalogs ");
                   rs = dm.getCatalogs();
                   while(rs.next()){
                             out.println("<br>\tcatalog: "+ rs.getString(1));
                   out.println("\n\t<br><br>conURL =" + conURL);
                   out.println("\n\t<br><br>Title = Database");
                   rs.close();
                   rs = null;
                   con.close();
              }else {
                   out.println("Error: No active Connection");
         }catch(ClassNotFoundException e) {
              out.println("Coudn't laod the database driver: " + e.getMessage());
         } catch(SQLException e) {     
              out.println("SQLException caught: " + e.getMessage());
              try {
                   if (con != null)
                        con.close();
                   if (rs != null)
                        rs.close();
              catch (SQLException ignored) {}
              finally {
                   try {
                             if (con != null)
                                  con.close();
                             if (rs != null)
                                  rs.close();
                        catch (SQLException ignored) {}
    </Code>
    Sachin

  • Frames panel: looping button not working

    Frames panel: looping button not working
    I use Fireworks MX 2004
    Frames panel: looping button:
    When I set looping to 2, it stops after 2, as it should.
    All other values, i.e. 1, 3, 4 etc will go on 'forever'.
    What's wrong?
    Thank you for your help.
    Adrian

    This is just a simple exercise.
    http://www.tudo.co.uk/testing/looping_problem.png
    http://www.tudo.co.uk/testing/looping_problem.gif
    In the png file, Frames panel, bottom left, where I can set
    looping to
    any number, including 'forever', I set the looping frequency
    in this
    case to 1. So I expect it to stop after one movement up into
    the right
    top corner and return to bottom left.
    When I play this in 'original' or in 'preview' in Fireworks,
    the
    animation moves continuously instead of stopping after one
    round. That
    is my 'problem'. Or can I not expect this to work while it is
    still in png?
    When I export it to gif, it works exactly as wanted - once
    only.
    Adrian
    Alex Mari�o wrote:
    > adrian,
    >
    > Could you post the png file online and explain exactly
    what you are
    > trying to achieve?
    >
    > alex
    >
    > adrian stock wrote:
    >
    >> Frames panel: looping button not working
    >>
    >>
    >> I use Fireworks MX 2004
    >>
    >> Frames panel: looping button:
    >>
    >> When I set looping to 2, it stops after 2, as it
    should.
    >>
    >> All other values, i.e. 1, 3, 4 etc will go on
    'forever'.
    >>
    >> What's wrong?
    >>
    >> Thank you for your help.
    >>
    >> Adrian

  • When i did my last update of Firefox from 3.6 to the version before 5.0 Frame 2.0 did not work. Have you solved this problem in the new version?

    When i upgraded Firefox from version 3.6 to the next version I got a message about Frames that did not work. I work as a warehouse manager and we use an application called LogTrade when we ship goods. LogTrade was not working with the version after 3.6, I think it was 4.0? I had to reinstall 3.6 to get it working. Since LogTrade is essential for my work I don't know if I dare to upgrade to version 5.0.

    You can try this extension to override compatibility issues,
    * https://addons.mozilla.org/en-US/firefox/addon/add-on-compatibility-reporter/

  • No Hassle Sinlge Frame Access From WebCam

    Does anyone have a READABLE solution? The example given in JMF solutions is far to complicated for someone new to JMF. What about the first way of doing the frame access? Can I just treat the output buffers from my webcam datasource as frames? The JMF docs say that a codec can operate in frame-based or non-frame-based modes. How is this set/checked? The example also swaps the input and output buffer. Is this necessary? Then it simply appears to use the buffer as a frame. I'm still in early development ATM so I can't test this. I'm sure it works OK but it doesn't actually show how to turn that buffer into an image, or define under what circumstances it's possible.
    I'm a little disappointed with learning curve for this part of Java, but I guess it's not as widely used as the rest of the language. It's all very well to show the hard way of doing things - i learned a fair bit pulling it apart - but teasing me by telling me there's another way and then not showing it is unfair! :-)
    Any code would be greatly appreciated from some of you veterans out there.
    Thanks very much in advance,
    Aaron Oxford (JSPWebTech)
    [email protected]

    I am not sure I understand your question, but to get an image from a webcam in a java application, you can use the Java Twain from http://www.gnome.sk
    Erika

  • "Automatically retrieve CD track names from internet" not working

    I'm about to begin re-ripping all my CDs (400+) which I haven't done since at least 14yrs ago in order to take advantage on newer/better formats. I was excited to see that iTunes can automate a lot of this process with the following two options:
    - When you insert a CD: (Import CD and Eject)
    - [ ] Automatically retrieve CD track names from internet
    Found in the "Playback" settings of iTunes 10.1.1
    However after inserting my first CD, I noticed it started to import without downloading the track names first. Obtaining track names manually is working for me because if I choose "Advanced -> Get track names" it accesses Gracenote DB and works fine.
    It's just the automatic operation after inserting a CD that is not working. This causes me to have to:
    1) Insert CD
    2) Choose "Advanced -> Get track names"
    3) Click "Import CD"
    4) Eject
    as opposed to the one supposedly promised step of "Insert CD" and have the other 3 things happen automatically.
    I've tried deleting my iTunes plists in my ~/Library/Preferences/ folder but it still works the same.
    Any suggestions?

    You can seach the Gracenote site directly. I don't know if that would help you decide which option you needed to use.
    http://www.gracenote.com/music/index_old.html

  • Urgent--custom servlet not working with https/gateway of the portal server

    We have created the custom servlet to add some more authentication to the login screen. I have explained detaildely below.
    We have set if password reset change password screen should come by using identity server.
    First screen comes which asks �user id� and �password�.
    after this next screen comes with �old password�, �New Password� and �Confirm Password� (as we have forcefully asked user to change password after reset by using identity server ).
    On this page we have added two new filed �Date of Birth� and �Date of Joining�.
    And we are forcefully transferring request to our Custom Servlet which will validate the �Date of Birth� and �Date of Joining� from the database and submit the same a form as required by Login Servlet to validate the default parameters �old Password�, �New Password� and �Confirm Password� (which is the default validation without adding custom Servlet).
    This whole process is working with �http� protocol and giving �unable to connect� host with �https� protocol.
    Without custom Servlet process is like this, which is working
    Login (usrid, password) � Login (Old Password, New Password, Confirm Password) � Portal home Page
    With custom Servlet , Which is not working with �https� Protocol. we are getting the message "Authentication Failed" screen.
    Login (usrid, password) --> Login (Old Password, New Password, Confirm Password , Date of Birth, Date of Joinig) --> Custom Servlet validate Date of Birth, Date of Joining --> Login (Old password, new Password, Confirm Password) --> Protal Home Page
    This one works with http, whereas this one gives the "Authentication Failed" screen with the https.
    Please let me know if anybody have implemented this and help me to resolve the issue.
    Best Regards
    Ramkumar

    Hi,
    I am also getting this error message in the sun ONE webserver error log file....
    [20/Nov/2004:13:42:39] failure ( 6162): for host 172.16.5.21 trying to GET /amserver/UI/Login, service-j2ee reports:
    StandardWrapperValve[LoginServlet]: WEB2792: Servlet.service() for servlet LoginServlet threw exception
    com.iplanet.jato.CompleteRequestException
    at com.sun.identity.authentication.UI.AuthenticationServletBase.onUncaughtException(AuthenticationServletBase
    .java:141)
    at com.iplanet.jato.ApplicationServletBase.fireUncaughtException(ApplicationServletBase.java:1023)
    at com.iplanet.jato.ApplicationServletBase.processRequest(ApplicationServletBase.java:469)
    at com.iplanet.jato.ApplicationServletBase.doPost(ApplicationServletBase.java:324)
    at com.iplanet.jato.ApplicationServletBase.doGet(ApplicationServletBase.java:294)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:787)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:908)
    at org.apache.catalina.core.StandardWrapperValve.invokeServletService(StandardWrapperValve.java:771)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:322)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:212)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:209)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509)
    at com.iplanet.ias.web.connector.nsapi.NSAPIProcessor.process(NSAPIProcessor.java:161)
    at com.iplanet.ias.web.WebContainer.service(WebContainer.java:586)
    Regards
    Ramkumar R

  • Access Restrictions still not working with latest firmware

    Linksys WRT54GS V5 with firmware v1.52.2
    I cannot believe what a frustrating experience this is. All I want to do is block facebook.com from my two high schoolers until they’ve done their homework.
    Starting out, it simply did NOT work, and I discovered from this forum that the initial firmware did not work for this feature. So here is what I did:
    - Downloaded v1.52.2 firmware, which is indicated as being the latest for this router
    - Upgraded the router, per the instructions with this firmware.
    - Pressed (and held)the reset button for the indicated 30 seconds
    At this point, my router switched back to the default access point name and access password. Fortunately, I had backed up my configuration, so I then:
    - Loaded my previous configuration that included my Wireless security settings, different AP name, etc...
    - Powered down, then back up router, cable modem.
    Router now works wireless as before, but Access Restrictions still does not restrict. Router does list the correct firmware on the admin screens.
    Here is how I sent up my one (and only policy)
    Internet Access Policy: 1(facebook)
    Status: Enable
    Enter policy name: facebook
    PCs: Allow checked
    Days: Everyday checked
    Times: 24 hours checked
    Blocked Services: NONE
    Wewbsite Blocking by URL Addresses:
    3 entered, they are:
    http://www.facebook.com
    http://static.ak.facebook.com
    http://apps.facebook.com
    Website blocking by keyword: All 6 boxes empty
    This was easier to do on my old netgear router, and it also actually WORKED. ARGHHHHHH

    Thanks, but that did not work either. It seems to me that, entering mac addresses ended up totally taking away all internet access for the computers on the MAC list. This is really pathetic that a concept that on the surface seems so simple, as in 'deny access to hostname xxx.com' can be so difficult to implement. If there wasn't the suggestion that this were a feature of the router, I wouldn't care. But it *is* supposedly a feature, and the feature simply does not work.
    It seem to me that LinkSys has too many mutually exclusive options on a single page. It would be easier to grok if the hostname filter had it's own page, then you wouldn't be wondering what the 'deny/allow' check box did or did not do in conjunction with your selections.
    Does the feature work or not? As I mentioned, this was childishly easy to accomplish on my Netgear router. If it didn't suck so bad in other areas of performance, I'd simply go back to it.

  • Move jsp code into servlet, not work!!

    Hi:
    I am new in servlet and java, I can use jdom to read xml file
    into a jsp file, but whan I move jsp code into servlet, they are not work
    have any ideals?
    Thank!

    Hi:
    my.jsp
    <%@ page contentType="text/html"%>
    <%@ page import="java.io.File,
    java.util.*,
    org.jdom.*,
    org.jdom.input.SAXBuilder,
    org.jdom.output.*" %>
    <%
    String Records = "c:/XMl/Quotes.xml";
    SAXBuilder builder = new SAXBuilder("org.apache.xerces.parsers.SAXParser");
    Document l_doc = builder.build(new File(Records));
    my servlet
    import java.io.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import org.jdom.*;
    import org.jdom.input.*;
    import org.jdom.input.SAXBuilder;
    import org.jdom.output.*;
    public class XmlJdom extends HttpServlet
    String Records = "c:/xml/Quotes.xml";
    SAXBuilder builder = null;
    Element Author = null;
    Element Text = null;
    Element Date = null;
    * Initializes the servlet.
    public void init(ServletConfig config) throws ServletException
    super.init(config); //pass ServletConfig to parent
    try
    // JDOM can build JDOM trees from a variety of input sources. One
    // of those input sources is a SAX parser.
    SAXBuilder builder = new SAXBuilder("org.apache.xerces.parsers.SAXParser");
    catch ( org.jdom.JDOMEXception e)
    public void doGet(
    HttpServletRequest request,
    HttpServletResponse response)
         throws IOException, ServletException
         PrintWriter out = null;
         out = response.getWriter();
         try{                
         Document l_doc = builder.build(new File(Records));
    Element root = l_doc.getRootElement();
    //get a list of all recode in my XML document
    String l_pages = root.getChild("quote");
    String Iterator e = l_pages.iterator();
    while ( e.hasNext())
    Element l_quote= (Element) e.next();
         Element l_Author = l_quote.getChild("Date").getChild("Text");
    XMLOutputter l_format = new XMLOutputter();
    String ls_result = l_format.outputString(l_doc);
    out.println(ls_result);
    catch( org.jdom.JDOMException e )
         finally
              if( out != null)
                   out.close();
    Please tell me, what is wrong!!!
    Element root = l_doc.getRootElement();
    /* get a list of all the links in our XML document */
    List l_pages = root.getChildren("quote");
    Iterator Myloop = l_pages.iterator();
    while ( Myloop.hasNext())
    Element l_quote= (Element) Myloop.next();
         Element l_Author = l_quote.getChild("Date").getChild("Text");
    XMLOutputter l_format = new XMLOutputter();
    String ls_result = l_format.outputString(l_doc);
    ls_result = l_format.outputString(l_doc);
    %>
    <html><head><title></title></head>
         <body>
              <pre>
              <%=ls_result%>
              </pre>
         </body>
    </html>

  • Accessability/Universal Access - Zoom does not work in Launchpad/Mission control

    If using the Accessability 'Zoom' option it works normally in 'normal' desktop Spaces.
    On entering either LaunchPad or Mission Control it is not possible to zoom in or, more importantly, zoom back out to full screen.
    It is also not possible to move the zoomed area around the full desktop.
    These issues make LaunchPad and Mission Control unusable if entered with any amount of Zoom enabled.
    The workaround appears to be to leave LaunchPad or Mission Control, Zoom fully out and go back in again.
    This is not helpful if you need the zoom mode in order to be able to see your computer screen.
    Anyone found a better workaround?

    Phoned AppleCare tonight - the fix was to nuke the System Preferences preference file and reboot.
    The good news - 'Zoom' now works with the keyboard shortcuts.
    The bad news - the trackpad 'zoom' gesture from Snow Leopard doesn't work in Lion.

  • Guest access on E2500 not working but everything else is fine.

    HI.. I  did not use the CD to set up,  and instead set this router up manually. We are using this router right now as a hotspot only.. and all is good. I can see both new networks and the WIFI laptops are talking  no problem. Only  issue I have  is that guest access is not working - by that I mean it can't get out on the internet. I can see it as available and connect to it. Guest access and SSID broadcast are both enabled obviously.
    Is there something special guests have to type into a browser? Or did I need to use the CD? (I read on a google search that cisco connect on the CD must be used?)  Any help very much appreciated!

    Really appreciate your help with this. I am a bit of a novice here.. but.. After some more searching on this issue I notice your comments (cut/pasted  below)  with respect to this router and bridging mode. You mentioned that I should update my firmware on this router and that this would (if I am interpreting your reply correctly) facilitate my LAN to LAN connection and of course using this router simply as an access point and more to the point -  having the use of the guest network. So my question is even if I did update firmware,  seems I would still require 3rd party software to make this work? (re your last sentence in your comments below)  Just need to understand the process and determine whether or not it is worth it (or maybe I should upgrade the router) but I don't want to change the configs of the network wired router at this time... and need to use the E2500 or facsimile as  simply an access point with  guest network functionality,  Thanks much appreciated.
    "Again: some E series routers already support wired bridging in firmware, i.e. to use the router as simple access point.
    This is and was always possible using a LAN-LAN setup instead.
    The problem with the LAN-LAN setup is, however, that you have some limitations accessing the network storage or network printer, e.g. the router doesn't have the correct time and you cannot access the storage from remote using port forwarding through your main router.
    These limitations have been overcome with the wired bridge mode (internet connection type = bridge mode).
    But again: this has absolutely nothing to do with wireless bridging. That's something completely different and is not supported on Linksys routers in any firmware version so far. To do wireless bridging (i.e. the Linksys routers connects wirelessly to another main router) you need 3rd party firmware."

  • JSP/Servlets not working after upload

    I have a JSP file and some servlets that work fine on my PC running Tomcat.
    I just uploaded them to my web server (which supports servlets/jsp and has apache web server running), but they do not work. The jsp file does not run, it just displays the source code.
    Strangely, the support people at my server say the jsp files run ok when they view them. But when I view them from my browser it just shows source code.
    Do I need to configure something in my program? Or is it a server problem?

    Very hard to help without seeing the page - the answer is in the code  :-)
    Can you please point a link to your page?
    Are you sure you uploaded all the image files, and that the paths to the images are all correct?
    Nadia
    Adobe® Community Expert : Dreamweaver
    http://www.perrelink.com.au
    Unique CSS Templates |Tutorials |SEO Articles
    http://www.DreamweaverResources.com
    http://csstemplates.com.au/
    http://twitter.com/nadiap

Maybe you are looking for

  • Error serializing objectjava.io.UTFDataFormatException --Urgent

    Hi,           I am getting the following exception from JMS. I am trying to send Object           Message to JMS queue. The object message is created reading from XML.           I figured out one block in XML which is causing this exception. However,

  • Radiomat on Intel Macs?

    Many streaming radio stations now use the Radiomat service by CBS. I've used it in the past with Safari and my G5 iMac, but I can't get it to work on my new Intel iMac. The problem is odd, and I've seen it reported elsewhere: instead of launching the

  • 1Z0-850 exam still valid?

    I'm studying for exams 1Z0-803 & 1Z0-804, but is still valid to 1z0-850 certification?

  • How to backup third party apps

    hello, i wanted to know if there is a way to backup your 3rd party apps (final cut, cs3, etc). and if there is, what the process? thx

  • What kind of exception generates

    Hi, I have the following select-into statement, part of a function: select sum(trans_qty) into sum_qty1 FROM gmi.ic_tran_pnd det, gmi.ic_xfer_mst xfr WHERE xfr.transfer_id = det.doc_id AND det.DOC_TYPE = 'XFER' AND det.line_id = 1 AND from_warehouse