Help problem converting programm from test to live

Hi
I have been working for about four months on a website. It worked fine on the test machine so the decission was made to transfer it to the test machine. And thats where it went wrong. At first I thought it had something todo with the database connection and that the setting were simply wrong.
After some testing I found out that the database connection is working fine. There seems to be a syntax error when try to call a stored procedure. This is weird since the procedures worked fine on the test machine. Does anyone have any idea what this problem could be?
Thx Babette
This is the error:
Error uitvoeren query: nulljava.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]Line 1: Incorrect syntax near '{'.
Here is a code example for getting a category but I think the same error goes for all stored procedures
UserBean
public String getCategoryDescription(int id)
     String test = null;
     try
     CategoryBean category = new CategoryBean(con);
          category.getCategory(id);
     catch(SQLException sql)
          test = test + sql.toString();
     return test;
Category Class
* Calls stored procedure for all categories
* @return All columns for each category category
* @throws java.sql.SQLException
public ResultData getCategoryOverview() throws SQLException
     CallableStatement cs = null;
     ResultSet rs = null;
     cs = con.prepareCall( "{ call BD_ADMINISTRATOR.CATEGORY_OVERVIEW }" );
     cs.execute();
     rs = cs.getResultSet();
     ResultData queryCategory = new ResultData();
     queryCategory.processResults(rs);
     rs.close();
     cs.close();
     rs = null;
     cs = null;
     return queryCategory;
Stored procedure
CREATE PROCEDURE BD_ADMINISTRATOR.GET_CATEGORY
@ID INT
AS
SELECT * FROM PROJECT_CATEGORY WHERE CATEGORY_NO = @ID
GO
-----------------------------------------------------------------------------------------------------------------

So nou I found out that on the Live machine JDBC service pack 1 is installed. This is not installed on the testmachine could this cause a problem?
Thx babette

