Using isDigit on args

Hi am trying to use is digit on specific args to handle non numeric operands wilthout using exception handlers I have tried various ways but am having no luck and have not found any answers in the tutortials
most recent attempt as follows:
// Calculator.java: Pass parameters from the command line handle non numeric operands without exception handler
public class WithoutExHandler {
  /** Main method */
  public static void main(String[] args) {
    // Check command-line arguments
    if (args.length != 3) {
      System.out.println(
        "Usage: java Calculator operator operand1 operand2");
      System.exit(0);
  int result = 0;
     if (args[1].charAt(1).isDigit);
    if(args[2].charAt(2).isDitit);
    // Determine the operator
    switch (args[0].charAt(0)) {
      case '+': result = Integer.parseInt(args[1]) +
                         Integer.parseInt(args[2]);
                break;
      case '-': result = Integer.parseInt(args[1]) -
                         Integer.parseInt(args[2]);
                break;
      case '*': result = Integer.parseInt(args[1]) *
                         Integer.parseInt(args[2]);
                break;
      case '/': result = Integer.parseInt(args[1]) /
                         Integer.parseInt(args[2]);
    // Display result
    System.out.println(args[1] + ' ' + args[0] + ' ' + args[2]
      + " = " + result);
   // else {
    System.out.println("Wrong Input: " +  args[1] + ' ' + args[0] + ' ' + args[2]);
[\code]        
--------------------Configuration: tme4 - j2sdk1.4.1_06 <Default>--------------------
C:\Program Files\Xinox Software\JCreator LE\MyProjects\tme4\Exercise13_1WithoutExHandler.java:12: char cannot be dereferenced
     if (args[1].charAt(1).isDigit);
                ^
C:\Program Files\Xinox Software\JCreator LE\MyProjects\tme4\Exercise13_1WithoutExHandler.java:13: char cannot be dereferenced
    if(args[2].charAt(2).isDitit);
           ^
2 errors
Process completed.

lost it!! thought I had this working it compiles but when args are input at command line prompt I get
error in "main" string out of bounds exception: String index out of range 1
// Calculator.java: Pass parameters from the command line
import java.awt.*;
public class Exercise13_1WithoutExHandler2 {
  /** Main method */
  public static void main(String[] args) {
    // Check command-line arguments
    if (args.length != 3) {
      System.out.println(
        "Usage: java Calculator operator operand1 operand2");
      System.exit(0);
  int result = 0;
  if (Character.isDigit(args[1].charAt(1))) {
  if (Character.isDigit(args[2].charAt(2)))
    // Determine the operator
    switch (args[0].charAt(0)) {
      case '+': result = Integer.parseInt(args[1]) +
                         Integer.parseInt(args[2]);
                break;
      case '-': result = Integer.parseInt(args[1]) -
                         Integer.parseInt(args[2]);
                break;
      case '*': result = Integer.parseInt(args[1]) *
                         Integer.parseInt(args[2]);
                break;
      case '/': result = Integer.parseInt(args[1]) /
                         Integer.parseInt(args[2]);
    // Display result
    System.out.println(args[1] + ' ' + args[0] + ' ' + args[2]
      + " = " + result);
    else {
    System.out.println("Wrong Input: " +  args[1] + ' ' + args[0] + ' ' + args[2]);
   } }[\code]

Similar Messages

  • How can I get Firefox 3.6 to startup and load at a particular screen position - using cmd-line or other, in a Solaris SPARC/UNIX env? The xterm program uses the -geometry args as a manner of specifying position on the screen.

    I am running Firefox 3.6 - on Solaris 10 SPARC env.
    I am using the X11 - TWM(X-windows Manager). I have tried to alter the .twmrc files for the WM, but I need firefox to declare the position in the client program, else the TWM will force me to place it every time. When I use the xterm with the "-geometry" I can specify the position the xterm is opened and positioned there automatically. I have tried using the Xresource configuration settings(maybe I am doing something wrong here), but the X-server ignores it... so I believe that only firefox app can manage the positioning?
    I am out of ideas, I suppose the next step is to question the source... Any ideas of how I can achieve this auto positioning in TWM. (I have been looking into X-events to manage the placement, but this is messy)

    The version of Apache that comes default with Solaris might not be compiled for that I am not positive though. I downloaded and compiled Apach 2 and compiled mod_ssl and got it working with no problems you might want to try that.

  • Use of (String args[])

    I am new to Java and i want to know about Command Line arguments.

    It simply is an array of strings that is given to your main method.
    So, you can iterate through all of them by doing something like this:
    public static void main(String[] args) {
         for (int i = 0; i < args.length; i++) {
              //doSomethingWith(args);
    System.out.println(args[i]);
    }And start your program with *java MyClass help me*                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Can i use the same socket to connect to more than one servers

    hi,
    I'm new to java. I want to know whether a socket created using Socket() constructor can be used to connect to multiple servers, not necessarily at a particular point of time. ie, i want to connect to various servers using a single socket and register some info abt them, possible using a loop, one by one. I use connect() method to connect to particular server.
    In other words is Socket class is mutable.
    Edited by: itsraja on Feb 25, 2008 5:50 AM

    In short, I don't think so.
    Setting the server name for a socket is in the constructor.
    Socket s = new Socket("localhost", 501);I don't believe that there are any functions, such as:
    s.setHost("localhost");
    s.setPort(501);However, JavaDocs suggests that when you use the no-args constructor, your class becomes an automatic SocketImpl class, but you can't reach any of its variables unless you derive from the class, itself. But that's probably a bigger headache than it's worth.
    Now TECHNICALY, if you didn't want to create a new variable, you could use:
    Socket s = new Socket("localhost", 501);
    s.close();
    s = new Socket("remotehost", 502);
    s.close();However, this is still creating a new instance and thus a new object in memory.
    I hope this answers your question.
    Let us know exactly what you're trying to do for a more exact answer.
    ~Derek

  • Problem in invoking LiveCycle using EJB

    Hi All,
    I am trying to invoke LC using EJB protocol. I referred the code example from the link http://help.adobe.com/en_US/livecycle/9.0/programLC/help/index.htm?content=001001.html#154 8359
    But I am facing the problem in the same code. Here is the stack trace for the same:
    Error Occurred: Exception thrown is NOT a
    DSCException : UnExpected From DSC
    com.adobe.idp.um.api.UMException  
    | [com.adobe.livecycle.usermanager.client.AuthenticationManagerServiceClient] errorCode:16385 errorCodeHEX:0x4001 message:Exception thrown is NOT a DSCException : UnExpected From DSC chainedException:java.lang.IllegalStateExceptionchainedExceptionMessage:null chainedException trace:java.lang.IllegalStateException
    at com.adobe.idp.dsc.clientsdk.ServiceClientFactory$1.handleThrowable( 
    ServiceClientFactory.java:69)at com.adobe.idp.dsc.clientsdk.ServiceClient.invoke( 
    ServiceClient.java:220)at com.adobe.livecycle.usermanager.client.AuthenticationManagerServiceClient.authenticate( 
    AuthenticationManagerServiceClient.java:109)at in.gov.ebiz.eforms.invocation.AuthenticateUsersTest.main( 
    AuthenticateUsersTest.java:47)Caused by: java.lang.NoClassDefFoundError:  
    javax/ejb/EJBException
    at com.adobe.idp.dsc.clientsdk.ServiceClientFactory.evaluateMessageDispatcher( 
    ServiceClientFactory.java:587)at com.adobe.idp.dsc.clientsdk.ServiceClient.invoke( 
    ServiceClient.java:215)... 2 more
    Caused by:  
    java.lang.ClassNotFoundException: javax.ejb.EJBException
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged( 
    Native Method)at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClassInternal(Unknown Source)
    ... 4 more
    at com.adobe.livecycle.usermanager.client.ManagerServiceClient.throwNonUMExceptionAsUMExcept ion( 
    ManagerServiceClient.java:53)at com.adobe.livecycle.usermanager.client.ManagerServiceClient.handleException( 
    ManagerServiceClient.java:95)at com.adobe.livecycle.usermanager.client.AuthenticationManagerServiceClient.authenticate( 
    AuthenticationManagerServiceClient.java:113)at in.gov.ebiz.eforms.invocation.AuthenticateUsersTest.main( 
    AuthenticateUsersTest.java:47)
    Please advice me. Am I missing some jar? or Do I need to configure some settings at the server end?
    Regards,
    Ambika

    The .xml and code looks ok. Using java:comp/env is the right approach. How does getInitialContext() instantiate the InitialContext()? Make sure it's using the no-arg "new InitialContext" Also try running the $APS_HOME/bin/verifier on your .ear. Please also post the full stack trace. Thanks.
    --ken                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Using JExportTo, JExtendedExportTo, JAdjustString functions in 7.1.3

    I trying to migrate some functions from an old EB 6.1.x environment to EB 7.1.3
    Using the same setup from 6.1, I created the new function (@JAdjustString) in EB 7.1.3 to use in conjunction with the @JExportTo and @JExtendedExportTo functions (both successfully created). This function basically reformats the string length or spaces. When I attempt to compile/validate the script, it errors out. Is there something I missed when I created the function?
    ***Existing Function
    Name: @JExtendedExportTo
    Java Class: com.hyperion.essbase.cdf.export.ExportTo
    Java Method: ExportToTarget(String,String,String,String,String,String[],double[],int[],String[])
    Spec: @JExtendedExportTo(targetType,targetName,delimiter,textQualifier,tableName,strArgs,dblArgs,intDecimalPoints,replaceMissing)
    Comment: Exports the data to a text file or relational database (using either
    JDBC or JDBC-ODBC bridge).
    ***New Function
    Name: @JAdjustString
    Java Class: com.hyperion.essbase.cdf.export.ExportTo
    Java Method: AdjustString(String,int)
    Spec: @JAdjustString(strText,intLength)
    Comment: Adjust a string by fixing the length by truncating or padding with blanks.

    Running the calc script with the function in it. Yep, I updated the udf.policy and restarted eb as well.
    Calc Script1 is a working calc script using the JExtendedExportTo function which outputs the budget accounts in the FIX. This one actually validates and exports successfully.
    Calc Script2 uses a combination of both the JExportTo and JAdjustString, where the data is captured and format gets adjusted with fixed spacing. The script does not validate in 7.1.3 which is the same error in 6.1 as well, however, it executes successfully in 6.1. When I try to run in 7.1.3, the same failed error message appears "Error: 1200324 Error compiling formula for [Jan] (line 88): operator expected after [@AdjustString]
    After digging around in both versions and their directory files, I found the "ExportCDF.jar" file is different in size between them. I tried to copy the 6.1 ExportCDF.jar file over to the 7.1.3 directory, restarted EB, but still no luck (restored original .jar file back afterwards). So does this mean I need to recompile a new *jar file or something? My java knowledge is minimal so any help would be appreciated. BTW, below is the Calc Script2 with the issue:
    /* Custom Functions Utilized:
    -- @JExportTo
              * Export to a text file
              * arg 1: specify "file" to export to a text file
              * arg 2: file name. This file name must be used to close the file after the calculation completes
              * arg 3: delimiter. Accepts "tab" for tab delimited (use "" for undelimited)
              * arg 4: leave blank when exporting to text files
              * arg 5: an array of member names
              * arg 6: an array of data
    -- @JAdjustString
              * Adjusts a string to a specified length by either truncating or right padding with spaces
              * arg 1: string
              * arg 2: desired length
    -- @JReplaceStringIf
              * If a string matches a criteria string, returns replacement string, else returns original string
              * arg 1: string
              * arg 2: criteria string
              * arg 3: replacement string
              * Used to replace certain Essbase placeholder names such as "DPT_No_Department", "AFF_No_Affiliate" and "NoEntities" with blanks.
         Script deals with special situations resolving differences between Essbase and PeopleSoft:
              case 1: Essbase placeholder names such as "DPT_No_Department", "AFF_No_Affiliate" and "NoEntities" must be replaced with blanks.
              case 2: Splitting out projects from the business unit dimension where applicable
              case 3: Splitting account/products where found on the Accounts dimension
              case 4: Splitting account/stat codes where found on the Accounts dimension (creates seperate files for $ and stats)
    FIX (FY06, "Budget","Current")
         CALC DIM ("Project Class","Departments","Affiliates" ,"Entities");
    FIX ("Total Project Class",@LEVMBRS("Departments",0),@LEVMBRS("Affiliates",0),@LEVMBRS("Entities",0),
         @RELATIVE("Net Income",0), @RELATIVE("COSTS_OF_REVENUES",0), @RELATIVE("PROJ_DEVLMNT_EXP",0), @RELATIVE("G&A",0))
    "Jan"(                
         IF ("Jan" + 0 <> 0 OR "Feb" + 0 <> 0 OR "Mar" + 0 <> 0 OR "Apr" + 0 <> 0 OR "May" + 0 <> 0 OR "Jun" + 0 <> 0 OR "Jul" + 0 <> 0
         OR "Aug" + 0 <> 0 OR "Sep" + 0 <> 0 OR "Oct" + 0 <> 0 OR "Nov" + 0 <> 0 OR "Dec" + 0 <> 0)
              IF (@ISMBR(@MATCH("Accounts","4?????")) OR @ISMBR(@MATCH("Accounts","5?????")) OR @ISMBR(@MATCH("Accounts","6?????"))
              OR @ISMBR(@MATCH("Accounts","7?????")) OR @ISMBR(@MATCH("Accounts","8?????")) OR @ISMBR(@MATCH("Accounts","9?????")))
                   @JExportTo(
                        "file","E:\Hyperion\Essbase\App\Finance\FinStmt\FinStmt$.txt","","",
                        @List(
                        "M",
                        @JAdjustString( @SUBSTRING(@JReplaceStringIf(@NAME(@CURRMBR("Entities")),@NAME("NoEntities"), " "),0),5),
                        @JAdjustString(@NAME(@CURRMBR("Accounts")),6),
                        @JAdjustString( @SUBSTRING(@JReplaceStringIf(@NAME(@CURRMBR("Departments")),@NAME("DPT_No_Department")," "), 4),10),
                        @JAdjustString( @SUBSTRING(@JReplaceStringIf(@SUBSTRING(@NAME(@CURRMBR("Entities")), 6),     @NAME("NO_PRJ"), " "),     0),15),
                        @JAdjustString( @SUBSTRING(@JReplaceStringIf(@NAME(@CURRMBR("Affiliates")),@NAME("AFF_No_Affiliate"), " "), 4),5),
                        @JAdjustString(@NAME("Final"),10), " "
                        @LIST ("Jan"*-1,"Feb"*-1,"Mar"*-1,"Apr"*-1,"May"*-1,"Jun"*-1,"Jul"*-1,"Aug"*-1,"Sep"*-1,"Oct"*-1,"Nov"*-1,"Dec"*-1),
                        @JReturnStringIf(@ISMBR(@MATCH("Accounts","4?????")),"+0000000000000.00;-0000000000000.00","-0000000000000.00;+000000000000.00" )
              ENDIF
         ENDIF
    ENDFIX
    ENDFIX
    /*Close the file*/
    RUNJAVA CloseTarget "file" "E:\Hyperion\Essbase\App\Finance\FinStmt\FinStmt$.txt" ;

  • Using a LabVIEW application as default program for opening files

    Google has returned nothing useful on this.  I want to use a built LabVIEW application to open data files from the Windows desktop. It is easy to edit the Windows registry to set the application as default program - but I'm not sure how to set the event in LabVIEW to open the file.  Any suggested reading?
    Solved!
    Go to Solution.

    I have done this before...I have a small LabVIEW .exe which looks at the version of a VI and selects the appropriate version of LabVIEW to open it with if available. It also adds explorer context menu items for allowing you pick a specific version of LabVIEW to open the file with.
    This is a rough idea of the registry keys for adding a program to handle specific file types and to add items to the shell menu in the installer:
    Add your own 'LabVIEWOpenWithVersion' key and then add the key name to the OpenWithProgids for the file extensions you want to be able to open with your application. The command part looks like this:
    Look at the Windows/MSDN help for what the different keys mean and how they are used, I think you can also set a key to make one of your handlers (e.g. Open, openWithLV) the default for the file type.
    For getting the file that was opened 'with' your application, use the App.Args property, ignoring the first item (which is always LabVIEW) in the array.
    Certified LabVIEW Architect, Certified TestStand Developer
    NI Days (and A&DF): 2010, 2011, 2013, 2014
    NI Week: 2012, 2014
    Knowledgeable in all things Giant Tetris and WebSockets

  • Var-arg doesn't work as I think for single parameter methods

    Hello,
    I was playing with var-args and after running the following code I really couldn't understand why the compiler picks the answer for the single parameter method call, when surely it should find an exact match with the var-arg method?
    The first two obviously use the var-arg call, but why the last? I would have thought the compiler would only go back up the class until it reached an exact match then stop, which the single parameter version matches exactly the var-arg.
    class FourByFour {
         public void changeGear(long x) {
              System.out.println("4x4");
    class Ford extends FourByFour {
         public void changeGear(int... x) {
              System.out.println("Ford");     
    public class trial {
         public static void main(String[] args)
              Ford c = new Ford();
              c.changeGear(1,2);
    c.changeGear(new int[]{1});
              c.changeGear(1);
    btw, the base is only a long because I wanted to see whether it would still prefer casting to the var-arg.

    But surely the int var-arg matches exactly the single parameter call? var-arg takes 0 or more parameters, so passing in one parameter is a full match and more so than it's base class long? Maybe I'm just getting mixed up with how var-args are interpreted as internally?
    As for 'back up the class' I assumed it first checks the current objects methods, then checks it's super methods, etc. but if it finds an exact match on a method, to save wasted time it would stop right there, e.g.
    class A { void method(long x){}}
    class B extends A {void method(int x){}}
    calling new B.method(x) with an int would obviously call B's and not A's and would not bother checking with A's because it is an exact match with B, which is sort of how I interpreted passing in a single int to a var-arg. Or, swapping the two signatures around it would call A's because if B's had a long it would not be an exact match and so it's base class is called.

  • Use REST API to query contacts with a field updated since certain time?

    Hello,
    Using the REST API and trying to figure out how I can query for contacts that have had a field updated since a specified time. I've tried using the "lastUpdatedAt" arg, but to me it seems like I'm getting back contacts that maybe haven't had any data change, but were probably sent an email or something of that sort (so the updated at value was changed)
    Is there a way to query for contacts that have had fields change (Like subscriptions, address, title, etc) but exclude those contacts that only have their updated values changes because they were sent an email?
    Thanks!

    Hi Chris,
    lastUpdatedAt or "Date Modified" fields don't change when the contact is sent an email, but rather, when ANY field is modified on the contact record. You can certainly query for and export contacts that had their data touched in some way since a specified time, but it won't be on a per-field basis. There is effectively no field level change history or tracking. You can work around this with extra logic. First, you can get a snapshot of what the values were in the specific fields you want to track across your entire database.
    The next time you run an export using Date Modified, it will contain more records than you might care about, but you can filter offline for the ones you do care about by comparing their before and after values for the specific 'tracked' fields.
    Regards,
    Bojan

  • Command line args

    I have this program and I need to use command line args which
    will print ell . this program does this but I am using
    substring instead of command line args.
    public class h11 {
    public static void main (String [] args ) {
    String greeting = "Hello";
    String h11 = greeting . substring (1, 4);
    System.out.println( h11);
    output: ell
    Anyone..

    First off, the index of characters in a String is 0 based so in the string "Hello" you have the following;
    char 0 = "H"
    char 1 = "e"
    char 2 = "l"
    char 3 = "l"
    char 4 = "o"
    String.substring(start, end) is first inclusive and last exclusive so the parameters (1, 4) would return characters 1, 2 & 3 but not 0 or 4.
    To get the whole word Hello (not withstanding that that's the entire string) you would want greeting.substring(0,5) however that would generate an index out of bounds error because 5 isn't a valid index for that string. So, here's a small sample program to show how to do what I think you're after.
    public class ParmsTest{
         public static void main(String[] args){
              if( args.length > 0 ){
                   String parm = null ;
                   int end = 0 ;
                   int start = 0 ;
                   for( int i=0; i< args.length; i++ ){
                        parm = args[i] ;
                        if( parm.length() > 4 ){
                             end = 4;
                        else{
                             end = parm.length() - 1 ;
                        if( end > start ){
                             System.out.println( parm.substring(start, end) ) ;
                        else{
                             System.out.println( "Nothing to get" ) ;
              System.out.println( "Finished processing parameters" ) ;
    }It's a bit more complicated than your sample, but it also checks to see if there were any parameters, and it checks to see if the length we're trying to get is valid. Lastly it checks to see if there was anything to get before trying to print it. If it doesn't find anything to print it prints a message saying so.
    Here's the question I have for you. Why? Why did I go to this trouble?

  • Trying to get args[] to behave themselves!

    Hi Everyone,
    I am having some fun trying to make my program totally portable. I am working with File objects and they are not behaving exactly the way I would like.
    My program takes a source directory, which is packed full of pictures, and then uses each of these pictures in an automated manner which results in an html page being produced for each picture.
    I am trying to allow the program to run totally from the command line with two arguments, one the source directory and one the destination directory.
    So when running my program, you would do something like this:
    C:\MyJava>java -cp . auto.Initialize_Program C:\Pictures C:\HTML
    I use the (String[] args) array to import the two parameters into my program.
    It is past this point that the fun starts, when creating a File object in my IDE I used the following code, which is totally functional:
    File textFile = new File("C:\\Pictures\\"+final_file_name+".htm");In the above code snippet the "C:\\Pictures\\" section of code points to my destination directory and the final_file_name variable names each file in the destination (of course with a ".htm" extension).
    When I try to use the command line arguments, e.g.:
    File textFile = new File(args[0] + final_file_name + ".htm");I end up with a whole bunch of html files called PicturesXYZ.htm (where XYZ is the various file names) in the root directory.
    Basically the section that used to point to the destination directory is now becoming part of the file name. I have experimented with the pathSeperator() method of class File to no avail.
    I need to find some way of telling the program that the args[0] part is in fact a destination directory and not part of the file name. Does anybody have any suggestions as to how I could go about doing this?
    Any help would be super.
    Regards
    Davo

    C:\MyJava>java -cp . auto.Initialize_Program C:\Pictures C:\HTML
    File textFile = new File(args[0] + final_file_name + ".htm");args[0] doesn't end in a backslash, and final_file_name doesn't begin with a filename. So obviously, you end up with filenames like "C:\PicturesXYZ.htm". To avoid this, you can either add a backslash in the concatenation (or use File.pathSeparator, to be more platform independent:)
    File textFile = new File(args[0] + File.pathSeparator + final_file_name + ".htm");Or, you can make a File object representing the directory, and use that as input to the File constructor when makeing the textFile object:
    File dir = new File(args[0]);
    File textFile = new File(dir, final_file_name + ".htm");

  • Task Sequence failed to restore captured data from USB drive onto a new machine using UDI task requence

    Hi,
    Environment ConfigMgr 2012 R2
    Replace Scenario: Capture data to a USB external drive and Restore it from USB external drive.
    Steps taken:
    1) Created Computer Association with New computer and Source computer
    2) Deployed UDI replace Task Sequence to Source computer and captured data to a USB external drive
    3) Run UDI Task Sequence from Boot Media to Restore data from USB External drive which had the captured data.
    Issue:
    My task sequence failed to restore data from USB external drive.
    Is there a fix
    Any help is greatly appreciated it. 

    I created a query to see the deployment logs in real time. I see the TS fails when running "Request State Store" task. Here are the logs.
    Severity Type Site code Date / Time System Component Message ID Description
    Error Milestone POK 7/22/2014 4:13:15 PM MININT-P6E4T6G Task Sequence Engine 11141 The task sequence execution engine failed execution of a task sequence. The operating system reported error 1: Incorrect function.
    Error Milestone POK 7/22/2014 4:13:15 PM MININT-P6E4T6G Task Sequence Engine 11135 The task sequence execution engine failed executing the action (Error in the task sequence) in the group (Gather Logs and StateStore on Failure)
    with the error code 1  Action output: [ smsswd.exe ] PackageID = '' BaseVar = '', ContinueOnError='' ProgramName = 'cscript "C:\_SMSTaskSequence\WDPackage\scripts\ztierrormsg.wsf"' SwdAction = '0001' Set command line: Run command line Working dir 'not
    set' Executing command line: Run command line Process completed with exit code 1 Microsoft (R) Windows Script Host Version 5.8 Copyright (C) Microsoft Corporation. All rights reserved.  Microsoft Deployment Toolkit version: 6.2.5019.0 The task sequencer
    log is located at C:\WINDOWS\CCM\Logs\SMSTSLog\SMSTS.LOG.  For task sequence failures, please consult this log. ZTI deployment failed, Return Code = 1 Command line returned 1. The operating system reported error 1: Incorrect function.
    Information Milestone POK 7/22/2014 4:13:14 PM MININT-P6E4T6G Task Sequence Engine 11134 The task sequence execution engine successfully completed the action (Copy Logs) in the group (Gather Logs and StateStore on Failure)
    with exit code 0  Action output: ... 扴捡杫潲湵⹤潬⁧潴尠停䭏偃䍓䵃卐㄰䍜彍潓牵散尤协屄潌獧䍜剏ⵐ䠳䑗塐就瑺獩瑥慢正牧畯摮氮杯潃祰湩⁧㩃坜义佄南䍜䵃䱜杯屳䵓呓䱓杯穜楴慴潴⹯潬⁧潴尠停䭏偃䍓䵃卐㄰䍜彍潓牵散�潌獧䍜剏ⵐ䠳䑗塐就潃祰湩⁧㩃坜义佄南䍜䵃䱜杯屳䵓呓䱓杯作䑓敓畴坰穩牡⹤潬⁧潴尠停䭏偃䍓䵃卐㄰䍜彍潓牵散尤协屄潌獧䍜剏ⵐ䠳䑗塐就协卄瑥灵楗慺摲氮杯潃祰湩⁧㩃坜义佄南停湡桴�潬⁧潴尠停䭏偃䍓䵃卐㄰䍜彍潓牵散尤协屄潌獧䍜剏ⵐ䠳䑗塐就慐瑮敨屲湕瑡整摮䍇潃祰湩⁧潬⁧㩃坜义佄南䍜䵃䱜杯屳䵓呓䱓杯䉜䑄氮杯挠湯整瑮⁳潴尠停䭏偃䍓䵃卐㄰䍜彍潓牵散尤协屄潌�Console
    > Successfully resized the shadow copy storage association Return code from command = 0 Cleaning up default wallpaper registry keys Process completed with exit code 0 zticopylogs processing completed successfully. Command line returned 0.
    Information Milestone POK 7/22/2014 4:13:07 PM MININT-P6E4T6G Task Sequence Engine 11134 The task sequence execution engine successfully completed the action (Move State Store) in the group (Gather Logs and StateStore on Failure)
    with exit code 0  Action output: [ smsswd.exe ] PackageID = '' BaseVar = '', ContinueOnError='' ProgramName = 'cscript.exe "C:\_SMSTaskSequence\WDPackage\scripts\ztimovestatestore.wsf"' SwdAction = '0001' Command line for extension .exe is "%1" %* Set
    command line: Run command lineWorking dir 'not set' Executing command line: Run command line Process completed with exit code 0 Microsoft (R) Windows Script Host Version 5.8 Copyright (C) Microsoft Corporation. All rights reserved.  Microsoft Deployment
    Toolkit version: 6.2.5019.0 The task sequencer log is located at C:\WINDOWS\CCM\Logs\SMSTSLog\SMSTS.LOG.  For task sequence failures, please consult this log. ztimovestatestore processing completed successfully. Command line returned 0.
    Information Milestone POK 7/22/2014 4:13:07 PM MININT-P6E4T6G Task Sequence Engine 11134 The task sequence execution engine successfully completed the action (Gather) in the group (Gather Logs and StateStore on Failure) with
    exit code 0  Action output: ... (BIOS is 'DELL   - 1072009'). Property IsVM is now = False Finished getting virtualization info Connection succeeded to MicrosoftVolumeEncryption There are no encrypted drives Property IsBDE is now = False Processing
    the  phase. Determining theINI file to use. Using COMMAND LINE ARG: Ini file = CustomSettings.ini Finished determining the INI file to use. Added new custom property MYCUSTOMPROPERTY Using from [Settings]: Rule Priority = DEFAULT ------ Processing the
    [DEFAULT] section ------Process completed with exit code 0 ------ Done processing CustomSettings.ini ------ Remapping variables. Property TaskSequenceID is now =  Property DeploymentType is now = NEWCOMPUTER Finished remapping variables. ZTIGather processing
    completed successfully. Command line returned 0 ReleaseSource() for C:\_SMSTaskSequence\Packages\POK0000F. reference count 1 for the source C:\_SMSTaskSequence\Packages\POK0000F before releasing Released the resolved source C:\_SMSTaskSequence\Packages\POK0000F.
    Information Milestone POK 7/22/2014 4:13:03 PM MININT-P6E4T6G Task Sequence Engine 11130 The task sequence execution engine skipped the action (Use Toolkit Package) in the group (Gather Logs and StateStore on Failure) because
    the condition was evaluated to be false.
    Information Milestone POK 7/22/2014 4:13:02 PM MININT-P6E4T6G Task Sequence Engine 11134 The task sequence execution engine successfully completed the action (Set Error Code) in the group (Gather Logs and StateStore on Failure)
    with exit code 0  Action output: Finished with error code 0.
    Information Milestone POK 7/22/2014 4:13:02 PM MININT-P6E4T6G Task Sequence Engine 11124 The task sequence execution engine started the group (Gather Logs and StateStore on Failure).
    Information Milestone POK 7/22/2014 4:13:02 PM MININT-P6E4T6G Task Sequence Engine 11122 The task sequence execution engine skipped the group (Cancelled Wizard Group) because the condition was evaluated to be false.
    Error Milestone POK 7/22/2014 4:13:02 PM MININT-P6E4T6G Task Sequence Engine 11135 The task sequence execution engine failed executing the action (Connect to State Store) in the group (State Restore) with the error code 1 
    Action output: ... ( 0x80070035 ) , trying to connect without username.  The network path was not found.  Unable to connect to
    \\3807000000100000000000:\2fa390ff58558b49c45bf204dfa5717f.  Sleeping for 15 seconds. Unable to connect to share: The network path was notfound. ( 0x80070035 ) , trying to
    connect without username.  The network path was not found.  Unable to connect to
    \\3807000000100000000000:\2fa390ff58558b49c45bf204dfa5717f.  Sleeping for 20 seconds. Unable to connect to share: The network path wasnot found. ( 0x80070035 ) , trying to
    connect without username.  The network path was not found.  Unable to connect to
    \\3807000000100000000000:\2fa390ff58558b49c45bf204dfa5717f.  Sleeping for 25 seconds. Process completed with exit code 1 ERROR - Unable to map a network drive to
    \\3807000000100000000000:\2fa390ff58558b49c45bf204dfa5717f. Unable to connect to 563807000000100000000000:\2fa390ff58558b49c45bf204dfa5717f ZTI ERROR - Non-zero return code by ZTIConnect,
    rc = 1 Command line returned 1. The operating system reported error 1: Incorrect function.
    Warning Milestone POK 7/22/2014 4:11:46 PM MININT-P6E4T6G Task Sequence Engine 11138 The task sequence execution engine ignored execution failure of the action (Request State Store) in the group (State Restore).
    Error Milestone POK 7/22/2014 4:11:46 PM MININT-P6E4T6G Task Sequence Engine 11135 The task sequence execution engine failed executing the action (Request State Store) in the group (State Restore) with the error code 16389 
    Action output: ... etting Media Certificate. Sending request to MP
    http://abcdefg.xyx.xyz.local. Setting message signatures. Setting the authenticator. CLibSMSMessageWinHttpTransport::Send: URL: abcdefg.xyx.xyz.local:80  CCM_POST /ccm_system/requestRequest was successful. migInfoRequestMessage.DoRequest (m_sResponse,true),
    HRESULT=80004005 (e:\nts_sccm_release\sms\client\osdeployment\osdsmpclient\smpclient.cpp,1098) pClientRequestToMP->DoRequest(), HRESULT=80004005 (e:\nts_sccm_release\sms\client\osdeployment\osdsmpclient\smpclient.cpp,2778) ExecuteRestoreRequestToMP(migInfoFromMP),
    HRESULT=80004005 (e:\nts_sccm_release\sms\client\osdeployment\osdsmpclient\smpclient.cpp,2903) ExecuteRestoreRequest(), HRESULT=80004005 (e:\nts_sccm_release\sms\client\osdeployment\osdsmpclient\main.cpp,84) OSDSMPClient finished: 0x00004005 reply from server
    is 'NoReply' ClientRequestToMP::DoRequest failed (0x80004005). ExecuteRestoreRequestToMP failed (0x80004005). ExecuteRestoreRequest failed (0x80004005).. The operating system reported error 1: Incorrect function.

  • How to make an app that uses plugins???

    Hello All,
    I am relatively new to programing and i have never done some thing like this so what i would like to know is.
    How can i make an app that can get/load plugins from a folder and then use them to copy files from one place to another(i got he copy part down just need the plugin part.
    And then i need to know how to parse the location of the file that needs to be copied and the folder it needs to be copied to into the plugin.
    Thanks in advance.

    What you do it to define a common interface which plugins have to implement. Typically you place the .class files for the plugins in a special directory (not on the class path) and you create a URLClassLoader to load the plugin classes. Class names (FQNs) for plugins are usually in some kind of configuration file.
    One you load the class you'll usually create a single instance (with Class.newInstance()) and cast it to the common interface. It's simpler to use a no-args constructor and define some kind of initialize method in the interface to initialise the plugin. Typically you pass some kind of context object when you initialize the plugin, which the plugin can use to comunicate with the framework.

  • What to use for INITIAL_CONTEXT_FACTORY for Sun AppServer Platform Ed 8x

    I've got an external java JMS client trying to connect to Sun Java System Application Server Platform Edition 8.1 2005Q1 and I need to know what to use for the Context.INITIAL_CONTEXT_FACTORY (and what jar it's in) plus the PROVIDER_URL for the following code:
    Properties p = new Properties();
    p.setProperty(Context.INITIAL_CONTEXT_FACTORY, ????);
    p.setProperty(Context.PROVIDER_URL, ????);
    Context ctx = new InitialContext(p);
    QueueConnectionFactory qcf = (QueueConnectionFactory)ctx.lookup(factory);

    I experienced similar problems while trying to create a Message Driven Bean
    and send a message to it from a standalone client program.
    After much guddling around (and finally finding some helpful information in
    the App Servers Troubleshooting Guide) I managed to get this to work by doing
    the following:
         1) Including the following jars at client compile time:
              appserv-rt.jar
              j2ee.jar
         2) Including the following jars at client run time:
              appserv-rt.jar
              j2ee.jar
              appserv-admin.jar
              imqjmsra.jar
         3) Passing in the following arguments at client run time:
              -Dorg.omg.CORBA.ORBInitialHost=localhost
              -Dorg.omg.CORBA.ORBInitialPort=3700
         4) Creating the context using the no-arg InitialContext method � i.e.
              Context ctx = new InitialContext();
         Note that this method picks up the initial context factory
         as com.sun.enterprise.naming.SerialInitContextFactory from
         a jndi.properties file in appserv-rt.jar.
    I have included my client code below FYI.
    import javax.jms.Connection;
    import javax.jms.ConnectionFactory;
    import javax.jms.JMSException;
    import javax.jms.MessageProducer;
    import javax.jms.Queue;
    import javax.jms.Session;
    import javax.jms.TextMessage;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import java.util.Date;
    * @author dlowe8
    public class JmsTest2 {
    /** Creates a new instance of JmsTest2 */
    public JmsTest2() {
    public static void main(String[] args) {
    Connection c = null;
    try {
    Context ctx = new InitialContext();
    String factoryJndiName = "jms/ConnectionFactory";
    String queueJndiName = "jms/Queue";
    System.out.println("Factory JNDI Name = " + factoryJndiName);
    System.out.println("Queue JNDI Name = " + queueJndiName);
         ConnectionFactory cfa = (ConnectionFactory)ctx.lookup(factoryJndiName);
         c = cfa.createConnection();
    Session s = c.createSession(false, Session.AUTO_ACKNOWLEDGE);
    Queue q = (Queue)ctx.lookup(queueJndiName);
    MessageProducer producer = s.createProducer(q);
    TextMessage m = s.createTextMessage();
    m.setText("Helloooo from standalone program at " + new Date());
    producer.send(m);
    s.close();
    Object o = ctx.lookup(factoryJndiName);
    System.out.println("Factory object class [" + o.getClass().getCanonicalName() + "]");
    o = ctx.lookup(queueJndiName);
    System.out.println("Queue object class [" + o.getClass().getCanonicalName() + "]");
    } catch (Exception e) {
    e.printStackTrace();
    } finally {
    if (c != null) {
    try {
    c.close();
    } catch (JMSException e) {}
    System.exit(0);
    }

  • Java Update 4 -- "Safe" java-vm-args Arguments for Java Web Start?

    Sun's Java documentation notes that JNLP files can request arbitrary arguments to the virtual machine using the java-vm-args argument. However, only arguments considered "safe" will be recognized. The JNLP spec doesn't list the safe arguments, since the list might change on a per-release basis.
    Unfortunately I can't find a current list of safe arguments either on Apple's site or Sun's site. I am fairly sure that -Xss is no longer on the safe list, since it's not working any more, but it would be nice to have that confirmed.
    Anyone have any ideas/pointers?

    I'm pretty sure that list is not accurate for the Java Web Start released in Update 4 recently. I have an app which attempts to specify heap and stack sizes using java-vm-args="-Xmx1024m -Xms1024m -Xss8m"; when I use the Java console to display memory usage, it shows that the heap is 81MB (which is the default). If I use initial-heap-size="1024m" max-heap-size="1024m" in the same JNLP file, the heap size is set properly.
    Unfortunately I don't think there's any way other than -Xss to set the stack size in a JNLP file, and I need to do that too.
    It's also possible that I screwed something up which caused this problem, but I reproduced it on both my Mac Pro and my Macbook Pro.

Maybe you are looking for

  • Laserjet 200 color m251 won't print in office picture manager

    Windows 7 pro, service pack 1. HP laserjet 200 color m251 pcl6 will not print in office picture manager or photo viewer. will print using quick time. any suggestions?

  • Can't access my Directory Server using the Console installed on a machine

    can't access my Directory Server using the Console installed on a remote server, lookied into knowledge base article 4693, but still same any idea ?

  • CUUC: DB Export on clustered server fails

    I am doing a CUUC - Combined Ugrade & Unicode Conversion.  On a single server - DEV - this works fine.  Now I'm doing it on a cluster and it is failing.  SAPINST is not recognizing the database server name. I am at the at the stage where I use SAPINS

  • Adobe X multiple printing

    Hi, I am running window 7 with adobe x. I am trying to print multiple pdfs at the one time. At the moment I am copying all the pdfs from an email to my desktop. Highlighting all pdfs and right click, print. When I do so, only the first page appears t

  • What a laugh :(

    Hello All I was at a (big waste of time) 'software in education' conference today, here in Melbourne Australia and just about died laughing. There were LOTS of teachers talking about moving AWAY from Adobe Captivate for Livecode. Two people just abou