Getting an error when running my program but it compiles.

Hey guys, I'm having a problem running the program. Everything compiles correctly, but then I get the error code linked below. Everything I think is correct here. Any ideas? I posted CinReader as well in case you wanted to try compiling and running it yourself.
Thanks
public class TextShuffleLevel
     private String jumble;
     private String [] matchString;
     public TextShuffleLevel ()
          jumble = "dunops";
          matchString = new String[5];
          matchString[0] = new String("abound");
          matchString[1] = new String("bound");
          matchString[2] = new String("undo");
          matchString[3] = new String("band");
          matchString[4] = new String("bond");
     public TextShuffleLevel (int whichDefaultLevel)
          if (whichDefaultLevel == 1)
               jumble = "dunops";
               matchString = new String[5];
               matchString[0] = new String("abound");
               matchString[1] = new String("bound");
               matchString[2] = new String("undo");
               matchString[3] = new String("band");
               matchString[4] = new String("bond");
          else if (whichDefaultLevel == 2)
               jumble = "srcaso";
               matchString = new String[11];
               matchString[0] = new String("across");
               matchString[1] = new String("crass");
               matchString[2] = new String("cross");
               matchString[3] = new String("scars");
               matchString[4] = new String("soars");
               matchString[5] = new String("arcs");
               matchString[6] = new String("soar");
               matchString[7] = new String("scar");
               matchString[8] = new String("oars");
               matchString[9] = new String("cars");
               matchString[10] = new String("orcs");
          else
               jumble = "eplcis";
               matchString = new String[19];
               matchString[0] = new String("splice");
               matchString[1] = new String("spiel");
               matchString[2] = new String("plies");
               matchString[3] = new String("slice");
               matchString[4] = new String("clips");
               matchString[5] = new String("epics");
               matchString[6] = new String("spice");
               matchString[7] = new String("epic");
               matchString[8] = new String("lice");
               matchString[9] = new String("slip");
               matchString[10] = new String("clip");
               matchString[11] = new String("pile");
               matchString[12] = new String("lisp");
               matchString[13] = new String("pies");
               matchString[14] = new String("isle");
               matchString[15] = new String("lips");
               matchString[16] = new String("lies");
               matchString[17] = new String("ices");
               matchString[18] = new String("pics");
     public TextShuffleLevel (String newJumble, String [] newMatchString)
          jumble = newJumble;
          matchString = newMatchString;
     /* This is the nasty one */
     public boolean findMatch (String matchTry)
          boolean foundMatch = false;
          for (int i=0; i<matchString.length; i++)
               if (matchTry.equalsIgnoreCase(matchString))
                    foundMatch = true;
                    break;
          return foundMatch;
     public void setJumble (String newJumble)
          jumble = newJumble;
     public void setMatchStrings (String [] newMatchString)
          matchString = newMatchString;
     public String getJumble ()
          return jumble;
     public int getJumbleLength ()
          return jumble.length();
     public int getNumberOfMatches ()
          return matchString.length;
     public String[] getMatchString ()
          return matchString;
public class TextShuffleGame
     private int playerLevel = 1; // start them on level 1
     private CinReader reader;
     private TextShuffleLevel l1;
     private TextShuffleLevel l2;
     private TextShuffleLevel l3;
     private TextShuffleLevel onTheFly;
     public TextShuffleGame ()
          reader = new CinReader();
          // Using Statically Set Levels
          l1 = new TextShuffleLevel(1);
          l2 = new TextShuffleLevel(2);
          l3 = new TextShuffleLevel(3);
          // this one allows for a 'custom' level
          String fly[] = {"tea","at", "ate"};
          onTheFly = new TextShuffleLevel("eta", fly);
     //Setup for levels
     public void go ()
          boolean quit = false;
          char choice = 'z';
          int lastLevel = 0;
          while (quit == false)
               lastLevel = playerLevel;
               if (playerLevel == 1)
                    play(l1);
               else if (playerLevel == 2)
                    play(l2);
               else if (playerLevel == 3)
                    play(l3);
               else
                    play(onTheFly);
               if (lastLevel == playerLevel)
                    System.out.print("Play the level again");
               else
                    System.out.print("Play next level");
               System.out.print("(y/n)? ");
               choice = reader.readChar();
               if (choice == 'N' || choice == 'n')
                    quit = true;
     //Playing each level the same
     public void play (TextShuffleLevel theLevel)
          int numGuesses = 0;
          int numCorrect = 0;
          String userString = "";
          System.out.println("What " + theLevel.getJumbleLength() + "-letter words can you get out of " +
                                             theLevel.getJumble() + "?\n");
          while (numGuesses < 5 && numCorrect < theLevel.getNumberOfMatches())
                    System.out.print("Enter a string: ");
                    userString = reader.readString();
                    if (theLevel.findMatch(userString) == true)
                         System.out.println("Great! A match!");
                         numCorrect = numCorrect + 1;
                    else
                         System.out.println("Drat... not a match");
                         numGuesses = numGuesses + 1;
          if (numCorrect == theLevel.getNumberOfMatches())
               System.out.println("Terrific! You are ready to try a harder jumble");
               playerLevel = playerLevel + 1;
     /* FOR TESTING ONLY -- TO BE REMOVED FOR RELEASE */
     public static void main (String [] args)
          TextShuffleGame tsg = new TextShuffleGame();
          tsg.go();
