1086  Syntax Error (on Counter.fla)

Can anyone elaborate as to why I am getting an error with
this "counter script" (counts down Years, Months, Days, Hours,
Minutes, Seconds)? The error is "
1086: Syntax error: expecting semicolon before months" (Line
50), but after doing research on the error number and looking at
the actual error line, it appears that it may be something other
which I am not seeing?
HERE is the Action Script I am using:
this.addEventListener(Event.ENTER_FRAME,onEF);
function onEF(evt:Event):void {
var today:Date = new Date();
var currentYear = today.getFullYear();
var currentTime = today.getTime();
var targetDate:Date = new Date(2011,10,16);
var targetTime = targetDate.getTime();
if (targetTime - currentTime > 0) {
var timeLeft = targetTime - currentTime;
} else {
var timeLeft = currentTime - targetTime;
var sec = Math.floor(timeLeft/1000);
var min = Math.floor(sec/60);
var hrs = Math.floor(min/60);
var days = Math.floor(hrs/24);
var months = Math.floor((H+L-7*M+114)/31);
var years = Math.floor(days/365);
sec = String(sec % 60);
if (sec.length < 2) {
sec = "0" + sec;
min = String(min % 60);
if (min.length < 2) {
min = "0" + min;
hrs = String(hrs % 24);
if (hrs.length < 2) {
hrs = "0" + hrs;
days = String(days);
if (days.length < 2) {
days = "0" + days;
months = String(months % 12);
if (months.length < 2) {
months = "0" + months;
years = String(years);
if (years.length < 2) {
years = "0" + years;
var counter:String = years + ":" months + ":" days + ":" +
hrs + ":" + min + ":" + sec;
time_txt.text = counter;
}

Thanks,
kglad, for the quick and helpful response...
I can't believe I didn't see that!
Seems now I am getting another error on Line 22 -
1120: Access of undefined property H, L, and M.
Trying to correct that but if you have a better solution
please feel free to share...
Thanks again, regardless!
A.J.

Similar Messages

  • 1086: Syntax Error: expecting semicolon before leftbrace?

    Hi guys!
    I'm new to this program. Help would be really appreciated.
    I keep getting this error: ReferenceError: Error #1065: Variable TCMText is not defined.
    In the Compliers Error tab, it also says: Scene 1, Layer 'actions', Frame 1, Line 1    1086: Syntax error: expecting semicolon before leftbrace.
    I'm not sure if this is correct, but I used the code snippets to help me on my Actions Frame, but to no avail.
    on(release){
        _root.gotoAndPlay("2");
    /* Click to Go to Next Frame and Stop
    Clicking on the specified symbol instance moves the playhead to the next frame and stops the movie.
    start_btn.addEventListener(MouseEvent.CLICK, fl_ClickToGoToNextFrame_3);
    function fl_ClickToGoToNextFrame_3(event:MouseEvent):void
        nextFrame();
    I don't have a moving animation, but I want my Flash to work similar to a Power Point, so that the person can read the screen, then just click the button symbol to see the next scene. This is for an assignment, and it's due pretty soon. Haven't been able to figure out what's wrong since I'm a noob, thanks.

    The first bit of code, "onRelease..." is Actionscript 2 and the second bit, "start_btn.addEvent..." is Actionscript 3. You can't mix and match versions of Actionscript in the same file. With nothing selected in the Stage window, look at the Properties window. In the Script section at the top, it will tell you which version of Actionscript you selected for this movie. Try just using the one version that your movie expects to see.

  • 1084: Syntax Error:....; 1086: Syntax Error:..... ????

    I'm getting the following Compiler Errors:
    tempInit, Line 10 1084: Syntax error: expecting identifier before null.
    tempInit, Line 10 1086: Syntax error: expecting semicolon before dot.
    I'm not writing any external AS files.  All of this is basic ActionScript on frame 1 of the main timeline.
    Do I need to post the code?
    All that's in my movie are invisible buttons to navigate to the next frame in the timeline using
    my_mc.nextFrame();
    What could be wrong?

    Okay Okay..
    Here's the code
    stop();
    // A ACTIONS
    A_Master_mc.gotoCPage02_btn.addEventListener(MouseEvent.MOUSE_DOWN, gotoCPage02);
    trace("hello");
    A_Master_mc.gotoBPage02_btn.addEventListener(MouseEvent.MOUSE_DOWN, gotoBPage02);
    A_Master_mc.gotoAPage02_btn.addEventListener(MouseEvent.MOUSE_DOWN, gotoAPage02);
    A_Master_mc.gotoAPage03_btn.addEventListener(MouseEvent.MOUSE_DOWN, gotoAPage03);
    A_Master_mc.gotoAPage04_btn.addEventListener(MouseEvent.MOUSE_DOWN, gotoAPage04);
    A_Master_mc.gotoAPage05_btn.addEventListener(MouseEvent.MOUSE_DOWN, gotoAPage05);
    A_Master_mc.gotoAPage06_btn.addEventListener(MouseEvent.MOUSE_DOWN, gotoAPage06);
    A_Master_mc.gotoAPage07_btn.addEventListener(MouseEvent.MOUSE_DOWN, gotoAPage07);
    A_Master_mc.gotoAPage08_btn.addEventListener(MouseEvent.MOUSE_DOWN, gotoAPage08);
    A_Master_mc.gotoAPage09_btn.addEventListener(MouseEvent.MOUSE_DOWN, gotoAPage09);
    A_Master_mc.gotoAPage10_btn.addEventListener(MouseEvent.MOUSE_DOWN, gotoAPage10);
    A_Master_mc.gotoAPage11_btn.addEventListener(MouseEvent.MOUSE_DOWN, gotoAPage11);
    A_Master_mc.endA_btn.addEventListener(MouseEvent.MOUSE_DOWN, gotoAHome);
    function gotoCPage02(e:MouseEvent):void{
         C_Master_mc.gotoAndStop(2);
    function gotoBPage02(e:MouseEvent):void{
         B_Master_mc.gotoAndStop(2);
    function gotoAPage02(e:MouseEvent):void{
         A_Master_mc.nextFrame();
    function gotoAPage03(e:MouseEvent):void{
         A_Master_mc.nextFrame();
    function gotoAPage04(e:MouseEvent):void{
         A_Master_mc.nextFrame();
    function gotoAPage05(e:MouseEvent):void{
         A_Master_mc.nextFrame();
    function gotoAPage06(e:MouseEvent):void{
         A_Master_mc.nextFrame();
    function gotoAPage07(e:MouseEvent):void{
         A_Master_mc.nextFrame();
    function gotoAPage08(e:MouseEvent):void{
         A_Master_mc.nextFrame();
    function gotoAPage09(e:MouseEvent):void{
         A_Master_mc.nextFrame();
    function gotoAPage10(e:MouseEvent):void{
         A_Master_mc.nextFrame();
    function gotoAPage11(e:MouseEvent):void{
         A_Master_mc.nextFrame();
    function gotoHome(e:MouseEvent):void{
         gotoAndStop(1);
    // B ACTIONS
    B_Master_mc.gotoCPage02_btn.addEventListener(MouseEvent.MOUSE_DOWN, gotoAPage02);
    B_Master_mc.gotoBPage02_btn.addEventListener(MouseEvent.MOUSE_DOWN, gotoBPage02);
    B_Master_mc.gotoCPage02_btn.addEventListener(MouseEvent.MOUSE_DOWN, gotoBPage02);
    B_Master_mc.gotoCPage03_btn.addEventListener(MouseEvent.MOUSE_DOWN, gotoBPage03);
    B_Master_mc.gotoCPage04_btn.addEventListener(MouseEvent.MOUSE_DOWN, gotoBPage04);
    B_Master_mc.gotoCPage05_btn.addEventListener(MouseEvent.MOUSE_DOWN, gotoBPage05);
    B_Master_mc.gotoCPage06_btn.addEventListener(MouseEvent.MOUSE_DOWN, gotoBPage06);
    B_Master_mc.gotoCPage07_btn.addEventListener(MouseEvent.MOUSE_DOWN, gotoBPage07);
    B_Master_mc.gotoCPage08_btn.addEventListener(MouseEvent.MOUSE_DOWN, gotoBPage08);
    B_Master_mc.gotoCPage09_btn.addEventListener(MouseEvent.MOUSE_DOWN, gotoBPage09);
    B_Master_mc.gotoCPage10_btn.addEventListener(MouseEvent.MOUSE_DOWN, gotoBPage10);
    B_Master_mc.gotoCPage11_btn.addEventListener(MouseEvent.MOUSE_DOWN, gotoBPage11);
    B_Master_mc.gotoCPage12_btn.addEventListener(MouseEvent.MOUSE_DOWN, gotoBPage12);
    B_Master_mc.endB_btn.addEventListener(MouseEvent.MOUSE_DOWN, gotoBHome);
    function gotoAPage02(e:MouseEvent):void{
         A_Master_mc.gotoAndStop(2);
    function gotoCPage02(e:MouseEvent):void{
         C_Master_mc.gotoAndStop(2);
    function gotoBPage02(e:MouseEvent):void{
         B_Master_mc.nextFrame();
    function gotoBPage03(e:MouseEvent):void{
         B_Master_mc.nextFrame();
    function gotoBPage04(e:MouseEvent):void{
         B_Master_mc.nextFrame();
    function gotoBPage05(e:MouseEvent):void{
         B_Master_mc.nextFrame();
    function gotoBPage06(e:MouseEvent):void{
         B_Master_mc.nextFrame();
    function gotoBPage07(e:MouseEvent):void{
         B_Master_mc.nextFrame();
    function gotoBPage08(e:MouseEvent):void{
         B_Master_mc.nextFrame();
    function gotoBPage09(e:MouseEvent):void{
         B_Master_mc.nextFrame();
    function gotoBPage10(e:MouseEvent):void{
         B_Master_mc.nextFrame();
    function gotoBPage11(e:MouseEvent):void{
         B_Master_mc.nextFrame();
    function gotoBPage12(e:MouseEvent):void{
         B_Master_mc.nextFrame();
    function gotoBHome(e:MouseEvent):void{
         gotoAndStop(2);
    //C ACTIONS
    C_Master_mc.gotoCPage02_btn.addEventListener(MouseEvent.MOUSE_DOWN, gotoAPage02);
    C_Master_mc.gotoBPage02_btn.addEventListener(MouseEvent.MOUSE_DOWN, gotoBPage02);
    C_Master_mc.gotoCPage02_btn.addEventListener(MouseEvent.MOUSE_DOWN, gotoCPage02);
    C_Master_mc.gotoCPage03_btn.addEventListener(MouseEvent.MOUSE_DOWN, gotoCPage03);
    C_Master_mc.gotoCPage04_btn.addEventListener(MouseEvent.MOUSE_DOWN, gotoCPage04);
    C_Master_mc.gotoCPage05_btn.addEventListener(MouseEvent.MOUSE_DOWN, gotoCPage05);
    C_Master_mc.gotoCPage06_btn.addEventListener(MouseEvent.MOUSE_DOWN, gotoCPage06);
    C_Master_mc.gotoCPage07_btn.addEventListener(MouseEvent.MOUSE_DOWN, gotoCPage07);
    C_Master_mc.gotoCPage08_btn.addEventListener(MouseEvent.MOUSE_DOWN, gotoCPage08);
    C_Master_mc.gotoCPage09_btn.addEventListener(MouseEvent.MOUSE_DOWN, gotoCPage09);
    C_Master_mc.gotoCPage10_btn.addEventListener(MouseEvent.MOUSE_DOWN, gotoCPage10);
    C_Master_mc.gotoCPage11_btn.addEventListener(MouseEvent.MOUSE_DOWN, gotoCPage11);
    C_Master_mc.gotoCPage12_btn.addEventListener(MouseEvent.MOUSE_DOWN, gotoCPage12);
    C_Master_mc.gotoCPage13_btn.addEventListener(MouseEvent.MOUSE_DOWN, gotoCPage13);
    C_Master_mc.endC_btn.addEventListener(MouseEvent.MOUSE_DOWN, gotoCHome);
    function gotoAPage02(e:MouseEvent):void{
         A_Master_mc.gotoAndStop(2);
    function gotoBPage02(e:MouseEvent):void{
         B_Master_mc.gotoAndStop(2);
    function gotoCPage02(e:MouseEvent):void{
         C_Master_mc.nextFrame();
    function gotoCPage03(e:MouseEvent):void{
         C_Master_mc.nextFrame();
    function gotoCPage04(e:MouseEvent):void{
         C_Master_mc.nextFrame();
    function gotoCPage05(e:MouseEvent):void{
         C_Master_mc.nextFrame();
    function gotoCPage06(e:MouseEvent):void{
         C_Master_mc.nextFrame();
    function gotoCPage07(e:MouseEvent):void{
         C_Master_mc.nextFrame();
    function gotoCPage08(e:MouseEvent):void{
         C_Master_mc.nextFrame();
    function gotoCPage09(e:MouseEvent):void{
         C_Master_mc.nextFrame();
    function gotoCPage10(e:MouseEvent):void{
         C_Master_mc.nextFrame();
    function gotoCPage11(e:MouseEvent):void{
         C_Master_mc.nextFrame();
    function gotoCPage12(e:MouseEvent):void{
         C_Master_mc.nextFrame();
    function gotoCPage13(e:MouseEvent):void{
         C_Master_mc.nextFrame();
    function gotoCHome(e:MouseEvent):void{
         gotoAndStop(3);
    Yes you can tell I'm inexperienced kglad but I'm learning more periodically. 

  • TempInit, Line 2, Column 14     1086: Syntax error: expecting semicolon before minus.

    Hey! First time posting here, I am a student taking classes on flash. I use Flash CC and obviously AS3. I've got a project I am working on, and have encountered a very frustrating problem. I have emailed my teacher but I thought I would ask around the web as well.
    I get a compiler error saying:
    tempInit, Line 2, Column 14
    1086: Syntax error: expecting semicolon before minus.
    I have tried commenting out the entire script, and I still get the same error. The weird thing is there is nothing on line 2, column 14. Line two simply reads:
    stop();
    I've also considered that I had some symbols named after keywords or with illegal characters that could somehow be causing this issue. It turns out I did, so I changed all suspected items to more appropriate names. Yet even after I did this, the error persists. I cannot find any other explanation as to why this error occurs at this point, hence why I am turning to the internet.
    A notable factor here is that I have imported items from illustrator cs5, some of which had illustrator symbols included. These were the culprits with the first issue of illegal and keyword names; examples: "Mountain1-2" and "New Symbol"
    Many thanks,
    Lee
    I'll paste my code here:
    import flash.events.MouseEvent;
    stop();
    var Htraesea_mc:Htraesea = new Htraesea();
    /*Aisa*/
    var TheEverlands_btn:TheEverlands = new TheEverlands();
    var everlandsdesc_mc:everlandsdesc = new everlandsdesc();
    var TheClaruslands_btn:TheClaruslands = new TheClaruslands();
    var claurslandsdesc_mc:claurslandsdesc = new claurslandsdesc();
    var TheDwarvallisLands_btn:TheDwarvallisLands = new TheDwarvallisLands();
    var dwarvallisdesc_mc:dwarvallisdesc = new dwarvallisdesc();
    var TheGreyLands_btn:TheGreyLands = new TheGreyLands();
    var greylandsdesc_mc:greylandsdesc = new greylandsdesc();
    var TheLandsofGineder_btn:TheLandsofGineder = new TheLandsofGineder();
    var TheLandsofHumara_btn:TheLandsofHumara = new TheLandsofHumara();
    var humaradesc_mc:humaradesc = new humaradesc();
    var TheLandsofJurgious_btn:TheLandsofJurgious = new TheLandsofJurgious();
    var TheLandsofMiddterrus_btn:TheLandsofMiddterrus = new TheLandsofMiddterrus();
    var TheLandsofOtrannas_btn:TheLandsofOtrannas = new TheLandsofOtrannas();
    var TheLandsofWeshan_btn:TheLandsofWeshan = new TheLandsofWeshan();
    var TheLowerAltiorlands_btn:TheLowerAltiorlands = new TheLowerAltiorlands();
    var TheMiddaltiorlands_btn:TheMiddaltiorlands = new TheMiddaltiorlands();
    var TheStarkLands_btn:TheStarkLands = new TheStarkLands();
    var starklandsdesc_mc:starklandsdesc = new starklandsdesc();
    var TheUnderlands_btn:TheUnderlands = new TheUnderlands();
    var TheUpperAltiorlands_btn:TheUpperAltiorlands = new TheUpperAltiorlands();
    var TheViridilands_btn:TheViridilands = new TheViridilands();
    var TheWestlands_btn:TheWestlands = new TheWestlands();
    var westlandsdesc_mc:westlandsdesc = new westlandsdesc();
    var TheBroadlands_btn:TheBroadlands = new TheBroadlands();
    /*Acierma*/
    var TheBleaklands_btn:TheBleaklands = new TheBleaklands();
    var bleaklandsdesc_mc:bleaklandsdesc = new bleaklandsdesc();
    var TheConvullands_btn:TheConvullands = new TheConvullands();
    var TheInfractlands_btn:TheInfractlands = new TheInfractlands();
    var infractdesc_mc:infractdesc = new infractdesc();
    var TheLandsofFragmenus_btn:TheLandsofFragmenus = new TheLandsofFragmenus();
    var fragmenusdesc_mc:fragmenusdesc = new fragmenusdesc();
    var TheLandsofJunosto_btn:TheLandsofJunosto = new TheLandsofJunosto();
    var junostodesc_mc:junostodesc = new junostodesc();
    var TheLandsofMusttrupis_btn:TheLandsofMusttrupis = new TheLandsofMusttrupis();
    var TheLandsofRelinas_btn:TheLandsofRelinas = new TheLandsofRelinas();
    var TheLandsofSundara_btn:TheLandsofSundara = new TheLandsofSundara();
    var sundaradesc_mc:sundaradesc = new sundaradesc();
    var TheLaniatosLands_btn:TheLaniatosLands = new TheLaniatosLands();
    var TheRiftLands_btn:TheRiftLands = new TheRiftLands();
    var riftlandsdesc_mc:riftlandsdesc = new riftlandsdesc();
    var TheSardustLands_btn:TheSardustLands = new TheSardustLands();
    var TheSypelands_btn:TheSypelands = new TheSypelands();
    var sypelandsdesc_mc:sypelandsdesc = new sypelandsdesc();
    var TheTruntusLands_btn:TheTruntusLands = new TheTruntusLands();
    var TheUmorousLands_btn:TheUmorousLands = new TheUmorousLands();
    var TheVulnerosLands_btn:TheVulnerosLands = new TheVulnerosLands();
    /*Oceania*/
    var Unusra_btn:Unusra = new Unusra();
    var unusradesc_mc:unusradesc = new unusradesc();
    var Risura_btn:Risura = new Risura();
    var Jusurua_btn:Jusurua = new Jusurua();
    var Desura_btn:Desura = new Desura();
    var FrostPeakIsland_btn:FrostPeakIsland = new FrostPeakIsland();
    var frostpeakislanddesc_mc:frostpeakislanddesc = new frostpeakislanddesc();
    var Cornuia_btn:Cornuia = new Cornuia();
    var cornuiadesc_mc:cornuiadesc = new cornuiadesc();
    var Caligan_btn:Caligan = new Caligan();
    var Acitra_btn:Acitra = new Acitra();
    var acitradesc_mc:acitradesc = new acitradesc();
    Htraesea_mc.x = 0;
    Htraesea_mc.y = 0;
    /*Aisa*/
    TheEverlands_btn.x = 1088.60;
    TheEverlands_btn.y = 405.80;
    TheClaruslands_btn.x = 926.40;
    TheClaruslands_btn.y = 395.75;
    TheDwarvallisLands_btn.x = 593.05;
    TheDwarvallisLands_btn.y = 468.00;
    TheGreyLands_btn.x = 895.15;
    TheGreyLands_btn.y = 448.95;
    TheLandsofGineder_btn.x = 593.05;
    TheLandsofGineder_btn.y = 369.7;
    TheLandsofHumara_btn.x = 808.25;
    TheLandsofHumara_btn.y = 570.70;
    TheLandsofJurgious_btn.x = 542.30;
    TheLandsofJurgious_btn.y = 577.25;
    TheLandsofMiddterrus_btn.x = 686.95;
    TheLandsofMiddterrus_btn.y = 367.20;
    TheLandsofOtrannas_btn.x = 829.30;
    TheLandsofOtrannas_btn.y = 330.05;
    TheLandsofWeshan_btn.x = 739.75;
    TheLandsofWeshan_btn.y = 264.15;
    TheLowerAltiorlands_btn.x = 839.05;
    TheLowerAltiorlands_btn.y = 251.95;
    TheMiddaltiorlands_btn.x = 815.65;
    TheMiddaltiorlands_btn.y = 114.65;
    TheStarkLands_btn.x = 1055.25;
    TheStarkLands_btn.y = 501.05;
    TheUnderlands_btn.x = 593.05;
    TheUnderlands_btn.y = 699.80;
    TheUpperAltiorlands_btn.x = 950.10;
    TheUpperAltiorlands_btn.y = 114.65;
    TheViridilands_btn.x = 855.55;
    TheViridilands_btn.y = 652.30;
    TheWestlands_btn.x = 665.65;
    TheWestlands_btn.y = 227.35;
    TheBroadlands_btn.x = 795.3;
    TheBroadlands_btn.y = 414.5;
    /*Acierma*/
    TheBleaklands_btn.x = 297.95;
    TheBleaklands_btn.y = 429.45;
    TheConvullands_btn.x = 307.65;
    TheConvullands_btn.y = 209.6;
    TheInfractlands_btn.x = 178.4;
    TheInfractlands_btn.y = 218.05;
    TheLandsofFragmenus_btn. x = 162.40;
    TheLandsofFragmenus_btn.y = 376.45;
    TheLandsofJunosto_btn. x = 232.4;
    TheLandsofJunosto_btn.y = 762.20;
    TheLandsofMusttrupis_btn. x = 138.05;
    TheLandsofMusttrupis_btn.y = 524.45;
    TheLandsofRelinas_btn. x = 134.4;
    TheLandsofRelinas_btn.y = 472.45;
    TheLandsofSundara_btn.x = 178.4;
    TheLandsofSundara_btn.y = 588.50;
    TheLaniatosLands_btn.x = 284.15;
    TheLaniatosLands_btn.y = 316.80;
    TheRiftLands_btn.x = 272.1;
    TheRiftLands_btn.y = 536.15;
    TheSardustLands_btn.x=168.05;
    TheSardustLands_btn.y = 670.50;
    TheSypelands_btn.x = 261.4;
    TheSypelands_btn.y = 387.25;
    TheTruntusLands_btn.x = 380.1;
    TheTruntusLands_btn.y = 578.50;
    TheUmorousLands_btn.x = 316.45;
    TheUmorousLands_btn.y = 650.15;
    TheVulnerosLands_btn.x = 140.05;
    TheVulnerosLands_btn.y = 298.05;
    /*Oceania*/
    Acitra_btn.x = 422.60;
    Acitra_btn.y = 1.10;
    Caligan_btn.x = 18.15;
    Caligan_btn.y = 829.80;
    Cornuia_btn.x = 450.45;
    Cornuia_btn.y =832.20;
    FrostPeakIsland_btn.x = 898.45;
    FrostPeakIsland_btn.y = 79.50;
    Desura_btn.x = 959.35;
    Desura_btn.y = 835.55;
    Jusurua_btn.x = 966.60;
    Jusurua_btn.y = 822.15;
    Risura_btn.x = 1041.85;
    Risura_btn.y = 843.05;
    Unusra_btn.x = 715.95;
    Unusra_btn.y = 794.95;
    mainscroll_btn.x = 572.10;
    mainscroll_btn.y = 1012.25;
    addChild(Htraesea_mc);
    /*Aisa*/
    addChild(TheLandsofJurgious_btn);
    addChild(TheUnderlands_btn);
    addChild(TheLandsofMiddterrus_btn);
    addChild(TheDwarvallisLands_btn);
    addChild(TheLandsofGineder_btn);
    addChild(TheLandsofHumara_btn);
    addChild(TheViridilands_btn);
    addChild(TheBroadlands_btn);
    addChild(TheGreyLands_btn);
    addChild(TheClaruslands_btn);
    addChild(TheWestlands_btn);
    addChild(TheLandsofOtrannas_btn);
    addChild(TheStarkLands_btn);
    addChild(TheEverlands_btn);
    addChild(TheMiddaltiorlands_btn);
    addChild(TheUpperAltiorlands_btn);
    addChild(TheLowerAltiorlands_btn);
    addChild(TheLandsofWeshan_btn);
    /*Acierma*/
    addChild(TheInfractlands_btn);
    addChild(TheVulnerosLands_btn);
    addChild(TheLandsofFragmenus_btn);
    addChild(TheLandsofRelinas_btn);
    addChild(TheLandsofMusttrupis_btn);
    addChild(TheConvullands_btn);
    addChild(TheLaniatosLands_btn);
    addChild(TheSypelands_btn);
    addChild(TheBleaklands_btn);
    addChild(TheRiftLands_btn);
    addChild(TheLandsofSundara_btn);
    addChild(TheTruntusLands_btn);
    addChild(TheUmorousLands_btn);
    addChild(TheSardustLands_btn);
    addChild(TheLandsofJunosto_btn);
    /*Oceania*/
    addChild(Acitra_btn);
    addChild(Caligan_btn);
    addChild(Cornuia_btn);
    addChild(FrostPeakIsland_btn);
    addChild(Desura_btn);
    addChild(Jusurua_btn);
    addChild(Risura_btn);
    addChild(Unusra_btn);
    TheEverlands_btn.addEventListener(MouseEvent.CLICK,goeverlands);
    function goeverlands(evt:MouseEvent):void {
              everlandsdesc_mc.x = 309.9;
              everlandsdesc_mc.y = 554.95;
              addChild(everlandsdesc_mc);
    everlandsdesc_mc.close_btn.addEventListener(MouseEvent.CLICK, closeme);
    function closeme(evt:MouseEvent):void {
              removeChild(everlandsdesc_mc);
    TheBleaklands_btn.addEventListener(MouseEvent.CLICK,gobleaklands);
    function gobleaklands(evt:MouseEvent):void {
              bleaklandsdesc_mc.x = 309.9;
              bleaklandsdesc_mc.y = 554.95;
              addChild(bleaklandsdesc_mc);
    bleaklandsdesc_mc.close_btn.addEventListener(MouseEvent.CLICK, closeme1);
    function closeme1(evt:MouseEvent):void {
              removeChild(bleaklandsdesc_mc);
    Acitra_btn.addEventListener(MouseEvent.CLICK,goacitra);
    function goacitra(evt:MouseEvent):void {
              acitradesc_mc.x = 309.9;
              acitradesc_mc.y = 554.95;
              addChild(acitradesc_mc);
    acitradesc_mc.close_btn.addEventListener(MouseEvent.CLICK, closeme2);
    function closeme2(evt:MouseEvent):void {
              removeChild(acitradesc_mc);
    TheClaruslands_btn.addEventListener(MouseEvent.CLICK, goclaruslands);
    function goclaruslands(evt:MouseEvent):void {
              claurslandsdesc_mc.x = 309.9;
              claurslandsdesc_mc.y = 554.95;
              addChild(claurslandsdesc_mc);
    claurslandsdesc_mc.close_btn.addEventListener(MouseEvent.CLICK, closeme3);
    function closeme3(evt:MouseEvent):void {
              removeChild(claurslandsdesc_mc);
    Cornuia_btn.addEventListener(MouseEvent.CLICK,gocornuia);
    function gocornuia(evt:MouseEvent):void {
              cornuiadesc_mc.x = 309.9;
              cornuiadesc_mc.y = 554.95;
              addChild(cornuiadesc_mc);
    cornuiadesc_mc.close_btn.addEventListener(MouseEvent.CLICK, closeme4);
    function closeme4(evt:MouseEvent):void {
              removeChild(cornuiadesc_mc);
    TheDwarvallisLands_btn.addEventListener(MouseEvent.CLICK,godwarvallis);
    function godwarvallis(evt:MouseEvent):void {
              dwarvallisdesc_mc.x = 309.9;
              dwarvallisdesc_mc.y = 554.95;
              addChild(dwarvallisdesc_mc);
    dwarvallisdesc_mc.close_btn.addEventListener(MouseEvent.CLICK, closeme5);
    function closeme5(evt:MouseEvent):void {
              removeChild(dwarvallisdesc_mc);
    TheLandsofFragmenus_btn.addEventListener(MouseEvent.CLICK,gofragmenus);
    function gofragmenus(evt:MouseEvent):void {
              fragmenusdesc_mc.x = 309.9;
              fragmenusdesc_mc.y = 554.95;
              addChild(fragmenusdesc_mc);
    fragmenusdesc_mc.close_btn.addEventListener(MouseEvent.CLICK, closeme6);
    function closeme6(evt:MouseEvent):void {
              removeChild(fragmenusdesc_mc);
    FrostPeakIsland_btn.addEventListener(MouseEvent.CLICK, gofrostpeakisland);
    function gofrostpeakisland(evt:MouseEvent):void {
              frostpeakislanddesc_mc.x = 309.9;
              frostpeakislanddesc_mc.y = 554.95;
              addChild(frostpeakislanddesc_mc);
    frostpeakislanddesc_mc.close_btn.addEventListener(MouseEvent.CLICK, closeme7);
    function closeme7(evt:MouseEvent):void {
              removeChild(frostpeakislanddesc_mc);
    TheLandsofHumara_btn.addEventListener(MouseEvent.CLICK,gohumara);
    function gohumara(evt:MouseEvent):void {
              humaradesc_mc.x = 309.9;
              humaradesc_mc.y = 554.95;
              addChild(humaradesc_mc);
    humaradesc_mc.close_btn.addEventListener(MouseEvent.CLICK, closeme8);
    function closeme8(evt:MouseEvent):void {
              removeChild(humaradesc_mc);
    TheInfractlands_btn.addEventListener(MouseEvent.CLICK,goinfract);
    function goinfract(evt:MouseEvent):void {
              infractdesc_mc.x = 309.9;
              infractdesc_mc.y = 554.95;
              addChild(infractdesc_mc);
    infractdesc_mc.close_btn.addEventListener(MouseEvent.CLICK, closeme9);
    function closeme9(evt:MouseEvent):void {
              removeChild(infractdesc_mc);
    TheLandsofJunosto_btn.addEventListener(MouseEvent.CLICK,gojunosto);
    function gojunosto(evt:MouseEvent):void {
              junostodesc_mc.x = 309.9;
              junostodesc_mc.y = 554.95;
              addChild(junostodesc_mc);
    junostodesc_mc.close_btn.addEventListener(MouseEvent.CLICK, closeme10);
    function closeme10(evt:MouseEvent):void {
              removeChild(junostodesc_mc);
    TheRiftLands_btn.addEventListener(MouseEvent.CLICK, goriftlands);
    function goriftlands(evt:MouseEvent):void {
              riftlandsdesc_mc.x = 309.9;
              riftlandsdesc_mc.y = 554.95;
              addChild(riftlandsdesc_mc);
    riftlandsdesc_mc.close_btn.addEventListener(MouseEvent.CLICK, closeme11);
    function closeme11(evt:MouseEvent):void {
              removeChild(riftlandsdesc_mc);
    TheStarkLands_btn.addEventListener(MouseEvent.CLICK,gostarklands);
    function gostarklands(evt:MouseEvent):void {
              starklandsdesc_mc.x = 309.9;
              starklandsdesc_mc.y = 554.95;
              addChild(starklandsdesc_mc);
    starklandsdesc_mc.close_btn.addEventListener(MouseEvent.CLICK, closeme12);
    function closeme12(evt:MouseEvent):void {
              removeChild(starklandsdesc_mc);
    TheLandsofSundara_btn.addEventListener(MouseEvent.CLICK,gosundara);
    function gosundara(evt:MouseEvent):void {
              sundaradesc_mc.x = 309.9;
              sundaradesc_mc.y = 554.95;
              addChild(sundaradesc_mc);
    sundaradesc_mc.close_btn.addEventListener(MouseEvent.CLICK, closeme13);
    function closeme13(evt:MouseEvent):void {
              removeChild(sundaradesc_mc);
    TheSypelands_btn.addEventListener(MouseEvent.CLICK,gosypelands);
    function gosypelands(evt:MouseEvent):void {
              sypelandsdesc_mc.x = 309.9;
              sypelandsdesc_mc.y = 554.95;
              addChild(sypelandsdesc_mc);
    sypelandsdesc_mc.close_btn.addEventListener(MouseEvent.CLICK, closeme14);
    function closeme14(evt:MouseEvent):void {
              removeChild(sypelandsdesc_mc);
    Unusra_btn.addEventListener(MouseEvent.CLICK, gounusra);
    function gounusra(evt:MouseEvent):void {
              unusradesc_mc.x = 309.9;
              unusradesc_mc.y = 554.95;
              addChild(unusradesc_mc);
    unusradesc_mc.close_btn.addEventListener(MouseEvent.CLICK, closeme15);
    function closeme15(evt:MouseEvent):void {
              removeChild(unusradesc_mc);
    TheWestlands_btn.addEventListener(MouseEvent.CLICK, gowestlands);
    function gowestlands(evt:MouseEvent):void {
              westlandsdesc_mc.x = 309.9;
              westlandsdesc_mc.y = 554.95;
              addChild(westlandsdesc_mc);
    westlandsdesc_mc.close_btn.addEventListener(MouseEvent.CLICK, closeme16);
    function closeme16(evt:MouseEvent):void {
              removeChild(westlandsdesc_mc);
    TheGreyLands_btn.addEventListener(MouseEvent.CLICK, gogreylands);
    function gogreylands(evt:MouseEvent):void {
              greylandsdesc_mc.x = 309.9;
              greylandsdesc_mc.y = 554.95;
              addChild(greylandsdesc_mc);
    greylandsdesc_mc.close_btn.addEventListener(MouseEvent.CLICK, closeme17);
    function closeme17(evt:MouseEvent):void {
              removeChild(greylandsdesc_mc);

    it appears i may have a corrupt image as a symbol in my library. I will have to replace each one manually one by one to see if this is indeed the problem. I am prepearing to leave out of town for the weekend, but I will update this as soon as a figure it out.
    Thanks again

  • Buttons, Html 1086: Syntax error: expecting semicolon before 9.

    I am building a super simple website in flash. The main set of buttons for navigation work fine. But when I add the Save, Print, Email and Facebook link buttons I get a looped video with no buttons and these errors:
    TempInit 5    1086: Syntax error: expecting semicolon before 9.
    TempInit 6    1086: Syntax error: expecting semicolon before 8.
    TempInit 9    1086: Syntax error: expecting semicolon before 7.
    This is the actionscript:
    stop();
    Home_But.addEventListener(MouseEvent.CLICK, goHome);
    function goHome (event:MouseEvent):void{
                        gotoAndStop(1);}
    Menu_But.addEventListener(MouseEvent.CLICK, goMenu);
    function goMenu (event:MouseEvent):void{
                        gotoAndStop(2);}
    Bio_But.addEventListener(MouseEvent.CLICK, goBio);
    function goBio (event:MouseEvent):void{
                        gotoAndStop(3);}
    Contact_But.addEventListener(MouseEvent.CLICK, goContact);
    function goContact (event:MouseEvent):void{
                        gotoAndStop(4);}
    Symbol5.onRelease = function() {
    getURL('http://www.facebook.com/hungryhippyalpena/');
    Symbol6.onRelease = function() {
    getURL('http://www.facebook.com/hungryhippyalpena/');
    Symbol9.onRelease = function() {
    getURL('http://www.facebook.com/hungryhippyalpena/');
    Symbol8.onRelease = function() {
    getURL('http://www.facebook.com/hungryhippyalpena/');
    Symbol7.onRelease = function() {
    getURL('http://www.facebook.com/hungryhippyalpena/');
    Any ideas?  Does my problem stem from the layout of my timeline and the extra buttons falling on random frames?

    Based on the errors, I'm guessing that your movie is expecting AS3. So throw away all of this:
    Symbol5.onRelease = function() {
    getURL('http://www.facebook.com/hungryhippyalpena/');
    Symbol6.onRelease = function() {
    getURL('http://www.facebook.com/hungryhippyalpena/');
    Symbol9.onRelease = function() {
    getURL('http://www.facebook.com/hungryhippyalpena/');
    Symbol8.onRelease = function() {
    getURL('http://www.facebook.com/hungryhippyalpena/');
    Symbol7.onRelease = function() {
    getURL('http://www.facebook.com/hungryhippyalpena/');
    Now, does your movie work when you do that? Do you get any other errors?

  • 1086: Syntax error: expecting semicolon before rightparen. ?

    Hi there i'm currently working on my year 13 ICT coursework using Adobe flash CS5.5 and while correcting an error while implementing a third party found image gallery another one appeared, which I am completely unable to fix.
    At the moment I would like the image gallery to be implemented in Scene 3 of my product, but it seems when opening to view the product it just spams through all the scenes and I am confused on why this is the case?
    If anyone can help with this then it would be much appreciated.
    Here is the code line which has the Syntax error, if any other thing are needed please just ask.
    lastBildeHL.onLoadProgress = gotoAndPlay("Scene 1")); numBytesLoaded:Number, numBytesTotal:Number):void
    Thanks

    Hi there just added that line and when doing so I then got these errors:
    Scene 3, Layer 'actions', Frame 5, Line 131
    1084: Syntax error: expecting rightparen before colon.
    Scene 3, Layer 'actions', Frame 5, Line 131
    1078: Label must be a simple identifier.
    Scene 3, Layer 'actions', Frame 5, Line 132
    1084: Syntax error: expecting identifier before var.
    Scene 3, Layer 'actions', Frame 5, Line 132
    1078: Label must be a simple identifier.
    Here are the actions:
    lastBildeHL.onLoadProgress = gotoAndPlay("Scene 1", numBytesLoaded:Number, numBytesTotal:Number):void
        var numPercentLoaded:Number = numBytesLoaded / numBytesTotal * 100;
    Any help would be good
    Thanks,
    Joe

  • Location tempInit (what is it?) Syntax errors 1084 & 1086 in lines that don't exist.

    I am getting the following errors:
    tempInit, Line 280
    1084: Syntax error: expecting identifier before true.
    tempInit, Line 280
    1086: Syntax error: expecting semicolon before dot.
    tempInit, Line 376
    1084: Syntax error: expecting identifier before false.
    tempInit, Line 376
    1086: Syntax error: expecting semicolon before dot.
    I don't know where tempInit is in the location and I especially don't know where lines 280 or 376 are because I only have 111 lines of actionscript!  I don't know where to start.
    Any help would be appreciated.

    Pardon my intrusion.  I thought I'd throw this in since oddly enough it just showed up in the General forum today about an hour before you posted... it might have some info to help (or not).
    http://forums.adobe.com/thread/1083272?tstart=0

  • Easy to fix for you, not for me. 2 small syntax errors.

    My code is:
    private var soundsVector:Vector.[sound1, sound2, sound3, sound4, sound5, sound6, sound7]
    The error message says:
    1086: syntax error: Expecting semicolon before rightbracket
    1084: syntax error: Expecting identifier before leftbracket.
    Can anyone help me by showing what changes i need to make? Thanks.

    How about this:
    private var soundsVector2:Vector[sound1, sound2, sound3];
    Other sample code:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
         creationComplete="init()">
    <mx:Script>
        <![CDATA[
    private var soundsVector1:Vector;
    private var soundsVector2:Vector[sound1, sound2, sound3];
    private var sound1:Sound = new Sound();
    private var sound2:Sound = new Sound();
    private var sound3:Sound = new Sound();
    private function init():void{
         soundsVector1 = new Vector([sound1, sound2, sound3]);
        ]]>
    </mx:Script>
    </mx:Application>

  • AS3 syntax errors - need assistance

    I am trying to code for a flash MP3 player in AS3 and My code
    is producing the following errors in the output window.
    the errors are:
    1084: Syntax error: expecting rightparen before _.
    1086: Syntax error: expecting semicolon before rightparen.
    and the code is attached. Can anyone assist with resolving
    these syntax issues?

    You cannot split a line of code using the underscore.
    Simply press return and continue the code on the next line.
    var musicPiece:Sound = new Sound(new URLRequest
    http://blog.0tutor.com/JeffWofford_Trouble.mp3"));

  • [Microsoft][ODBC SQL Server Driver]COUNT field incorrect or syntax error

    Hi , i am trying to execute siple SP using JDBC-ODBC Bridge Driver
    Here my code :
    String dsn="Tritek1";
    String user="sa";
    String password="imcindia";
    Connection con1 = null;
    CallableStatement cstmt = null;
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver").newInstance();
    con1=DriverManager.getConnection("jdbc:odbc:"+dsn,user,password);
    Statement st=con1.createStatement();
    st.execute("use dm0102d");
    st.execute("setuser 'dm01012'");
    cstmt = conObject.connection(" ?=Call dms_ex_get_folder_info(?,?,?)");
    cstmt.setString(1,folderType);
    cstmt.registerOutParameter(2,java.sql.Types.VARCHAR);
    cstmt.registerOutParameter(3,java.sql.Types.VARCHAR);     bFlag=cstmt.execute();
    Here my SP :
         Procedure Name          :     dms_ex_get_folder_info
         Input Parameter(s)          :     a. folder_type char(20)
         Return Parameter(s)     :     a. Recordset consist edit_mask and folder_type_code from folder_reference table / error
         Procedure Type          :     select
         Programmer          :     Prashanth Kumar M.
         Creation Date          :     12/20/2005 (20th Dec, 2005)
         Tables Accessed          :     folder_reference
         Revised               :
              Programmer:     Date:     Description:
              Prashanth Kumar M.      12/21/2005 Modified the script as per the approved program specifications.
         Test Query:
              Declare @edit_mask char(15)
              Declare @folder_type_code char(2)
              execute dms_ex_get_folder_info 'Policy Folder',@edit_mask output,@folder_type_code output
              Print 'Edit Mask : ' + @edit_mask
              Print 'Folder Type Code : ' + @folder_type_code
    CREATE PROCEDURE dms_ex_get_folder_info
         @folder_type char(20),
         @edit_mask char(15) output,
         @folder_type_code char(2) output
    AS
         BEGIN
              -- Check if the record for @folder_type exists or not.
              BEGIN
                   -- return the record from folder_reference
                   SELECT
                        @edit_mask= IsNull(edit_mask,''),
                        @folder_type_code = IsNull(folder_type_code,'')
                   FROM      folder_reference
                   WHERE
                        folder_decode = ltrim(rtrim(@folder_type))
                   -- return the error message
                   IF @@error <> 0
                        BEGIN
                             RAISERROR 100016 'Error in gettting the record from folder_reference table'
                             RETURN (@@error)
                        END
                   IF @edit_mask = '' AND @folder_type_code = ''
                        BEGIN
                             RAISERROR 100017 'No matching details in the folder_reference table'
                        RETURN (@@error)
                        END
              END
         END
    GO
    Here My Exception:
    java.sql.SQLException: [Microsoft][ODBC SQL Server Driver]COUNT field incorrect or syntax error
         at sun.jdbc.odbc.JdbcOdbc.createSQLException(Unknown Source)
         at sun.jdbc.odbc.JdbcOdbc.standardError(Unknown Source)
         at sun.jdbc.odbc.JdbcOdbc.SQLExecute(Unknown Source)
         at sun.jdbc.odbc.JdbcOdbcPreparedStatement.execute(Unknown Source)
         at com.nyl.dms.bl.Folder.createFolder(Folder.java:121)
         at com.nyl.dms.bl.Folder.main(Folder.java:223)
    Any one can help me to overcome this problem . Thanks in advance.
    venkat

    Here's from one of those 10s of books.
    Quoted from JDBC 3.0 by Bernard Van Haecke:
    Stored procedures can return multiple result types because they can be composed of SQL statements that return diverse result types: resultsets and update counts (this includes special error codes).
    Now this doesn't sound very satisfactory. So I use Sybase since I don't have any other database at the moment, and write a simple stored procedure.
    CREATE proc testproc AS
    BEGIN
    -- My return code
    return 7
    END
    goThen a sample patchy buggy code to play around:
    import java.sql.*;
    public class ProcTesting {
        public static void main(String[] args) {
            String connUrl          = "jdbc:sybase:Tds:myserver:5150/dbinst";
            String userName         = "username";
            String password         = "password";
            Connection con          = null;
            CallableStatement stmt  = null;
            ResultSet rs            = null;
            String sql = "{? = call testproc}";
            try {
                Class.forName("com.sybase.jdbc2.jdbc.SybDriver").newInstance();
                con     = DriverManager.getConnection(connUrl, userName, password);
                stmt    = con.prepareCall(sql);
                stmt.registerOutParameter(1, Types.INTEGER);
                stmt.execute();
                System.out.println(stmt.getInt(1));
            } catch(Exception e) {
                e.printStackTrace();
            } finally {
                closeAll(con, stmt);
        public static void closeAll(Connection con, Statement stmt) {
            try {
                con.close();
            } catch(Exception e) {  }
            try {
                stmt.close();
            } catch(Exception e) {  }
    }Followed by:
    javac ProcTesting.java
    java -cp "%CLASSPATH%;C:\jarutils\jconn2.jar" ProcTesting
    Output:
    7
    Didn't you know this could be done?
    Happy new year, grandpa!

  • COUNT field incorrect or syntax error

    hi,
    PreparedStatement stmt = con.prepareStatement("Insert into uQuestions values(?,?)");
    stmt.setInt(1,2);
    //stmt.setString(2,s.trim());
    Reader rd=new StringReader(s.trim());
    stmt.setCharacterStream(2, rd );
    System.out.println( stmt.executeUpdate() );
    stmt.close();Result
    java.sql.SQLException: [Microsoft][ODBC SQL Server Driver]COUNT field incorrect or syntax error
    In place of setCharacterStream If I use stmt.setString(2,s.trim()) then it works fine.
    Whats the problem there....

    I am using Java 6 already.That's what I said in my last post.
    setClob() and setCharacterStream() are used for
    NVARCHAR and NTEXT tyesLike I said, the API talks about using setCharacterStream for LONGVARCHAR types, are NVARCHAR and NTEXT LONGVARCHAR types?

  • COUNT field incorrect or syntax error while installing BO Xi3

    Hello
    I am trying to install Boxi3. The cms and audit dbs are all in sql database. The dbs and accounts are setup properly. However while installing, after I selected the CMS and Audit DBs, I am getting
    "Database access error. Reason [Microsoft][ODBC SQL Server Driver]COUNT field incorrect or syntax error."
    At the details the error is as below.
    Wed Jul 30 03:46:53 2008]     5220     192     trace message: loading libary succeeded
    [Wed Jul 30 03:46:53 2008]     5220     192     trace message: AuditDatabaseSubsystem::Init()
    [Wed Jul 30 03:46:53 2008]     5220     192     trace message: initializing subsystem succeeded
    [Wed Jul 30 03:46:53 2008]     5220     192     trace message: AuditDatabaseSubsystem::Connect()
    [Wed Jul 30 03:46:53 2008]     5220     192     (.\DBConnectionManager.cpp:802): trace message: DBConnectionManager - Setting total target number of connections for pool 0 to 1.
    [Wed Jul 30 03:46:53 2008]     5220     192     (.\SQLServerStatement.cpp:186): trace message: ExecDirect: SQL: SELECT * FROM APPLICATION_TYPE WHERE 0 = 1
    [Wed Jul 30 03:46:53 2008]     5220     192     (.\SQLServerStatement.cpp:186): trace message: ExecDirect: SQL: SELECT * FROM AUDIT_EVENT WHERE 0 = 1
    [Wed Jul 30 03:46:53 2008]     5220     192     (.\SQLServerStatement.cpp:186): trace message: ExecDirect: SQL: SELECT * FROM EVENT_TYPE WHERE 0 = 1
    [Wed Jul 30 03:46:53 2008]     5220     192     (.\SQLServerStatement.cpp:186): trace message: ExecDirect: SQL: SELECT * FROM SERVER_PROCESS WHERE 0 = 1
    [Wed Jul 30 03:46:53 2008]     5220     192     (.\SQLServerStatement.cpp:186): trace message: ExecDirect: SQL: SELECT * FROM AUDIT_DETAIL WHERE 0 = 1
    [Wed Jul 30 03:46:53 2008]     5220     192     (.\SQLServerStatement.cpp:186): trace message: ExecDirect: SQL: SELECT * FROM DETAIL_TYPE WHERE 0 = 1
    [Wed Jul 30 03:46:53 2008]     5220     192     trace message: AuditDatabaseSubsystem::CheckDBCredentials()
    [Wed Jul 30 03:46:53 2008]     5220     192     (.\AuditDatabaseSubsystem_impl.cpp:1197): trace message: AuditDatabaseSubsystem::CheckDBCredentialsOnTable(AUDIT_EVENT)
    [Wed Jul 30 03:46:53 2008]     5220     192     assert failure: (.\SQLServerDatabase.cpp:515). (0 : Unexpected database column type for Duration type is decimal).
    [Wed Jul 30 03:46:53 2008]     5220     192     assert failure: (.\SQLServerDatabase.cpp:515). (0 : Unexpected database column type for Event_Type_ID type is decimal).
    [Wed Jul 30 03:46:53 2008]     5220     192     assert failure: (.\SQLServerDatabase.cpp:515). (0 : Unexpected database column type for Error_Code type is decimal).
    [Wed Jul 30 03:46:53 2008]     5220     192     (.\SQLServerStatement.cpp:162): trace message: Prepare: SQL: INSERT INTO AUDIT_EVENT (Duration, Error_Code, Event_ID, Event_Type_ID, Object_CUID, Server_CUID, Start_Timestamp, User_Name) VALUES(?, ?, ?, ?, ?, ?, ?, ?)
    [Wed Jul 30 03:46:53 2008]     5220     192     assert failure: (.\SQLServerStatement.cpp:699). (0 : Unsupported SQL Server data type for binding.).
    [Wed Jul 30 03:46:53 2008]     5220     192     assert failure: (.\SQLServerStatement.cpp:699). (0 : Unsupported SQL Server data type for binding.).
    [Wed Jul 30 03:46:53 2008]     5220     192     assert failure: (.\SQLServerStatement.cpp:699). (0 : Unsupported SQL Server data type for binding.).
    [Wed Jul 30 03:46:53 2008]     5220     192     assert failure: (.\AuditDatabaseSubsystem_impl.cpp:1344). (0 : no message).
    [Wed Jul 30 03:46:53 2008]     5220     192     assert failure: (.\AuditDatabaseSubsystem_impl.cpp:1344). (0 : no message).
    [Wed Jul 30 03:46:53 2008]     5220     192     assert failure: (.\AuditDatabaseSubsystem_impl.cpp:1344). (0 : no message).
    [Wed Jul 30 03:46:53 2008]     5220     192     (.\SQLServerStatement.cpp:171): trace message: Prepared statement Execute
    [Wed Jul 30 03:46:53 2008]     5220     192     (.\SQLServerDatabase.cpp:119): trace message: SQLServer error found:  ErrorMessage([Microsoft][ODBC SQL Server Driver]COUNT field incorrect or syntax error), ErrorCode(0)
    [Wed Jul 30 03:46:53 2008]     5220     192     (.\AuditDatabaseSubsystem_impl.cpp:92): trace message: DBConnectionHolder - (AuditDB) - Caught retryable error with Code 0, Msg: [Microsoft][ODBC SQL Server Driver]COUNT field incorrect or syntax error  Number of retryable errors on this connection is 1
    [Wed Jul 30 03:46:53 2008]     5220     192     (.\dbutils.cpp:922): trace message: Caught DatabaseSubystem Error: Database access error. Reason [Microsoft][ODBC SQL Server Driver]COUNT field incorrect or syntax error.
    [Wed Jul 30 03:46:53 2008]     5220     192     trace message: AuditDatabaseSubsystem::Shutdown()
    This only happens for audit db and not for cms db. May I know what is the reason for this and how to resolve it?
    Thanks

    I am using Java 6 already.That's what I said in my last post.
    setClob() and setCharacterStream() are used for
    NVARCHAR and NTEXT tyesLike I said, the API talks about using setCharacterStream for LONGVARCHAR types, are NVARCHAR and NTEXT LONGVARCHAR types?

  • Count Distinct Over Partition Syntax Error

    Count(Distinct [field]) over (partition by [field2]) returns a syntax error at the key word distinct
    Count(all [field]) over (partition by [field2]) compiles fine
    I am writing a query to count the number of clients a sales rep has when the sales rep represents multiple companies (ad agency).  I need a count of the clients each company has and a distinct count that each rep has.  A client may be assigned to multiple companies.
    Is a distinct count supported with partitions?

    Until we wait for the full implementation of the OVER clause, you can
    try something like this:
    CREATE TABLE Foo (
    fookey INT PRIMARY KEY,
    company VARCHAR(30),
    sales_rep VARCHAR(30),
    client VARCHAR(30));
    INSERT INTO Foo VALUES(1, 'ABC Corp.', 'Joe', 'Client1');
    INSERT INTO Foo VALUES(2, 'ABC Corp.', 'Joe', 'Client2');
    INSERT INTO Foo VALUES(3, 'ABC Corp.', 'Peter', 'Client2');
    INSERT INTO Foo VALUES(4, 'DEF Corp.', 'Joe', 'Client1');
    INSERT INTO Foo VALUES(5, 'DEF Corp.', 'Joe', 'Client3');
    SELECT fookey, company, sales_rep, client,
    MAX(rk1) OVER(PARTITION BY sales_rep) AS rep_distinct_client_cnt,
    MAX(rk2) OVER(PARTITION BY company) AS company_distinct_client_cnt
    FROM (
    SELECT fookey, company, sales_rep, client,
    DENSE_RANK() OVER(PARTITION BY sales_rep ORDER BY client) As rk1,
    DENSE_RANK() OVER(PARTITION BY company ORDER BY client) As rk2
    FROM Foo) AS F;
    fookey company sales_rep client rep_distinct_client_cnt
    company_distinct_client_cnt
    1 ABC Corp. Joe Client1 3 2
    2 ABC Corp. Joe Client2 3 2
    3 ABC Corp. Peter Client2 1 2
    4 DEF Corp. Joe Client1 3 2
    5 DEF Corp. Joe Client3 3 2
    Plamen Ratchev
    http://www.SQLStudio.com

  • PreparedStatment creating Syntax Error.

    The poblem is in the first prepared statment if I enter the value straight into the statement string everying works fine. However, when I use a ? for placeholder and then supply the same sting value i would have entered in the statement string I get a sytax error.
    import java.sql.*; import javax.swing.*; import java.awt.BorderLayout; import java.awt.event.*; public class Exercise34_5 extends JFrame { private JTextField jtfInput = new JTextField(10); private JButton jbShowTable = new JButton("Show Table"); private JTextArea jta = new JTextArea(); private PreparedStatement pstmt1; private PreparedStatement pstmt2; private PreparedStatement pstmt3; public Exercise34_5() { JPanel northPanel = new JPanel(); northPanel.add(new JLabel("Table Name")); northPanel.add(jtfInput); northPanel.add(jbShowTable); add(northPanel, BorderLayout.NORTH); add(new JScrollPane(jta)); try { Class.forName("com.mysql.jdbc.Driver"); Connection connection = DriverManager.getConnection("jdbc:mysql://localhost/test" , "root", "root"); pstmt1 = connection.prepareStatement("describe ?"); pstmt2 = connection.prepareStatement("select count(*) from enrollment"); pstmt3 = connection.prepareStatement("select * from enrollment"); }catch(Exception ex) { ex.printStackTrace(); } jbShowTable.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { String table = jtfInput.getText(); try{ pstmt1.setString(1, "enrollment"); /*pstmt2.setString(1, "enrollment"); pstmt3.setString(1, "enrollment");*/ ResultSet rset1 = pstmt1.executeQuery(); ResultSet rset3 = pstmt3.executeQuery(); int count = 0; while(rset1.next()) { jta.append(rset1.getString(1) + "\t"); count++; } jta.append("\n"); System.out.println(count); while(rset3.next()) { for(int i = 1; i <= count; i++) { jta.append(rset3.getString(i) + "\t"); } jta.append("\n"); } }catch(Exception ex) { ex.printStackTrace(); } } }); } public static void main(String[] args) { Exercise34_5 frame = new Exercise34_5(); frame.setSize(400, 200); frame.setLocationRelativeTo(null); frame.setDefaultCloseOperation(EXIT_ON_CLOSE); frame.setVisible(true); } }
    java.sql.SQLException: Syntax error or access violation message from server: "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''enrollment'' at line 1"
    at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:1997)
    at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1167)
    at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1278)
    at com.mysql.jdbc.Connection.execSQL(Connection.java:2251)
    at com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:1586)
    at Exercise34_5$1.actionPerformed(Exercise34_5.java:47)

    Alyosha wrote:
    I don't understand.You can't just put a ? parameter any old place in a prepared statement. It's just just a simple string substitution. For instance, you cannot use a ? parameter for a table name or a column name.
    // wrong
    ps = conn.prepareStatement("select * from ? where ? = ?");
    ps.setString(1, tableName);
    ps.setString(2, columnName);
    ps.setString(3, columnValue);
    // right
    ps = conn.prepareStatement("select * from " + tableName = " where " + columnName + " = ?");
    ps.setString(1, columnValue);

  • AS 2.0 syntax errors

    The fla in the link contains syntax errors.
    any help?
    rd
    DOWNLOAD FLA
    HERE

    The fla is real, I would never post a link to something other
    than what I say. I have respect for the forum and the best way to
    fix would be for someone to see the fla. Below are the errors
    fixed all but this below.
    *Error** Symbol=menu back, layer=view documentary, frame=1,
    Line 1: Mouse events are permitted only for button instances
    on (release){
    I dont understand, it is a button instance!
    *

Maybe you are looking for

  • Outdated all-day calendar event notifications coming up daily on my new Z10 -how can I stop them? HELP!

    When I got my new z10, I used the Blackberry Desktop to transfer things like calendar entries, tasks, and memos from my old BB Bold to the new phone.  The memos transferred fine, although it took me awhile to locate them in the "remember" folder.  Ma

  • Change condition value in debit memo and credit memo

    Hi Experts, When I am trying to create Credit Memo/Debit memo I could able to change the condition value for which condition type the value is there in Sales Order, but where as for other condition types it is not changeable. For example for Freight

  • So I dropped my Macbook Pro. Can something be wrong with it?

    So I just dropped my Macbook Pro about three feet off of my bed. I had it charging and accidently pulled it and it fell. I had a case on it and I removed the case and it had no dents or any visible damage. I completed a diagnostic test and everything

  • Can you "deconstruct" XML form tabs from PDFs?

    OK, I'll try this here.. sorry for posting this all over but I'm near desperate to find an answer I have a pdf that was created Acrobat Designer 7.1. It uses, for lack of a better term, tabs. You click on a prticular field and the document changes to

  • Top of page dead

    since loading firefox 8.0 now all websites(including Email) restrict the use of the top of the page (example desktop/mobile and search button) on this web page not working anything below is fine