Urget help needed- PK with EJB 1.1/CMP 1.1

I have some old code based on EJB 1.1 ,CMP 1.1 works on OC4J(9.0.02). Now going forward seems this does not work(seems it calls getprimarykey in ejbcreate in generated wrappers). Basically, I have a before insert trigger that generates nextval from oracle sequnece and we call create with
all required columns and set the PK to null. Will this setting work in CMP
for generating PK using oracle sequence. We are on OC4J so that is the hard part. Please share your experience. I am sure it will be valuable to many as this is a standard way in Oracle to use sequence.

Hello,
Here are some of the interesting readings that you can have a look at
http://www.theserverside.com/patterns/thread.tss?thread_id=220
http://forum.java.sun.com/thread.jspa?threadID=248408&messageID=1812745
http://www-128.ibm.com/developerworks/websphere/library/techarticles/0402_brown/brown.html
With CMP you should avoid using auto generated primary keys. I tried this using Websphere and Oracle it does not work.
HTH
VJ

Similar Messages

  • Help needed please, with Iphone stuck with apple picture and progress bar after software update attempted

    Help needed please, everytime I try to update the software version on my iphone it comes up with a message saying it could not be completed and is now frozen with the apple picture and progress bar on it. Do I unplug it and hope the macbook pro sees it again, I also stupidly did not back up before starting the download which I realise I will have to go back to the previous back up. This keeps happening, everytime I do this type of update, I'm starting to think I should just give up on updating my software on the Iphone. I thought it was happening because I was using a window based computer to do the updates, this time I used my Macbook Pro. Please somebody help

    ljm17 wrote:
    ...This keeps happening, everytime I do this type of update, I...
    Then you should know what you need to do... If you don't remember...
    See Here  >  http://support.apple.com/kb/HT1808

  • Need help ASAP : Exception with EJB 3.0 while session.xml

    Hi,
    Kindly help on below exception, which i am getting the exception while changing the mine EJB 2.1 to 3.0.
    Exception raised while loading the session.xml, which is reffering to map file which is used by Toplink.
    **Mine EJB:**
    public class CaseSessionEJBBean implements CaseSessionEJB {
    String inBean="[CaseSessionEJBBean] ";
    private SessionFactory sessionFactory;
    public CaseSessionEJBBean() {
    this.sessionFactory =new SessionFactory("META-INF/sessions.xml", "moj");
    *private SessionFactory getSessionFactory() {*
    return this.sessionFactory;
    *}* public PagedResultList<CasedetailsDTO> searchPayment(SearchCriteriaDTO searchCriteriaDTO,Integer startIndex,Integer endIndex) throws MOJException{
    String inMethod="[searchPayment] ";
    PagedResultList pagedCaseDetailsDTOList=null;
    try{
    System.out.println("[CaseSessionEJBBean] !!!! ENTERED !!!!!");
    Session session = getSessionFactory().acquireSession();
    CaseFacade caseFacade = new CaseFacade();
    pagedCaseDetailsDTOList=caseFacade.searchPayment(session, searchCriteriaDTO,startIndex,endIndex);
    System.out.println("pagedCaseDetailsDTOList.size()="+pagedCaseDetailsDTOList.size());
    }catch(Exception e){
    e.printStackTrace();
    System.out.println("[Exception] While getting payment details:"+e);
    throw new MOJException("1001", e.getMessage(),
    "Exception occured",
    "Exception in searchPayment()",
    "searchPayment", "CaseSessionEJBBean",
    "searchPayment", e);
    return pagedCaseDetailsDTOList;
    Exception:
    Exception Description: Several [1] SessionLoaderExceptions were thrown:
    Exception [TOPLINK-9005] (Oracle TopLink - 10g Release 3 (10.1.3.3.0) (Build 070608)): oracle.toplink.exceptions.SessionLoaderException
    Exception Description: *An exception was thrown while loading the <project-xml> file [META-INF/MOJMap.xml].*
    Internal Exception: oracle.classloader.util.AnnotatedLinkageError: duplicate class definition: oracle/toplink/indirection/IndirectList
    Invalid class: oracle.toplink.indirection.IndirectList
    Loader: current-workspace-app.root:0.0.0
    Code-Source: /D:/MOJ_SVN/Lib/toplink.jar
    Configuration: <library> in /D:/Temp/MOJ_EJB_3.0/CMS-oc4j-app.xml
    Dependent class: oracle.toplink.internal.helper.ConversionManager
    Loader: oracle.toplink:10.1.3
    Code-Source: /D:/jdevstudio/toplink/jlib/toplink.jar
    Configuration: <code-source> (ignore manifest Class-Path) in META-INF/boot.xml in D:\jdevstudio\j2ee\home\oc4j.jar
    The original class instance was also defined in oracle.toplink:10.1.3.
    Thanks in Advance:
    Need in urgent
    Edited by: user636100 on Feb 6, 2009 7:44 AM

    You have two copies of toplink.jar visible to the application classloader - D:/MOJ_SVN/Lib/toplink.jar should be removed.
    For compilation of the application use toplink.jar provided by the server: D:/jdevstudio/toplink/jlib/toplink.jar

  • Help needed for newbie EJB

    Hi, all
    I am a newbie in EJB and I am following the example in the URL:
    http://www.huihoo.com/jboss/online_manual/3.0/
    I am working on the 'interest' example in the first chapter.
    When it come to 'Packaging and deploying the bean', I got some meaage like this:
    ant intro-interest-jar
    Buildfile: build.xml
    validate-servlet:
    validate-jboss:
    fail_if_not_valid:
    init:
    [echo] Using JBoss directory=/opt/jboss
    [echo] Using base classpath=/opt/jboss/client/jboss-j2ee.jar:/opt/jboss/client/jaas.jar:/opt/jboss/client/jbosssx-client.jar:/opt/jboss/client/jboss-client.jar:/opt/jboss/client/jnp-client.jar:/home/xiaobo/learningejb/examples/COULD_NOT_FIND_SERVLET_JAR
    [echo] Using Source directory=/home/xiaobo/learningejb/examples
    [echo] Using Build directory=/home/xiaobo/learningejb/examples/build-examples
    intro-interest-jar:
    compile:
    ejb-jar:
    [delete] Deleting directory /home/xiaobo/learningejb/examples/build-examples/interest/META-INF
    [mkdir] Created dir: /home/xiaobo/learningejb/examples/build-examples/interest/META-INF
    [copy] Copying 1 file to /home/xiaobo/learningejb/examples/build-examples/interest/META-INF
    [copy] Copying 1 file to /home/xiaobo/learningejb/examples/build-examples/interest/META-INF
    [jar] Building jar: /home/xiaobo/learningejb/examples/build-examples/interest/interest.jar
    BUILD SUCCESSFUL
    Total time: 2 seconds
    Why did I get this:
    /home/xiaobo/learningejb/examples/COULD_NOT_FIND_SERVLET_JAR.
    But if I check the "interest.jar" by using 'jar -tvf interest.jar' in the "~/learningejb/examples/build-examples/interest$" directory, it seems it had all files and directories in it.
    But if I copy this jar file into the deploy directory in jboss, and I check the log file 'server.log'
    I found this error message:
    2005-11-28 17:31:03,536 DEBUG [org.jboss.management.j2ee.LocalJBossServerDomain] handleNotification: javax.management.Notification[source=jboss.ejb:service=EJBDeployer,type=org.jboss.deployment.SubDeployer.stop,sequenceNumber=15,timeStamp=1133213463536,message=null,userData=org.jboss.deployment.DeploymentInfo@c36a9f52 { url=file:/opt/jboss-3.2.5/server/default/deploy/interest.jar }
    deployer: org.jboss.ejb.EJBDeployer@3c9c31
    status: Deployment FAILED reason: ejb-jar.xml must define a valid DOCTYPE!
    state: FAILED
    watch: file:/opt/jboss-3.2.5/server/default/deploy/interest.jar
    lastDeployed: 1133210324921
    lastModified: 1133210324000
    mbeans:
    Then I add the follwoing line into the 'ejb-jar.xml':
    <!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd">
    so the 'ejb-jar.xml' looks like this:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd">
    <ejb-jar>
    <description>JBoss Interest Sample Application</description>
    <display-name>Interest EJB</display-name>
    <enterprise-beans>
    <session>
    <ejb-name>Interest</ejb-name>
    <home>org.jboss.docs.interest.InterestHome</home>
    <remote>org.jboss.docs.interest.Interest</remote>
    <ejb-class>org.jboss.docs.interest.InterestBean</ejb-class>
    <session-type>Stateless</session-type>
    <transaction-type>Bean</transaction-type>
    </session>
    </enterprise-beans>
    </ejb-jar>
    and I rejar it and copy the jar file into the deploy directory. I still got the same error message in the log file???!!!
    Please help!
    X.Chen

    It's a no brainer between the AirPort Extreme and Airport Express.
    The AirPort Extreme has 6 wireless antennas up at the top of the "tower", while the AirPort Express has four, so the Extreme has significantly better wireless speed and range than the Express.
    As you know, the broadcast power of wireless routers is limited by law, and most routers are running full blast. Apple routers are not known for their broadcast power, so what we cannot tell you is whether the Extreme will outperform the existing wireless router that you already have in terms of range.
    Also as you know, the speed of your Internet connection is limited to the plan that you have with Verizon. An Apple router cannot take the speed of Internet connection that it receives from your Verizon plan and make it go any faster.
    A user who has both the same Verizon router as you and an AirPort Extreme might be able to tell you how the products compare in his home.
    But...and this is a big BUT...... the bottom line with any wireless router is that you will not know how well it performs in your home until you try it out in your home. To think otherwise would be foolhardy at best.
    Buy from Apple and you have a 14 day return privilege in case things don't work as well as hoped. Other stores may offer a similar option. Check first, before you buy.

  • Help needed imediately with photos in swf project!

    Firts of all thanks in advance.
    Ive made a website with flash. I have 6 photos as thumbnails that are buttons. I want to know , when a thumbnail is clicked how to activate lightbox/flashbox to bring up the bigger image via light/flashbox. What function to I need to apply in the actionscript window to the thumbnail that is converted to a symbol as a button
    I am using Flash CS5 and actionscript 3.
    Please any help would be greatful. Ive been seearching and trying for 3 whole days with no luck

    Give a event listener to the btns,
    btn.addEventListener(MouseEvent.CLICK, openbigimage);
    function openbigimage(e:MouseEvent):void
    //write your code for opening big image here
    //Look this for reference
    http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/events/EventDispa tcher.html#addEventListener%28%29
    http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/events/MouseEvent.html

  • Help needed working with layers and exporting from acrobat3d

    hi, i am repostng this message becaus eihad no success last time, and I am working under a tight deadline for a school project. any help will be tremendously appreciated
    I received an Acrobat 3d file with a model that was originally created in CATIA v4 embedded in it.
    I need to export the model for use in rhino. Currently the model size is enormous as an IGES that Windows runs out of memory when attempting to open. This is a bit wasteful since I do not need all of the model, I just need a layer of it. I noticed that when exporting to IGES you have the option to export hidden or not, and I have hidden the layers i do not need (via Isolation) and still I get the whole file.
    Is there a way I can do this? export the file With the layers under the model tree? or is there a way I can delete a layer? or how can I make the hidden object feature work when Exporting IGES as not to get the things I dont need?
    I read that you can open the model in Toolkit to edit it but it wont let me, open it... no "edit 3d in toolkit" option and when i open the pdf in toolkit it says unknown file....
    is there a way i can open the embedded model in CATIA again?
    thanks for the help

    Please email me your contact information at [email protected] and I might be able to help you.
    Thanks.

  • Help needed urgently with cc

    i cannot download and open ccfiles on windows 7 premium, im a mature student struggling to get a library of tutorials together to look back on, but cc keeps stopping i cant download update or get new apps, i pay monthly and i'm getting nowhere even after 12 mths i've no library. files are empty and my photoshop never seems to work correctly. If i cant get this sorted in some way i will be giving up the ghost, ive had enough of struggling with what is supposed to be so easy to do, my confidence as now reached rock bottom.
    If theres anyone out there that  can help, in plain english as i'm no expert. Please! you are most wellcome to talk as much as you want, i will be eternally gratefull....Norma R

    This is an open forum with a mix of program users and Adobe staff, not Adobe support... you need Adobe support
    Adobe contact information - http://helpx.adobe.com/contact.html may help
    -Select your product and what you need help with
    -Click on the blue box "Still need help? Contact us"

  • Errors in impdp command on oracle 10g database-urget help needed

    Hi,
    could you plz help me to solve below errors which are coming while doing import with impdp command in oracle 10g 10.1.0.4.0 os: Red Hat Enterprise Linux ES release 4
    ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    Job "DCA"."SYS_IMPORT_SCHEMA_01" stopped due to fatal error at 15:31
    i tried to restart job but the following errors coming
    UDI-00008: operation generated ORACLE error 39078
    ORA-39078: unable to dequeue message for agent KUPC$A_1_20081111155728 from queue "KUPC$C_1_20081111155728"
    ORA-06512: at "SYS.DBMS_DATAPUMP", line 2356
    ORA-06512: at "SYS.DBMS_DATAPUMP", line 3261
    ORA-06512: at line 1
    thanks in advance

    Can you check Metalink Note 376022.1? Your STREAMS_POOL_SIZE parameter may be too small.
    If you don't have Metalink access, try this :
    sql> alter system set STREAMS_POOL_SIZE=100M scope=spfile;
    sql> shutdown immediate
    sql> startup
    Note : the Portal Applications forum may not be the appropriate forum for this datapump issue. Try one of the database forums as you'll have a wider audience there.

  • Please help need advice with planned project!

    Hi, im not sure if this is the correct forum to post this (there are so many!) just move it to the correct place if it isn�t.
    I need some advice on the correct way of coding a feature that is essential to my dissertation project.
    Basically the project is going to be a particle effect tool that works in a similar way to the particle flow tool works in 3DSMax if anyone has used it, if not here is a screeny:
    http://www.artificial-studios.co.uk/DumpingGround/partview01.png
    It allows you to visually represent your particle system by joining components together and linking them with connecting lines.
    Now my questions is what would be the correct way to implement this in java? I am currently using a series of JSplitPanel's to split the main frame up then using a JPanel for the main area and other JPanels for the individual elements that you can move around and link up, here is a screeny:
    http://www.artificial-studios.co.uk/DumpingGround/partview02.png
    My problem is that when i add a new element via a right click menu I have to call revalidate on the main panel, this causes all the elements to return to their default position. The same thing happens whenever you move one of the JSplitPanes as it called revalidate.
    So im wondering if im doing this the correct way, i see that there are many other kinds of panels provided with SWING and wondering if any of the others are perhaps more suited to my requirements?
    I know that its definitely possible as Poseidon UML was coded entirely in Java and it has many of the features i am looking for:
    http://www.artificial-studios.co.uk/DumpingGround/partview03.png
    As this will be my first large GUI application i wasn�t sure where to turn so if anyone can me any advice whatsoever it would be greatly appreciated. Also if anyone can point me to any books or reading material concerning professional GUI design so that i may be able to code applications that look as professional as Poseidon or Netbeans it would be greatly appreciated.
    Thanks,
    Mike

    Do you know about Data Access Object(dao)?
    Assume you want to add hydrogen molecule to a panel, you create a new object with the class(class Molecule) representing a new molecule( H2, O2 or H2O).
    You can also create a dao for this object of Molecule
    class MoleculeProperty
               private int xLocation, int yLocation, ZLocation;
               public void setYLocation(int tempYLocation)
                           yLocation = tempYLocation;
               public int getYLocation()
                           return yLocation;
               public int getZLocation()
                           return zLocation;
               public void setZLocation(int tempZLocation)
                           zLocation = tempZLocation;
               public void setJustUpdated(boolean tempInput)
                       justUpdated = tempInput;
               public boolean getJustUpdated()
                       return justUpdated;
    Either within your method paintComponent(Graphics g) or your panel for drawing molecules or method paint(Graphics g), it reads MoleculeProperty of Molecule and it can draw it in proper location.
    After you have created a new Molecule, dao.setJustUpdated(true) . At the last line of method paintComponent(Graphics g) or paint(Graphics g), dao.setJustUpdated(false);

  • Help needed urgently with Superduper backup of Macbook and external HHD

    My Macbook is doing strange things (not sleeping and turning itself on and off, fans going mad etc) so I want to do a cloned back up before taking it to my Apple Service store. I have downloaded Superduper ready to do this but am not sure how I use this as I have an external firewire drive as well as the Macbooks internal drive. Ideally I want to clone everything in order to make sure I have it all covered. Can I make one cloned backup that will include the external drive and the Macbooks drive onto one hard drive that I will use just for this purpose? Or do I have to use Superduper to clone the macbook and then do a separate backup of the files on my external drive? All my important files are on the external drive (photos, iMovie, documents) and I do have a backup of this on another portable drive but this is now too small to fit any more on and is therefore not up to date so I now need to buy a bigger drive and do a full back up ASAP.
    By the way, I am still using Tiger so do not have Time Machine.
    Also, how do i prepare the new drive? Do I need to partition it to a GUID system for my Intel Macbook first before doing the clone?
    Message was edited by: 12frets56

    I am not clear on how many drives you have, of what type, and how much data is on them and which are empty. Perhaps you could provide a list. You say you have an internal, and an external, both with data. If you want to back up both of these you will need another drive that is at least the size of the current space occupied by the files on your internal and important data external. I am less familiar with SuperDuper than I am with CarbonCopyCloner but for both programs there exists a complete bootable backup clone option which puts everything on a drive (including invisible files from your operating system which are essential for your computer to boot) onto the backup. This will also erase the target drive so you need to have an empty drive (or one where you don't care about the content) for a target. You would back up your internal drive in this manner. Your external drive (unless it has a different boot system on it) you can just copy files over since it is just data. It would be handy at this stage if we knew more about the drives so we can make specific recommendations as to what to copy where, and how.
    Kappy posted a detailed description of drive preparation in [this thread|http://discussions.apple.com/message.jspa?messageID=7009683#7009683].
    Message was edited by: Limnos

  • Reg Exp help needed (trouble with line breaks)

    Hello,
    I am attempting to parse a line of text with regular expressions. I am having difficulty with the line breaks.
    I want to divide the following line by the first '\n' char.
    For instance, I wan the output to be as follows:
    found 1: one
    found 2: ddd
    dddHowever, I get the following with my attached code:
    found 1: one
    found 2: dddHowever, the second line break seems to be the end of the second group.
    How do I get the any character '.' to read past any subsequent line breaks?
    import java.util.regex.*;
    public class Test
         String rawSequenceArg = ">one\nddd\nddd";     
           Pattern p = Pattern.compile(">([^\n]+)\n(.+)");
           Matcher m = p.matcher(rawSequenceArg);
           if(m.find())
                System.out.println("found 1: " + m.group(1));
                System.out.println("found 2: " + m.group(2));
    }

    In this case, the DOTALL flag is the one you need; it allows the dot (period, full stop) to match line separator characters. MULTILINE makes the '^' and '$' anchors match the beginning and end of logical lines, instead of just the beginning and end of the input.

  • Help needed quick with AGP problems

    i bought a Radeon 9600 256MB vidcard from Sapphire today, and when i tried it in my K7N2 Delta ILSR, the system would boot, load windows, hang, then refuse to boot unless i removed the radeon ... since i dont have any onboard video, i've been using an Nvidia Vanta before the radeon, any ideas what the prob might be?
    help would be very much appreciated

    Quote
    Originally posted by skzillz
    where can i find the list of recommended memory modules for the Delta ILSR?
    and what are some of the recommended PSU's also plz
    thanks for ur help btw, i had solved the problem by moving the memory from one slot to another, does this give u any idea about any underlying problem with the motherboard??
    I've already given you the top 2 PSU choices, and Bonz has linked you to his sticky on RAM choices. Please read what's been given to you already. As far as RAM I would recommend a good quality Mushkin or Corsair.   Run this to test your memory Memtest
    Good Luck
    Bob

  • Help Needed: Accessing Weblogic EJB in Tomcat

    Hi all, I'm trying to access some EJB residing in weblogic7.0 server. Does anyone have any information/idea on how to do a JNDI connection to Weblogic Server and what are the necessary configuration on the Tomcat Server?
    Thank you.
    Celte

    Hashtable ht = new Hashtable();
    ht.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory");
    ht.put(Context.PROVIDER_URL, "t3://"+appSrvIp+":7001");
    ht.put(Context.SECURITY_PRINCIPAL, "user");
    ht.put(Context.SECURITY_CREDENTIALS, "passsword");
    initCtx = new InitialContext(ht);
    You will need weblogic.jar in your Tomcat classpath

  • Help needed urgently with two major Logic 9 issues

    Dear all,
    We've recently migrated from Logic 7 to 9 and have a major album project to finish using a fairly modest tracking setup. We've encountered two major issues that are holding up progress and wondered if anyone here has experienced them and has a solution..?
    Our set up is an early 2009 2.93GHz 17" unibody Macbook Pro with a Motu 828mkII Firewire interface. We also have a motu microlite for extra midi.
    Firstly, we're trying to track drums from an Elektron MachineDrum. With Logic 7 the MachineDrum's transport controls would control Logic's transport automatically so that we had a clear sync when tracking and could edit sounds and patterns on plus control Logic's transport from the MachineDrum. It also meant that we could drop in parts from song based sequences (of multiple patterns) in the correct position as song pointer information was also received. In the midi synch settings it would automayically jump to "midi clock". In Logic 9 it seems the Midi clock option is gone entirely.
    We've also tried with an Elektron MonoMachine and have exactly the same problem. This all worked automatically in Logic 7. These machines have excellent sequencers and are very hands on so it makes it preferable to do it this way. We've spent the afternoon trying to replicate the behaviour of Logic 7 with no joy at all. I should say that Logic is receiving midi information but is not responding to the transport controls. Has this midi clock feature been removed entirely..? It will be a huge disappointment if this vital functionality has been removed as it's crucial to the way we write, sequence and record.
    Does anyone have a solution..?
    Secondly, there seems to be a major bug with Logic 9 and we frequently have to quit and reboot to overcome it. Namely, certain actions reduce the audio to metal machine noise/ digital breakup bearing no resemblance to what we've recorded. This includes opening two projects simultaneously, dragging any audio from the media bin to the arrange, editing a marker in the list window etc. This has happened about twenty times today doing some light work on a project. We also noticed this intermittently when doing some vocal tracking on Logic 8 at a friends studio.
    Has anyone else experienced this? It's a nightmare and means we won't be able to use it reliably live either. Does anyone have a solution?
    Many thanks for taking the time to consider this,
    JH 

    Pancenter wrote:
    spheric wrote:
    Having tried to sync Logic to my LinnDrum back in Logic 7, I can see why they removed it.
    It was hideously catastrophic and caused me ages of grief, as the function only really makes sense for MIDI/trigger sequencing.
    As I remember it works perfectly well with MIDI only, which is what it was designed for. I've synced Logic via MIDI from a second computer for 20-30 minutes with absolutely no sync problems or drift.
    yes, that worked fine.
    But then turning around and trying to sync +something else+ to that recording.
    Logic never could record tempo variation as a continuous stream, as an analogue tape machine would record a sync signal, so the stepping would inevitably lead to increasing loss of sync, loss of hair, and the desire to break things.
    I eventually just set aside that function, with the intention if revisiting in a later, hopefully fixed, version.
    And whaddaya know - they fixed it good.

  • Urgent help needed please, with parse error message

    Hi. I've got a page which comes at the end of a 3 page sequence - search, results, detail. The detail page had been working fine, but yesterday I added a second recordset to the page, to pull reviews from a separate table, and now I'm getting the following error:
    Parse error: syntax error, unexpected ')', expecting T_STRING or T_VARIABLE or '$' in /Applications/MAMP/htdocs/goodvetguide/practice_Detail.php on line 78
    (should point out that I'm using DMW8 on a Mac and testing locally using MAMP as my testing server).
    line 78 is:
    if (isset()) {
      $Parampractice_id_WADApracticelist = (get_magic_quotes_gpc()) ?  : addslashes();
    and the full code for the page is posted below. I've googled this error and found a variety of different reasons for why this might be happening but none of the examples I've seen appear to apply to my case, so I'd really appreciate any assistance anyone can offer with this. Thanks in advance.
    Page code:
    <?php require_once('Connections/connGVG.php'); ?>
    <?php require_once('Connections/connGVG.php'); ?>
    <?php
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
      $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
      $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
      switch ($theType) {
        case "text":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;   
        case "long":
        case "int":
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case "double":
          $theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL";
          break;
        case "date":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
          break;
      return $theValue;
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
      $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
      $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
      switch ($theType) {
        case "text":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;   
        case "long":
        case "int":
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case "double":
          $theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL";
          break;
        case "date":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
          break;
      return $theValue;
    ?><?php
    if (!session_id()) session_start();
    ?>
    <?php
    $Parampractice_WADApracticelist = "-1";
    if (isset($_GET['practice_id'])) {
      $Parampractice_WADApracticelist = (get_magic_quotes_gpc()) ? $_GET['practice_id'] : addslashes($_GET['practice_id']);
    $ParamSessionpractice_WADApracticelist = "-1";
    if (isset($_SESSION['WADA_Insert_practicelist'])) {
      $ParamSessionpractice_WADApracticelist = (get_magic_quotes_gpc()) ? $_SESSION['WADA_Insert_practicelist'] : addslashes($_SESSION['WADA_Insert_practicelist']);
    $Parampractice_WADApracticelist = "-1";
    if (isset($_GET['practice_id'])) {
      $Parampractice_WADApracticelist = (get_magic_quotes_gpc()) ? $_GET['practice_id'] : addslashes($_GET['practice_id']);
    $Parampractice_id_WADApracticelist = "-1";
    if (isset()) {
      $Parampractice_id_WADApracticelist = (get_magic_quotes_gpc()) ?  : addslashes();
    $Parampractice_id2_WADApracticelist = "-1";
    if (isset()) {
      $Parampractice_id2_WADApracticelist = (get_magic_quotes_gpc()) ?  : addslashes();
    $ParamSessionpractice_id_WADApracticelist = "-1";
    if (isset()) {
      $ParamSessionpractice_id_WADApracticelist = (get_magic_quotes_gpc()) ?  : addslashes();
    mysql_select_db($database_connGVG, $connGVG);
    $query_WADApracticelist = sprintf("SELECT practice_id, practicename, address1, address2, address3, address4, postcode, location, practicewebsite, practicetype, starrating FROM practicelist WHERE practice_id = %s OR ( -1= %s AND practice_id= %s)", GetSQLValueString($Parampractice_id_WADApracticelist, ""),GetSQLValueString($Parampractice_id2_WADApracticelist, ""),GetSQLValueString($ParamSessionpractice_id_WADApracticelist, ""));
    $WADApracticelist = mysql_query($query_WADApracticelist, $connGVG) or die(mysql_error());
    $row_WADApracticelist = mysql_fetch_assoc($WADApracticelist);
    $totalRows_WADApracticelist = mysql_num_rows($WADApracticelist);
    $colname_rsReviews = "-1";
    if (isset($_GET['WADALocation'])) {
      $colname_rsReviews = (get_magic_quotes_gpc()) ? $_GET['WADALocation'] : addslashes($_GET['WADALocation']);
    mysql_select_db($database_connGVG, $connGVG);
    $query_rsReviews = sprintf("SELECT * FROM reviews WHERE practice_id = %s", GetSQLValueString($colname_rsReviews, "int"));
    $rsReviews = mysql_query($query_rsReviews, $connGVG) or die(mysql_error());
    $row_rsReviews = mysql_fetch_assoc($rsReviews);
    $totalRows_rsReviews = mysql_num_rows($rsReviews);
    ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Details practicelist</title>
    <style type="text/css">
    <!--
    -->
    </style>
    <link href="style.css" rel="stylesheet" type="text/css" />
    <link href="WA_DataAssist/styles/Refined_Pacifica.css" rel="stylesheet" type="text/css" />
    <link href="WA_DataAssist/styles/Arial.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
    /* Details page CSS */
    .WADADetailsContainer {
    font-size: 11px;
    #WADADetails {
    padding-top: 10px;
    </style>
    </head>
    <body>
    <div id="wrapper">
      <div id="header"></div>
      <div id="content">
        <div id="menu">
          <a href="addreview.html">Add review</a>  <a href="contact.html">Contact</a>  <a href="terms.html">Terms</a>  <a href="practice_Search.php">Search</a>  <a href="about.html">About </a><a href="index.html">Home </a></div>
        <div id="contentleft2">
          <div id="greenpiccont"></div>
          <div id="cright">
            <div class="boldwhite" id="rightblue">Review your vet<br />
              <br />
              <span class="smallbold">Tell us your experience</span><br />
              <br />
              <span class="smallwhite">Give people information<br />
              on your experiences so <br />
              that they can make an<br />
              informed decision.</span><br />
              <div id="startbutton"><a href="#">Start</a></div>
            </div>
          <div id="bluemap2"></div>
          <div id="searchbox">
            <table width="202" border="0" cellspacing="0">
              <tr>
                <th scope="row"><div align="left" class="smalltext">Search by postcode</div></th>
              </tr>
              <tr>
                <th height="31" scope="row"><input name="Name" class="Width250px" /></th>
              </tr>
              <tr>
                <th scope="row"><div align="left" class="smalltext">Miles</div></th>
              </tr>
              <tr>
                <th height="39" scope="row"><div align="left">
                  <input name="Name2" class="Width250px" />
                </div></th>
              </tr>
            </table>
          </div>
          </div>
          <div class="about10" id="contl">Practice details<br />
            <div class="WADADetailsContainer"> <a name="top"></a>
              <div class="WADAHorizLine"><img src="WA_DataAssist/images/_tx_.gif" alt="" height="1" width="1" border="0" /></div>
              <?php if ($totalRows_WADApracticelist > 0) { // Show if recordset not empty ?>
                <div id="WADADetails">
                  <table class="WADADataTable" cellpadding="0" cellspacing="0" border="0">
                    <tr>
                      <th class="WADADataTableHeader">Practice name:</th>
                      <td class="WADADataTableCell"><strong><?php echo($row_WADApracticelist['practicename']); ?></strong></td>
                    </tr>
                    <tr>
                      <th class="WADADataTableHeader">Practice type:</th>
                      <td class="WADADataTableCell"><?php echo($row_WADApracticelist['practicetype']); ?></td>
                    </tr>
                    <tr>
                      <th class="WADADataTableHeader">Address:</th>
                      <td class="WADADataTableCell"><?php echo($row_WADApracticelist['address1']); ?></td>
                    </tr>
                    <tr>
                      <th class="WADADataTableHeader"> </th>
                      <td class="WADADataTableCell"><?php echo($row_WADApracticelist['address2']); ?></td>
                    </tr>
                    <tr>
                      <th class="WADADataTableHeader"> </th>
                      <td class="WADADataTableCell"><?php echo($row_WADApracticelist['address3']); ?></td>
                    </tr>
                    <tr>
                      <th class="WADADataTableHeader"> </th>
                      <td class="WADADataTableCell"><?php echo($row_WADApracticelist['address4']); ?></td>
                    </tr>
                    <tr>
                      <th class="WADADataTableHeader">Postcode:</th>
                      <td class="WADADataTableCell"><?php echo($row_WADApracticelist['postcode']); ?></td>
                    </tr>
                    <tr>
                      <th class="WADADataTableHeader">Location:</th>
                      <td class="WADADataTableCell"><?php echo($row_WADApracticelist['location']); ?></td>
                    </tr>
                    <tr>
                      <th class="WADADataTableHeader">Website:</th>
                      <td class="WADADataTableCell"><a href="http://www.<?php echo $row_WADApracticelist['practicewebsite']; ?>" target="_blank"><?php echo($row_WADApracticelist['practicewebsite']); ?></a></td>
                    </tr>
                    <tr>
                      <th class="WADADataTableHeader">Star rating:</th>
                      <td class="WADADataTableCell"><?php echo($row_WADApracticelist['starrating']); ?></td>
                    </tr>
                  </table>
                  <div class="WADAHorizLine"><img src="WA_DataAssist/images/_tx_.gif" alt="" height="1" width="1" border="0" /></div>
                  <div class="WADAButtonRow">
                    <table class="WADADataNavButtons" border="0" cellpadding="0" cellspacing="0">
                      <tr>
                        <td class="WADADataNavButtonCell" nowrap="nowrap"></td>
                        <td class="WADADataNavButtonCell" nowrap="nowrap"></td>
                        <td class="WADADataNavButtonCell" nowrap="nowrap"><a href="practice_Results.php" title="Results"><img border="0" name="Results" id="Results" alt="Results" src="WA_DataAssist/images/Pacifica/Refined_results.gif" /></a></td>
                      </tr>
                    </table>
                  </div>
                </div>
              <?php } // Show if recordset not empty ?>
              <?php if ($totalRows_WADApracticelist == 0) { // Show if recordset empty ?>
                <div class="WADANoResults">
                  <div class="WADANoResultsMessage">No record found.</div>
                </div>
                <div class="WADAHorizLine"><img src="WA_DataAssist/images/_tx_.gif" alt="" height="1" width="1" border="0" /></div>
                <div class="WADADetailsLinkArea">
                  <div class="WADADataNavButtonCell"><a href="practice_Results.php" title="Results"><img border="0" name="Results1" id="Results1" alt="Results" src="WA_DataAssist/images/Pacifica/Refined_results.gif" /></a></div>
                </div>
                <div class="WADAHorizLine"><img src="WA_DataAssist/images/_tx_.gif" alt="" height="1" width="1" border="0" /></div><p><strong>Reviews for this practice:</strong></p>
                <?php do { ?>
                  <table width="100%" border="0" cellspacing="5" cellpadding="2">
                    <tr>
                      <td width="23%"> </td>
                      <td width="77%"><?php echo $row_rsReviews['comments']; ?></td>
                    </tr>
                    <tr>
                      <td> </td>
                      <td> </td>
                    </tr>
                                  </table>
                  <?php } while ($row_WADApracticelist = mysql_fetch_assoc($WADApracticelist)); ?>
                <?php } // Show if recordset empty ?>
            </div>
          </div>
        </div>
        <div id="contentright">
          <p> </p>
        </div>
      </div>
      <div class="clr"></div>
      <div id="footer">hj</div>
    </div>
    </body>
    </html>
    <?php
    mysql_free_result($WADApracticelist);
    mysql_free_result($rsReviews);
    ?>

    I haven't studied your code in detail, but it looks very much as though you have been editing the page without properly removing server behaviors through the Server Behaviors panel. Look at the following section:
    <?php require_once('Connections/connGVG.php'); ?>
    <?php require_once('Connections/connGVG.php'); ?>
    <?php
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
      $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
      $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
      switch ($theType) {
        case "text":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;   
        case "long":
        case "int":
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case "double":
          $theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL";
          break;
        case "date":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
          break;
      return $theValue;
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
      $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
      $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
      switch ($theType) {
        case "text":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;   
        case "long":
        case "int":
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case "double":
          $theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL";
          break;
        case "date":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
          break;
      return $theValue;
    ?>
    You have the connection file attached twice, and the GetSQLValueString() function is defined twice. However, the cause of all your problems lies here:
    $Parampractice_WADApracticelist = "-1";if (isset($_GET['practice_id'])) {
      $Parampractice_WADApracticelist = (get_magic_quotes_gpc()) ? $_GET['practice_id'] : addslashes($_GET['practice_id']);
    $ParamSessionpractice_WADApracticelist = "-1";
    if (isset($_SESSION['WADA_Insert_practicelist'])) {
      $ParamSessionpractice_WADApracticelist = (get_magic_quotes_gpc()) ? $_SESSION['WADA_Insert_practicelist'] : addslashes($_SESSION['WADA_Insert_practicelist']);
    $Parampractice_WADApracticelist = "-1";
    if (isset($_GET['practice_id'])) {
      $Parampractice_WADApracticelist = (get_magic_quotes_gpc()) ? $_GET['practice_id'] : addslashes($_GET['practice_id']);
    $Parampractice_id_WADApracticelist = "-1";
    if (isset()) {
      $Parampractice_id_WADApracticelist = (get_magic_quotes_gpc()) ?  : addslashes();
    $Parampractice_id2_WADApracticelist = "-1";
    if (isset()) {
      $Parampractice_id2_WADApracticelist = (get_magic_quotes_gpc()) ?  : addslashes();
    $ParamSessionpractice_id_WADApracticelist = "-1";
    if (isset()) {
      $ParamSessionpractice_id_WADApracticelist = (get_magic_quotes_gpc()) ?  : addslashes();
    mysql_select_db($database_connGVG, $connGVG);
    Look how many times the same code is repeated. What's causing the problem are the three final sections where there is no argument passed to isset().
    Delete the code highlighted in red.

Maybe you are looking for

  • Printing salesinvoices, is it possible to do it for more then one invoice?

    Is there a method to use VF03 with a selection for more then one sales invoices? I want to print them as pdf file, so I have to fill in the field billingdocument, but I need it for more then one invoice at the same time. I tried but it seems not to w

  • Order of services to start& stop essbase?

    Hello, I ahev installed essbase server,administartion,client. then in which order i have to start the console,admin...n all. what is difference between essbase ,essbase administartion, n console. Please clear my doubt. Thanks

  • RCA capture cable to Flash Media Live Encoder

    Hi, Last year I streamed a live event through a capture cable to Flash Media Encoder. Unfortunately I can't locate that cable and cannot remember the model we used. Can anyone advise on the best capture cable to use? RCA to firewire or RCA to USB? I

  • Tabbed panel action resizing rectangle below

    I have a tabbed panel on one layer, and a rectangle on a separate layer below. The content area of the tabbed panel varies in height. As I tab through the tabbed panel the rectangle is changing height as well. There is no fill on any parts of the tab

  • Ok, does anyone know the correct way to do this

    Hi all would someone beable to explain the correct way of attaching dynamic text to a rotaing menu so that the text moves with the image as it rotates, I am now being told that in order to have dynamic text rotate/move I have to embed the font, by pl