import java.io.*;
import java.util.*;
public class CinReader
     private static final int INT_MESSAGE = 0;
     private static final int DOUBLE_MESSAGE = 1;
     private static final int CHAR_MESSAGE = 2;
     private static final int STRING_MESSAGE = 3;
     private static final int BOOLEAN_MESSAGE = 4;
     private static final String DEFAULT_ERROR_MESSAGE = "Please reenter. ";
     private String prompt = "> ";
     private String [] errorMessages;
     public CinReader ()
          prompt = "> ";
          setDefaultMessages();
     public CinReader (String newPrompt)
          prompt = newPrompt;
          setDefaultMessages();
     public CinReader (String newPrompt, String [] newErrorMessages)
          prompt = newPrompt;
          if (newErrorMessages != null)
               setErrorMessages(newErrorMessages);
          else
               setDefaultMessages();
     public void setPrompt (String newPrompt)
          prompt = newPrompt;
     public void setErrorMessages (String [] newErrorMessages)
          if (newErrorMessages != null)
               int diff = errorMessages.length - newErrorMessages.length;
               // NEED A MINIMUM OF 5 ERROR MESSAGES TO AVOID ERRORS
               if (diff > 0)
                    errorMessages = new String[5];
                    for (int i=0; i<5; i++)
                         if (i < newErrorMessages.length)
                              errorMessages[i] = new String(newErrorMessages);
                         else
                              errorMessages[i] = new String(DEFAULT_ERROR_MESSAGE);
               else
                    errorMessages = newErrorMessages;
     public void setErrorMessage (int idx, String msg)
          if (idx >= 0 && idx < errorMessages.length)
               errorMessages[idx] = msg;
     public void setErrorMessageString (String msg)
          errorMessages[STRING_MESSAGE] = msg;
     public void setErrorMessageInt (String msg)
          errorMessages[INT_MESSAGE] = msg;
     public void setErrorMessageDouble (String msg)
          errorMessages[DOUBLE_MESSAGE] = msg;
     public void setErrorMessageChar (String msg)
          errorMessages[CHAR_MESSAGE] = msg;
     public void setErrorMessageBoolean (String msg)
          errorMessages[BOOLEAN_MESSAGE] = msg;
     public String readString()
          char theChar = 'x';
          String result = "";
          boolean done = false;
          while (!done)
               theChar = nextChar();
               if (theChar == '\n')
                    done = true;
               else if (theChar == '\r'){}
               else
                    result = result + theChar;
          return result;
     public String readString (boolean allowEmpty)
          String result = readString();
          if (!allowEmpty)
               while (result.length() == 0)
                    System.out.println("Empty input not allowed. " + errorMessages[STRING_MESSAGE]);
                    System.out.print(prompt);
                    result = readString();
          return result;
     public String readString (int charLimit)
          String result = readString();
          if (result.length() > charLimit)
               result = result.substring(0, charLimit);
          return result;
     public String readString (boolean allowEmpty, int charLimit)
          String result = readString(allowEmpty);
          if (result.length() > charLimit)
               result = result.substring(0, charLimit);
          return result;
     public int readInt()
          String inputString = "";
          int number = 0;
          boolean done = false;
          while (!done)
               try
                    inputString = readString();
                    inputString = inputString.trim();
                    number = (Integer.valueOf(inputString).intValue());
                    done = true;
               catch (NumberFormatException e)
                    System.out.println("Input is not an integer. " + errorMessages[INT_MESSAGE]);
                    System.out.print(prompt);
          return number;
     public int readInt(int min, int max)
          String inputString = "";
          int number = 0;
          boolean done = false;
          while (!done)
               try
                    inputString = readString();
                    inputString = inputString.trim();
                    number = (Integer.valueOf(inputString).intValue());
                    if (number < min || number > max)
                         System.out.println("Please enter an integer between " + min + " and " + max);
                    else
                         done = true;
               catch (NumberFormatException e)
                    System.out.println("Input is not an integer. " + errorMessages[INT_MESSAGE]);
                    System.out.print(prompt);
          return number;
     public double readDouble()
          String inputString = "";
          double number = 0;
          boolean done = false;
          while (!done)
               try
                    inputString = readString();
                    inputString = inputString.trim();
                    number = (Double.valueOf(inputString).doubleValue());
                    done = true;
               catch (NumberFormatException e)
                    System.out.println("Input is not an integer. " + errorMessages[DOUBLE_MESSAGE]);
                    System.out.print(prompt);
          return number;
     public char readChar()
          boolean done = false;
          String inputString = "";
          char nonWhite = 'x';
          while (!done)
               inputString = readString();
               inputString = inputString.trim();
               if (inputString.length() != 1)
                    System.out.println("Input must be a single character. " + errorMessages[CHAR_MESSAGE]);
                    System.out.print(prompt);
else
nonWhite = (inputString.charAt(0));
done = true;
          return nonWhite;
     public char readChar (String range)
          char theChar = 'x';
          boolean done = false;
          while (!done)
               theChar = readChar();
               for (int i=0; i<range.length(); i++)
                    if (theChar == range.charAt(i))
                         done = true;
                         break;
               if (!done)
                    System.out.print("Invalid input. Please enter one of the following -> ");
                    for (int i=0; i<range.length(); i++)
                         System.out.print(range.charAt(i) + " ");
                    System.out.print("\n" + prompt);
          return theChar;
     public boolean readBoolean()
          boolean done = false;
          String inputString = "";
          boolean result = false;
          while (!done)
               inputString = readString(false);
               inputString = inputString.trim();
               if (inputString.equalsIgnoreCase("true") || inputString.equalsIgnoreCase("t"))
                    result = true;
                    done = true;
               else if (inputString.equalsIgnoreCase("false") || inputString.equalsIgnoreCase("f"))
                    result = false;
                    done = true;
               else
                    System.out.println("Input must be [t]rue or [f]alse. " + errorMessages[BOOLEAN_MESSAGE]);
                    System.out.print(prompt);
          return result;
     private void setDefaultMessages ()
          errorMessages = new String[5];
          for (int i=0; i<errorMessages.length; i++)
               errorMessages[i] = new String(DEFAULT_ERROR_MESSAGE);
     private char nextChar()
          int charAsInt = -1;
          try
               charAsInt = System.in.read();
          catch(IOException e)
               System.out.println(e.getMessage());
               System.out.println("Fatal error. Exiting program.");
               System.exit(0);
          return (char)charAsInt;

