Trying to create a number stamp utility

I've already figured out the basics of Automator. But this one has me stumped.
We run a pool company and would like to assign a new, sequential number to every customer/opportunity. So when a customer walks in we input their info into Daylite and setup folders on the server. I'd like to assign a sequential number with prefix to everything..i.e. P00001...then the next time someone double clicks the app, it will spit out P00002, etc.
I'm trying to write an Automator app that will remember the last number, increase by 1 and give us that number.
Any thoughts?

The same thing can be done by placing a resource (a text file containing the number) into the application bundle. The prefix number would then be saved in the application itself, so as long as everyone is running the same application the number shouldn't reset. The Run AppleScript action for that is:
<pre style="
font-family: Monaco, 'Courier New', Courier, monospace;
font-size: 10px;
font-weight: normal;
margin: 0px;
padding: 5px;
border: 1px solid #000000;
width: 720px; height: 340px;
color: #000000;
background-color: #FFEE80;
overflow: auto;"
title="this text can be pasted into an Automator 'Run AppleScript' action">on run {input, parameters} -- increment and save a new prefix number
set PrefixFile to ((path to me) as text) & "Contents:Resources:PrefixFile.txt" -- the application resource containing the number
if PrefixFile contains "Automator.app" then -- this action is running in a workflow document
display alert "Run AppleScript error" message "The AppleScript action that gets a prefix number needs to be run from an application.  Save the workflow as an application and try again."
error number -128 -- cancel
end if
do shell script "touch " & quoted form of POSIX path of PrefixFile -- create the file if it doesn't exist
try -- get the number
set PrefixNumber to (read file PrefixFile) as integer
on error -- empty file (or doesn't have the prefix number), so start at the beginning
set PrefixNumber to 0
end try
set PrefixNumber to text 2 thru -1 of ((100000 + PrefixNumber + 1) as text) -- leading zeros
try -- write the new number 
set TheOpenFIle to (open for access file PrefixFile with write permission)
set eof of TheOpenFIle to 0 -- overwrite previous file contents
write PrefixNumber to TheOpenFIle starting at eof
close access TheOpenFIle
on error
try
close access TheOpenFIle
end try
end try
return "P" & PrefixNumber
end run</pre>
My Copy Folder Structure action just deals with creating folders from a template, it doesn't do anything with files. I also have a Trim FIle Names action that can use variables to add to the name - it is set up for trimming characters from a file name, but can be used to add prefixes and suffixes if you are having problems doing that.
Copy Folder Structure:
Trim File Names:

Similar Messages

  • Error message when trying to create DMG with Disk Utility

    Have a highly confidential folder on my drive, so am driving to convert to a DMG file, with password protection. It gets nearly done with the DMG process then generates Error - 49168.
    Anyone know what means?
    1.I choose read-write as my access options
    2.Under encryption I choose the AES setting. It asks me to create a password and I create one (unchecking the "remember password option, of course")
    3. It seems to get through 95% of the process, then produces that error message.
    -- david in KC

    A little Googling suggests that Norton Anti-Virus can cause this problem by trying to scan the image as it's being created. The fix seems to be to turn off NAV while creating the image.
    If that doesn't work, I'd suggest rebooting from the system disk and having Disk Utility repair the disk, to make sure all is in good working order.

  • Problem creating online number

    I am trying to create online number but it keep telling me ...
    The number is not available. Please try with other number.
    Failed to process your Online Number subscriber information. Try again later.
    I have tried all different states in US and different number but keep getting this error.
    Please help!!!!

    [http://java.sun.com/javame/reference/apis/jsr139/java/util/Random.html|http://java.sun.com/javame/reference/apis/jsr139/java/util/Random.html]
    Also, don't do this: if(IsVoedsel == true){The following is much better: if (IsVoedsel){~

  • Error in creating reservation number

    Hi all,
    Iam trying to create reservation number using MB21, but its giveing the error as "Clearing CoCode 112 differs from CoCode 168 of plant 1681."
    what is thsi error , how to solve the problem,
    I entered mpvement type as 221..
    pls anybody help me , iam into technical side , iam trying to create a servation number..
    Regards,
    pandu

    Hi
    Its is related to two different company code.
    Please check it and revert if required.
    Regards,
    Anand.

  • Create a number of Dynamic Charts based on "Work Centre" in BEx Workbook?

    Hi all,
    We are on BI 7.0
    I am trying to create a number of dynamic charts in a BEx workbook based on the different values of "Work Centre" so that each unique work centre has its own chart.
    All titles and descriptions would have to be dynamic based on the work centre.
    I.e If there are 20 work centres we would need 20 charts. 30 work centres 30 charts etc.
    Also to add a little more complexity we need to only show a chart if a key figure (Demand Hrs) has a value greater than ZERO.
    Would be very grateful and would assign generous points for a solution.
    This needs to be done in a BEx workbook.
    Thanks in advance,
    Steve Jones
    BI Consultant

    Hello,
    The only possible way you can have a work around is with help of VB macros.
    The logic would be simple: Have a VB Script to check the varying work centres from the report. Then for each work centre check for demand hrs greater than zero. Then you can go with a for or while loop to create the graphs as per needed.
    Take help of VB Script expert for this if needed. Also if you want to work around for yourself you can check the record marco functionality of the excel. VB Script Macro is your only way out and as in your case youu2019re using workbook, this satisfies your need.
    Regards,
    Shashank

  • I am creating a form on LiveCycle Designer and I am trying to create a form that has a e-mail submit button.  When the butten is utilized it attaches the form to the e-mail in an plain text .xml format rather than the pdf format.  Is there a quick fix?

    I am creating a form on LiveCycle Designer and I am trying to create a form that has a e-mail submit button.  When the button is utilized it attaches the form to the e-mail in an plain text .xml format rather than the pdf format.  Is there a quick fix?

    Hi,
    You have the choice between xml or pdf, in later versions of designer you can choose with a dropdown on the email button Object palette, the "Submit As";
    In earlier version you had to edit the XML Source and change the format from xml to pdf (or vice-versa);
    Regards
    Bruce

  • Disk utility is crashing when trying to create a new image

    Seriously need some help if anyone has an idea of why disk utility is crashing while trying to create a disk image. I'm not finding any other info on this issue.
    My HD is failing and being replaced tomorrow and I'm desperately trying to create disk images of both my mac HD and of bootcamp for the new drive being installed.
    Any recommendations or suggestions would be truly appreciated.

    Thank you for responding so quickly. I do have Carbon Copy Cloner, but if disk utility isn't working, getting it to restore is going to be an issue, though haven't attempted a restore since the HD has to be replaced.
    CCC also doesn't clone bootcamp either unfortunately.
    Currently running "verify permissions" using Disk Utility and so far so good, it hasn't crashed, it seems to be an issue related to imaging with disk utility.
    Then I am going to attempt using the install disk to see if I can get disk utility again and try imaging Bootcamp again too.

  • Missing Number range when trying to create inventory sampling

    Hi,
    I tried to create an inventory sampling (Transaction MIS1). I selected a Inv.sampling profile and wanted to save the setting. However I get an error message saying:
    For object MATBELEG , number range interval  does not exist OMBT
    Looking at that TCode OMBT i do have set number ranges correctly.
    Since there is space between the MATBELEG and teh comma I believe that at some place a MATBELEG is set to blank, where it cannot find any corresponding numberrange.
    How can I resolve teh problem??
    Thanks fpor your help
    Torsten

    number ranges are stored in table NRIV  object MATBELEG
    Number ranges can be transported (but only with big care). it can be done from OMBT  menu Interval > transport.
    you will get a warning (which should better be an error)  because you transport not only the interval, you transport as well the current number and that will screw up your production system.
    better have your basis team open production for a short time frame for customizing ( can be done in SCC4 ) and do it directly in PRD.

  • Trying To Create Encrypted Disk Images With Disk Utility.

    I am trying to create encrypted read and write Disk Images of around 2 GB to 6 GB with Disk Utility.
    More often than not the dmg is NOT encrypted.
    It seems very hit and miss . . . . most of the time missing!
    Is this process notoriously unreliable or am I likely to be doing something wrong?

    I think you have cracked it Niel!
    I made another, unchecking the Keychain box, and it worked perfectly.
    I have been using a password which is used for other items.
    Now the .dmg has been created can I check the Keychain box and if so what are the benefits?
    I have never understood what the Keychain does.

  • TypeError: Error #1007:Tried to create an instance in a no constructor

    Hello guys,
    Im stuck with actionscript error, i really need help here the error i got:-
    TypeError: Error #1007:Tried to create an instance in a no constructor.
    at Away3dScene/initObjects()
        at Away3dScene/init()
        at flash.display::DisplayObjectContainer/addChild()
        at Away3dProject()
    So use Away3d, however dont know really where is the error becouse every thing seems be okay, im using adobe flash cs5.5, flash player 10.
    main.as code:
    package
        import flash.display.Sprite;
        import flash.display.StageScaleMode;
        import flash.display.StageAlign;
        import net.hires.utils.Stats;
        public class Away3dProject extends Sprite
            public function Away3dProject()
                stage.scaleMode =  StageScaleMode.NO_SCALE;
                stage.align =  StageAlign.TOP_LEFT;
                var scene:Away3dScene = new Away3dScene();
                addChild(scene);
                var stats:Stats = new Stats();
                addChild(stats);
         and here Away3dscene.as:
    package
        import away3d.cameras.Camera3D;
        import away3d.containers.Scene3D;
        import away3d.containers.View3D;
        import away3d.core.base.Object3D;
        import away3d.core.clip.RectangleClipping;
        import away3d.core.math.Number3D;
        import away3d.materials.WireColorMaterial;
        import away3d.overlays.LensFlare;
        import away3d.primitives.Plane;
        import flash.display.BlendMode;
        import flash.display.Sprite;
        import flash.events.Event;
        public class Away3dScene extends Sprite
            //[Embed(source="assets/library.swf", symbol="Halo")]
            private var Halo:Class;
            //[Embed(source="assets/library.swf", symbol="Flare1")]
            private var Flare1:Class;
            //[Embed(source="assets/library.swf", symbol="Flare2")]
            private var Flare2:Class;
            //[Embed(source="assets/library.swf", symbol="Flare3")]
            private var Flare3:Class;
            private var _scene:Scene3D;
            private var _camera:Camera3D;
            private var _view:View3D;
            private var _flare:LensFlare;
            public function Away3dScene()
                this.addEventListener(Event.ADDED_TO_STAGE, init);
            private function init(evt:Event):void
                initScene();
                initObjects();
                this.addEventListener(Event.ENTER_FRAME, render);
            private function initObjects():void
                /*var floor:Plane = new Plane();
                floor.width = floor.height = 100000;
                floor.segmentsW = floor.segmentsH = 12;
                floor.y = -3500;
                floor.material = new WireColorMaterial(0x333333);
                _scene.addChild(floor);*/
                var flareSourceDummy:Object3D = new Object3D();
                flareSourceDummy.x = 1000;
                flareSourceDummy.y = 500;
                flareSourceDummy.z = 3000;
                _scene.addChild(flareSourceDummy);
                _flare = new LensFlare(flareSourceDummy, _camera);
                _flare.setBurnClip(_view);
                _flare.setHaloAsset(new Halo());
                _flare.addFlareAsset(new Flare1());
                _flare.addFlareAsset(new Flare3());
                _flare.addFlareAsset(new Flare1());
                _flare.addFlareAsset(new Flare2());
                _flare.useRotation = false;
                //_flare.useAlpha = false;
                //_flare.useScaling = false;
                //_flare.useBurning = false;
                //_flare.blendMode = BlendMode.SCREEN;
                //_flare.burnMethod = LensFlare.BURN_METHOD_COLOR_TRANSFORM;
                _view.addOverlay(_flare);
            private function hoverCamera():void
                var mX:Number = this.mouseX > 0 ? this.mouseX : 0;
                var mY:Number = this.mouseY > 0 ? this.mouseY : 0;
                var tarX:Number = 3*(mX - stage.stageWidth/2);
                var tarY:Number = -2*(mY - stage.stageHeight/2);
                var dX:Number = _camera.x - tarX;
                var dY:Number = _camera.y - tarY;
                _camera.x -= dX*0.25;
                _camera.y -= dY*0.25;
                _camera.lookAt(new Number3D(0, 0, 0));
            private function initScene():void
                _scene = new Scene3D();
                _camera = new Camera3D({z:-1500});
                _view = new View3D({scene:_scene, camera:_camera});
                _view.x = stage.stageWidth/2;
                _view.y = stage.stageHeight/2;
                _view.clipping = new RectangleClipping({minX:-stage.stageWidth/2, minY:-stage.stageHeight/2, maxX:stage.stageWidth/2, maxY:stage.stageHeight/2});
                _view.opaqueBackground = 0;
                addChild(_view);
            private function render(evt:Event):void
                hoverCamera();
                _view.render();
          Please guys, any idea will be helpful to me.
        Best,

    Yes, you right, now after i do what you explain appear more informations. 
      at Away3dScene/initObjects()[C:\Users\ahmed\Desktop\3d\Away3dScene.as:65]
        at Away3dScene/init()[C:\Users\ahmed\Desktop\3d\Away3dScene.as:44]
        at flash.display::DisplayObjectContainer/addChild()
        at Away3dProject()[C:\Users\ahmed\Desktop\3d\Away3dProject.as:17]
    error number 65 in Away3dScene is: _flare.setHaloAsset(new Halo());
    error number 44 in Away3dScene is: initObjects();
    error number 17 in Away3dProject.as is: addChild(scene);
    and the last error is: at flash.display::DisplayObjectContainer/addChild()
    But what is strange i test project at flash builder and he work fine, i just want move from flash builder to run in flash cs5.5, so i move Away3dProject.as, Away3dScene.as, and i add Away3d classes to flash cs5.5 and also   add net class to flash cs5.5.
    also i add all movies clips to my libriry project, please could you help me to find why i got this error with flash cs5.5.
    Best,

  • Error trying to create object of Class IUSer

    I am trying to put in a code that is based on Rle assignment for the user on the portal.
    i am trying to put this code
    IWDClientUser user = WDClientUser.getCurrentUser();
    IUser userID = user.getSAPUser();
    String Userrole=new String();
    for (Iterator iter = userID.getRoles(true); iter.hasNext();) {
    IRole role = UMFactory.getRoleFactory().getRole((String) iter.next());
    Userrole=role.getUniqueName();
    But there is an error in line IUser userID = user.getSAPUser();.
    when i say add imports it is not adding the packages required to cretae an object of this class.
    When i try to manually import
    com.sap.security.api.sda
    but am not able to.. any ideas how to acheive this and assist me if i am doing anything worng?
    regards
    Sam

    Austin,
    Sorry for asking the basic questions.This is what i am doing. I went to DC, right clicked on it and selected properties. Then select JAva build path opition and then select Libraries. There i click on Add External JARs and select com.sap.security.api.jar.
    and click ok.
    do i need to do anything else here.
    And when ever i come back after a while i see that the external
    Jar is missing. IT looks weird. I have to keep on importing the external JAr after every few operations.
    Not sure what the problem could be
    thanks a lto for your patience in helping me ou ton this issue
    Below is the erro rmessage i get when trying to activate
    Build number assigned: 165853
    Change request state from QUEUED to PROCESSING
    ACTIVATION request in Build Space "DJI_EMXSSTR_D" at Node ID: 37,961,750
         [id: 165,817; parentID: 0; type: 4]
         [options: FORCE ACTIVATE PREDECESSORS]
    REQUEST PROCESSING started at 2007-04-17 22:13:46.500 GMT
    ===== Pre-Processing =====
    Waiting 19 ms
    List of activities to be activated:
         1 activity in compartment "sap.com_SAP_ESS_1"
              ESS_lea_1005
                   [seq. no 272][created by RJOGAM at 2007-04-17 18:14:26.0][ID 06c9c16aed2511dbafd000306e5ddf50]
    Analyse dependencies to predecessor activities... started at 2007-04-17 22:13:47.253 GMT
    Analysing predecessors in compartment "sap.com_SAP_ESS_1"
         The following predecessor has to be added to request 165817:
              "XSS_lea_selectionlistview_1003"   [seq. no 271][created by RJOGAM at 4/17/07 1:34 PM][ID 53225486ec4c11db812200306e5ddf50]
    Analyse dependencies to predecessor activities... finished at 2007-04-17 22:13:47.434 GMT and took 181 ms
    Analyse activities... started at 2007-04-17 22:13:47.434 GMT
    Development line state verification started at 2007-04-17 22:13:47.509 GMT
    Verification of the development line [ws/EMXSSTR/sap.com_SAP_ESS/dev/active/] SUCCEEDED
    Development line state verification finished at 2007-04-17 22:13:47.540 GMT and took 31 ms
    Cache verification, level 2 (Comparison of attributes) started at 2007-04-17 22:13:47.540 GMT
    Verification of the following object:
         [DC: sap.com/ess/lea, group: 0] SUCCEEDED
    Cache verification finished at 2007-04-17 22:13:47.617 GMT and took 77 ms
    Analyse dependencies to predecessor activities... finished at 2007-04-17 22:13:47.629 GMT and took 144 ms
              SKIP  : Development Component "sap.com/ess/lea"
         1 component to be build in compartment "sap.com_SAP_ESS_1"
    Analyse activities... finished at 2007-04-17 22:13:47.680 GMT and took 246 ms
    Calculate all combinations of components and variants to be built...
         "sap.com/ess/lea" variant "default"
    Prepare build environment in the file system... started at 2007-04-17 22:13:47.852 GMT
         Synchronize development configuration... finished at 2007-04-17 22:13:47.862 GMT and took 10 ms
         Synchronize component definitions... finished at 2007-04-17 22:13:47.883 GMT and took 20 ms
         Synchronize sources...
    Development line state verification started at 2007-04-17 22:13:47.970 GMT
    Verification of the development line [ws/EMXSSTR/sap.com_SAP_ESS/dev/active/] SUCCEEDED
    Development line state verification finished at 2007-04-17 22:13:48.011 GMT and took 41 ms
    Cache verification, level 2 (Comparison of attributes) started at 2007-04-17 22:13:48.011 GMT
    Verification of the following object:
         [DC: sap.com/ess/lea, group: 1] FAILED
    Comparison of cache items on the paths:
         [/usr/sap/DJI/JC03/j2ee/cluster/server0/temp/CBS/33/.CACHE/1195/DCs/sap.com/ess/lea/_comp/src/packages/com/sap/xss/hr/lea/selectionlist/SelectionListView.wdcontroller]
         [ws/EMXSSTR/sap.com_SAP_ESS/dev/active/DCs/sap.com/ess/lea/_comp/src/packages/com/sap/xss/hr/lea/selectionlist/SelectionListView.wdcontroller]
    on verification level 2 FAILED due to the following reason:
    Difference in attribute 'Timestamp' [Thu Mar 01 16:49:43 EST 2007][Thu Mar 01 16:49:44 EST 2007]
    Comparison of cache items on the paths:
         [/usr/sap/DJI/JC03/j2ee/cluster/server0/temp/CBS/33/.CACHE/1195/DCs/sap.com/ess/lea/_comp/src/packages/com/sap/xss/hr/lea/selectionlist/SelectionListView.wdcontroller.xlf]
         [ws/EMXSSTR/sap.com_SAP_ESS/dev/active/DCs/sap.com/ess/lea/_comp/src/packages/com/sap/xss/hr/lea/selectionlist/SelectionListView.wdcontroller.xlf]
    on verification level 2 FAILED due to the following reason:
    Difference in attribute 'Timestamp' [Thu Mar 01 16:49:43 EST 2007][Thu Mar 01 16:49:44 EST 2007]
    Comparison of cache items on the paths:
         [/usr/sap/DJI/JC03/j2ee/cluster/server0/temp/CBS/33/.CACHE/1195/DCs/sap.com/ess/lea/_comp/src/packages/com/sap/xss/hr/lea/selectionlist/SelectionListView.wdview]
         [ws/EMXSSTR/sap.com_SAP_ESS/dev/active/DCs/sap.com/ess/lea/_comp/src/packages/com/sap/xss/hr/lea/selectionlist/SelectionListView.wdview]
    on verification level 2 FAILED due to the following reason:
    Difference in attribute 'Timestamp' [Thu Mar 01 16:49:43 EST 2007][Thu Mar 01 16:49:44 EST 2007]
    Comparison of cache items on the paths:
         [/usr/sap/DJI/JC03/j2ee/cluster/server0/temp/CBS/33/.CACHE/1195/DCs/sap.com/ess/lea/_comp/src/packages/com/sap/xss/hr/lea/selectionlist/SelectionListView.wdview.xlf]
         [ws/EMXSSTR/sap.com_SAP_ESS/dev/active/DCs/sap.com/ess/lea/_comp/src/packages/com/sap/xss/hr/lea/selectionlist/SelectionListView.wdview.xlf]
    on verification level 2 FAILED due to the following reason:
    Difference in attribute 'Timestamp' [Thu Mar 01 16:49:43 EST 2007][Thu Mar 01 16:49:44 EST 2007]
    Cache verification finished at 2007-04-17 22:13:54.824 GMT and took 6 s 813 ms
         Synchronize sources... finished at 2007-04-17 22:14:02.175 GMT and took 14 s 292 ms
         Synchronize used libraries...
              public part "default" of component "sap.com/tc/col/api" ... OK
                   [PP "default" of DC 226 variant "default"][SC 1196][last successful build: 162348]
              public part "default" of component "sap.com/tc/cmi" ... OK
                   [PP "default" of DC 217 variant "default"][SC 1196][last successful build: 164158]
              public part "default" of component "sap.com/tc/ddic/ddicruntime" ... OK
                   [PP "default" of DC 218 variant "default"][SC 1196][last successful build: 164158]
              public part "default" of component "sap.com/tc/wd/webdynpro" ... OK
                   [PP "default" of DC 196 variant "default"][SC 1192][last successful build: 162348]
              public part "default" of component "sap.com/tc/logging" ... OK
                   [PP "default" of DC 184 variant "default"][SC 1192][last successful build: 162348]
              public part "default" of component "sap.com/com.sap.aii.proxy.framework" ... OK
                   [PP "default" of DC 221 variant "default"][SC 1196][last successful build: 164158]
              public part "default" of component "sap.com/com.sap.aii.util.misc" ... OK
                   [PP "default" of DC 222 variant "default"][SC 1196][last successful build: 162348]
              public part "default" of component "sap.com/com.sap.mw.jco" ... OK
                   [PP "default" of DC 126 variant "default"][SC 1192][last successful build: 162348]
              public part "FloorplanManager" of component "sap.com/pcui_gp/xssfpm" ... OK
                   [PP "FloorplanManager" of DC 223 variant "default"][SC 1193][last successful build: 162556]
              public part "FloorplanManager" of component "sap.com/pcui_gp/xssfpm" ... OK
                   [PP "FloorplanManager" of DC 223 variant "default"][SC 1193][last successful build: 162556]
              public part "FloorplanManager" of component "sap.com/pcui_gp/xssfpm" ... OK
                   [PP "FloorplanManager" of DC 223 variant "default"][SC 1193][last successful build: 162556]
              public part "FloorplanManager" of component "sap.com/pcui_gp/xssfpm" ... OK
                   [PP "FloorplanManager" of DC 223 variant "default"][SC 1193][last successful build: 162556]
              public part "FPMUtils" of component "sap.com/pcui_gp/xssutils" ... OK
                   [PP "FPMUtils" of DC 224 variant "default"][SC 1193][last successful build: 162556]
              public part "FPMUtils" of component "sap.com/pcui_gp/xssutils" ... OK
                   [PP "FPMUtils" of DC 224 variant "default"][SC 1193][last successful build: 162556]
              public part "FPMUtils" of component "sap.com/pcui_gp/xssutils" ... OK
                   [PP "FPMUtils" of DC 224 variant "default"][SC 1193][last successful build: 162556]
              public part "FPMUtils" of component "sap.com/pcui_gp/xssutils" ... OK
                   [PP "FPMUtils" of DC 224 variant "default"][SC 1193][last successful build: 162556]
              public part "default" of component "sap.com/tc/ddic/metamodel/content" ... OK
                   [PP "default" of DC 219 variant "default"][SC 1196][last successful build: 162348]
              public part "default" of component "sap.com/tc/wdp/metamodel/content" ... OK
                   [PP "default" of DC 220 variant "default"][SC 1196][last successful build: 162348]
              public part "default" of component "sap.com/com.sap.exception" ... OK
                   [PP "default" of DC 123 variant "default"][SC 1192][last successful build: 162348]
              public part "default" of component "sap.com/com.sap.exception" ... OK
                   [PP "default" of DC 123 variant "default"][SC 1192][last successful build: 162348]
              public part "FcTmDataExchange" of component "sap.com/pcui_gp/tecl" ... OK
                   [PP "FcTmDataExchange" of DC 230 variant "default"][SC 1193][last successful build: 162556]
              public part "FcTmDataExchange" of component "sap.com/pcui_gp/tecl" ... OK
                   [PP "FcTmDataExchange" of DC 230 variant "default"][SC 1193][last successful build: 162556]
              public part "FcTmDataExchange" of component "sap.com/pcui_gp/tecl" ... OK
                   [PP "FcTmDataExchange" of DC 230 variant "default"][SC 1193][last successful build: 162556]
         Synchronize used libraries... finished at 2007-04-17 22:14:06.635 GMT and took 4 s 459 ms
    The source cache is in INCONSISTENT state for at least one of the request DCs. The build might produce incorrect results.
    Prepare build environment in the file system... finished at 2007-04-17 22:14:06.635 GMT and took 18 s 783 ms
    ===== Pre-Processing =====  finished at 2007-04-17 22:14:06.636 GMT and took 20 s 117 ms
    Waiting 33 ms
    ===== Processing =====
    BUILD DCs
         "sap.com/ess/lea" in variant "default"
              .. FAILURE: The build failed due to compilation errors. See build log for details. [result code: 202]
    ===== Processing =====  finished at 2007-04-17 22:16:01.800 GMT and took 1 m 55 s 131 ms
    ===== Post-Processing =====
    Waiting 12 ms
    Check whether build was successful for all required variants...
         "sap.com/ess/lea" in variant "default"   FAILED
    ===== Post-Processing =====  finished at 2007-04-17 22:16:01.815 GMT and took 3 ms
    Change request state from PROCESSING to FAILED
    ERROR! The following problem(s) occurred  during request processing:
    ERROR! The following error occurred during request processing:Activation FAILED due to build problems. See build logs for details.
    REQUEST PROCESSING finished at 2007-04-17 22:16:01.824 GMT and took 2 m 15 s 324 ms
    sam
    Message was edited by:
            sameer chilama
    Message was edited by:
            sameer chilama

  • Trying to create an array of a class

    This is the first time ive tried to use an array so its not surprising im having trouble.
    this is my program:
    import java.util.*;
    public class studentRecordDemo
         public static void main(String[] args)
              int studNum, index;
              System.out.println("Enter the number of students you wish to record");
              Scanner keyboard = new Scanner(System.in);
              studNum = keyboard.nextInt();
              studentRecord student[] = new studentRecord[studNum];
              for (index = 0; index < studNum; index++)
              {student[index].readInput();
              student[index].writeOutput();}
    }And it lets me compile it but when i enter a number it gives me the error:
    Exception in thread "main" java.lang.NullPointerException
    at studentRecordDemo.main(studentRecordDemo.java:15)the
    So yeah im trying to create an array of the class "studentRecord" and the number is input by the user. Is there a way to make that work or would it be easier to just make the array a really high number?

    your error is in here:
    student[index].readInput();its null...
    This is the first time ive tried to use an array so
    its not surprising im having trouble.
    this is my program:
    import java.util.*;
    public class studentRecordDemo
         public static void main(String[] args)
              int studNum, index;
    System.out.println("Enter the number of students
    ts you wish to record");
              Scanner keyboard = new Scanner(System.in);
              studNum = keyboard.nextInt();
    studentRecord student[] = new
    ew studentRecord[studNum];
              for (index = 0; index < studNum; index++)
              {student[index].readInput();
              student[index].writeOutput();}
    }And it lets me compile it but when i enter a number
    it gives me the error:
    Exception in thread "main"
    java.lang.NullPointerException
    at
    studentRecordDemo.main(studentRecordDemo.java:15)the
    So yeah im trying to create an array of the class
    "studentRecord" and the number is input by the user.
    Is there a way to make that work or would it be
    easier to just make the array a really high number?

  • Exception when trying to create pool Object

    I've been trying to get the forte 4.0ee ProductRichClient example for container managed beans to work.
    After the deployment to Sun One I got following exception when I'm using the client:
    18.10.2002 10:56:20 com.iplanet.ias.appclient.Main <init>
    INFO:
    ---------AppClient Container--------
    18.10.2002 10:56:20 com.iplanet.ias.appclient.Main setTagetServerProperties
    INFO: ACC001:Using ClientContainer file: [C:\Sun\AppServer7\appserv\domains\domain1\server1\config\sun-acc.xml].
    18.10.2002 10:56:20 com.iplanet.ias.appclient.Main <init>
    INFO: ACC014: ORB host name: [NOD]
    18.10.2002 10:56:20 com.iplanet.ias.appclient.Main <init>
    INFO: ACC013: ORB port number: [3700]
    18.10.2002 10:56:21 com.sun.enterprise.appclient.AppContainer preInvoke
    INFO: ACC007: Initiating Login ...
    18.10.2002 10:56:21 com.iplanet.ias.appclient.Main <init>
    INFO: ACC009: Load Application Class: [CMPClient.SwingClient]
    18.10.2002 10:56:23 com.iplanet.ias.appclient.Main <init>
    INFO: Application main() finished normally
    java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
    java.rmi.RemoteException: nested exception is: java.lang.RuntimeException: Caught Exception when trying to create pool Object ; nested exception is:
    java.lang.RuntimeException: Caught Exception when trying to create pool Object
    at com.sun.corba.ee.internal.iiop.ShutdownUtilDelegate.mapSystemException(Unknown Source)
    at javax.rmi.CORBA.Util.mapSystemException(Util.java:65)
    at CMPServer._ProductHome_Stub.create(Unknown Source)
    at CMPClient.SwingClient.AddRow_ButtonActionPerformed(SwingClient.java:127)
    at CMPClient.SwingClient.access$100(SwingClient.java:24)
    at CMPClient.SwingClient$2.actionPerformed(SwingClient.java:89)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1767)
    at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1820)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:419)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:257)
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:258)
    at java.awt.Component.processMouseEvent(Component.java:5021)
    at java.awt.Component.processEvent(Component.java:4818)
    at java.awt.Container.processEvent(Container.java:1525)
    at java.awt.Component.dispatchEventImpl(Component.java:3526)
    at java.awt.Container.dispatchEventImpl(Container.java:1582)
    at java.awt.Component.dispatchEvent(Component.java:3367)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3359)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3074)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3004)
    at java.awt.Container.dispatchEventImpl(Container.java:1568)
    at java.awt.Window.dispatchEventImpl(Window.java:1581)
    at java.awt.Component.dispatchEvent(Component.java:3367)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:445)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:191)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:144)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:130)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:98)
    Caused by: java.rmi.RemoteException: nested exception is: java.lang.RuntimeException: Caught Exception when trying to create pool Object ; nested exception is:
    java.lang.RuntimeException: Caught Exception when trying to create pool Object
    at com.sun.enterprise.iiop.POAProtocolMgr.mapException(Unknown Source)
    at com.sun.ejb.containers.BaseContainer.postInvoke(Unknown Source)
    at CMPServer.ProductEJB2024414397_ConcreteImpl_RemoteHomeImpl.create(ProductEJB2024414397_ConcreteImpl_RemoteHomeImpl.java:33)
    at CMPServer._ProductEJB2024414397_ConcreteImpl_RemoteHomeImpl_Tie._invoke(Unknown Source)
    at com.sun.corba.ee.internal.POA.GenericPOAServerSC.dispatchToServant(Unknown Source)
    at com.sun.corba.ee.internal.POA.GenericPOAServerSC.internalDispatch(Unknown Source)
    at com.sun.corba.ee.internal.POA.GenericPOAServerSC.dispatch(Unknown Source)
    at com.sun.corba.ee.internal.iiop.ORB.process(Unknown Source)
    at com.sun.corba.ee.internal.iiop.RequestProcessor.process(Unknown Source)
    at com.iplanet.ias.corba.ee.internal.iiop.ServicableWrapper.service(Unknown Source)
    at com.iplanet.ias.util.threadpool.FastThreadPool$ThreadPoolThread.run(Unknown Source)
    at java.lang.Thread.run(Thread.java:536)
    Caused by: java.lang.RuntimeException: Caught Exception when trying to create pool Object
    at com.sun.ejb.containers.util.pool.NonBlockingPool.getObject(Unknown Source)
    at com.sun.ejb.containers.util.pool.NonBlockingPool.getObject(Unknown Source)
    at com.sun.ejb.containers.EntityContainer.getPooledEJB(Unknown Source)
    at com.sun.ejb.containers.EntityContainer.getContext(Unknown Source)
    at com.sun.ejb.containers.BaseContainer.preInvoke(Unknown Source)
    at CMPServer.ProductEJB2024414397_ConcreteImpl_RemoteHomeImpl.create(ProductEJB2024414397_ConcreteImpl_RemoteHomeImpl.java:25)
    ... 9 more
    Caused by: javax.ejb.EJBException: nested exception is: java.lang.NullPointerException
    at com.sun.ejb.containers.EntityContainer$EntityContextFactory.create(Unknown Source)
    ... 15 more
    Any thoughts on why this exception is being thrown?
    Thanks for any help!
    Richard

    this sample has been tested by the SunONE TOOLs QA
    and is working. Please check your deployment descriptors
    and use the cmp samples which come with S1AS to see if your
    descriptors are correct.

  • Trying to create a simple database program.....help, please

    I am trying to create a database and I am having trouble gettig my code correct..........I think I am on the right track but I haven't a clue from this point, can anyone point me in the right direction as far as getting my program to have a master file and a transaction file and be able to manipulate the data........records.
    import java.awt.*;
    import java.applet.*;
    public class recordsApplet
    // Declare variables
    String lstName;
    String frstName;
    Int socSec;
    String street;
    String city;
    String state;
    Int zip;
    float rate;
    Int numofdep;
    //The buttons =
    Button Submit = new Button("Add");
    Button Change = new Button("Change");
    Button Delete = new Button("Delete");
    submit.addActionListner(this);
    Change.addActionListener(this);
    Delete.addActionListener(this);
    //get input from users
    System.out.println("Last Name:")
    lstName = dataIn.readline();
    System.out.println("First Name:")
    frstName = dataIn.readline();
    System.out.println("Social Security #:")
    socSec = dataIn.readline();
    System.out.println("Last Name:")
    street = dataIn.readline();
    System.out.println("Last Name:")
    city = dataIn.readline();
    System.out.println("Last Name:")
    state = dataIn.readline();
    System.out.println("Last Name:")
    zip = dataIn.readline();
    System.out.println("Rate of Pay:")
    rate = dataIn.readline();
    System.out.println("Number of Dependants:")
    numofdep = dataIn.readline();
    public void main(String[] args)
    //store the information in a text file
    try
    output = DataOutputStream(new FileOutputStream("mocdb.txt"));
    catch(IOException er)
    system.exit(0)
    //Print fields to text file
    String arg = e.getActionCommand();
    String code;
    if (arg == "Submit")
    code = "A";
    elseif
    code = "C";
    else
    code = "D";
    try
    output.writeUTF(code);
    output.writeUTF(lstName.getText());
    output.writeUTF(frstName.getText());
    output.writeUTF(socSec.getText());
    output.writeUTF(street.getText());
    output.writeUTF(city.getText());
    output.writeUTF(state.getText());
    output.writeUTF(zip.getText());
    output.writeUTF(rate.getText());
    output.writeUTF(numofdep.getText());
    catch(IOException c)
    System.exit(1);
    //Retrieve record from file
    System.out.println("Last Name:")
    lstName = dataIn.readline();
    System.out.println("First Name:")
    frstName = dataIn.readline();
    try
    record = new DataInputStream(new FileInputStream("mocdb.txt");
    catch(IOException c)
    system.exit(2)
    //Check first and last name and get file
    //Change data in file
    //Delete the data in file

    Sorry, but your question has nothing to do with JavaHelp. Please use another forum.
    /Mauritz

  • Trying to create a flash gallery

    trying to create a simple clickable slideshow.
    my problem i think is in the math. but i clickable picture buttons on right and left. the center clickable too.
    i wanna know how can i increment decrement a variable depending on direction.
    currently it seems to go in one direction which is to the right.
    also can i make an array of functions: ex- function animate[count](e:event):void
    or do functions handle arrays differently.
    sorry if i sound stupid but its been awhile doing flash.
    heres little code:
    var picture:Array = new Array();
    picture[1] = new pic1();
    addChild(picture[1]);
    picture[1].x =50;
    picture[1].y =384;
    picture[2] = new pic2();
    addChild(picture[2]);
    picture[2].x =512;
    picture[2].y =384;
    picture[2].scaleX =10;
    picture[2].scaleY =10;
    picture[3] = new pic3();
    addChild(picture[3]);
    picture[3].x =974;
    picture[3].y =384;
    var counter = 1;
        picture[1].addEventListener(MouseEvent.CLICK, animate1)
        function animate1(e:MouseEvent):void
            trace(counter);
            picture[counter+1].x =50;
            picture[counter+1].y =384;
            picture[counter + 2].x =512;
            picture[counter + 2].y =384;
            picture[counter + 2].scaleX =10;
            picture[counter + 2].scaleY =10;
            picture[counter + 3].x =974;
            picture[counter + 3].y =384;
            counter++;
    5 more similar eventlisteners and function

    Sorry I think I misread your code before when I responded. Well I think I have a working version of what you are trying to do. You can view what I made at http://www.jeremyseverson.com/as3/flash_gallery/index.html . I created this all in straight AS3 but it should give you an idea of what I did and give you some direction to achieve what you want.
    package
         import caurina.transitions.*;
         import flash.display.Bitmap;
         import flash.display.SimpleButton;
         import flash.display.Sprite;
         import flash.events.MouseEvent;
         [SWF(backgroundColor="#000000", frameRate="31", width="800", height="300")]
         public class Main2 extends Sprite
              //  EMBED ASSETS
              [Embed(source='assets/rightArrow.png')]
              private var rightArrowClass:Class;
              [Embed(source='assets/leftArrow.png')]
              private var leftArrowClass:Class;
              [Embed(source='assets/IMG_0001.JPG')]
              private var img0001Class:Class;
              [Embed(source='assets/IMG_0002.JPG')]
              private var img0002Class:Class;
              [Embed(source='assets/IMG_0003.JPG')]
              private var img0003Class:Class;
              [Embed(source='assets/IMG_0004.JPG')]
              private var img0004Class:Class;
              [Embed(source='assets/IMG_0005.JPG')]
              private var img0005Class:Class;
              [Embed(source='assets/IMG_0006.JPG')]
              private var img0006Class:Class;
              [Embed(source='assets/IMG_0007.JPG')]
              private var img0007Class:Class;
              //  PRIVATE VARIABLES
              // Layout Properties
              private var imgPad:Number = 5;
              private var imgScale:Number = 2.5;
              private var btnSize:Number = 25;
              private var imgCounter:Number = 0;
              private var middleImgX:Number = 400;
              private var leftImgX:Number = 100;
              private var rightImgX:Number = 700;
              private var leftImgTransX:Number = leftImgX - (middleImgX - leftImgX);
              private var rightImgTransX:Number = rightImgX + (rightImgX - middleImgX);
              private var imgY:Number = 150;
              private var imgLeft:Sprite;
              private var imgMid:Sprite;
              private var imgRight:Sprite;
              private var imgTransIn:Sprite;
              private var imgTransOut:Sprite;
              // Image Array
              private var classList:Array = new Array(img0001Class,img0002Class,img0003Class,img0004Class,img0005Class,img0006Class,img0007Class);
              private var spriteList:Array;
              private var currImages:Array;
              //  CONSTRUCTOR
              public function Main2()
                   init();
              //  PRIVATE METHODS
              private function init():void
                   initSpriteList();              
                   updateInterface(imgCounter);
               * Creating an array of sprites so that my registration point
               * will be in the center of the image instead of the upper left
              private function initSpriteList():void
                   spriteList = new Array();
                   var tSprite:Sprite;
                   var tBmp:Bitmap;
                   for (var i:uint=0; i<classList.length; i++)
                        tBmp = new classList[i] as Bitmap;
                        tSprite = new Sprite;
                        tSprite.addChild(tBmp);
                        tBmp.x = (-tBmp.width / 2);
                        tBmp.y = (-tBmp.height / 2);
                        spriteList.push(tSprite);
              private function updateInterface(newPos:Number,direction:String=null):void
                   var maxPos:Number = spriteList.length - 1;
                   var minPos:Number = 0;
                   var midPos:Number;
                   var leftPos:Number;
                   var rightPos:Number;
                   var transInSprite:Sprite;
                   // Set center array position
                   midPos = newPos;
                   if (midPos > maxPos) midPos = minPos;
                   if (midPos < minPos) midPos = maxPos;
                   // Update Image Counter
                   imgCounter = midPos;
                   // Set left array position
                   leftPos = midPos - 1;
                   if (leftPos < minPos) leftPos = maxPos;
                   // Set right array position
                   rightPos = midPos + 1;
                   if (rightPos > maxPos) rightPos = minPos;
                   switch(direction)
                        case "L":
                             currImages[0].removeEventListener(MouseEvent.MOUSE_DOWN, moveRight);
                             currImages[2].removeEventListener(MouseEvent.MOUSE_DOWN, moveLeft);
                             // Add transition in img
                             transInSprite = spriteList[rightPos];
                             transInSprite.x = rightImgTransX;
                             transInSprite.y = imgY;
                             transInSprite.scaleX = transInSprite.scaleY = .05;
                             transInSprite.alpha = 0;
                             addChild(transInSprite);    
                             Tweener.addTween(transInSprite, {x:rightImgX, alpha:1, scaleX:1, scaleY:1, time:0.5});
                             Tweener.addTween(currImages[0], {x:leftImgTransX, scaleX:.5, scaleY:.5, alpha:0, time:0.5, onComplete:removeImage, onCompleteParams:[currImages[0]]});
                             Tweener.addTween(currImages[1], {x:leftImgX, scaleX:1, scaleY:1, alpha:1, time:0.5});
                             Tweener.addTween(currImages[2], {x:middleImgX, scaleX:imgScale, scaleY:imgScale, alpha:1, time:0.5});
                             break;
                        case "R":
                             currImages[0].removeEventListener(MouseEvent.MOUSE_DOWN, moveRight);
                             currImages[2].removeEventListener(MouseEvent.MOUSE_DOWN, moveLeft);
                             // Add transition in img
                             transInSprite = spriteList[leftPos];
                             transInSprite.x = leftImgTransX;
                             transInSprite.y = imgY;
                             transInSprite.scaleX = transInSprite.scaleY = .05;
                             transInSprite.alpha = 0;
                             addChild(transInSprite);    
                             Tweener.addTween(transInSprite, {x:leftImgX, alpha:1, scaleX:1, scaleY:1, time:0.5});
                             Tweener.addTween(currImages[2], {x:rightImgTransX, scaleX:.5, scaleY:.5, alpha:0, time:0.5, onComplete:removeImage, onCompleteParams:[currImages[2]]});
                             Tweener.addTween(currImages[1], {x:rightImgX, scaleX:1, scaleY:1, alpha:1, time:0.5});
                             Tweener.addTween(currImages[0], {x:middleImgX, scaleX:imgScale, scaleY:imgScale, alpha:1, time:0.5});
                             break;
                        default:
                             // Add left img
                             spriteList[leftPos].x = leftImgX;
                             spriteList[leftPos].y = imgY;
                             spriteList[leftPos].scaleX = spriteList[leftPos].scaleY = 1;
                             addChild(spriteList[leftPos]);                        
                             // Add middle img
                             imgMid = spriteList[midPos];
                             spriteList[midPos].x = middleImgX;
                             spriteList[midPos].y = imgY;
                             spriteList[midPos].scaleX = spriteList[midPos].scaleY = imgScale;
                             addChild(spriteList[midPos]);
                             // Add right img
                             spriteList[rightPos].x = rightImgX;
                             spriteList[rightPos].y = imgY;
                             spriteList[rightPos].scaleX = spriteList[rightPos].scaleY = 1;
                             addChild(spriteList[rightPos]);         
                   spriteList[leftPos].addEventListener(MouseEvent.MOUSE_DOWN, moveRight);
                   spriteList[rightPos].addEventListener(MouseEvent.MOUSE_DOWN, moveLeft);
                   currImages = [spriteList[leftPos], spriteList[midPos], spriteList[rightPos]];
              private function removeImage(spriteRef:Sprite):void
                   removeChild(spriteRef);
              //  EVENT HANDLERS
              private function moveRight(e:MouseEvent):void
                   imgCounter--;
                   updateInterface(imgCounter,"R");
              private function moveLeft(e:MouseEvent):void
                   imgCounter++;
                   updateInterface(imgCounter,"L");

Maybe you are looking for

  • Keep getting errors when trying to open JAR files

    Hi My son is trying to open a .jar on his Macbook to add a mod to Minecraft.  It throws an error and directs him to Console each time, but Console isn't showing any errors.  Using advice on a couple of similar threads I followed some steps but ended

  • Transformation & DTP deactivated in source system

    Hi, I am trying to load the data from one BI System to another BI system. I am generating Export Data Source for that . But the Issue is that when i am doing this, in  the source system transformation & DTP got Deactivated. Can any body tell why this

  • Capturing video from camera to final cut

    I have a camera currently (canon hg20) that captures files that are .mts. I've always used imovie to capture my files and convert them to .mov but imovie only allows you to capture two sizes, one which is too small and the other is too big. I would l

  • Where is mod_wl_20.so ???

    The documentation of WLS 7.0 recommends to use mod_wl_20.so file for apache 2.0 integration with wls. yet this file is not present anywhere in the installtion. Please tell me where I can find this file. regards, Abhishek.

  • Arrowkeys stopped working in FF11

    My arrow keys suddenly stopped working. I'm using Firefox 11 and haven't updated recently. They were working fine yesterday. They also work fine when using any other program. Internet Explorer, texteditors. No problems. Might be related might not, bu