RegExp against non standard String

Hi, I have a strange issue with a String.
I receive a String from an external class (black box) that seem standard String.
Using System.out.println the content written is ok.
But when I apply regexp (any kind) the matching is always false.
A bit of code:
String s = hiddenClass.getContent(); // String from blackbox
if(Pattern.matches("a*b", s)) // Regexp example
     System.out.println("Matching!");
} else {
     System.out.println("NOT Matching!");
}I found that the problem is the String returned from blackbox.
Can you explain me how to convert received string to a normal string? Could be a Charset Problem?
How to avoid this kind of problems?
Is there a way to throw an exception using regexp?
Thanks a lot.
P.S. The blackbox download text from the net, elaborate it and I get it (getContent()).

colivieri75 wrote:
Hi and thanks for your attention.
You can suppose that the String contains a what-you-want page (html code).
My regexp could be ".*".
The result is always false.
Last try to find error was writing a simple html code directly into String s (not using the blackbox one):
String s = "<html><body>...............</html>/<body>"; //hiddenClass.getContent(); // String from blackbox
if(Pattern.matches(".*", s)) // Regexp example
System.out.println("Matching!");
} else {
System.out.println("NOT Matching!");
}This is right and matching. The same code with 'String s = hiddenClass.getContent();' give me always false matching.
How to manage this strange String?
Tnks a lotHave you actually tried .*? You do, however, realise that "matches" must contain a pattern that matches the entire String. If that is not what you want, take a look at String's contains method.