Ok, here's what I did using the JSE 8.1 IDE.
1) I copied your code into a .java file named "TextShuffleGame".
It generated about half a dozon errors.
There are three classes in the program:
TextShuffleLevel
TextShuffleGame
CinReader
Each of these classes is declared "public" and I got the same error message on each one:
"class ... is public, should be declared in a file name ... .java"
so, I...
2) tried changing them to "private".
It then said: "modifier private not allowed here".
so, I...
3) deleted the modifiers for these three classes and left them as just class. No errors.
The next two errors had to do with the two import statements:
"import java.io.*;" and "import java.util.*;".
It said: "'class' or 'identifier' expected" for both. So, I...
4) moved them to the top of the source file.
Didn't help at first. So, I...
5) fiddle around with them a bit.
I tried "java.io;" and "java.util;" and then "java.*;" by itself. Still got errors. So, I put them back as you had them and for some mysterious reason, my editor decided they were fine. oO
This also corrected the last errors in the "CinReader" class. Here is the error-free code I now have in my "TextShuffleGame.java" file:
import java.io.*;
import java.util.*;
class TextShuffleLevel
     private String jumble;
     private String [] matchString;
     public TextShuffleLevel ()
          jumble = "dunops";
          matchString = new String[5];
          matchString[0] = new String("abound");
          matchString[1] = new String("bound");
          matchString[2] = new String("undo");
          matchString[3] = new String("band");
          matchString[4] = new String("bond");
     public TextShuffleLevel (int whichDefaultLevel)
          if (whichDefaultLevel == 1)
               jumble = "dunops";
               matchString = new String[5];
               matchString[0] = new String("abound");
               matchString[1] = new String("bound");
               matchString[2] = new String("undo");
               matchString[3] = new String("band");
               matchString[4] = new String("bond");
          else if (whichDefaultLevel == 2)
               jumble = "srcaso";
               matchString = new String[11];
               matchString[0] = new String("across");
               matchString[1] = new String("crass");
               matchString[2] = new String("cross");
               matchString[3] = new String("scars");
               matchString[4] = new String("soars");
               matchString[5] = new String("arcs");
               matchString[6] = new String("soar");
               matchString[7] = new String("scar");
               matchString[8] = new String("oars");
               matchString[9] = new String("cars");
               matchString[10] = new String("orcs");
          else
               jumble = "eplcis";
               matchString = new String[19];
               matchString[0] = new String("splice");
               matchString[1] = new String("spiel");
               matchString[2] = new String("plies");
               matchString[3] = new String("slice");
               matchString[4] = new String("clips");
               matchString[5] = new String("epics");
               matchString[6] = new String("spice");
               matchString[7] = new String("epic");
               matchString[8] = new String("lice");
               matchString[9] = new String("slip");
               matchString[10] = new String("clip");
               matchString[11] = new String("pile");
               matchString[12] = new String("lisp");
               matchString[13] = new String("pies");
               matchString[14] = new String("isle");
               matchString[15] = new String("lips");
               matchString[16] = new String("lies");
               matchString[17] = new String("ices");
               matchString[18] = new String("pics");
     public TextShuffleLevel (String newJumble, String [] newMatchString)
          jumble = newJumble;
          matchString = newMatchString;
     /* This is the nasty one */
     public boolean findMatch (String matchTry)
          boolean foundMatch = false;
          for (int i=0; i<matchString.length; i++)
               if (matchTry.equalsIgnoreCase(matchString))
                    foundMatch = true;
                    break;
          return foundMatch;
     public void setJumble (String newJumble)
          jumble = newJumble;
     public void setMatchStrings (String [] newMatchString)
          matchString = newMatchString;
     public String getJumble ()
          return jumble;
     public int getJumbleLength ()
          return jumble.length();
     public int getNumberOfMatches ()
          return matchString.length;
     public String[] getMatchString ()
          return matchString;
class TextShuffleGame
     private int playerLevel = 1; // start them on level 1
     private CinReader reader;
     private TextShuffleLevel l1;
     private TextShuffleLevel l2;
     private TextShuffleLevel l3;
     private TextShuffleLevel onTheFly;
     public TextShuffleGame ()
          reader = new CinReader();
          // Using Statically Set Levels
          l1 = new TextShuffleLevel(1);
          l2 = new TextShuffleLevel(2);
          l3 = new TextShuffleLevel(3);
          // this one allows for a 'custom' level
          String fly[] = {"tea","at", "ate"};
          onTheFly = new TextShuffleLevel("eta", fly);
     //Setup for levels
     public void go ()
          boolean quit = false;
          char choice = 'z';
          int lastLevel = 0;
          while (quit == false)
               lastLevel = playerLevel;
               if (playerLevel == 1)
                    play(l1);
               else if (playerLevel == 2)
                    play(l2);
               else if (playerLevel == 3)
                    play(l3);
               else
                    play(onTheFly);
               if (lastLevel == playerLevel)
                    System.out.print("Play the level again");
               else
                    System.out.print("Play next level");
               System.out.print("(y/n)? ");
               choice = reader.readChar();
               if (choice == 'N' || choice == 'n')
                    quit = true;
     //Playing each level the same
     public void play (TextShuffleLevel theLevel)
          int numGuesses = 0;
          int numCorrect = 0;
          String userString = "";
          System.out.println("What " + theLevel.getJumbleLength() + "-letter words can you get out of " +
                                             theLevel.getJumble() + "?\n");
          while (numGuesses < 5 && numCorrect < theLevel.getNumberOfMatches())
                    System.out.print("Enter a string: ");
                    userString = reader.readString();
                    if (theLevel.findMatch(userString) == true)
                         System.out.println("Great! A match!");
                         numCorrect = numCorrect + 1;
                    else
                         System.out.println("Drat... not a match");
                         numGuesses = numGuesses + 1;
          if (numCorrect == theLevel.getNumberOfMatches())
               System.out.println("Terrific! You are ready to try a harder jumble");
               playerLevel = playerLevel + 1;
     /* FOR TESTING ONLY -- TO BE REMOVED FOR RELEASE */
     public static void main (String [] args)
          TextShuffleGame tsg = new TextShuffleGame();
          tsg.go();
