Edit C:\Users\Admin\.m2\repository\org\dspace\handle\6.2\net\handle\apps\batch\DOIBatch.class
???? 0? ?? ?? ??? ? ?? ??? ? ?? k? ??? ?? ????? ? ?? ? ? ? ????? ??? ?? ?? ? ?? ? ? ?? ????? ,???? /? .?? ?? 3? ?? ?? ?? ?? ?? ?? ? ?? ??? ?? ?? ?? ,? ,? ? ? ? ,? ?? ?? ?? ?? ?? ???? ???? .? k? k?? ?? k?? `? k? `? `?? e? e? ?? e? `?? e? ???? o? o?? ? ? r o o ? ? ? ? ?Dz ?? ? !" #$%&'()*+, ?- ?./ ?01 234 ?56 e7 e89 ?: ?? ?; ?<=> ?? ???@ABC ?DE ?F ?G HIJKL ?MNO ?? ?P ?Q `RS eTU ??V ?WXY ?Z[ k\ ?? ? ?? ? ?]^ ? ?_ ?`abcdefgh ?ij ?? ?klmno ??p ?qrs authInfo &Lnet/handle/hdllib/AuthenticationInfo; DOI_ADMIN_NA Ljava/lang/String; ConstantValuet SEC_KEY_IDX I , resolver "Lnet/handle/hdllib/HandleResolver; log Ljava/io/FileWriter; logStat Ljava/io/Writer; failedBatchDOIsWriter failedBatchDOIs Ljava/io/File; FAILED_BATCH_FILE_NAME <init> ()V Code LineNumberTable LocalVariableTable this Lnet/handle/apps/batch/DOIBatch; printUsage main ([Ljava/lang/String;)V e Ljava/lang/Exception; f Ljava/io/FileInputStream; in Ljava/io/BufferedReader; currProcessDOI block [B r argv [Ljava/lang/String; opt username passwd useSession Z idHandle auth /Lnet/handle/hdllib/SecretKeyAuthenticationInfo; trying prepSessionSuccess logOut Ljava/io/FileOutputStream; tracefile outfile traceIn Exceptions writeToBatchFailure (Ljava/lang/String;)V ioe Ljava/io/IOException; failedLine processBatchCreate V(Lnet/handle/hdllib/AuthenticationInfo;Ljava/io/BufferedReader;Ljava/io/PrintWriter;)V i j #Lnet/handle/hdllib/HandleException; t Ljava/lang/Throwable; fl D handle url Ljava/util/Vector; values [Lnet/handle/hdllib/HandleValue; chReq 'Lnet/handle/hdllib/CreateHandleRequest; admin Lnet/handle/hdllib/AdminRecord; response $Lnet/handle/hdllib/AbstractResponse; spaceIdx out Ljava/io/PrintWriter; line startIdx endIdx lineNum successes warnings records timeStarted J calStart Ljava/util/Calendar; currenttime eachStart timeEnded calEnd currenttime1 totalExec F perRequestExec processBatchUpdate currentValues indexesToDelete [I k currentLength newUrls rReq %Lnet/handle/hdllib/ResolutionRequest; deleteValues indices rmReq &Lnet/handle/hdllib/RemoveValueRequest; newValues newIdx test found avReq #Lnet/handle/hdllib/AddValueRequest; eachReslDone eachRemValDone processBatchModify idxStr index hv Lnet/handle/hdllib/HandleValue; indx curUrlIndex Lnet/handle/util/IntTable; modVals mReq &Lnet/handle/hdllib/ModifyValueRequest; st Ljava/util/StringTokenizer; indEle processBatchAlias handleStr aliasHdlStr aliasHdl updateValue addValues mvReq processBatchUnalias getUnusedIndex #([Lnet/handle/hdllib/HandleValue;)I nextIdx processBatchDelete dhReq 'Lnet/handle/hdllib/DeleteHandleRequest; eachEnd <clinit> SourceFile DOIBatch.java ? ?uvw?Usage: java net.handle.apps.batch.DOIBatch {ACDNU}[sS] <batchfile> <username> <password> <logfile> <statistics_file> Options: -A assign aliases for handles -C create handles -D delete handles -N remove aliases for handles -U update handles -s specify statistics file name -S use sessions Arguments within braces ({}) indicate that one of the arguments must be specified. Arguments within brackets ([]) indicate optional arguments. x2yz java/io/FileWriter2{| 7Statistics file name must be specified with 's' option.}% java/io/PrintStream java/io/FileOutputStream java/lang/StringBuffer~ Trace?????? java/lang/Exception ,Can not reassign the standard error to file. 10.admin/??? -net/handle/hdllib/SecretKeyAuthenticationInfo? java/io/File ? ???? ?2 E==================================================================== 2 Retrying to process failed DOIs .... F==================================================================== java/io/FileInputStream java/io/BufferedReader java/io/InputStreamReader UTF-8?? java/io/PrintWriterKw?67?7?7?7`7u7?? Error processing batch: ~? ? ' ---------------------------------?? % Here comes the tracing messages ... ?????? FINISHED. java/io/IOException???????? Batch started at Batch action: CREATE -Data: processing time per request in second 3Note: please see your log file for success status ?????? Invalid line (~? ): ?? java/util/Vector{????? net/handle/hdllib/HandleValue?z?????? java/lang/String??? Operation: create %net/handle/hdllib/CreateHandleRequest?? net/handle/hdllib/AdminRecord 0.na/?????BC???????? ? SUCCESS: :ADD: %WARNING: HANDLE ALREADY EXISTS: line ERROR: : line !net/handle/hdllib/HandleException????12 java/lang/Throwable~? Batch finished at Batch total execution time ??? seconds. SUMMARY:CREATE: ~? successes errors +STATISTICS SUMMARY:CREATE PROCESSING TIME: seconds per request. Total processing time: ~? seconds for records. Average processing time: second per request. Batch action: UPDATE 4Note: please see your log file for success status RESOLUTION REMOVE_VAL ADD_VAL #net/handle/hdllib/ResolutionRequest [[B??% $net/handle/hdllib/ResolutionResponse?? WARNING: HANDLE NOT FOUND: line ??? ": trying to retrieve handle, line ?? ???? $net/handle/hdllib/RemoveValueRequest??c : removing old aliases, line Operation: update !net/handle/hdllib/AddValueRequest :UPDATE: SUMMARY:UPDATE: SUMMARY:UPDATE PROCESSING TIME: Batch action: MODIFY java/util/StringTokenizer? ??????? ERROR: Index < > is not an integer, line !> is not a positive number, line ?? ERROR: Missing url string, line net/handle/util/IntTable?????z Operation: Modify ?? $net/handle/hdllib/ModifyValueRequest :MODIFY: SUMMARY:MODIFY: SUMMARY:MODIFY PROCESSING TIME: Operation: alias ? Batch action: ALIAS ?? :ALIAS: : trying to create handle, line ?? SUMMARY:ALIAS: SUMMARY:ALIAS PROCESSING TIME: Operation: unalias Batch action: UNALIAS SUMMARY:UNALIAS: !SUMMARY:UNALIAS PROCESSING TIME: seconds per request. Operation: delete %net/handle/hdllib/DeleteHandleRequest? Batch action: DELETE :DELETE: SUMMARY:DELETE: SUMMARY:DELETE PROCESSING TIME: Total processing: net/handle/hdllib/HandleResolver failedbatchfile$$?z net/handle/apps/batch/DOIBatch java/lang/Object 10.admin java/lang/System err Ljava/io/PrintStream; println exit (I)V indexOf (I)I traceMessages append ,(Ljava/lang/String;)Ljava/lang/StringBuffer; toString ()Ljava/lang/String; (Ljava/lang/String;Z)V (Ljava/io/OutputStream;Z)V setErr (Ljava/io/PrintStream;)V net/handle/hdllib/Util encodeString (Ljava/lang/String;)[B ([BI[B)V exists ()Z delete write *(Ljava/io/InputStream;Ljava/lang/String;)V (Ljava/io/Reader;)V (Ljava/io/OutputStream;)V close java/io/Writer ,(Ljava/lang/Object;)Ljava/lang/StringBuffer; printStackTrace ([B)V (Ljava/io/File;)V read ([B)I ([BII)V flush currentTimeMillis ()J java/util/Calendar getInstance ()Ljava/util/Calendar; getTime ()Ljava/util/Date; java/util/Date readLine trim length ()I (I)Ljava/lang/StringBuffer; substring (II)Ljava/lang/String; (II)I addElement (Ljava/lang/Object;)V size setIndex net/handle/hdllib/Common STD_TYPE_URL setType elementAt (I)Ljava/lang/Object; setData STD_TYPE_HSADMIN K([B[Lnet/handle/hdllib/HandleValue;Lnet/handle/hdllib/AuthenticationInfo;)V getNAPart ([B)[B decodeString ([B)Ljava/lang/String; ([BIZZZZZZZZZZZZ)V net/handle/hdllib/Encoder encodeAdminRecord #(Lnet/handle/hdllib/AdminRecord;)[B clearBuffers processRequest I(Lnet/handle/hdllib/AbstractRequest;)Lnet/handle/hdllib/AbstractResponse; "net/handle/hdllib/AbstractResponse responseCode getMessage getCode (D)Ljava/lang/StringBuffer; java/lang/Float (F)Ljava/lang/String; (C)Ljava/lang/StringBuffer; (F)Ljava/lang/StringBuffer; 0([B[[B[ILnet/handle/hdllib/AuthenticationInfo;)V authoritative getHandleValues "()[Lnet/handle/hdllib/HandleValue; !net/handle/hdllib/AbstractMessage getResponseCodeMessage (I)Ljava/lang/String; getCodeStr getIndex hasType ([B)Z -([B[ILnet/handle/hdllib/AuthenticationInfo;)V indexes '(Ljava/lang/String;Ljava/lang/String;)V hasMoreTokens nextToken java/lang/Integer parseInt (Ljava/lang/String;)I hasMoreElements put (ILjava/lang/Object;)V containsKey (I)Z removeElementAt getData ()[B STD_TYPE_HSALIAS +([BLnet/handle/hdllib/AuthenticationInfo;)V setTcpTimeout! ? ? ? ? ? ? ? ? ? ? ? ? 8 *? *? ? % ? ? ? / <