Similar Messages

  • Moving from TEST to LIVE server

    Dear all,
    The setup of our functional team is ready on my TEST server. Now i want to move it to LIVE server. (I am sure that my functional team will not do it again @ LIVE SERVER)So plz tell me how to move with this current setup from test server to LIVE server. Is there any document id in metalink?
    Thanks
    Sarfaraz Karim

    Thanks VENKAT,
    Oh yes clone is a part ,,, but i just want ot know is there any other option rather than clone??? can i import that data???
    Thanks

  • Please help- problems converting .mov to .avi

    I'm using QuickTime Pro to convert my .mov to .avi and when I view the .avi movie, the first couple seconds is in fast-forward mode, then a couple seconds of slow motion, then it's normal for the rest of the movie.
    To see my steps, I used this link to help me convert: http://www.divx-digest.com/articles/articlemov2avi_quicktimepropage1.html
    I'd appreciate any help on this.
    euser

    quicktime Pro will do it, get it from the apple store (its just a key, cost $30), also ffmpegX (shareware) will do it
    sometimes you can find an application that will do it by using the quicktime libraries for free, just search a site like versiontracker

  • OS 10.6 - Please help - problem restoring system from time machine!

    Hi there,
    Today I installed a little program to convert flac audio files to mp3. When I ran the program the computer froze, so I rebooted but then I could move the cursor but not click on any menus or icons on the desktop, they just wouldnt respond - so basically I couldnt use the computer. After re-booting a few times with the same result I decided to reinstall the system using time machine from an external hard drive. I reinstalled OSX, then reinstalled Snow Leopard, then reinstalled the system from a previous save from Time Machine. It said the installation was successful, but when the computer restarted a message comes up saying "You need to restart your computer. Hold down the Power button until it turns off, then press the Power button again". Ive done this about 5 times now but it always just says the same message without starting properly. WHAT DO I DO???? I really need to use my computer tomorrow so any help is hugely appreciated!!! TIA
    PS. i have done a hardware test in "loop mode" and it says everything is fine

    HiDef Jules wrote:
    Hi there,
    Today I installed a little program to convert flac audio files to mp3. When I ran the program the computer froze, so I rebooted but then I could move the cursor but not click on any menus or icons on the desktop, they just wouldnt respond - so basically I couldnt use the computer. After re-booting a few times with the same result I decided to reinstall the system using time machine from an external hard drive. I reinstalled OSX, then reinstalled Snow Leopard, then reinstalled the system from a previous save from Time Machine.
    how exactly did you reinstall the system from TM? please give details. the correct way to do it is to boot from the snow leopard DVD and use the "restore system from backup" utility in the Utilities menu. there is no need to reinstall anything prior to using that utility. the restore utility wipes your hard drive and restores it to the state it was in at the backup time.
    It said the installation was successful, but when the computer restarted a message comes up saying "You need to restart your computer. Hold down the Power button until it turns off, then press the Power button again". Ive done this about 5 times now but it always just says the same message without starting properly. WHAT DO I DO???? I really need to use my computer tomorrow so any help is hugely appreciated!!! TIA
    PS. i have done a hardware test in "loop mode" and it says everything is fine

  • Problems converting song from AAC to MP3 in iTunes

    hi,
    I have just downloaded some songs from the iTunes store and they download in the AAC format, I usually right hand click on a song and convert it to MP3 file, however I have one song "animal by neon trees" that it keeps coming up with an error but it says it is an unknown error. this is what it says
    error occured while converting the file "animal". an unknown error occurred (-3)
    has anyone else encountered this issue??
    please help
    ps. i have the latest version of itunes, i have also converted other songs today not a problem.

    Hi affilgraph,
    Yes, it can be done. First, go to iTunes preferences, choose "Advanced", click on the "Import" Tab and select "MP3 encoder" next to "Import Using". Close the window. Now select the files in questions, go to the "Advanced" menu and choose "Convert selection to MP3". However, if your files are already encoded to AAC this will not decrease the size of your library significantly AND you will lose sound quality. In addition, converting your library in one go might bring your computer to its knees risking data loss. So, I would recommend buying a bigger HD instead.
    -Petra

  • Problem converting links from Word 02 to Acrobat 7

    Hello All,
    I have this problem that is driving me nuts. I am working with Word 2002 and Acrobat 7 Pro.
    When I create internal links within the word document (terms linked to the glossary) and PDF using the PDF toolbar (change settings to include bookmarks and links, no security). The PDF only converts some of the links, and it is never consistent. My co-worker has the same problem, but her links that don't come in vary from mine (word 2003 acrobat 7).
    This doesn't happen to all documents with links, the website links work perfectly.
    Any ideas?
    thanks,
    dkelley_2

    I created the links in word, pressed the PDF Maker ("Adobe PDF" Button on toolbar), changed conversion settings: Standard, (all check but "Attach source file to PDF"), Security None, Word Tab (all checked but "Convert displayed comments to notes in the PDF"), Bookmarks were selected, clicked OK, clicked "Convert to PDF."
    If you look at my original post, I attached screenshots of the PDF Maker dialog box.
    dkelley_2

  • Please, HELP to convert code from AS2 to AS3!!!

    there is source code from paint application, thank to human who will convert this code, it's codeimportant for us.
    stop();
    var arrSloy:Array = new Array();
    //Initial
    //OnMove
    _root.onMouseMove = function() {
              if (checkPole() && onTool) {
                        Mouse.hide();
                        _root.kist._visible = true;
                        _root.eras._visible = true;
                        _root.pen._visible = true;
                        _root.line._visible = true;
              } else {
                        Mouse.show();
                        _root.kist._visible = false;
                        _root.eras._visible = false;
                        _root.pen._visible = false;
                        _root.line._visible = false;
              updateAfterEvent();
    //OnMove
    //New
    _root.panelMane.butNew.onRelease = function() {
              _root.newClip1.removeMovieClip();
              _root.clipMask.removeMovieClip();
              onTool = false;
              Mouse.show();
              _root.pen.removeMovieClip();
              _root.line.removeMovieClip();
              _root.gotoAndStop("newImg1");
    _global.XO = null;
    _global.YO = null;
    _global.WO = null;
    _global.HO = null;
    //creatNewPalitra
    function creatNewPalitra(color:String, w:Number, h:Number) {
              XO = 120;
              YO = 130;
              WO = w;
              HO = h;
              gotoAndStop(51);
              _root.createEmptyMovieClip("newClip1",0);
              newClip1.lineStyle(0,"0xFFFFFF");
              newClip1.beginFill(color);
              newClip1.moveTo(XO,YO);
              newClip1.lineTo(XO+w,YO);
              newClip1.lineTo(XO+w,YO+h);
              newClip1.lineTo(XO,YO+h);
              newClip1.lineTo(XO,YO);
              newClip1.endFill();
              _root.createEmptyMovieClip("clipMask",1);
              clipMask.lineStyle(0,"0xFFFFFF");
              clipMask.beginFill("0xFFFFFF");
              clipMask.moveTo(XO,YO);
              clipMask.lineTo(XO+w,YO);
              clipMask.lineTo(XO+w,YO+h);
              clipMask.lineTo(XO,YO+h);
              clipMask.lineTo(XO,YO);
              clipMask.endFill();
              newClip1.setMask(clipMask);
    function checkPole() {
              if (WO == null) {
                        return false;
              if ((_xmouse>=XO && _xmouse<=XO+WO) && (_ymouse>=YO && _ymouse<=YO+HO)) {
                        return true;
              } else {
                        return false;
    //New
    _root.panelTool.butCursor.onRelease = function() {
              onTool = false;
              Mouse.show();
              _root.kist.removeMovieClip();
              _root.pen.removeMovieClip();
              _root.line.removeMovieClip();
    //PEN
    creatClip = 10;
    _root.panelTool.butPen.onRelease = function() {
              onTool = true;
              _root.attachMovie("pensil","pen",1000000);
              Mouse.hide();
              _root.pen.startDrag(true);
              function drawPen() {
                        creatClip++;
                        lineSize = _root.panelProperties.poleSizeLine.text;
                        lineColor = _root.panelProperties.poleColorLine.text;
                        lineAlpha = _root.panelProperties.poleAlphaLine.text;
                        clip = _root.newClip1.createEmptyMovieClip("newClip"+creatClip, creatClip);
                        arrSloy.push(clip);
              _root.pen.onMouseDown = function() {
                        if (checkPole()) {
                                  drawPen();
                                  pen_draw_flag = true;
                                  clip.lineStyle(lineSize,lineColor,lineAlpha);
                                  clip.moveTo(this._x,this._y);
              _root.pen.onMouseUp = function():Void  {
                        pen_draw_flag = false;
              _root.pen.onMouseMove = function():Void  {
                        if (pen_draw_flag) {
                                  if (checkPole()) {
                                            clip.lineTo(this._x,this._y);
                                  updateAfterEvent();
    //BRUSH
    _root.panelTool.butkist.onPress = function() {
              onTool = true;
              _root.attachMovie("kister","kist",1000000);
              Mouse.hide();
              _root.kist.startDrag(true);
              function drawKist() {
                        creatClip++;
                        lineSize = _root.panelProperties.poleSizeLine.text;
                        lineColor = _root.panelProperties.poleFill.text;
                        lineAlpha = _root.panelProperties.poleAlphaLine.text;
                        clip = _root.newClip1.createEmptyMovieClip("newClip"+creatClip, creatClip);
                        arrSloy.push(clip);
              _root.kist.onMouseDown = function() {
                        if (checkPole()) {
                                  drawKist();
                                  kist_draw_flag = true;
                                  clip.lineStyle(lineSize,lineColor,lineAlpha);
                                  clip.moveTo(this._x,this._y);
              _root.kist.onMouseUp = function():Void  {
                        kist_draw_flag = false;
              _root.kist.onMouseMove = function():Void  {
                        if (kist_draw_flag) {
                                  if (checkPole()) {
                                            clip.lineTo(this._x,this._y);
                                  updateAfterEvent();
    //LINE
    _root.panelTool.butLiner.onRelease = function() {
              onTool = true;
              _root.attachMovie("liner","line",1000000);
              _root.line.startDrag(true);
              Mouse.hide();
              function drawLine() {
                        creatClip++;
                        lineSize = _root.panelProperties.poleSizeLine.text;
                        lineColor = _root.panelProperties.poleColorLine.text;
                        lineAlpha = _root.panelProperties.poleAlphaLine.text;
                        clip = _root.newClip1.createEmptyMovieClip("newClip"+creatClip, creatClip);
                        arrSloy.push(clip);
                        thisx = thisy=null;
              _root.line.onMouseDown = function() {
                        if (checkPole()) {
                                  drawLine();
                                  line_draw_flag = true;
                                  thisx = this._x;
                                  thisy = this._y;
              _root.line.onMouseUp = function():Void  {
                        line_draw_flag = false;
              _root.line.onMouseMove = function():Void  {
                        if (line_draw_flag) {
                                  if (checkPole()) {
                                            clip.clear();
                                            clip.lineStyle(lineSize,lineColor,lineAlpha);
                                            clip.moveTo(thisx,thisy);
                                            clip.lineTo(this._x,this._y);
                                  updateAfterEvent();
    //ERASER
    _root.panelTool.butEras.onPress = function() {
              onTool = true;
              _root.attachMovie("eraser","eras",1000000);
              Mouse.hide();
              _root.eras.startDrag(true);
              function drawEras() {
                        creatClip++;
                        lineSize = _root.panelProperties.poleSizeLine.text;
                        lineColor = "0xFFFFFF";
                        lineAlpha = "100";
                        clip = _root.newClip1.createEmptyMovieClip("newClip"+creatClip, creatClip);
                        arrSloy.push(clip);
              _root.eras.onMouseDown = function() {
                        if (checkPole()) {
                                  drawEras();
                                  eras_draw_flag = true;
                                  clip.lineStyle(lineSize,lineColor,lineAlpha);
                                  clip.moveTo(this._x,this._y);
              _root.eras.onMouseUp = function():Void  {
                        eras_draw_flag = false;
              _root.eras.onMouseMove = function():Void  {
                        if (eras_draw_flag) {
                                  if (checkPole()) {
                                            clip.lineTo(this._x,this._y);
                                  updateAfterEvent();
    //CURV
    _root.panelTool.butCurv.onRelease = function() {
              onTool = true;
              _root.attachMovie("liner","line",1000000);
              _root.line.startDrag(true);
              Mouse.hide();
              anchor1X = anchor2X=controlX=null;
              anchor1Y = anchor2Y=controlY=null;
              onClic = 0;
              function drawCurv() {
                        creatClip++;
                        lineSize = _root.panelProperties.poleSizeLine.text;
                        lineColor = _root.panelProperties.poleColorLine.text;
                        lineAlpha = _root.panelProperties.poleAlphaLine.text;
                        clip = _root.newClip1.createEmptyMovieClip("newClip"+creatClip, creatClip);
                        arrSloy.push(clip);
              _root.line.onMouseDown = function() {
                        if (onClic == 0) {
                                  if (checkPole()) {
                                            drawCurv();
                                            anchor1X = this._x;
                                            anchor1Y = this._y;
                                            onClic = 1;
                                            _root.attachMovie("point","point1",1000001);
                                            point1._x = anchor1X;
                                            point1._y = anchor1Y;
                        } else if (onClic == 1) {
                                  if (checkPole()) {
                                            anchor2X = this._x;
                                            anchor2Y = this._y;
                                            onClic = 2;
                                            _root.attachMovie("point","point2",1000002);
                                            point2._x = anchor2X;
                                            point2._y = anchor2Y;
                        } else if (onClic == 2) {
                                  if (checkPole()) {
                                            controlX = this._x;
                                            controlY = this._y;
                                            onClic = 0;
                                            curv_draw_flag = true;
                                            point1.removeMovieClip();
                                            point2.removeMovieClip();
                                            clip.lineStyle(lineSize,lineColor,lineAlpha);
                                            clip.moveTo(anchor1X,anchor1Y);
                                            clip.curveTo(this._x,this._y,anchor2X,anchor2Y);
              _root.line.onMouseUp = function():Void  {
                        curv_draw_flag = false;
              _root.line.onMouseMove = function():Void  {
                        if (curv_draw_flag) {
                                  if (checkPole()) {
                                            clip.clear();
                                            clip.lineStyle(lineSize,lineColor,lineAlpha);
                                            clip.moveTo(anchor1X,anchor1Y);
                                            clip.curveTo(this._x,this._y,anchor2X,anchor2Y);
                                  updateAfterEvent();
    //STAR
    _root.panelTool.butStar.onRelease = function() {
              onTool = true;
              _root.attachMovie("liner","line",1000000);
              Mouse.hide();
              _root.line.startDrag(true);
              function drawStar() {
                        creatClip++;
                        lineSize = _root.panelProperties.poleSizeLine.text;
                        lineColor = _root.panelProperties.poleColorLine.text;
                        lineAlpha = _root.panelProperties.poleAlphaLine.text;
                        clip = _root.newClip1.createEmptyMovieClip("newClip"+creatClip, creatClip);
                        arrSloy.push(clip);
              thisx = thisy=null;
              _root.line.onMouseDown = function() {
                        if (checkPole()) {
                                  drawStar();
                                  star_draw_flag = true;
                                  clip.lineStyle(lineSize,lineColor,lineAlpha);
                                  thisx = this._x;
                                  thisy = this._y;
                                  clip.moveTo(thisx,thisy);
              _root.line.onMouseUp = function():Void  {
                        star_draw_flag = false;
              _root.line.onMouseMove = function():Void  {
                        if (star_draw_flag) {
                                  if (checkPole()) {
                                            clip.moveTo(thisx,thisy);
                                            clip.lineTo(this._x,this._y);
                                  updateAfterEvent();
    //KVADRAT
    _root.panelTool.butRecttangle.onRelease = function() {
              onTool = true;
              _root.attachMovie("liner","line",1000000);
              _root.line.startDrag(true);
              Mouse.hide();
              function drawRecttangle() {
                        creatClip++;
                        lineSize = _root.panelProperties.poleSizeLine.text;
                        lineColor = _root.panelProperties.poleColorLine.text;
                        lineAlpha = _root.panelProperties.poleAlphaLine.text;
                        fillColor = _root.panelProperties.poleFill.text;
                        clip = _root.newClip1.createEmptyMovieClip("newClip"+creatClip, creatClip);
                        arrSloy.push(clip);
                        thisx = thisy=null;
              _root.line.onMouseDown = function() {
                        if (checkPole()) {
                                  drawRecttangle();
                                  kvadrat_draw_flag = true;
                                  thisx = this._x;
                                  thisy = this._y;
              _root.line.onMouseUp = function():Void  {
                        kvadrat_draw_flag = false;
              _root.line.onMouseMove = function():Void  {
                        if (kvadrat_draw_flag) {
                                  if (checkPole()) {
                                            clip.clear();
                                            clip.lineStyle(lineSize,lineColor,lineAlpha);
                                            clip.beginFill(fillColor,lineAlpha);
                                            clip.moveTo(thisx,thisy);
                                            clip.lineTo(this._x,thisy);
                                            clip.lineTo(this._x,this._y);
                                            clip.lineTo(thisx,this._y);
                                            clip.lineTo(thisx,thisy);
                                            clip.endFill();
                                  updateAfterEvent();
    //Clear
    _root.panelMane.butClear.onRelease = function() {
              for (a=0; a<arrSloy.length; a++) {
                        clip = arrSloy[a];
                        clip.removeMovieClip();
                        delete arrSloy[a];
    //Back
    _root.panelMane.butBack.onRelease = function() {
              i = arrSloy.length-1;
              clip = arrSloy[i];
              clip.removeMovieClip();
              arrSloy.pop();
    Thank you very much!!!

    Zhanbolat,
    In theory, conversion of this code is not difficult, especially because it is clear what the logic is designed to do. The issue is that you will not have an expected result once only this code is converted in isolation. This puppy uses some other objects that are written in AS2 including entities in the FLA library.
    In short, it looks like this application needs a total overhaul at every level in order for it to properly function as an AS3 program.
    With that said, although this is, again, not a difficult task, it is unlikely to find someone to do it for free. You may have a better luck if you start conversion yourself and post focused questions as you go.

  • Please help me convert format from MP4 to WAV

    I need help converting MP4 files to WAV . I purchased songs on ITunesbut can't record them to a CD I can use.

    http://support.apple.com/kb/HT1550
    Regards.

  • Problems converting templates from dot to dotx - concerning tables

    I have a lot of templates where bodytext and tables are mixed.
    Word standard (to 2010) was that a table starts 0,19 cm left of left margin and since the tablecell has a standard indent of 0,19 cm from left the text in the table alignes with the bodytext above or under the table.
    When using Save as to convert a dot to a dotx file in Word 2013 the position of the table changes so it starts at the left margin but still has 0,19 indent in the cell.
    The result is that text in the table ends up with an indent of 0,19 which not alignes the rest of the text.  
    The solution is not to change the cell indent to 0 since the text then is to Close to a possible border.
    Is there any explaination or solution out there?
    Thanks!

    Please find a sample dataset app in the Business Objects Developer Library :
    [CRXIR2 - Web and Windows projects (Visual Studio .NET 2002/2003 and Visual Studio 2005) |http://devlibrary.businessobjects.com/BusinessObjectsXIR2/en/en/CrystalReports_dotNET_SDK/crsdk_samples_aspx/data/crsdk_net_tutorials_115_en.zip]
    http://devlibrary.businessobjects.com/BusinessObjectsXIR2/en/devsuite.htm

  • Problems converting catalog from PSE8 to PSE 12

    I've upgraded from PSE8 to PSE12.  I've just tried converting one of my 10 or so catalogs - all are stored in custom locations on an external drive, since the total file size for all my images is larger than my C: drive's capacity - with awful results:
    a.     there is now a copy of my folder structure and all files from the catalog in a folder C:\Documents and Settings\All Users\Application Data\Adobe\Elements Organizer\Catalogs.  Not at all what I want, and if I convert the rest of my catalogs it will fail when C: drive becomes full.
    b.     my converted catalog has no ratings on any images.
    c.     my tags and tag heirarchy have disappeared.
    Each of these issues is completely unacceptable.  There are literally thousand of hours of work in all my catalogs, which I cannot repeat.  How can I convert my previous catalogs to PSE12 versions, retaining all ratings, tags and tag structure, and without duplicating every image file?
    Rob

    I had already tried optimizing the catalog, repariing the catalog, re-indexing visual simularity data and making sure there were no missing files.  Basically everything I found at: http://helpx.adobe.com/photoshop-elements/kb/common-catalog-issues-upgrade-elements.html
    I also used the Mac OS X Disk Utility to make sure there were no disk errors.
    I have Parallels Desktop running on my Mac so I installed the Windows version of PSE12 and used it to convert the catalog of 63,000 pictures in under an hour.  That put the catalog in a new location so I just moved the catalog from the Windows location to the Mac location.  Now PSE12 on the Mac can access the new catalog and is working as expected.

  • Problems converting 1242AP from LWAPP to Autonomous

    I tried to downgrade a 1242 LAP to Autonomous through a WLC using cisco's brief instructions:
    Step 1 Log into the CLI on the controller to which the access point is associated.
    Step 2 Enter this command:
    config ap tftp-downgrade tftp-server-ip-address filename access-point-name
    Seems easy enough, i copied the IOS file (c1240-k9w7-tar.123-7.JA5.tar) to my TFTP root. Then i ran the command mentioned above from the CLI of the WLC. The WLC takes the command but nothing happens, if i hold down mode and reboot the AP it retains its previous settings? Any ideas?

    In the end i ended up using the a version of the IOS that was one iteration older and it worked......bizzare

  • Steps for Go Live for Webtools moving from Test to Production

    Further to the useful checklist in the wiki recently supplied by Bryce can I ask for some minor gaps to be filled ( perhaps by inserting a few additional steps in that document)
    I have yet to hit the issues created by a go live implementation but this is only a matter of time...
    I am trying to work out what needs  to occur between having :
    a) a test B1 database successfully synching to a test WT site and db set up
    and
    b) the Production B1 database initially synched to the the live WT live WT db ready to accept the first live transactions.
    1) Copy WT site from test to live location
    2) Change Server config, settings and Tables tabs in Synch Manager click on 'Install Plugin' to add custom fields to Production B1 database
    3) ......
    I am stuck as to what needs to be done to "reset"  the WT back end db and how one goes about this.
    Coupled with this and probably part of the answer is the 'Initialise Synch' button. It would be useful to understand exactly what this does in terms of data  - presumably it is only transactional data - but which tables are affected?
    Also if there's anything else that I might have overlooked in terms of potential pitfalls I'd be grateful for advice - the recent posts regarding product trees and images come to mind.
    Thanks

    First thing is to plan for some downtime in your B1 databases. Nothing more frustrating than having new data come into b1 when you're trying to set this up. So perhaps do this at night or on a weekend when no one is using B1.
    Install Plugin operation adds UDF's, edits the stored proc in b1 db, and creates the queue table, PRX_Transaction_Queue
    Initialize synch runs upgrade scripts(if applicable), deletes all data that has synched from B1 previously(or would synch from Wt to B1, like a test order created in Wt) and inserts all relevant data into the queue table in B1 db. Also the synchid's are reset. It's pretty much the same list as is displayed on the Settings page of the Synch Manager. Please someone correct me if I'm missing something here!
    Pre-requisites:
    - Name the Wt db relevant to its position in the environment. B1Webtools is not the greatest name, it's meant to be a jumping off point. Rename your Wt db in the way that you would for B1. ie WebtoolsLive, WebtoolsTest. Makes things easier
    Two options:
    1) Presuming you have a test Wt db and a test b1 db or even a test Wt db and a production(live) B1 db, you could duplicate the test Wt db and change the synch manager config to point to the B1 live db. Install the "plugin" on the new B1 live db and enter your table mappings. Initialize synch will delete all the data that has synched from B1 test db to Wt db(now live db) and reset the synch id's to zero. These will be populated during the synch. Then Run Synch.
    Caveat: This option is fine if your synch takes a "short" period of time. Short being an hour. If you have say 20,000 business partners with 3 years of order history and 300 lines per order... expect several hours.
    2) Create a test synch profile and a live synch profile in tandem and update only the live synch profile with data. Also, have two web tools websites but work primarily in the live one. The synch manager will auto synch both profiles every time the service runs(set by you)
    When it's go time, copy the live db's over the test db's so you have a test environment exactly matching your live environment.  Now, obviously as soon as new data goes into the live db it's out of synch, but this way you have a test system you can break or use to test upgrades, etc.
    As you might guess, there are a number of ways to go with this. It really does depend on a) how comfortable you are with moving data around in SQL and b) what your setup entails.
    I think the best thing you can do is make it as simple as possible. Don't overthink things and make sure you have a backup of everything before you start.
    Good luck!

  • Converting byte from dec to hex

    Hi All,
    I'm having a problem converting byte from decimal to hex - i need the following result:
    if entered 127 (dec), the output should be 7f (hex).
    The following method fails, of course because of NumberFormatException.
        private byte toHexByte(byte signedByte)
            int unsignedByte = signedByte;
            unsignedByte &= 0xff;
            String hexString = Integer.toHexString(unsignedByte);
            BigInteger bigInteger = new BigInteger(hexString);
            //byte hexByte = Byte.parseByte(hexString);
            return bigInteger.byteValue();
        }

    get numberformatexception because a lot of hex digits cannot be transformed into int just like that (ie f is not a digit in decimal) heres some code that i used for a pdp11 assembler IDE... but this is for 16-bit 2s complement in binary/octal/decimal/hex , might be useful for reference as example though
        public static String getBase(short i, int base){
            String res = (i>=0)? Integer.toString((int)i,base)
                    : Integer.toString((int)65536+i,base) + " ("+Integer.toString((int)i,base)+")";
           StringBuffer pad= new StringBuffer();
            for(int x = 0; x < 16 - res.length() ; x++){
                pad.append("0");
            res = pad.toString() + res;
            return res;
        }

  • Problem converting to INT from an XML file

    Hi folks, I hope you can help with this one, as it's been driving me nuts...
    Basically (and I'll try to keep this brief!) my project takes in an extremely basic XML file. I've never really done this before, but I seem to have got most of it working apart from taking in attribute values which I want to use as integers.
    Essentially, each element relates to objects of a basic class I have set up, while each attribute relates to the variables for the object. When the XML file is read, a new object is set up for each element and is stored in a linked list. That was supposed to be the difficult bit, but it turns out it hasn't been...
    The XML file looks a little bit like this (only the elements are shown to save space):
    <Object name="My object" description = "blah" x_axis = "96" y_axis="23" />
    <Object name="Another one" description = "blah, again" x_axis = "83" y_axis="40"/>
    etc. etc. The problem relates to the x_axis and y_axis attributes. While the description and name attributes are assigned correctly, for some reason the x_axis and y_axis attributes are both given values of zero when I convert them from Strings to Ints. After much printing to the console, kicking and screaming, I think I've narrowed the problem down to the following code:
    if (attrib.getName() == "x_axis")
    int myX = Integer.parseInt(attrib.getValue()); // converting a string to an int
    myObject.setSoundX_Axis(myX);
    // And, of course, I do the same sort of thing for the Y axis.Anyone know why I'm getting zero values? Is it something to do with the way I'm converting the string to an int in Java?
    Cheers for any help.

    int myX = Integer.parseInt(attrib.getValue());I don't see anything wrong. Try printing out the value of attrib.getValue() to see if it is what you expect. You may want to try:
    String s = "" + myX;
    if ( s.compareTo(attrib.getValue() != 0 ) {
        System.out.println("Don't compare: myX=" + myX + " getValue=" + attrib.getValue());
    }

  • NAT Problems Converting from 7.2(2) to 8.6(1)2

                       I am trying to replace an ASA 5510 running 7.2(2) with an ASA 5515x running 8.6(1)2.  The problem I am having is that the NAT entries are not working on the ASA 5515x.  Is there anything that needs to be considered when moving the configuration from the ASA 5510 to the ASA 5515x.

    Hi,
    ASAs NAT configuration format went under a big change when going from 8.2 to 8.3. The NAT configuration format changed completely and therefore none of the old NAT configurations work anymore. These are "global" , "nat" and "static". Actual NAT configurations start with the command "nat" though but otherwise in a totally different format.
    Your new ASA 5500-X series firewall can only use 8.6 or above software level. That is its "oldest" software. Therefore you cant use your old configuration on it. People who simply upgrade software on the original ASA5500 series will be able to just boot their ASA to the new software. Though while the ASA then migrates the NAT configurations to the new format, the results arent always the best.
    One major change would also be ACLs. In the new software you will always use the real IP address in the interface ACL when allowing traffic somewhere. So even if you were allowing traffic to some server (that has a Static NAT configured on the ASA) you would now use the real IP address as the destination rather than the NAT IP address. This is mainly due to the fact that ASA handles NAT before ACL now in the new software.
    There is also some minor changes to the commands related to VPN configurations.
    But the above are the biggest changes.
    How large NAT configuration do you have on the original ASA5510? If we are not talking about a huge configuration I could probably help with converting the NAT configurations.
    Here is a document I wrote about the new NAT configuration format
    https://supportforums.cisco.com/docs/DOC-31116
    Here is also a good document that might help you compare the old and new NAT configuration formats
    https://supportforums.cisco.com/docs/DOC-9129
    Hope this helps
    Please do remember to mark a reply as the correct answer if it answered your question.
    Feel free to ask more if needed.
    - Jouni

Maybe you are looking for