class CinReader
     private static final int INT_MESSAGE = 0;
     private static final int DOUBLE_MESSAGE = 1;
     private static final int CHAR_MESSAGE = 2;
     private static final int STRING_MESSAGE = 3;
     private static final int BOOLEAN_MESSAGE = 4;
     private static final String DEFAULT_ERROR_MESSAGE = "Please reenter. ";
     private String prompt = "> ";
     private String [] errorMessages;
     public CinReader ()
          prompt = "> ";
          setDefaultMessages();
     public CinReader (String newPrompt)
          prompt = newPrompt;
          setDefaultMessages();
     public CinReader (String newPrompt, String [] newErrorMessages)
          prompt = newPrompt;
          if (newErrorMessages != null)
               setErrorMessages(newErrorMessages);
          else
               setDefaultMessages();
     public void setPrompt (String newPrompt)
          prompt = newPrompt;
     public void setErrorMessages (String [] newErrorMessages)
          if (newErrorMessages != null)
               int diff = errorMessages.length - newErrorMessages.length;
               // NEED A MINIMUM OF 5 ERROR MESSAGES TO AVOID ERRORS
               if (diff > 0)
                    errorMessages = new String[5];
                    for (int i=0; i<5; i++)
                         if (i < newErrorMessages.length)
                              errorMessages[i] = new String(newErrorMessages[i]);
                         else
                              errorMessages[i] = new String(DEFAULT_ERROR_MESSAGE);
               else
                    errorMessages = newErrorMessages;
     public void setErrorMessage (int idx, String msg)
          if (idx >= 0 && idx < errorMessages.length)
               errorMessages[idx] = msg;
     public void setErrorMessageString (String msg)
          errorMessages[STRING_MESSAGE] = msg;
     public void setErrorMessageInt (String msg)
          errorMessages[INT_MESSAGE] = msg;
     public void setErrorMessageDouble (String msg)
          errorMessages[DOUBLE_MESSAGE] = msg;
     public void setErrorMessageChar (String msg)
          errorMessages[CHAR_MESSAGE] = msg;
     public void setErrorMessageBoolean (String msg)
          errorMessages[BOOLEAN_MESSAGE] = msg;
     public String readString()
          char theChar = 'x';
          String result = "";
          boolean done = false;
          while (!done)
               theChar = nextChar();
               if (theChar == '\n')
                    done = true;
               else if (theChar == '\r'){}
               else
                    result = result + theChar;
          return result;
     public String readString (boolean allowEmpty)
          String result = readString();
          if (!allowEmpty)
               while (result.length() == 0)
                    System.out.println("Empty input not allowed. " + errorMessages[STRING_MESSAGE]);
                    System.out.print(prompt);
                    result = readString();
          return result;
     public String readString (int charLimit)
          String result = readString();
          if (result.length() > charLimit)
               result = result.substring(0, charLimit);
          return result;
     public String readString (boolean allowEmpty, int charLimit)
          String result = readString(allowEmpty);
          if (result.length() > charLimit)
               result = result.substring(0, charLimit);
          return result;
     public int readInt()
          String inputString = "";
          int number = 0;
          boolean done = false;
          while (!done)
               try
                    inputString = readString();
                    inputString = inputString.trim();
                    number = (Integer.valueOf(inputString).intValue());
                    done = true;
               catch (NumberFormatException e)
                    System.out.println("Input is not an integer. " + errorMessages[INT_MESSAGE]);
                    System.out.print(prompt);
          return number;
     public int readInt(int min, int max)
          String inputString = "";
          int number = 0;
          boolean done = false;
          while (!done)
               try
                    inputString = readString();
                    inputString = inputString.trim();
                    number = (Integer.valueOf(inputString).intValue());
                    if (number < min || number > max)
                         System.out.println("Please enter an integer between " + min + " and " + max);
                    else
                         done = true;
               catch (NumberFormatException e)
                    System.out.println("Input is not an integer. " + errorMessages[INT_MESSAGE]);
                    System.out.print(prompt);
          return number;
     public double readDouble()
          String inputString = "";
          double number = 0;
          boolean done = false;
          while (!done)
               try
                    inputString = readString();
                    inputString = inputString.trim();
                    number = (Double.valueOf(inputString).doubleValue());
                    done = true;
               catch (NumberFormatException e)
                    System.out.println("Input is not an integer. " + errorMessages[DOUBLE_MESSAGE]);
                    System.out.print(prompt);
          return number;
     public char readChar()
          boolean done = false;
          String inputString = "";
          char nonWhite = 'x';
          while (!done)
               inputString = readString();
               inputString = inputString.trim();
               if (inputString.length() != 1)
                    System.out.println("Input must be a single character. " + errorMessages[CHAR_MESSAGE]);
                    System.out.print(prompt);