Similar Messages

  • Using non-standard sshd port after 10.8 upgrade

    After spending hours tracking down this solution as a result of losing my ssh settings after the upgrade to Mountain Lion, I thought it might be useful to post the steps taken to restore the configuration I used with Snow Leopard.
    Changing the sshd default listening port
    Disclaimer: This tutorial is specific to Mountain Lion (OS X 10.8). I was able to accomplish this using Snow Leopard (OS X 10.6) in fewer steps, but upgrading required this more involved solution. 
    Steps:
    1.) You must first enable the root user account in order to change the relevant files. This can be done from the terminal, or by going to System Preferences --> Users & Groups. Once there, click on 'Login Options' at the bottom of the Current User list, and 'Join' where it says 'Network Account Server'.
    This will bring up a smaller window. Click on 'Open Directory Utility' at the bottom. You will be prompted for your admin password. Now go to the 'Edit' tab at the top of the screen and toggle down to 'Enable Root User'.  You will be prompted to enter your admin password twice.
    2.) Log out of your regular user account. At the log in screen you will now see an additional entry for 'other'. Click on that and log in with the username 'root' and your admin password. If are inexperienced as a root-level user, be careful as you can cause problems to your system can be difficult to undo.
    Once in your root account, the first step is to create a new 'service definition' in the etc/services file. Open the file with text editor of choice and scroll to the current entry for sshd listening port, which will look like this:
    ssh    22/udp    # SSH Remote Login Protocol
    ssh    22/tcp     # SSH Remote Login Protocol
    Overwrite the '22' with the port number you would like sshd to listen on:
    ssh    12345/udp   # SSH Remote Login Protocol
    ssh    12345/tcp    # SSH Remote Login Protocol
    *12345 being our hypothetical, non-standard port.
    It is important to note that the new port number will not take by simply adding a new uncommented line to the file (I tried), unless of course you comment the original ssh entries. Easiest way is just to overwrite what is there already. Save changes.
    3.) You now need to edit the ssh.plist file, which is located at /System/Library/LaunchDaemons/ssh.plist. A word to those familiar with Linux/BSD environments: changing the default port in the sshd_config file, which exists in OS X, does NOT change the listening port. Simply changing the default port, saving the config file, and restarting the server (the sensible way) won't work. The OS X sshd server (openssh) is configured to get launch instructions from the ssh.plist file, as opposed to sshd_config. If you are more interested in this aspect of OS X, read up on LaunchDaemons (e.g. launchd).
    Before altering the ssh.plist file, you should save a backup copy in case of mistakes, or if you need to revert back to it in the future. Name your backup file something like original.ssh.plist, etc.
    In the ssh.plist file, locate the SocksServiceName entry and change it from the default:
    <key>SockServiceName</key>
    <string>ssh</string>
    To the following:
    <key>SockServiceName</key>
    <string>$alternate port number</string>
    In our example from above this value would be 12345.
    4.) Save your changes, and exit ssh.plist. You now need to move the backup file you created (original.ssh.plist) out of the System/Library/LaunchDaemons path.
    The updated sshd port will not take until you have only one ssh.plist file in the LaunchDaemons directory - this has to do with how launchd is configured to load files which is outside the scope of the current discussion.  (*If you've found a way around this, please share.) 
    5.) Restart the sshd server. Easiest way to accomplish this is going to System Preferences --> Sharing and clicking off 'Remote Login', then clicking back on it. 
    6.) Test the configuration by logging into the machine running the sshd server from another host using:
    ssh username@ipaddress -p 12345
    There are a few good tutorials out there that capture some of these steps, but many are dated and/or incomplete. If you are running a standard setup of OS X 10.8, this should work for you.
    Of course, don't be fooled into thinking that changing the default listening port from the ubiquitously-probed 22 equates to actual security. At best, it will cut down on the number of dubious connection attempts and probing.

    Hi all, above helped me change the sshd port number, thank you very much.
    Just upgraded to OS X 10.9.3 on my macbook pro.
    My findings were:
    Step 1(become a root user or sudo)
    Step 2 (/etc/services)
    This may not be required unless you want ssh to work without the "-p XXXX" option to connect to other ssh hosts.  I favor such as "ssh -p 2222 user@hostname" just to be sure I know what I am doing and also to leave ssh known port as its default "22".
    Step 3 (/System/Library/LaunchDaemons/ssh.plist)
    This is required if you want to change the sshd port number, I changed both "ssh" to "2222" in this file.
    Step 4 (launchctl)
    Below is a must as I understood:
    launchctl unload /System/Library/LaunchDaemons/ssh.plist
    launchctl load /System/Library/LaunchDaemons/ssh.plist
    it should be already working with the new port number.
    You can "ssh -p 2222 user@localhost" in the console terminal and see if its working.
    Since I am no expert on MacOS X, and it is a macbook pro that I am using, I also rebooted the system and changes were reflected permanantly.
    Thank you guys!

  • Non-standard fonts in JOptionPane

    I have looked extensively through this forum, and no one has answered this specific question, even though it has been asked several different ways. Maybe someone has an answer now.
    I am writing a client app using Java 1.4.2_02 that needs to display many languages. I have all of the European languages displaying correctly in JFileChooser and JOptionPane. I even have the Asian languages displaying correctly in JFileChooser. What I can't do is display the Asian languages (and probably any non-standard font) in JOptionPane correctly - all I see are boxes in place of the characters. Here is the relevant code of what I have tried so far:
            Locale.setDefault(Locale.JAPAN);
            int option = JOptionPane.YES_NO_OPTION;
            String [] buttonText = null;
            switch(option) {
                case JOptionPane.YES_NO_OPTION:
                    buttonText = new String[2];
                    buttonText[0] = UIManager.getString("OptionPane.yesButtonText");
                    buttonText[1] = UIManager.getString("OptionPane.noButtonText");
                    break;
                // other cases...
            JOptionPane jop = new JOptionPane("Do you wish to display Japanese fonts?",
                                              JOptionPane.ERROR_MESSAGE,
                                              option,
                                              null,
                                              buttonText);
            // Have tried many fonts - MS Gothic seems to be the one that should work, though.
            // BOLD seems to slightly work - I see a (Y) or a (N) after the strange characters.
            jop.setFont(new Font("MS Gothic", Font.BOLD, jop.getFont().getSize())); 
            JDialog jopDialog = jop.createDialog(null, "Dialog Title");
            jopDialog.show();Even though most of the above code is from a post by one of the authors of "Java Internationalization", this doesn't work. Has anyone solved this problem?

    To solve this problem, you have to tell the UIManager to set the font everywhere you need the new font. Unforunately, there is no one method call to do this. So here is the short version:
            localizedFont = new Font("MingLiU", Font.PLAIN, 12);  // or whatever font you need
            UIManager.put("ToolTip.font", localizedFont);
            UIManager.put("OptionPane.font", localizedFont);
            UIManager.put("Button.font", localizedFont);
            // etc...    Another thread (I forget where) gave code to extract all of the properties of UIManager - find that thread to get all the properties.

  • Number of button slots for (non-standard) PhoneTemplate

    Hi,
    Once I create a new non-standard phone button template in the CUCM (Device > Device Settings > Phoe Button Template), the number of the buttons on the newly created seems "unpredictable" for me. Sometimes the number of the buttons are the same as on the original template, but sometimes much more.
    For example, 'Standard 7965 SIP' has 6 buttons. If I create based on this template, my 'Standard 7965 SIP MyTemplate' will have 54 slots in it.
    Similar: 'Standard 8961 SIP' has 5 buttons, 'Standard 8961 SIP MyTemplate' has 45.
    Why? Where is this coming from?
    Additional info:
    I have checked the DatabaseDictionary documentation, which states :
    "Before insert into PhoneTemplate, if NEW.usermodifiable = false, thenusing the NEW.tkModel, get the numButton value from TypeModel. It will contain comma-separated min, max values. Take the max value and assign to NEW.numOfButtons."
    But I cannot find this 'numButton' value in the typemodel table?!

    Hi,
    even this small code fails:
            SortedMap index = new TreeMap(new LatvianStringComparator());
            index.put("baa", "baa");
            index.put("aaa", "aaa");
            index.put("aqa", "aqa");
            index.put("caa", "caa");
            Iterator it = index.keySet().iterator();
            while (it.hasNext()) {
                String key = (String)it.next();
                System.out.println(key);
            }because you assume '...first string is "less than" the second one'
    but you did not test it.
    Just add a 'less test' like:
    if (str2Rank > str1Rank) {
    //First string is "less than" the second one.
    signum = -1;
    break;
    }after
    if (str2Rank > str1Rank) {}and your code will work.
    even better: use Collator API
    Franco

  • Non Standard material

    Hi All
    i have an scenarion , In sales i will be selling non standard material i.e i will not keep in stock , when the customer comes for non standard dimension , i take the order and i pass it to production dept to fabricate.
    How do i Create the materail for non standard , where the dimension will be changing regularly.
    i dont want to use variant configuration ,because only one character used that is size.
    And also i dont want to create a new material for each and everytime (this will be tuf process then)
    Hope i explained the process clearly, Is ther any possible to do it ,
    please let me know ,
    Advance thanks
    Regards
    Praveen

    Hi Sunil ,
    Thnaks for your quick response,it was very useful answer ,
    As per your advice i done the settings ,
    I created BOM (usuage 5 S&D) withe two sub compenent called length and height with item category R.
    Then i created sales order, in sales order the BOM exploded and in the sub compenent of BOM i given the size against the lenght and breath.
    After saving , When i run the mdo4 , where i can see that for this order what is the lenght size and breadth size.
    The scenario is only the size varies (only input from the customer)
    please let me know at earliest.....
    Thanks and Regards
    Praveen S

  • Non standard Year member in Planning Years dimension

    We have a non standard (to Planning) member of the Years dimension called 'No Year'. In order to add it initially, I had to go to the back end of Planning (HSP_OBJECT and HSP_UNIQUE_NAMES tables) and modify the members there. This was in version 9. The order of the Years members was then FY95 through FY14, then came No Year, then FY15. This worked for our start and end years within Planning, as our start year was FY09 and our end year was No Year, which allowed us to Plan through FY14 and also entered non-year specific data to No Year on forms. It also allowed us to omit 'No Year' from our scripts using a range of years FY09:FY14 (using substitution variables). Now that the year has rolled over (and, incidentally, we've upgraded to version 11), and our Planning years are FY10 through FY15, I would like to move No Year to be after FY15. However, I don't seem to be able to do that by updating the underlying tables above. I make the changes to the two tables, but it is not reflected in Planning (they display in the same order), and if I try to edit either of the two members in Planning (No Year or FY15), it gives me an error saying the member already exists. Does anyone know how I can accomplish moving the No Year member? I need to do it not only this year, but to have a process my client can follow each year, moving that member in the outline to be directly after the last Planning year.
    Thanks,
    Sabrina

    If you want to go about hacking the tables and changing the order of 'No Year'.
    If you run the following SQL against your planning application
    select * from hsp_object where object_type = 38
    You will see the position column and will have values like 1000000 = First place, 1000010 = Second Place and so on.
    To alter the position then you need to note down the position value of 'No Year' and 'FY15'
    update hsp_object set position = '1000070'
    where object_type = 38 and object_name='No Year'
    update hsp_object set position = '1000080'
    where object_type = 38 and object_name='FY14'
    Restart planning. Now this is all done at your own risk and when you app goes boom don't blame me :)
    If 'No Year' was added in the correct way when you add year's it should always stay as the last position.
    Planning assigns object ids between set ranges, normal year values (FY..) are 50002 onwards
    No Year is out of that range e.g 50412
    When No Year is added correctly then planning will add a new to the normal range of values for year (last year value + 1) and then alters the position order
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Non-standard interfaces must be server-side before de-serializing?

    Classes which implement non-standard interfaces are a problem for de-serialization? In the below code SomeInterface is the problem. If the "SomeInterface.class" is not server-side when the de-serialization starts then the de-serialization can't happen? Please look at this test code:
    client
    public class Main {
      public static void main(String[] args) {
        try {
          Socket sok = new Socket("192.168.2.2", 1638);
          MyOOS moos = new MyOOS(sok.getOutputStream());
          moos.writeObject(new ClassA(222));
          try { Thread.sleep(3000); } catch(InterruptedException e) { }
          sok.close();
        } catch(Exception e) { e.printStackTrace() ; }
      private static byte[] getClassImage() throws Exception {
        InputStream in = new FileInputStream(new File("/dev/ClassA.class"));
        List<Byte> objClassImage = new ArrayList<Byte>();
        int b = in.read();
        while(b != -1) {
          objClassImage.add(Byte.valueOf((byte) b));
          b = in.read();
        byte[] classImage = new byte[objClassImage.size()];
        for(int i = 0; i < classImage.length; i++) {
          classImage[i] = ((Byte) objClassImage.get(i)).byteValue();
        in.close();
        return classImage;
            static class MyOOS extends ObjectOutputStream {
              MyOOS() throws Exception { super(); }
              MyOOS(OutputStream out) throws Exception { super(out); }
              protected void annotateClass(Class<?> cl) throws IOException {
                try {
                  byte[] classImage = getClassImage();
                  writeInt(classImage.length);
                  write(classImage);
                } catch(Exception e) { e.printStackTrace(); }
    // public class ClassA implements Serializable, SomeInterface  {  // <-- bad
    public class ClassA implements Serializable  { // <-- good
      int id;
      ClassA(int i) { id = i; }
      public void foo() {
        System.out.println("ClassA::foo--> id = " + id);
    public Interface SomeInterface { public void foo(); }
    server
    public class Hello {
      static MyClassLoader myLoader = new MyClassLoader();
      public static void main(String[] args) { new Hello().run(); }
      void run() {
        try {
          ServerSocket servSok = new ServerSocket(1638);
          Socket sok = servSok.accept();
          MyOIS mois = new MyOIS(sok.getInputStream());
          Object obj = (Object) mois.readObject();
          Method m = obj.getClass().getMethod("foo", null);
          m.invoke(obj, null);
        } catch (Exception e) { e.printStackTrace(); }
          static class MyClassLoader extends ClassLoader {
            byte[] classImage;
            // is this a normal way to program Java? Because I am unsure about how to handle the byte[] in
            // resolveClass(), I am jamming them in here. Would a good programmer do stuff like this?
            public Class<?> loadClass(String name, byte[] classImage) throws Exception {
              this.classImage = classImage;
              return loadClass(name);
            protected Class<?> findClass(String name) throws ClassNotFoundException {
              return defineClass(name, classImage, 0, classImage.length);
          static class MyOIS extends ObjectInputStream {
            private MyClassLoader myLoader = new MyClassLoader();
            MyOIS() throws IOException { super(); }
            MyOIS(InputStream in) throws IOException { super(in); }
            protected Class<?> resolveClass(ObjectStreamClass desc) throws IOException, ClassNotFoundException {
              try {
                int classImageSize = readInt();
                byte[] classImage = new byte[classImageSize];
                read(classImage);
                return myLoader.loadClass(desc.getName(), classImage);
              } catch (Exception e) { e.printStackTrace(); }
              return null;
    }If a serialized object implements an interface that is not already on the de-serializing jvm end, then serialization is not possible? Am I suppose to put the SomeInterface object on the server (somehow) before de-serializing an object that actually implements SomeInterface .
    I have heard of object graphs. So, would not the implemented interfaces be part of an object's object graph? Thanks.

    ejp wrote:
    I have no idea what any of that means, if anything, but RMI comes with a dynamic codebase facility if that's what you're looking for.I successfully moved an object with a non-standard pure abstract class to a remote jvm:
    client
    public class Main {
      public static void main(String[] args) {
        try {
          Socket sok = new Socket("192.168.2.2", 1638);
          MyOOS moos = new MyOOS(sok.getOutputStream());
          DataOutputStream dos = new DataOutputStream(sok.getOutputStream());
          byte[] classImage = getClassImage("/dev/PureAbstractClass.class");
          dos.writeInt(classImage.length);
          dos.write(classImage, 0, classImage.length);
          moos.writeObject(new ClassA(5));
          try { Thread.sleep(3000); } catch(InterruptedException e) { }
          sok.close();
        } catch(Exception e) { e.printStackTrace() ; }
      private static byte[] getClassImage(String path) throws Exception {
        InputStream in = new FileInputStream(new File(path));
        List<Byte> objClassImage = new ArrayList<Byte>();
        int b = in.read();
        while(b != -1) {
          objClassImage.add(Byte.valueOf((byte) b));
          b = in.read();
        byte[] classImage = new byte[objClassImage.size()];
        for(int i = 0; i < classImage.length; i++) {
          classImage[i] = ((Byte) objClassImage.get(i)).byteValue();
        in.close();
        return classImage;
            static class MyOOS extends ObjectOutputStream {
              MyOOS() throws Exception { super(); }
              MyOOS(OutputStream out) throws Exception { super(out); }
              protected void annotateClass(Class<?> cl) throws IOException {
                try {
                  byte[] classImage = getClassImage("/dev/ClassA.class");
                  writeInt(classImage.length);
                  write(classImage);
                } catch(Exception e) { e.printStackTrace(); }
    public abstract class PureAbstractClass {
      public abstract void foo();
      public abstract void bar();
    public class ClassA extends PureAbstractClass implements Serializable {
      int id;
      ClassA(int i) { id = i; }
      public void foo() { System.out.println("PureAbstractClass::ClassA::foo id = " + id); }
      public void bar() { System.out.println("PureAbstractClass::ClassA::bar id = " + id); }
    server
    public class Hello {
      static MyClassLoader myLoader = new MyClassLoader();
      public static void main(String[] args) { new Hello().run(); }
      void run() {
        try {
          ServerSocket servSok = new ServerSocket(1638);
          Socket sok = servSok.accept();
          MyOIS mois = new MyOIS(sok.getInputStream());
          DataInputStream dis = new DataInputStream(sok.getInputStream());
          int classImageSize = dis.readInt();
          byte[] classImage = new byte[classImageSize];
          dis.read(classImage, 0, classImageSize);
          myLoader.myDefineClass("PureAbstractClass", classImage, 0, classImage.length);
          Object obj = (Object) mois.readObject();
          Method m = obj.getClass().getMethod("bar", null);
          m.invoke(obj, null);
        } catch (Exception e) { e.printStackTrace(); }
            static class MyClassLoader extends ClassLoader {
              byte[] classImage;
              public Class<?> loadClass(String name, byte[] classImage) throws Exception {
                this.classImage = classImage;
                return loadClass(name);
              protected Class<?> findClass(String name) throws ClassNotFoundException {
                return defineClass(name, classImage, 0, classImage.length);
              public Class<?> myDefineClass(String name, byte[] classImage, int x, int y) {
                return defineClass(name, classImage, x, y);
            static class MyOIS extends ObjectInputStream {
              MyOIS() throws IOException { super(); }
              MyOIS(InputStream in) throws IOException { super(in); }
              protected Class<?> resolveClass(ObjectStreamClass desc) throws IOException, ClassNotFoundException {
                try {
                  int classImageSize = readInt();
                  byte[] classImage = new byte[classImageSize];
                  read(classImage);
                  return myLoader.loadClass(desc.getName(), classImage);
                } catch (Exception e) { e.printStackTrace(); }
                return null;
    }I hope this relates to understanding RMI. Moving objects that extend non-standard classes and implementing non-standard interfaces is not easy. Or, maybe there is an easier way. Anyway, thanks ejp. Yesterday I was extremely confused. Now, I am just a little confused but think I have basic understanding. I feel big progress was made.

  • Protecting Apache URLs ending in '/' with non-standard DirectoryIndex

    I'm using Apache agent 2.2 for Acces Manager 7. My Apache version is 1.3.33. I have a DirectoryIndex line in my httpd.conf like so:
    DirectoryIndex index.cgi index.html
    So when I request the URL <http://server.edu/subdir/> I should get <http://server.edu/subdir/index.cgi>.
    My problem is when URLs like this are protected by Access Manager. I have an inverted notenforced_list, which contains http://server.edu/subdir*. So only stuff in subdir should be controlled by AM. I want all 3 of these URLs to give the same results:
    http://server.edu/subdir
    http://server.edu/subdir/
    http://server.edu/subdir/index.cgi
    The first and third URLs work as expected; the second one (with a trailing '/') doesn't work. If I change my notenforced_list to read http://server.edu/subdir/*, then only the third (complete) URL works.
    By looking at the agent logs in debug mode, it appears that AM is first looking at policy for http://server.edu/. That test passes, since that URL is part of the (inverted) notenforced_list.
    Then the agent goes on to check the /subdir URL -- but it tacks on index.html:
    2006-04-20 14:06:58.144 Debug 10883:252998 PolicyAgent: get_request_url(): Returning request URL http://server.edu/subdir/index.html.
    Then it goes on to say that it will enforce policy on this URL, which is correct, but it's referring to index.html, not index.cgi. I'm never prompted for authentication, I just get a browser error that says the page cannot be displayed. If I ask explicitly for http://server.edu/subdir/index.cgi, everything works as expected -- I'm redirected to the AM server and prompted to authenticate, then redirected back to the URL I originally requested.
    Am I missing something here? Has anyone else tried to protect URLs ending in '/' with a non-standard name?

    Here is the log extract. You can see pretty clearly that it just tacks on 'index.html' to the end of the original URL, when it gets to the 2nd phase of the policy evaluation (after checking for root-level policy). Thanks for taking a look!
    2006-04-20 14:06:58.141MaxDebug 10883:252998 PolicyAgent: get_request_url(): Host: server.edu
    2006-04-20 14:06:58.142MaxDebug 10883:252998 PolicyAgent: get_request_url(): Port is 443.
    2006-04-20 14:06:58.142 Debug 10883:252998 PolicyAgent: get_request_url(): Returning request URL https://server.edu:443/subdir/.
    2006-04-20 14:06:58.142 Warning 10883:252998 PolicyAgent: get_method_num(): Apache request method number did not match method string. Setting method number to match method string GET.
    2006-04-20 14:06:58.142 Debug 10883:252998 PolicyAgent: am_web_is_access_allowed(): url 'https://server.edu:443/subdir/' path_info '/'.
    2006-04-20 14:06:58.142MaxDebug 10883:252998 PolicyAgent: am_web_is_access_allowed(): processing url https://server.edu:443/.
    2006-04-20 14:06:58.142MaxDebug 10883:252998 PolicyAgent: FqdnHandler::isValidFqdnResource() Resource => https://server.edu:443/, is valid => true
    2006-04-20 14:06:58.142 Debug 10883:252998 PolicyAgent: am_web_is_access_allowed(): client_ip xxx.xxx.xxx.xxx not found in client ip not enforced list
    2006-04-20 14:06:58.142MaxDebug 10883:252998 AM_POLICY_SERVICE: am_policy_compare_urls(): compare usePatterns=true returned 3
    2006-04-20 14:06:58.142MaxDebug 10883:252998 AM_POLICY_SERVICE: am_policy_compare_urls(): compare usePatterns=true returned 3
    2006-04-20 14:06:58.143MaxDebug 10883:252998 AM_POLICY_SERVICE: am_policy_compare_urls(): compare usePatterns=true returned 3
    2006-04-20 14:06:58.143MaxDebug 10883:252998 AM_POLICY_SERVICE: am_policy_compare_urls(): compare usePatterns=true returned 3
    2006-04-20 14:06:58.143MaxDebug 10883:252998 AM_POLICY_SERVICE: am_policy_compare_urls(): compare usePatterns=true returned 3
    2006-04-20 14:06:58.143 Debug 10883:252998 PolicyAgent: in_not_enforced_list: not enforced list is reversed, only matches will be enforced.
    2006-04-20 14:06:58.143 Debug 10883:252998 PolicyAgent: in_not_enforced_list: allowing access to https://server.edu:443/
    2006-04-20 14:06:58.143 Debug 10883:252998 PolicyAgent: am_web_get_parameter_value(): Param Name = iPlanetDirectoryPro, & Param Value = NULL, status not found
    2006-04-20 14:06:58.143 Debug 10883:252998 PolicyAgent: am_web_is_access_allowed(): remote user set to unauthenticated user (null)
    2006-04-20 14:06:58.143 Info 10883:252998 PolicyAgent: am_web_is_access_allowed()(https://server.edu:443/, GET) returning status: success.
    2006-04-20 14:06:58.143 Info 10883:252998 PolicyAgent: process_request(): Access check for URL https://server.edu:443/subdir/ returned success.
    2006-04-20 14:06:58.143 Debug 10883:252998 PolicyAgent: set_user(): user set to
    2006-04-20 14:06:58.143 Debug 10883:252998 PolicyAgent: am_web_is_logout_url(https://server.edu:443/subdir/): normalized URL https://server.edu:443/subdir/.
    2006-04-20 14:06:58.143 Debug 10883:252998 PolicyAgent: set_user_attributes(): set user attributes option set to none.
    2006-04-20 14:06:58.144 Debug 10883:252998 PolicyAgent: process_access_success(): returned AM_WEB_RESULT_OK.
    2006-04-20 14:06:58.144 Debug 10883:252998 PolicyAgent: process_request(): returning web result AM_WEB_RESULT_OK, data []
    2006-04-20 14:06:58.144 Debug 10883:252998 PolicyAgent: am_web_process_request(): Rendering web result AM_WEB_RESULT_OK
    2006-04-20 14:06:58.144 Debug 10883:252998 PolicyAgent: am_web_process_request(): render result function returned AM_SUCCESS.
    2006-04-20 14:06:58.144MaxDebug 10883:252998 PolicyAgent: get_request_url(): Host: server.edu
    2006-04-20 14:06:58.144MaxDebug 10883:252998 PolicyAgent: get_request_url(): Port is 443.
    2006-04-20 14:06:58.144 Debug 10883:252998 PolicyAgent: get_request_url(): Returning request URL https://server.edu:443/subdir/index.html.
    2006-04-20 14:06:58.144 Warning 10883:252998 PolicyAgent: get_method_num(): Apache request method number did not match method string. Setting method number to match method string GET.
    2006-04-20 14:06:58.144 Debug 10883:252998 PolicyAgent: am_web_is_access_allowed(): url 'https://server.edu:443/subdir/index.html' path_info ''.
    2006-04-20 14:06:58.145MaxDebug 10883:252998 PolicyAgent: am_web_is_access_allowed(): processing url https://server.edu:443/subdir/index.html.
    2006-04-20 14:06:58.145MaxDebug 10883:252998 PolicyAgent: FqdnHandler::isValidFqdnResource() Resource => https://server.edu:443/subdir/index.html, is valid => true
    2006-04-20 14:06:58.145 Debug 10883:252998 PolicyAgent: am_web_is_access_allowed(): client_ip xxx.xxx.xxx.xxx not found in client ip not enforced list
    2006-04-20 14:06:58.145MaxDebug 10883:252998 AM_POLICY_SERVICE: am_policy_compare_urls(): compare usePatterns=true returned 3
    2006-04-20 14:06:58.145MaxDebug 10883:252998 AM_POLICY_SERVICE: am_policy_compare_urls(): compare usePatterns=true returned 3
    2006-04-20 14:06:58.145MaxDebug 10883:252998 AM_POLICY_SERVICE: am_policy_compare_urls(): compare usePatterns=true returned 4
    2006-04-20 14:06:58.145 Debug 10883:252998 PolicyAgent: in_not_enforced_list(https://server.edu:443/subdir/index.html): matched 'https://server.edu:443/subdir/*' entry in not-enforced list
    2006-04-20 14:06:58.145 Debug 10883:252998 PolicyAgent: in_not_enforced_list: not enforced list is reversed, only matches will be enforced.
    2006-04-20 14:06:58.145 Debug 10883:252998 PolicyAgent: in_not_enforced_list: enforcing access control for https://server.edu:443/subdir/index.html
    2006-04-20 14:06:58.146 Debug 10883:252998 PolicyAgent: am_web_get_parameter_value(): Param Name = iPlanetDirectoryPro, & Param Value = NULL, status not found
    2006-04-20 14:06:58.146 Debug 10883:252998 PolicyAgent: am_web_is_access_allowed()(https://server.edu:443/subdir/index.html,GET): no sso token, setting status to invalid session.
    2006-04-20 14:06:58.146 Debug 10883:252998 PolicyAgent: am_web_is_access_allowed(): Successfully logged to remote server for GET action by user unknown user to resource https://server.edu:443/subdir/index.html.
    2006-04-20 14:06:58.146 Info 10883:252998 PolicyAgent: am_web_is_access_allowed()(https://server.edu:443/subdir/index.html, GET) returning status: invalid session.
    2006-04-20 14:06:58.146 Info 10883:252998 PolicyAgent: process_request(): Access check for URL https://server.edu:443/subdir/index.html returned invalid session.
    2006-04-20 14:06:58.146MaxDebug 10883:252998 PolicyAgent: am_web_get_url_to_redirect(): goto URL is https://server.edu:443/subdir/index.html
    2006-04-20 14:06:58.146MaxDebug 10883:252998 PolicyAgent: find_active_login_server(): Trying server: https://access-manager-server.edu:443/amserver/UI/Login
    2006-04-20 14:06:58.149 Debug 10883:252998 PolicyAgent: process_access_redirect(): get redirect url returned AM_SUCCESS, redirect url [https://access-manager-server.edu:443/amserver/UI/Login?goto=https%3A%2F%2Fserver.edu%3A443%2Fsubdir%2Findex.html].
    2006-04-20 14:06:58.149 Debug 10883:252998 PolicyAgent: process_access_redirect(): returning web result AM_WEB_RESULT_REDIRECT.
    2006-04-20 14:06:58.149 Debug 10883:252998 PolicyAgent: process_request(): returning web result AM_WEB_RESULT_REDIRECT, data [https://access-manager-server.edu:443/amserver/UI/Login?goto=https%3A%2F%2Fserver.edu%3A443%2Fsubdir%2Findex.html]
    2006-04-20 14:06:58.149 Debug 10883:252998 PolicyAgent: am_web_process_request(): Rendering web result AM_WEB_RESULT_REDIRECT
    2006-04-20 14:06:58.150 Debug 10883:252998 PolicyAgent: am_web_process_request(): render result function returned AM_SUCCESS.

  • CFHTTP GET using non-standard ports

    I have an application which goes out and checks links on
    various servers to verify that the link still exists, however I
    have a few links on servers that use non-standard ports (ie 8001,
    7072, 8080, etc). When I dump CFHTTP I get the following:
    struct
    Charset [empty string]
    ErrorDetail I/O Exception: Premature EOF encountered
    Filecontent Connection Failure
    Header [undefined struct element]
    Mimetype Unable to determine MIME type of file.
    Responseheader struct [empty]
    Statuscode Connection Failure. Status code unavailable.
    Text YES
    Any ideas?
    Thanks.
    Mike

    Yup, FaceTime was set up on all devices using my home network. It functions correctly pretty much everywhere except on my internal network at the office.
    I'm pretty sure this is a firewall issue, not a basic FaceTime problem.

  • Running the BO servers on non standard ports XIR2

    Hi all,
    I need to know how to get the bo servers to register with the cms when it is running on a non-standard port. The port I'm using is 6409, so I have tried adding -port 6409 to the command line string, but that didn't work.
    I'm running two instanceson BO on the box hence the need for non standard ports.
    Any thoughts?
    TIA,
    Jeff

    -port switch is the correct way to accomplish this.
    So your CMS will have -port 6409, the rest of servers will have -ns cmsname:6409 in their comand line.
    You might want to look at adding -requestport switches as well....
    Please review Admin guide for more details on usage of those switches.

  • List NON-standard SAP objects

    How can I list all NON-Standard objects on a SAP Oracle database?
    Reason: I believe I have objects that were created with SAP naming conventions that were not part of the installed SAP modules.
    My understanding is that there are SAP documentation tables like DOKIL that I could use to join against current objects.

    I can confirm the table OIURV_DOC_DTL_BK is a standard table in ERP, it seems to be part of IS-OIL.
    Let me wrap up the information to check, whether an object is standard or not:
    - If it is in the ABAP dictionary (table TADIR), then use SE11 to find the creator and package information
    - If it is not in the ABAP dictionary then the object was most likely created directly on the database. You can then query dba_objects for creation date (created). You will have to talk to the folks with direct database access about it. Generally objects should never be manipulated directly on the database.
    Cheers Michael

  • G5 Second Display using the GeForce FX 5200 - Non-Standard

    I have a Dual 1.8 GHz PowerPC G5 Macintosh.
    The display adapter installed is as follows:
    GeForce FX 5200:
    Chipset Model: GeForce FX 5200
    Type: Display
    Bus: AGP
    Slot: SLOT-1
    VRAM (Total): 64 MB
    Vendor: nVIDIA (0x10de)
    Device ID: 0x0321
    Revision ID: 0x00a2
    ROM Revision: 2060
    Displays:
    VX2235wm-3:
    Resolution: 1680 x 1050 @ 60 Hz
    Depth: 32-bit Color
    Core Image: Supported
    Main Display: Yes
    Mirror: Off
    Online: Yes
    Quartz Extreme: Supported
    Display:
    Status: No display connected
    I want to attach a second display to my machine, but the second plug on the card is a non-standard DVI-type connector. It looks like this:
    x x x x x x x x x x X X
    x x x x x x x x x x -----
    x x x x x x x x x x X X
    ...with 10 rows of 3 as opposed to 8.
    I have had trouble finding an adapter to use to convert this to VGA (which is what I meed to connect my second monitor). I've searched the Apple Store online to no avail, as well as Google. Perhaps I've had no luck because I don't know the name of this part.
    Any help is much appreciated!
    ~Rob Blaze

    Hello! Does the port look like the one below? If so you'll need an adapter. Tom
    Actually, HERE is the page i was looking for that shows and describes all dvi connections.
    Apple ADC Connector
    [IMG]http://img300.imageshack.us/img300/9497/appleadcconnectorve2.jpg[/IMG]
    Message was edited by: Thomas Bryant

  • How To: Use FCPX to create iPhone Portrait Movies (and other non-standard formats)

    Goal: Use Final Cut Pro X 10.0.7 to produce a 640x1136 video (iPhone 5 Portrait). You can use these same steps to produce virtually any dimensions you want. My example is for the iPhone 5, in Portrait mode.
    This information is available in various places, but you have to realy work to find it, so I thought I'd post a step-by-step guide here.
    By the way, you might think you could just create a FCPX Project with your desired dimensions, but you can't (at least with 10.0.7). Projects only support certainly dimensions. But there are other ways, as the rest of this post describes:
    1) Create an initial movie with the desired dimensions, to serve as a template. We'll call it "Template.mov". The only thing that matters is the dimensions. It can be in any codec FCPX understands, and virtually any length.
    I'm using a 2 second video shot on my iPhone for the template. You could also create a blank image (.png, whatever) with the proper dimensions, copy and paste it into a new Quick Time Pro 7 window, and Export it using custom settings. There's lots of different ways to do this.
    2) Drop Template.mov into a FCPX event.
    3) Select Template.mov in the Event browser, and select File->Duplicate (or command-D). You probably could just edit "Template.mov", but it's a good idea to save it for reuse.
    3) Change the name of the copied video. I'm using "iPhone Video".
    4) Right-click "iPhone Video" and select "Open in Timeline".
    5) If you made the Template video from a still image, you may need to change the duration (ctrl+D). You don't have to make it very long, but it needs to be longer than 1 frame. A few seconds should be enough.
    6) Use this timeline like you'd use a project's timeline. Drop in new content, trim, transition, etc. There may be things you can't do in it, but I haven't found any yet. I'm guessing Chapters may not work, but I haven't tried them.
    7) Note that when you drop new content into the timeline, it may size funny. That's because the default setting for "Spacial Conform" is "Fit". Simply select the newly-dropped content, and in the Video settings inspector, scroll down to "Spacial Conform" and change it. You could use "Fill", which fills the frame vertically, or "None", which uses the source's original height. Then crop/transform/whatever to get what you want.
    8) When you're ready to render, select "iPhone Video" in the Event browser, then use the "Share" button. You want to use the "Export File" destination, which you may have to add. Pick your codec, and let 'er rip.
    9) When the rendering is done, you should have a video in your desired dimensions.
    That's all there is to it. Hope this helps someone.
    Dan
    PS: Don't ask why someone would want to create an iPod video using FCPX. The point is that you may need to create a video with non-standard  dimensions at some point in time, and this is how to do it.
    PPS: Most of this information came from http://library.creativecow.net/articles/payton_t/FCPX_Custom-Resolution-Timeline s/video-tutorial. I just wrote it down, while I tried to do what the video suggested.

    Instructions for using QuickTime Pro 7 to create a template video with unusual dimensions.
    I suspect that anyone savy enough to be using FCPX has probably already figured out how to do this, either using my technique or another, so there probably isn't a real need for me to post this. For that matter, I may be the only person who cares about this at all. However, while I was trying to learn how to do all of this, I would have really appreciated having all the information in one place, so here goes.
    If you want to create a video with unusual dimensions (like 640x1136) using my steps above, you'll need a "template" video first. Here's an easy way to create one, using any image editor, and QuickTime Pro 7.
    1) Open QuickTime Pro 7 (QTP for short).
    2) From the menu, select File->New Player. You'll get a window with just the bottom portion of the player, i.e. the playback controls.
    3) Using an image editor, create a still image in the desired dimensions. You can use any image editor. It doesn't matter what the image contains (although it will end up showing as a thumbnail in FCPX).
    4) Copy the image to the clipboard.
    5) Switch back to QTP, and paste the image into the new player. Don't worry that there isn't a video window showing - just paste it into the window that has only playback controls. As soon as you do, the video window appears.
    6) Advance to the end of the movie (the short, 1-frame movie), then hold down Command+V (paste) and keep holding it down to paste multiple images in. Watch the time advance. You could, if you want, just hold down Command+V until you get the length you want. But if you want a long video, there's an easier way:
    7) When you reach a few seconds (or whatever duration your patience allows), select all (Command+A) and copy (Command+C). Then hold down Command+V to keep pasting in the longer clips. Wait until you reach a longer duration, then repeat the process. So, for example, 1 second, then 10 seconds, then 1 minute, then 10 minutes, then 1 hour. Or whatever you want.
    8) Save the video however you want. I usually use File->Export with H.264, with Quality set to "Least". Just make sure you don't let it change the dimensions. If you resized the player window, depending on which "save" or "export" method you've chosen, it might default to the resized dimensions, so double check that to make sure.
    That's it. You now have a template video you can use with my previous post(s).
    Dan

  • Non english string in URL

    Hi,
    I'm trying to send a non English string from one WD application to another.
    I managed to encode it to UTF-8 using java.net.URLEncoder in the sending application but could not decode it in the receiving application. The WD is doing some decoding to a character set I don't now.
    Any idea anyone??
    Thanks and regards,
    Nachshon

    Suggestions
    1) Try with NLS_LANG as
    SWEDISH_SWEDEN.WE8DEC
    2) Make a paramform and enter via paramform (unencoded)
    (This is just for testing purpose)
    3) Change machine locale to swedish and try
    4) Which reports version is this ?
    Please see
    BUG 2713695 - NLS CHARACTERS FOR PARAMETERS CHANGE TO QUESTION MARKS WHEN PASSED ON URL BAR
    Get in touch with Support to see if this is the issue and if "yes" get a one-off patch.
    [    All Docs for all versions    ]
    http://otn.oracle.com/documentation/reports.html
    [     Publishing reports to web  - 10G  ]
    http://download.oracle.com/docs/html/B10314_01/toc.htm (html)
    http://download.oracle.com/docs/pdf/B10314_01.pdf (pdf)
    [   Building reports  - 10G ]
    http://download.oracle.com/docs/pdf/B10602_01.pdf (pdf)
    http://download.oracle.com/docs/html/B10602_01/toc.htm (html)
    [   Forms Reports Integration whitepaper  9i ]
    http://otn.oracle.com/products/forms/pdf/frm9isrw9i.pdf
    ---------------------------------------------------------------------------------

  • AV output and non-standard frame sizes

    I usually work in non-standard frame size for my FCP projects because my final output will be in a 2:35:1 ratio. I use a Blackmagic Ultrastudio Mini Monitor as an HDMI output to a client monitor. Up until a few months ago the AV output of FCPX would allow the Mini Monitor to accept a frame size of 1920x818 and letterbox the output to 16x9 on this consumer grade LCD. One day, this just stopped working... I've reached out to Blackmagic and they have no solution or reason why this happened, and are not willing to offer support since what I was achieving wasn't an "officially supported" feature. Now, the AV output will distort the image vertically to fill a 16x9 frame. At this point I am stuck having to use either a matte layer or a widescreen effect on individual clips to output correctly to my monitor which increases edit time having to re-render any edits underneath the matte and having to re-order the letterbox effect after apply color correction etc. It was also very easy to adjust the frame offset with this wide angle project size.
    Is anyone editing in 2:35:1 (or other cinema standard) projects and getting successful conversion on output? What are you using?
    Cheers,
    Matt

    Thanks Tom, you clarified it .......  or at least something clicked in my brain.
    I was trying to set "Custom" when I created the new project.
    I didn't know, or had forgotten, that in the "error" window I could select "Custom".
    All is now well and FCP X 10.1.1 is pretty clever after all!
    There is one weird thing I'd like to mention.
    When I clicked on "Custom" the 960 x 600  frame dimensions appeared but the  frame rate was listed as 23.98p as shown in the screenshot below.
    So what's wrong with that?
    Well the clip is 30p  and I naturally thought I was going to end up with a project with an incorrect frame rate.
    Now here's the funny thing  .........  when I selected the project and viewed it in the Inspector it was the correct 30p
    So why was I given that worrying piece of misinformation.

Maybe you are looking for

  • HT204053 how can i delete an older apple ID and only use the new one?

    how can I delete an old Apple account and transfer it to a new one?

  • The curse of the windows 7 freeze....ack help

    First let me start by saying i have seen the many other post about this very issue and none of which have helped me. I also realize that this post is long, but I am trying to be as detailed as possible. So in hopes of not exceeding bandwith here goes

  • I can not set up my skype to go number on my accou...

    I can not seem to set up my skype to go number on my account.. i had recently .. created another account.. and tried to ad my number from the previous account to the new account.. i says number is already registerdd with another account.. as i delete

  • Replicated vendors without link to backend

    Hi, We have an extended classic scenario (SRM 5.5). We replicate vendor with BBPGETVD (and BBPUPDVD) and then we use BBP_UPDATE_PORG to replicated these vendor to the local purch org. However, any vendors have their link to the backend in the bbpmain

  • Expected error happens whenever i do anything

    using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ConsoleApplication10     class Program         static void Main(string[] args)         {Console.WriteLine("iam truly awesome