URL contains illegal characters

hi,
The following is the error i get when i am click a link in my page
The URL contains illegal characters. You need to encode these illegal characters: OA.jsp?page=/danka/oracle/apps/bis/supplyTrend/webui/DKProduct&fromMonth=01-Aug-2005&toMonth=01-Apr-20&periodType=MONTH geoType=ordered_item geoMainName=0-20 Copies/Minute&geoName=CANON retainAM=Y addBreadCrumb=Y&_ti=1414051287
There is a space in my geoMainName value between 0-20 and Copies/Minute.
I know that we have to do some encoding for this. But i am not knowing how to do it. I saw your previous thread with the same problem, but i was not able to understand.
The following is the line of code i wrote to make a item as a link
geoNameBean.setDestination("OA.jsp?page=/danka/oracle/apps/bis/supplyTrend/webui/DKProduct&fromMonth="+fromMonthStartDate+"&toMonth="+toMonthStartDate+"&periodType="+periodType+"&geoType=item_manufacturer&geoName={@GeoName}&retainAM=Y&addBreadCrumb=Y");
Please guide me to encode this parameter value of geoMainName.
Thanking you
ri

did you go through the javadoc for this class ?
the usage is given there
Thanks
Tapash

Similar Messages

  • Cannot insert Captivate Demo - filename contains illegal characters

    RoboHelp HTML v8 on XPpro. Captivate v4.
    I have created a simple Captivate v4 application demo and published to SWF.
    In my RHhtmlv8 project, I create a new topic, and choose Insert > Adobe Captivate Demo.
    The Insert dialog allows me to select my SWF file. It shows it in the Insert dialog and starts to play it.
    No matter what my SWF filename is (e.g. abc.swf, video1.swf, etc.), when I click the OK button in the Insert dialog, I get the error:
    'Unable to rename file, "abc.swf". The filename contains illegal characters.'
    I have searched the forums here and find no solution.
    How do you get support from this company? I went to the support link and it only showed Captivate as an option, even though I have a valid license for RH8 and have registered it. Yet - for 2 days now, I have not heard back from any support via that mechanism.
    Jeff

    Hi Jeff
    When you attempt to insert the demo, by chance do you still have the project open in the Captivate editor? If so, you likely need to close it there before attempting to insert into RoboHelp. I've seen all manner of weirdness with this.
    Another thing that seems to have happened recently that is worth looking at. When you Published your Captivate demo, did you Publish as AS2 or AS3? (For those that may wonder, AS refers to ActionScript. Similar to JavaScript and is the Flash programming language.)
    I've begun to notice issues with inserting Captivate content where I have published as AS3.
    Let us know... Rick
    Helpful and Handy Links
    RoboHelp Wish Form/Bug Reporting Form
    Begin learning RoboHelp HTML 7 or 8 within the day - $24.95!
    Adobe Certified RoboHelp HTML Training
    SorcerStone Blog
    RoboHelp eBooks

  • Error while crawling URL containing diacritic characters

    Hi,
    I have a content source in SharePoint 2013 that is showing errors while trying to crawl links with diacritic characters (portuguese words). The reason is that the crawler regards the URL as invalid.
    The problem still occurs if the link URL is encoded (see example 2).
    Examples:
    1) Atualização 037 de 16-4-2008.htm
    2) Atualiza%E7%E3o%20037%20de%2016-4-2008.htm
    Log message:
    The item could not be accessed on the remote server because its address has an invalid syntax.
    I already tried to save the home page (which contains the links) as UTF-8, UTF-8 without BOM, and ANSI.
    Also, I tried to include a meta charset tag:
    <meta charset="UTF-8">
    in addition to the first line with:
    <?xml version="1.0" encoding="UTF-8"?>
    All unsuccessful attempts. Has anyone found solution for this problem?

    Hi,
    Just checking in to see if the information was helpful. Please let us know if you would like further assistance.
    Have a great day!
    Best Regards,
    Lisa Chen
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Problem with URL:s containing scandinavian characters (Office 2013 / Firefox / SP 2010)

    We are encountering problems with document opening when URL contains scandinavian characters (ä,ö). This issue occurs only with Office 2013 when using Firefox. With IE it works just fine. And Office 2010 works nicely as well.
    Error message: "We can't connect to 'https://intra.../Test powerpoint.pptx' Please make sure you're using the correct web address".
    This issue only occurs when document or document set name contains scandinavian characters. If I rename it, document opens without any problems. 
    Any idea how I could fix this?

    Hi Law, try changing the settings in the library to "open in client application." You should also read the following links for solutions:
    http://sharepoint.stackexchange.com/questions/16938/why-is-word-document-created-from-template-saved-locally-instead-of-to-the-docu
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/ec048a1f-e6cc-481d-8f46-308823568b56/cannot-save-documents-to-sharepoint?forum=sharepointadminprevious
    cameron rautmann

  • ADF Faces Components Demo - Illegal Characters error

    Hi ,
    I downloaded the ADF Faces Components Demo for version 11.1.2.3.0 from http://www.oracle.com/technetwork/developer-tools/adf/downloads/index.html . I tried following instructions :ADF Faces Components Demo Install Instructions
    This is getting downloaded as rcf-dvt-demo.zip. I renamed it to rcf-dvt-demo.war.
    Then I tried to create a project from this war... and got following error :
    The project file "C:\rcf-dvt-demo.war!\Project.jpr" is not valid. The file name may contain illegal characters, it may be too long, or permissions for this file or one of it's parent directories may be restricted.
    Please help . Am i downloading from correct location and following the correct instructions.
    Thanks,
    Rajdeep

    Good Catch Timo ... Lot of thanks.
    Still I will put down the silly mistake of overlooking the wizard.
    I was doing the correct thing - "create a new application and inside this application workspace you add a new 'project from war'." But mistake was .. First step of wizard it is project name and path,, and then second step is war location... and in hurry I was giving the project name and war location in first step.
    Thanks,
    Rajdeep

  • Filelist illegal characters

    using LabVIEW 7.1 I want to list and read several files in a certain directory.
    I want to recursively search and read these files starting  from a root-directory,
    however the directory-path at some point contains illegal characters, probably because the data is originating from Japan.
    Now the recursive filelisting is not able to look beyond that part of the directory.
    Windows displays these chars as 3 square's, and Labview displays them as 3 question marks, and generates a error.
    I could ofcourse manually rename the illegal chars, but since intent to analyse lots of these files, doing a manual rename would be too much work.
    Does anyone know a solution for this problem ?? 
    Thanks in advance ,
    René

    ramekers wrote:
    I tried the recursive file-lister of LabVIEW 8.5 (on windows2000) and this gave me the same errors,
    not being able to read past these characters.
    Now I am trying to locate a "freeware" program to remove these characters recursively from the names,
    leaving the rest intact. Couldn't find anything yet ...
    René
    You could experiment with the command line in Windows. Not sure if the command line will support such file names at all but if it goes bad there, then you are indeed in deep trouble. Try to start a command line and do a dir command in such a directory. Then try to do a rename on such a file. It might work.
    I doubt there is a GUI application that does specifically do this task, so you may have to resort to a batch file script doing it on the command line if the above experiment shows you that this is possible at all.
    Rolf Kalbermatter
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Illegal characters in xml configuration files

    Hi,
    We are storing user configuration details in the server.xml for use with startup classes.
    We are experiencing problems where the values of this configuration information contain characters such as < & > and we receive the following error:
    07/05/17 15:05:35 Start process
    Error initializing server: Fatal error at line 92 offset 20 in file:/home/orabpel/OraHome_2/j2ee/OC4J_BPEL
    /config/server.xml: The content of elements must consist of well-formed character data or markup.I was hoping the problem could be resolved by enclosing the values of nodes which contain illegal characters with <![CDATA[]]>, but this has not resolved the problem.
    Is there any way we can achieve this?
    The reason we are storing these characters in the server.xml is because they represent obfuscated passwords in rot39 format. Perhaps there is a more suitable obfuscation/encryption format that is very simple to implement?
    Thanks
    Toby

    Actually, specifing the values as CDATA does work, but i had a typo that was causing it to fail.
    Toby

  • Escaping illegal characters

    Hi everyone,
    I'm looking for some help on how to encode or "escape" illegal characters when writing strings (which contain the illegal characters) to XML. I'm basically creating an XML document which describes the structure of a JTree I have, but thus far, i've been using the replaceAll method to replace illegal characters in the strings with legal ones before converting to XML but i don't feel this is the best way to do it.
    The first part of my export to xml method is:
    public void export(DefaultMutableTreeNode rootNode) {
         try {
              textArea.append("Export: Exporting current tree... \n");
              final DocumentBuilder builder = DocumentBuilderFactory.newInstance().newDocumentBuilder();
              final Document document = builder.newDocument();
              try {
                   GetTitle parser = new GetTitle();
                   Reader reader = getReader(userI.getTarget().toString());
                   new ParserDelegator().parse(reader, parser, true);
              catch (Exception e)     {
                   System.out.println(e);
              String validRoot = docTitle.replaceAll("\\'", "_");
              final Element root = document.createElement(validRoot);
              root.setAttribute("node", "root");
    The GetTitle method will simply get the title of the URL returned by userI.getTarget and store it in the docTitle variable. If there are any illegal characters in the validRoot string, then i get an error at the line:
    final Element root = document.createElement(validRoot);
    Could anyone suggest how i can encode any illegal characters in the validRoot string before i invoke the createElement method? Is there a parser I can use which already does this?
    Any help will be much appreciated.
    Thanks.

    Correct me if I am wrong but the code:
    Element foo = document.createElement("King's College");is essentially creating something corresponding to the XML <King's College></King's College> which is of course illegal characters in the XML tags
    the solution that you went for:
    Element foo = document.createElement("Root");
    foo.setAttribute("Title", "King's College");is essentially equivalent to this XML <Root Title="King's College"></Root> which is a legal use of a tic mark, but still locates the data in the wrong place
    Perhaps what you wanted was:
    Element foo = document.createElement("Root");
    foo.appendChild(document.createText("King's College"))which corresponds to the more natural XML <Root>King's College</Root>
    By the way, I've never tried any of this and could have it all wrong. I just happened to be reading the XML tutorial and noticed their comments that the most common mistake in DOM style XML processing is to confuse the element nodes (which are just the tags) with the the data contained in the element which will always be in one or more text children of an element node.
    see Document, Element, & Node in the API

  • Unable to call report from jsp - password contains special characters

    Hi
    I used the following url to call my oracle report from my JSP webpage but got the error mentioned below. It seems that this error occurs when i use the login id with password that contains special characters only. How can I overcome this problem?
    Any help appreciated. Thx.
    Regards,
    Siti
    URL used: -
    "http://pc-325:8889/reports/rwservlet?server=pc-325&report=prodeff80120i&P_JDBCPDS="+vlogin1+"&destype=cache&desformat=pdf&paramform=no&p_type="+p_type;
    Error encountered: -
    REP-163: Invalid value for keyword DESTYPE.
    Valid options are FILE, PRINTER, MAIL, INTEROFFICE, or CACHE.

    Hi Stefan,
    Many of the customers are located in hungary and they have created the userid using their keyboard. Hence for now I already have a userid with that hungarian characters, in the SAP system.
    Only I would request for the help on how to interface these characters in SAP Business connector to call RFC.
    Thanks,

  • How to read a line from a file which contains 45000 characters?

    Hi all,
         Iam a receiving a .CSV file which contains n number of rows ,each row has a data seperated with delimiter.
    These values based on delimiter it is seperated and certain validations are handled.
    Iam using UTL_FILE.GET_LINE operator to read the value and store it in a variable which is declared as l_text VARCHAR2(30000).
    when we receive a line which contains huge characters say 45000 then it throws an error(Unable to read the file).
    Only on rare cases we used to receive these kind of files with huge size.
    Kindly help to solve this issues.
    Database details.
    Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
    PL/SQL Release 11.2.0.2.0 - Production
    CORE 11.2.0.2.0 Production
    TNS for Linux: Version 11.2.0.2.0 - Production
    NLSRTL Version 11.2.0.2.0 - Production
    Hereby i have tried with long Raw data type but still same error unable to read the file.pls find the sample code below,
    declare
    l_text             LONG RAW;
    l_importTypeFile   UTL_FILE.FILE_TYPE ;
    begin
         PKG_COMMON.PROC_FOPEN(g_Directory, P_FILENAME,    'RB',l_importTypeFile,    p_error_cd, p_error_msg) ;
    UTL_FILE.GET_RAW(l_ImportTypeFile,l_Text);
    End;
    Thanks in Advance
    Siva

    Hi Siva,
    Are you trying to use data from this .csv file into your realtion tables. If yes and If you are using 11g Oracle database. I would suggest you create External Tables using the below query,
    http://www.oracle.com/technetwork/issue-archive/2011/11-mar/o21nanda-312277.html
    STEP1: You need a Directory where your SCHEMA has read/write access. Store the csv file in that directory.
    STEP2: Create an EXTERNAL Table script. Please refer the above URL. Examples are for coma delimiter (,); replace it with your pipe (|) in the code
    STEP: Once your external table is created you can simply create a relational table as below:
    CREATE  TABLE relation_table
      AS
    SELECT * FROM external_table;
    Regards,
    RaviR

  • Illegal characters in a Sharepoint list

    I'm trying to export an Access table to SP with 20 columns and 4,500 records and I keep geting this strange error "There was an error copying data to a Sharepoint list.  Cannot update.  Database or object is read-only. "  I can export to other formats OK, just not Sharepoint.
    According to a few posts, it appears my dilemma is related to illegal characters in the table itself.  Could the problem be something else?
    What characters are not allowed in a Sharepoint list? 
    Thanks.

    Thanks for reply.  I've tried moving to Sharepoint by plain old Export and the new "Publish to Access Services."  Get the error both ways.
    In an effort to isolate the problem, made a copy of my table and deleted all but the first ID column.  
    With only one column of the ID autonumber data, it exported successfully to Sharepoint.
    When I added a 2nd column titled "Prefix" and it worked.  Then I added 3rd column titled "LastName" containing various last names, the "read only" error occurs.
    I can provide a copy the 3 column table to anyone willing to take a look.  Something in the table causing trouble!
    Thanks

  • Adding "window to a container:illegal argument exception".error plz help

    Thanks to Mr.Andrew and sun for developing the following code for a
    mediaplayer which is implemented in jmf.This is working in core java. But
    when i have converted it to Applet it compiles but an error adding "window
    to a container:illegal argument exception".code is given below plz point
    me where is the error;
    import javax.media.*;
    import java.text.DecimalFormat;
    import java.awt.*;
    import java.awt.FileDialog;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.border.*;
    import java.io.*;
    import java.net.*;
    import java.util.*;
    class nwa extends WindowAdapter{
    frameclass frame;
    public nwa(frameclass frame){
    this.frame=frame;
    public void windowClosing (WindowEvent e)
    //User selected close from System menu.
    //Call dispose to invoke windowClosed.
    frame.dispose ();
    public void windowClosed (WindowEvent e)
    //if (player != null)
    //player.close ();
    System.exit (0);
    class frameclass extends JFrame
    frameclass(){
    nwa n=new nwa(this);
    this.addWindowListener(n);                    
    public class PlayerApplet extends JApplet
              implements
    ActionListener,ControllerListener,ItemListener, KeyListener
    frameclass frame=new frameclass();
    Player player;
    Component vc, cc;
    JProgressBar volumeBar;
         JButton fastRewind;
         JButton fastForward;
         JButton play;
    int sizeIncrease = 2;
    boolean invokedStop = false;
         /** Big */
         int progressFontSize=30;
    boolean first = true, loop = false;
    String currentDirectory;
    public void init(){
    JMenu m = new JMenu ("File");
    JMenuItem mi = new JMenuItem ("Open...");
    mi.addActionListener (this);
    m.add (mi);
    m.addSeparator ();
    JCheckBoxMenuItem cbmi = new JCheckBoxMenuItem ("Loop", false);
    cbmi.addItemListener (this);
    m.add (cbmi);
    m.addSeparator ();
    mi = new JMenuItem ("Exit");
    mi.addActionListener (this);
    m.add (mi);
    JMenuBar mb = new JMenuBar ();
    mb.add (m);
    frame.setJMenuBar (mb);
    setSize (200, 200);
         final JPanel p = new JPanel(new GridLayout(1,0,5,5));
              p.setBorder(new EmptyBorder(3,5,5,5) );
              fastRewind = new JButton("<html><body><font size=+"+
    sizeIncrease+ "><<");
              fastRewind.setToolTipText("Fast Rewind");
              fastRewind.addActionListener( new ActionListener(){
                   public void actionPerformed(ActionEvent ae) {
                        if (player!=null) {
                             invokedStop = false;
                             skipBack();
                        } else {
    JOptionPane.showMessageDialog(play,
                             new JLabel("Open a sound file
    first!"));
              fastRewind.addKeyListener(this);
              p.add(fastRewind);
              JButton stop = new JButton("<html><body><font size=+"+
    sizeIncrease+ ">&#9632;");
              stop.setToolTipText("Stop");
              stop.addActionListener( new ActionListener(){
                   public void actionPerformed(ActionEvent ae) {
                        invokedStop = true;
                        //player.stop();
                        sp();
              stop.addKeyListener(this);
              p.add(stop);
              play = new JButton("<html><body><font size=+"+
    sizeIncrease+ ">>");
              play.setToolTipText("Play");
              play.addActionListener( new ActionListener(){
                   public void actionPerformed(ActionEvent ae) {
                        if (player!=null) {
                             invokedStop = false;
                             player.setRate(1);
                             st();
                        } else {
    JOptionPane.showMessageDialog(play,
                             new JLabel("Open a sound file
    first!"));
              play.addKeyListener(this);
              p.add(play);
              fastForward = new JButton("<html><body><font size=+"+
    sizeIncrease+ ">>>");
              fastForward.setToolTipText("Fast Forward");
              fastForward.addActionListener( new ActionListener(){
                   public void actionPerformed(ActionEvent ae) {
                        if (player!=null) {
                             invokedStop = false;
                             skipForward();
                        } else {
    JOptionPane.showMessageDialog(play,
                             new JLabel("Open a sound file
    first!"));
              fastForward.addKeyListener(this);
              p.add(fastForward);
              p.addKeyListener(this);
              frame.add(p,BorderLayout.CENTER);     
              add(frame);
    // pack ();
    setVisible (true);
    public void start(){
    st();
    public void stop(){
    sp();
    public void destroy(){
    player.stop();
    player.deallocate();
    public void actionPerformed (ActionEvent e)
                   if (e.getActionCommand().equals("Exit"))
                   // Call dispose to invoke windowClosed.
                   frame.dispose ();
                        return;
         FileDialog fd = new FileDialog (frame, "Open File",
    FileDialog.LOAD);
         fd.setDirectory (currentDirectory);
         fd.show ();
         // If user cancelled, exit.
              if (fd.getFile() == null)
         return;
    currentDirectory = fd.getDirectory ();
              if (player != null)
         player.close ();
         try
         player = Manager.createPlayer (new MediaLocator
    ("file:" +
    fd.getDirectory() +
    fd.getFile()));
         catch (java.io.IOException e2)
    System.out.println (e2);
    return;
         catch (NoPlayerException e2)
    System.out.println ("Could not find a player.");
    return;
              if (player == null)
         System.out.println ("Trouble creating a player.");
         return;
    first = false;
    frame.setTitle (fd.getFile ().toString());
    player.addControllerListener (this);
    player.prefetch ();
    public void controllerUpdate (ControllerEvent e)
    if (e instanceof ControllerClosedEvent)
    if (vc != null)
    remove (vc);
    vc = null;
    if (cc != null)
    remove (cc);
    cc = null;
    return;
    if (e instanceof EndOfMediaEvent)
    if (loop)
    player.setMediaTime (new Time (0));
    player.start ();
    return;
    if (e instanceof PrefetchCompleteEvent)
    player.start ();
    return;
    if (e instanceof RealizeCompleteEvent)
    vc = player.getVisualComponent ();
    if (vc != null)
    add (vc);
    cc = player.getControlPanelComponent ();
    if (cc != null){
         this.add (cc, BorderLayout.SOUTH);
                        this.show();
    public void keyReleased(KeyEvent ke) {
    int keycode = ke.getKeyCode();
              if (keycode==KeyEvent.VK_LEFT) {
                   skipBack();
              } else if (keycode==KeyEvent.VK_RIGHT) {
                   skipForward();
         public void keyTyped(KeyEvent ke) {
         int keycode = ke.getKeyCode();
              if (keycode==KeyEvent.VK_LEFT) {
                   skipBack();
              } else if (keycode==KeyEvent.VK_RIGHT) {
                   skipForward();
         public void keyPressed(KeyEvent ke) {
              int keycode = ke.getKeyCode();
              if (keycode==KeyEvent.VK_LEFT) {
                   skipBack();
              } else if (keycode==KeyEvent.VK_RIGHT) {
                   skipForward();
              }else if (keycode==KeyEvent.VK_UP) {
                   st();
              }else if (keycode==KeyEvent.VK_DOWN) {
                   sp();
    public void skipForward() {
    double secs=5;
    double playersecs = player.getMediaTime().getSeconds();
    Time settime = new javax.media.Time(playersecs + secs);
    player.setMediaTime(settime);
    public void skipBack() {
              double secs1=5;
    double playersecs1 = player.getMediaTime().getSeconds();
    Time settime1 = new javax.media.Time(playersecs1 - secs1);
    player.setMediaTime(settime1);
         public void st() {
         player.start();
         public void sp() {
         player.stop();
    public void itemStateChanged (ItemEvent e)
    loop = !loop;
    When i comment add(frame) this error goes but i got a null poiter
    exception
    Plz help
    manu

    Hi Andrew,
    Thanks for ur reply.Sorrry that my code not included in the code block.
    My problem have been solved partly.Now playerapplet is working properly.It can play files from local machine(through open menuitem from file menu) as well as local network (through url menuitem from file menu).
    There is no requirement to play file from internet at present.
    I have given arrow keys to forward/backward/open/close.
    I have now completed my first part of project.Now i have to start the second part ie Controlling arrow keys using a joystick like instrument.The instrument and driver will be provided by my co. and the user is using only this device.Plz help me how to do that.
    The code is given below
    import javax.media.*;
    import java.text.DecimalFormat;
    import java.awt.*;
    import java.awt.FileDialog;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.border.*;
    import java.io.*;
    import java.net.*;
    import java.util.*;
    <APPLET CODE=PlayerApplet.class
    WIDTH=320 HEIGHT=300>
    </APPLET>
    class nwa extends WindowAdapter
         frameclass frame;
         Player player;
         public nwa(frameclass frame,Player player)
          this.player=player;
          this.frame=frame;
         public void windowClosing (WindowEvent e)
          //User selected close from System menu.
          //Call dispose to invoke windowClosed.
          frame.dispose ();
          public void windowClosed (WindowEvent e)
              if (player != null)
                   player.stop();
                player.close ();
                   player.deallocate();
          System.exit (0);
    class frameclass extends JFrame
    Player player;
         frameclass(Player player)
         nwa n=new nwa(this,player);
         this.addWindowListener(n);                    
    public class PlayerApplet extends JApplet
               implements ActionListener,ControllerListener,ItemListener, KeyListener
               Player player=null;
               frameclass frame=new frameclass(player);
                 Component vc, cc;
                 Container f;
                 JProgressBar volumeBar;
                 JButton fastRewind;
              JButton fastForward;
              JButton play;
              int sizeIncrease = 2;
              boolean invokedStop = false;
              /** Big */
              int progressFontSize=30;
                 boolean first = true, loop = false;
                 String currentDirectory;
                 public void init()
                          f=frame.getContentPane();
                         JMenu m = new JMenu ("File");
                         JMenuItem mi = new JMenuItem ("Open...");
                         mi.addActionListener (this);
                         m.add (mi);
                         m.addSeparator ();
                         mi = new JMenuItem ("URL");
                         mi.addActionListener (this);
                         m.add (mi);
                         m.addSeparator ();
                         JCheckBoxMenuItem cbmi = new JCheckBoxMenuItem ("Loop", false);
                         cbmi.addItemListener (this);
                         m.add (cbmi);
                         m.addSeparator ();
                         mi = new JMenuItem ("Exit");
                         mi.addActionListener (this);
                         m.add (mi);
                         JMenuBar mb = new JMenuBar ();
                         mb.add (m);
                         frame.setJMenuBar (mb);
                         setSize (500, 500);
                           JPanel p = new JPanel(new GridLayout(1,0,5,5));
                        p.setBorder(new EmptyBorder(3,5,5,5) );
                        fastRewind = new JButton("<html><body><font size=+"+ sizeIncrease+ "><<");
                        fastRewind.setToolTipText("Fast Rewind");
                        fastRewind.addActionListener( new ActionListener(){
                             public void actionPerformed(ActionEvent ae) {
                                  if (player!=null) {
                                       invokedStop = false;
                                       skipBack();
                                  } else {
                                       JOptionPane.showMessageDialog(play,
                                       new JLabel("Open a sound file first!"));
                        fastRewind.addKeyListener(this);
                        p.add(fastRewind);
                        JButton stop = new JButton("<html><body><font size=+"+ sizeIncrease+ ">&#9632;");
                        stop.setToolTipText("Stop");
                        stop.addActionListener( new ActionListener(){
                                  public void actionPerformed(ActionEvent ae) {
                                       invokedStop = true;
                                       sp();
                        stop.addKeyListener(this);
                        p.add(stop);
                        play = new JButton("<html><body><font size=+"+ sizeIncrease+ ">>");
                        play.setToolTipText("Play");
                        play.addActionListener( new ActionListener()
                                  public void actionPerformed(ActionEvent ae) {
                                       if (player!=null) {
                                            invokedStop = false;
                                            player.setRate(1);
                                            st();
                                       } else {
                                            JOptionPane.showMessageDialog(play,
                                            new JLabel("Open a sound file first!"));
              play.addKeyListener(this);
              p.add(play);
              fastForward = new JButton("<html><body><font size=+"+ sizeIncrease+ ">>>");
              fastForward.setToolTipText("Fast Forward");
              fastForward.addActionListener( new ActionListener(){
                   public void actionPerformed(ActionEvent ae) {
                        if (player!=null) {
                             invokedStop = false;
                             skipForward();
                        } else {
                             JOptionPane.showMessageDialog(play,
                             new JLabel("Open a sound file first!"));
              fastForward.addKeyListener(this);
              p.add(fastForward);
              frame.getContentPane().add(p,BorderLayout.CENTER);
              frame.setVisible (true);
              frame.pack();
              frame.setResizable(false);
      public void stop(){
      sp();
      public void destroy(){
       player.stop();
        player.deallocate();
      public void actionPerformed (ActionEvent e)
              if (e.getActionCommand().equals("Exit"))
                             // Call dispose to invoke windowClosed.
                             player.stop();
                             player.close();
                             player.deallocate();
                             frame.dispose ();
                                  return;
              if (e.getActionCommand().equals("Open..."))
                             FileDialog fd = new FileDialog (frame, "Open File",
                                         FileDialog.LOAD);
                              fd.setDirectory (currentDirectory);
                              fd.show ();
                              // If user cancelled, exit.
                              if (fd.getFile() == null)
                             return;
                              currentDirectory = fd.getDirectory ();
                                   if (player != null){
                                       player.close ();
                                       player.deallocate();
                         try
                  player = Manager.createPlayer (new MediaLocator
                                               ("file:" +
                                               fd.getDirectory() +
                                               fd.getFile()));
                              catch (java.io.IOException e2)
                            System.out.println ("file not found :"+e2);
                            return;
                              catch (NoPlayerException e2)
                            System.out.println ("Could not find a player.");
                            return;
                    if (player == null)
                   System.out.println ("Trouble creating a player.");
                   return;
                    first = false;
                    frame.setTitle (fd.getFile ().toString());
                    player.addControllerListener (this);
                    player.prefetch ();
                   return;
              if (e.getActionCommand().equals("URL"))
                             FileDialog fd = new FileDialog (frame, "Open File",
                                         FileDialog.LOAD);
                         fd.setDirectory (currentDirectory);
                         fd.show ();
                         // If user cancelled, exit.
                              if (fd.getFile() == null)
                             return;
                         currentDirectory = fd.getDirectory ();
                              if (player != null){
                                       player.close ();
                                       player.deallocate();
                   try
                        URL url = new URL ("file://"+fd.getDirectory()+fd.getFile());
                    MediaLocator mediaLocator = new MediaLocator (url);
                        player = Manager.createPlayer (mediaLocator);
                   catch (java.io.IOException e2)
                  System.out.println ("file not found :"+e2);
                  return;
                    catch (NoPlayerException e2)
                  System.out.println ("Could not find a player.");
                  return;
                    if (player == null)
                   System.out.println ("Trouble creating a player.");
                   return;
          first = false;
          frame.setTitle (fd.getFile ().toString());
          player.addControllerListener (this);
          player.prefetch ();
              return;
       public void controllerUpdate (ControllerEvent e)
          if (e instanceof ControllerClosedEvent)
              if (vc != null)
                  frame.getContentPane().remove (vc);
                  vc = null;
              if (cc != null)
                  frame.getContentPane().remove (cc);
                  cc = null;
              return;
          if (e instanceof EndOfMediaEvent)
              if (loop)
                  player.setMediaTime (new Time (0));
                  player.start ();
              return;
          if (e instanceof PrefetchCompleteEvent)
              player.start();
              return;
          if (e instanceof RealizeCompleteEvent)
            if (vc != null)
                  remove (vc);
                  vc = null;
              if (cc != null)
                  remove (cc);
                  cc = null;
              vc = player.getVisualComponent ();
              if (vc != null)
                  frame.getContentPane().add(vc,BorderLayout.NORTH);
              cc = player.getControlPanelComponent ();
              if (cc != null){
                       frame.getContentPane().add (cc, BorderLayout.SOUTH);
                     frame.setVisible(true);
                     frame.pack();
    public void keyReleased(KeyEvent ke) {
    int keycode = ke.getKeyCode();
              if (keycode==KeyEvent.VK_LEFT) {
                   skipBack();
              } else if (keycode==KeyEvent.VK_RIGHT) {
                   skipForward();
         public void keyTyped(KeyEvent ke) {
         int keycode = ke.getKeyCode();
              if (keycode==KeyEvent.VK_LEFT) {
                   skipBack();
              } else if (keycode==KeyEvent.VK_RIGHT) {
                   skipForward();
         public void keyPressed(KeyEvent ke) {
              int keycode = ke.getKeyCode();
              if (keycode==KeyEvent.VK_LEFT) {
                   skipBack();
              } else if (keycode==KeyEvent.VK_RIGHT) {
                   skipForward();
              }else if (keycode==KeyEvent.VK_UP) {
                   st();
              }else if (keycode==KeyEvent.VK_DOWN) {
                   sp();
    public void skipForward() {
    Time settime;
    double secs=5;
    double playersecs = player.getMediaTime().getSeconds();
    double duration = player.getDuration().getSeconds();
              if((playersecs+secs) < duration){
                      settime = new javax.media.Time(playersecs + secs);
                      player.setMediaTime(settime);
              }else {
                        player.setMediaTime(new Time(duration));
    public void skipBack() {
              double secs1=5;
              double secs2=0;
              double playersecs1 = player.getMediaTime().getSeconds();
              Time settime1;
              if((playersecs1 - secs1) > secs2){
                      settime1 = new javax.media.Time(playersecs1 - secs1);
                      player.setMediaTime(settime1);
              }else {
                        player.setMediaTime(new Time(0));
         public void st() {
         player.start();
         public void sp() {
         player.stop();
       public void itemStateChanged (ItemEvent e)
          loop = !loop;
    With Thanks
    manuEdited by: mm_mm on Nov 27, 2007 11:09 PM

  • Error: Topic ID "Ầ‾»¿#define" contains invalid characters.

    Hi,
    I have just upgraded to RoboHelp for Word 9. When I compile I get the message:
    Warning - HC3033: File RhubarbRhubarb.hh: The Topic ID "Ầ‾»¿#define" contains invalid characters. The #, =, >, @, !, or \Â˚haracters cannot be used in a WinHelp version 4.0 source file.
    I have 7 files in the project and there is one of these error messages for each file. I checked the .hh files and there is nothing corresponding to that as a Topic ID. I don't use any special characters in my Topic IDs anyway.
    It doesn't seem to be having any effect on my generated project but I'm uneasy about unexplainable error messages. Does anyone have an idea why they're there and how to remove them please?
    regards
    Christina

    To the best of my knowledge (haven't used Rh for Word for a long time) the only solution is sleuthing the elusive illegal character.
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

  • Error: 'InfoObject ZDATE contains invalid characters in record 1 in value'

    Dear friends,
    When I am uploading data from oracle datasource (in BW 3.5) I am getting an error 'InfoObject ZDATE contains invalid characters in record 1 in value'. There are no illegal characters in the date instead the date field is blank in datasource. There are other date fields technically the same as ZDATE with blank values but they dont throw an error when scheduler runs.
    Though when I manually upload the data, it's loaded successfully.
    Please suggest where can the error be?
    Regards,
    Amit Srivastava

    You have 2 options:
    1. Corect your data for the characteristics that give errors.
    Or
    2. go to SPRO in BW - Netweaver - BW - general settings - maintain permitted characters.
    In this screen, you maain tain any special characteristic that you the system to recognise and accept. In your case, take your characteristics that give error and add to this.
    Ravi Thothadri

  • Support forum message error: "The message contains invalid characters."

    when i try to post a crash report in a forum thread i created, i get the following message:
    "The message contains invalid characters."
    is this a forum bug? are there such things as invalid characters???

    This MAY be totally unrelated - but maybe not.
    The SiteWare is particular about some characters under some circumstances. I have not been alerted like you were, but I have seen this when posting screenshots Using an add-on to my browser that put's the "Title" of the page grabbed into the filename it saves...
    All ASC pages have
    " ... | Apple Support Communities " at the end of the title
    the " | " (vertical 'stroke') is an illegal character in a filename for POSTING to the server -  and there are others
    * the file " ASC | ASC.png " is the same image as the 1st picture I posted - I just changed the name to illustrate
    What is good for the Finder may not be good for the server or the software running these forums.
    ÇÇÇ

Maybe you are looking for