else
nonWhite = (inputString.charAt(0));
done = true;
          return nonWhite;
     public char readChar (String range)
          char theChar = 'x';
          boolean done = false;
          while (!done)
               theChar = readChar();
               for (int i=0; i<range.length(); i++)
                    if (theChar == range.charAt(i))
                         done = true;
                         break;
               if (!done)
                    System.out.print("Invalid input. Please enter one of the following -> ");
                    for (int i=0; i<range.length(); i++)
                         System.out.print(range.charAt(i) + " ");
                    System.out.print("\n" + prompt);
          return theChar;
     public boolean readBoolean()
          boolean done = false;
          String inputString = "";
          boolean result = false;
          while (!done)
               inputString = readString(false);
               inputString = inputString.trim();
               if (inputString.equalsIgnoreCase("true") || inputString.equalsIgnoreCase("t"))
                    result = true;
                    done = true;
               else if (inputString.equalsIgnoreCase("false") || inputString.equalsIgnoreCase("f"))
                    result = false;
                    done = true;
               else
                    System.out.println("Input must be [t]rue or [f]alse. " + errorMessages[BOOLEAN_MESSAGE]);
                    System.out.print(prompt);
          return result;
     private void setDefaultMessages ()
          errorMessages = new String[5];
          for (int i=0; i < errorMessages.length; i++)
               errorMessages[i] = new String(DEFAULT_ERROR_MESSAGE);
     private char nextChar()
          int charAsInt = -1;
          try
               charAsInt = System.in.read();
          catch(IOException e)
               System.out.println(e.getMessage());
               System.out.println("Fatal error. Exiting program.");
               System.exit(0);
          return (char)charAsInt;
Hope that helps.

Similar Messages

  • Getting an Error When Running Server 2012 R2 adprep /forest prep on a 2012 DC

    I am getting an error when running adprep /forest prep on a Server 2012 domain controller. The main parts of my domain are as follows:
    2 - Domain Controllers running Server 2012
    1 - Exchange Server 2013 running on Server 2012
    I am trying to either do an in-place upgrade to my domain controllers to Server 2012 R2 or even introduce a Server 2012 R2 domain controller into the domain. The error I am getting is as follows:
    [Status/Consequence]
    The operation GUID already exists so Adprep did not attempt to rerun this operation but is continuing.
    [2014/04/05:09:12:38.873]
    Adprep was about to call the following LDAP API. ldap_search_s(). The base entry to start the search is cn=38618886-98ee-4e42-8cf1-d9a2cd9edf8b,cn=Operations,cn=ForestUpdates,CN=Configuration,DC=DOMAIN,DC=local.
    [2014/04/05:09:12:38.873]
    LDAP API ldap_search_s() finished, return code is 0x20
    [2014/04/05:09:12:38.873]
    Adprep verified the state of operation cn=38618886-98ee-4e42-8cf1-d9a2cd9edf8b,cn=Operations,cn=ForestUpdates,CN=Configuration,DC=DOMAIN,DC=local.
    [Status/Consequence]
    The operation has not run or is not currently running. It will be run next.
    [2014/04/05:09:12:38.873]
    Adprep was about to call the following LDAP API. ldap_modify_s(). The entry to modify is CN=ad://ext/AuthenticationSilo,CN=Claim Types,CN=Claims Configuration,CN=Services,CN=Configuration,DC=DOMAIN,DC=local.
    [2014/04/05:09:12:38.873]
    LDAP API ldap_modify_s() finished, return code is 0x13
    [2014/04/05:09:12:38.905]
    Adprep was unable to modify some attributes on object CN=ad://ext/AuthenticationSilo,CN=Claim Types,CN=Claims Configuration,CN=Services,CN=Configuration,DC=DOMAIN,DC=local.
    [User Action]
    Check the log file ADPrep.log in the C:\Windows\debug\adprep\logs\20140405091235 directory for more information.
    [2014/04/05:09:12:38.936]
    Adprep encountered an LDAP error.
    Error code: 0x13. Server extended error code: 0x20b1, Server error message: 000020B1: AtrErr: DSID-030F112A, #1:
     0: 000020B1: DSID-030F112A, problem 1005 (CONSTRAINT_ATT_TYPE), data 0, Att 9086f (msDS-ClaimIsValueSpaceRestricted)
    DSID Info:
    DSID: 0x181112dd
    ldap error = 0x13
    NT BUILD: 9600
    NT BUILD: 16384
    [2014/04/05:09:12:38.967]
    Adprep was unable to update forest information.
    [Status/Consequence]
    Adprep requires access to existing forest-wide information from the schema master in order to complete this operation.
    [User Action]
    Check the log file, ADPrep.log, in the C:\Windows\debug\adprep\logs\20140405091235 directory for more information.
    Any Help would be appreciated. Thanks!

    Hi,
    did you check which servers has FSMO roles?
    You can do that via command prompt: netdom query fsmo
    For forestprep you must do that on DC which have Schema Operations marter role.
    Command
    Domain controller
    Number of times to run the command
    adprep /forestprep
    Must be run on the schema operations master for the forest.
    Once for the entire forest
    adprep /domainprep
    Must be run on the infrastructure operations master for the domain.
    Once in each domain where you plan to install an additional domain controller that runs a later version of Windows Server than the latest version that is running in the domain.
    Note
    Domains where you will not add a new domain controller will be affected by adprep /forestprep, but they do not require you to run adprep /domainprep.
    http://technet.microsoft.com/en-us/library/dd464018(v=ws.10).aspx

  • Why am I getting Run-time menu error (Error 88 occurred at One or more illegal menu item index in...) in my built applicatio​n (single .exe) , but don't get any error when running/de​bugging it?

    I am using LabVIEW 6.02 & also downloaded the application builder patch. For my runtime menus, I've a subVI that first calls "Delete Menu Items.vi" to get rid of the standard menu items and then "Insert Menu Items.vi" to add my own. I only get an error when I try to run the built application.

    There was a similar issue in LabVIEW 5.0 where you would get the error if you passed an empty array to the 'items' input of Delete Menu Items. This was corrected in version 5.0.1. Did you mass compile your VI's after upgrading to version 6.0.2?
    I tried to reproduce the problem in a small VI but was not successful. I can run an executable built from this example without any problems. I am attaching it for you to test.
    Chris_Mitchell
    Product Development Engineer
    Certified LabVIEW Architect
    Attachments:
    menu.llb ‏33 KB

  • Getting an error when running OPENROWSET on remote SSMS

    Hi!
    I'm getting an error when I execute OPENROWSET command
    from a remote SQL Server Management studio. But has no problem when directly execute the command on our database server.
    Msg 7303, Level 16, State 1, Line 2
    Cannot initialize the data source object of OLE DB provider "Microsoft.Jet.OLEDB.4.0" for linked server "(null)".
    Is there anything I need to enable or configure?
    Thank you in advance for your help!

    OK, this is the information that we need.
    "It is already opened exclusively by another user, or you need permission to view its data."
    Please check those 2 options:
    * "already opened": at time the connection is ot working try to open the file localy with the excal application. If the file is in used then the excel will promp about this. If it is not give you any error localy then
    try again from remoe (since the excel might take control if the connection is opened but not in used by remote connection). If you get that this might be the problem pls repeat this several time to make sure.
    * "you need permission": This is much more common situation 
    >> By default, when you use OpenRowSet to remote server it's the SQL Server Service user that needs access to the file. This is why lot of time it work ocaly and not from remote. check the service's user's permission.
    You can change the SQL server to run as a AD user (with the security implications it has) and then give that user access to the file on the network
    >> You are trying to use a share network folder. check thi link:
    http://technet.microsoft.com/en-us/library/ms175915.aspx
    "To use BULK INSERT or INSERT...SELECT * FROM OPENROWSET(BULK...) to bulk import data from another computer, the data file must be shared between the two computers. To specify a shared data file, use its universal naming convention (UNC) name, which takes
    the general form"
    >> check this link as well:
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/ac615f7e-a4af-44d9-8bba-8e5c20be3c76/using-credentials-with-openrowset?forum=sqlintegrationservices
    >> make sure that you use the right provider. Are you using 64 bit or 32?
    [Personal Site] [Blog] [Facebook]

  • It has an error when run a program in background job

    Dear Expert,
    we have a program
    when run it in background,it has a error "Error during import of clipboard contents" but when run it normally(run in front workbench se38 or run the t-code),everything is ok.i've used typingJDBG in the command box to debuge the background job,there has no error.
    whould you like to tell me what had happen? thanks a lot!
    addition: the program used a function ALSM_EXCEL_TO_INTERNAL_TABLE
    Thanks & Regards,
    Kerry
    Edited by: Kerry Wang on Aug 24, 2009 2:12 PM
    Edited by: Kerry Wang on Aug 24, 2009 2:14 PM
    Edited by: Kerry Wang on Aug 24, 2009 2:14 PM

    Hi,
      You cannot use FMs to get data directly from the presentation server when program is executed in the backgroud.
    Check the thread : GUI_DOWNLOAD
    Regards,
    Himanshu

  • Process chains get an error when run analysis process

    When my PRD system‘s process chains run analysisi process, I  gets below error message:
    Error occurred when starting the parser: Error when opening an RFC connection (FUNCTION: 'R
    Message no. BRAINOLAPAPI011
    Diagnosis
    Failed to start the MDX parser.
    System Response
    Error when opening an RFC connection (FUNCTION: 'R
    Procedure
    Check the Sys Log in Transaction SM21 and test the TCP-IP connection MDX_PARSER in Transaction SM59.
    It's OK when i test the TCP-IP connection MDX_PARSER in Transaction SM59.
    The Sys Log in Transaction SM21(error part):
    M Wed Mar 19 09:22:50 2014
    M  *** ERROR => ThPOpen: ExecPopen("/usr/sap/BWP/DVEBMGS00/exe/tp" bwprd sapgw00 18933904 IDX=35, r, ..) returned -14 [thxxexec.c
    M  {root-id=532810645F5D12A0E1008000C0A8642F}_{conn-id=5328109B5F5D12A0E1008000C0A8642F}_5
    A  RFC 1878  CONVID 18933904
    A   * CMRC=0 DATA=0 STATUS=0 SAPRC=0 RfcExecProgramKernel RfcRaiseErrorMessage cmd could not be started by OS (rc = 1)
    A  RFC> ABAP Programm: SAPLSTPA (Transaction: )
    A  RFC> User: JY-LKZ (Client: 900)
    A  RFC> Destination: CALLTP_AIX (handle: 8, DtConId: 530F4E5C30AF4550E1008000C0A8642E, DtConCnt: 0, ConvId: ,)
    A  RFC SERVER> RFC Server Session (handle: 1, 68443927, {5328109B-5F5D-12A0-E100-8000C0A8642F})
    A  RFC SERVER> Caller host:
    A  RFC SERVER> Caller transaction code: STMS (Caller Program: SAPLTMSC)
    A  RFC SERVER> Called function module: TMS_CI_START_SERVICE
    A  *** ERROR => RFC Error RFCIO_ERROR_SYSERROR in abrfcpic.c : 1887
    FUNCTION: 'RfcExecProgramKernel'
    RfcRaiseErrorMessage cmd could not be started by OS (rc = 1)
    PROG ="/usr/sap/BWP/DVEBMGS00/exe/tp" bwprd sapgw00 18933904 IDX=35
    [abrfcio.c    9213]
    A  {root-id=532810645F5D12A0E1008000C0A8642F}_{conn-id=5328109B5F5D12A0E1008000C0A8642F}_5
    A  TH VERBOSE LEVEL FULL
    A  ** RABAX: end RX_GET_MESSAGE
    M
    M Wed Mar 19 09:23:15 2014
    M  *** ERROR => ThPOpen: ExecPopen("/usr/sap/BWP/DVEBMGS00/exe/tp" bwprd sapgw00 18968493 IDX=61, r, ..) returned -14 [thxxexec.c
    M  {root-id=532810645F5D12A0E1008000C0A8642F}_{conn-id=532811958F750F10E1008000C0A8642F}_1
    A  RFC 1878  CONVID 18968493
    A   * CMRC=0 DATA=0 STATUS=0 SAPRC=0 RfcExecProgramKernel RfcRaiseErrorMessage cmd could not be started by OS (rc = 1)
    A  RFC> ABAP Programm: SAPLSTPA (Transaction: )
    A  RFC> User: TMSADM (Client: 000)
    A  RFC> Destination: CALLTP_AIX (handle: 3, DtConId: 530F4E7830AF4550E1008000C0A8642E, DtConCnt: 0, ConvId: ,)
    A  RFC SERVER> RFC Server Session (handle: 1, 70212851, {53281195-8F75-0F10-E100-8000C0A8642F})
    A  RFC SERVER> Caller host:
    A  RFC SERVER> Caller transaction code: STMS (Caller Program: SAPLTMSC)
    A  RFC SERVER> Called function module: TMS_CI_START_SERVICE
    A  *** ERROR => RFC Error RFCIO_ERROR_SYSERROR in abrfcpic.c : 1887
    FUNCTION: 'RfcExecProgramKernel'
    RfcRaiseErrorMessage cmd could not be started by OS (rc = 1)
    PROG ="/usr/sap/BWP/DVEBMGS00/exe/tp" bwprd sapgw00 18968493 IDX=61
    [abrfcio.c    9213]
    A  {root-id=532810645F5D12A0E1008000C0A8642F}_{conn-id=532811958F750F10E1008000C0A8642F}_1
    A  TH VERBOSE LEVEL FULL
    A  ** RABAX: end RX_GET_MESSAGE.
    ps.
    1、IT's everything ok in the development system.
    2、It’s ok when i repeat this analysis process .
    3、It’s ok when i run this analysis process in analysis process designer.
    4、Attachment is the sys log in sm21.
    Thanks everyone.

    Hi Vignesh.B,
    Yes,it's not user's problem . But i don't  think it APD's problem .Cause all APD has the same problem and .
    Below is one of APD souce and target :
    Hope this information  is useful .
    Regards,
    Lian

  • Getting BEFOREREPORTTRIGGER error when running report on web

    Hi,
    I have developed a report which uses lexicals in main query. In lexicals I apply filters (if any) which come as parameters from the GUI via a dbase table. When report is run locally using "Run Paper Layout" option it works as desired -- with or without filters.
    When report is run via GUI it runs fine when no filters are applied. Problem comes when any of the filter is applied in any one of the cases selected from the GUI.
    And I get the following errors.
    REP-1419: Please contact the Systems Administrator.
    REP-1419: 'beforereport': PL/SQL program aborted.
    when I go and check the beforereport trigger it does not show any errors when report is run within report builder.
    Any suggestions would be appreciated
    Thanks in advance

    Problem comes when any of the filter is applied in any one of the cases selected from the GUI.Do you mean that the problems only shows when you run the report in your browser via 9iAS?
    Which version are you using?
    Can you post the before report trigger?

  • ReplaceAll() error when run the program

    Hi everyone, I am developing an application to replace one string by another string with the method replaceAll() or replaceFirst() on NWDS v2.0.14.
    I have changed the Java Build Path from jdk1.3 to j2sdk 1.4.2_10 in order to make those two methods available.
    There is no problem in build and deployment. But when  execute this application I get an error telling there is no such method. When I comment out the line with the method in the code I can run this application without any error. I am sure the error is caused by the method.
    Can you tell me how to fix this problem? Should jdk of Java engine on server be upgraded?
    Any hint will be appreciated.
    Kind regards.
    Wang

    As you use NWDS 2.0.14 I guess you also run SP14 of your engine, so your engine should already run on top of JDK 1.4.
    You can add a line like this to your code to verify it:
    System.getProperty("java.version")
    Regards,
    Dieter

  • Error when running a program /RPM/FIN_PLAN_INT

    when executing the program "/RPM/FIN_PLAN_INT", I'm getting an error stating as "Category ID does not exist for item.Instantiate categories first"
    This error is hitting for only 4 Items in list of all 173 Item. Hence the Financial cost are not getting update for all the items when executing the program. The DB update failed.
    I checked the financial Category IDs and its maintained properly and working fine with other Items. Why this is happening for only the 4 items? Am I missing something in config?
    Please experts provide me some valuable suggesions.

    Hi;
    When you define and edit the mapping between the project management role function ID and the financial planning view, category, or group. You can also decide on whether the cost or revenue rate is to be considered for the financial information calculation.
    1. Execute report /RPM/PLAN_INT_PREP to create financial and capacity categories and groups for the bucket or the portfolio items based on the parameters mentioned in the selection screen.
    2. Execute report /RPM/FIN_PLAN_INT to perform the financial planning for a portfolio item for the different portfolio items based on the parameters mentioned in the selection screen.
    Prerequisite: For the portfolio item, you must have executed report /RPM/PLAN_INT_PREP before.
    3. Execute report /RPM/BUCKET_ROLLUP to roll up the financial data for the different categories and groups of the portfolio items to its higher-level buckets.
    Hope this help you.
    Best Regards.
    Mariano

  • Getting an error when running Preflight to embed fonts in Acrobat Pro version 9

    I am running Acrobat Pro version 9.4.5 and when I am running a pre-flight for embedding fonts in my document I am getting an error message as follow: "
    An unexpected error has occurred during the Fixup process ".
    This is occuring at the font processing time. Anybody encountered the same issue.
    One detail which has it importance, I am using TTF fonts and some specific Adobe fonts which are located in the Resource\font directory of my workstation.
    Many thanks for your help.

    Check all your fonts have headers that permit embedding - some commercial fonts don't. Debugging in Preflight is a nightmare, so to find the problem you may have to try the fonts one at a time against a test document until you find the one that whimpers.

  • Get an error when run eclipse

    Hi
    after download sdk1.3, sdkee1.3.1, eclipse2.0.2 and when run eclipse i got the following error
    JVM terminated. Exit code=2
    c:\WINNT\syste,32\javaw.exe
    -cp E:\program Files\eclipse\startup.jar org.eclipse.core.launcher.main
    -os win32
    -ws win32
    -arch x86
    -showsplash e:\program files\eclipse\eclipse.exe -showsplash 600
    pls tell me what is the problem

    Hi,
    You certainly have an older version of java.exe and javaw.exe in your windows directory.
    Replace them with the corresponding programs you will find in the jdk1.xx/bin you are using. (jdk1.4/bin for example).
    I have had the same problem running eclipse under windows2000 .So I have replaced the too old java.exe and javaw.exe (which were old verions from year 2001) with the newest version from my last jdk1.4 install and now all is working fine.
    hope that's help
    Regards
    Olivier Constans

  • Any help on why I get an error when running OA_UPLOAD_AND_LINK in background?

    Hi experts,
    I am attempting to run the OA_UPLOAD_AND_LINK program in the background to upload employee photos placed into a directory on a shared drive by each HR manager.  When I check SM37, I see the job was cancelled and the error "Frontend parameter (parameter error)" Message no. OA501 was the reason.
    If I run the program in the foreground using the same variant, I don't have any issues and the photos load just fine.  Any suggestions on what parameter it's complaining about?
    My goal is to schedule this program to run nightly and process any pictures in the shared drive.  I'll have a second job remove the files from the shared drive at a later time.
    Regards,
    Garrett Meredith

    FYI,
    After looking at the code:
    * reject process if running in background and frontend = 'X'
    if sy-batch = 'X' and frontend = 'X'.
      message id 'OA' type 'E' number '501' with 'Frontend'.    "#EC NOTEXT
      leave.
    endif.
    This is the code inside the program preventing it from running in the background.  WHY!?! would they do this?
    Regards,
    Garrett

  • Why I get an error when running a sequence using the LabVIEW operator interface ?

    I have a simple TestStand sequence calling LabVIEW vis that is giving me an error when I run it with the .exe version of the LabVIEW operator interface and I set TestStand to run the vis using the 8.2.1 runtime engine instead of the development adapter. I made a change in the operator interface to open a vi programatically and get the value of a control, this vi is also used in the TestStand sequence I am trying to run. Could this be causing my problem ?
    Thanks

    Hello Verdulken,
    I have a few additional questions:
    Does your application function correctly when running the LabVIEW operator interface you have created as a VI in the LabVIEW development environment (i.e. does this problem only occur when the LabVIEW operator interface is run as an executable)?
    What is the error that you are receiving?
    Regarding the VI that you open programmatically, do you open it in a visible manner (i.e. use the Show front panel when called option from VI Properties)?If so, do you also close this VI after it finishes (i.e. use the Close if originally closed option from VI Properties)?
    Does the error occur on the step that calls this very same VI again later in the sequence?
    Does your application function correctly if you use the development adapter for all of your calls?
    Thank you in advance for this information,
    Matt G.
    National Instruments
    Applications Engineering

  • Runtime error when running sample program VS8, occi10

    Please, help!
    When running a sample program (VS2005 v8, oraocci10.lib, oraocci10.dll, both downloaded from the recommended Oracle site http://www.oracle.com/technology/tech/oci/occi/occidownloads.html for Oracle release 10.2.0.3.0 )
    I receive the following runtime error:
    R6034 An application has made an attempt to load the C runtime library incorrectly.
    When I build the program with VS 7 or VS 7.1 libraries, I receive env->CreateConnection error

    Hi,
    Can you just give more explanation on what you are trying to do, like conditions.
    Are doing first time init.
    Reg
    Pra

  • Updated to 10.6.1 and now I get this error when running permissions

    I am getting this error and didn't before I updated:
    Warning: SUID file "System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A/Reso urces/Locum" has been modified and will not be repaired.

    this message is harmless and should be ignored like all similar messages in the past
    http://support.apple.com/kb/TS1448

Maybe you are looking for

  • How can I connect my MobileME account and my Apple ID?

    I used my AppleID to purchase Songs and Apps. Two years ago I opened a MobileME account and in the background Apple created a second AppleID (my mobileMe amail). Yesterday I transfered MovileMe to iCloud and started useing it on my iPad. Because I pu

  • Is the extras icon on 5s designed for more extras?

    How do you use the extras icon on 5s

  • Yamaha psr 262 keyboard isn't recognized by GB

    I have a Yamaha PSR 262 keyboard connected to my Macbook pro, running Leopard. It is connected via a M-audio midi-to-usb connection. In preferences, I have confirmation that one midi connection is establised. However, the keyboard icon doesn't appear

  • Apple tv Download and watch later

    my Apple TV (1080p version) won't keep movies downloaded.  After researching this I found some responses that say it won't store downloads if shut off, but I just watched an episode of the flash that I downloaded a few days ago.  I saw some responses

  • Record timeline to mini-dv?

    How do i take my timeline and record it to my mini-dv deck?