Understanding CMT, HELP!!

I'm looking for a good explanation of container managed transactions. At my company we have an EJB app in which we are trying to set CMT attributes on. It's strucured in a way that each table in our DB has a corresponding entity bean. (we use BMP entity beans) The app is already developed mostly (its in alpha) and none of us here understand enough about how to declare container transactions in a production app. We all know what they are (the six different kinds) and how they all work. What we're looking for is a practical example (not like the dumbed down textbook examples) of how you would use them in a production app. All of us here are stuck on the programmatic way of thinking and I know this is wrong when using CMT. So, this is the example. We have a submitOrder method that appears to be causing rollbacks/deadlocks (because we set every method's tx attribute to Required as a starting point). The submitOrder implementation is as follows:
submitOrder
   For Each lineItem
      lookup lineItem product
      adjust lineItem price using product
   End For
   set orderHead status finalized
end submitOrderWe have reason to believe that the rollback/deadlock comes from reading the product table from within a tx and thus locking certain product entities. The scenario goes as follows. User1 needs products A, B, and C. User2 needs products C, B, and A. When user1 reads A he is pre-empted by user2 who grabs C & B. Now user1 tries for B but has to wait for user2 who is waiting for the A that user1 has a lock on. There is no reason for the problem to occurr any place else because each user maintains his/her own set of lineItem transactions and works off of his/her own order record. So the question is this.
How would you set tx attributes to allow the method body to be in a transaction while not pulling the product entities into the transaction? 1st idea is to set the transactional attribute of the read method of the product entity to NotSupported. This is no good because there are other places in our app where we need to read the product within the context of an existing transaction. Next idea is to mark the read method on the product bean supports. However, that puts us right back where we started because the products will be read within the transaction causing deadlocks/rollbacks. So now I'm thinking that we need to call the read method on the product bean from a utility method that's marked NotSupported. But that sounds too much like programmatic tx control. So how do you address this problem? I'm looking for a best practice approach.
Cliff

So I need to define another entity bean just to get a non-transactional read on a product entity? Tell me there's got to be a better way. Is this the more common practice? Lets consider this scenario. I have 30 different tables in my DB. Each one has a corresponding entity bean. Lets now say that 15 of these tables need to be accessed in a read mostly fashion. Would that mean I should define an additional 15 beans to accomodate this bringing my total entity bean count to 45? This is a huge undertaken when applied to my app. We have about 170 different tables all of which have a corresponding entity bean. These beans are code-generated from the DB schema. The vast majority of them would most likely need to be read-mostly. This means that I need to code generate some extra entities to accomplish this which means more work at the code generation side. (I certainly wouldn't want to manually code them.) The scary thing is that I can't see how else to accomplish meaningful transaction isolation. I understand how complex it becomes when you start calling between methods on the same EJB and I'm frustrated by this. With POJO coding this is such a non-issue.
Lets step back and consider it on a conceptual level. I have server side logic that carries out a task on an entity. (Lets consider the entity to be abstract at this point.) 1/2 of the logic accesses other shared entities only to support the other 1/2 of the logic which represents an atomic unit of work. Logically I think of this as two separate methods. I don't think in terms of two separate objects containing the two methods because they methods relate to the same course of action, the same unit of work. You see where I'm lost here? I'm not getting the metaphore. (Please forgive me if it sounds like I'm debating with you because I'm not.) I wish I could see and understand a practical solution to this problem.
If your telling me that I need to introduce new objects for the sake of isolation then I can't see it. With POJO coding this would not be an issue, but introducing new entity beans merely to isolate a read seems excessive. Is there any better way around this? Thanks so much for your replies.
Cliff

Similar Messages

  • Understanding  TableModels (HELP)

    I'm looking for some resources that may help me understand the function of TableModels. I'm creating a two column table that will update in realtime w/ x y coordinates which will be streaming via a digitizer. My model is something like this. JTable -> TableModel -> DataSource (i.e. Digitizer input). The problem is that I have never used tables in java before and I am having trouble understanding the TableModel and its use.

    http://java.sun.com/docs/books/tutorial/uiswing/components/table.html

  • Error Message that i don't understand please help

    Hi,
    Please can you help me out to figure out what this error message means. I'm novice to mac os x world and i dont know much, my computer gets freezing every now and then, and will shutdown itself. Please find below error message and please if you have time to look at it and just explain to me what do i need to do, or where is the problem with it.
    Thanks in advance
    Interval Since Last Panic Report: 252477 sec
    Panics Since Last Report: 2
    Anonymous UUID: 1F56D626-1B8C-4DA0-BC7B-298FB99E2715
    Wed Feb 16 11:38:52 2011
    Machine-check capabilities (cpu 0) 0x0000000000000806:
    family: 6 model: 15 stepping: 6 microcode: 199
    Intel(R) Core(TM)2 CPU T7200 @ 2.00GHz
    6 error-reporting banks
    threshold-based error status present
    Machine-check status 0x0000000000000004:
    machine-check in progress
    MCA error-reporting registers:
    IA32MC0STATUS(0x401): 0xb200004000000800 valid
    MCA error code: 0x0800
    Model specific error code: 0x0000
    Other information: 0x00000040
    Threshold-based status: No tracking
    Status bits:
    Processor context corrupt
    Error enabled
    Uncorrected error
    IA32MC1STATUS(0x405): 0x0000000000000000 invalid
    IA32MC2STATUS(0x409): 0x0000000000000000 invalid
    IA32MC3STATUS(0x40d): 0x0020000000000000 invalid
    IA32MC4STATUS(0x411): 0xd000000000020151 valid
    MCA error code: 0x0151
    Model specific error code: 0x0002
    Other information: 0x00000000
    Threshold-based status: No tracking
    Status bits:
    Error enabled
    Error overflow
    IA32MC5STATUS(0x415): 0xb200121014040400 valid
    MCA error code: 0x0400
    Model specific error code: 0x1404
    Other information: 0x00001210
    Threshold-based status: No tracking
    Status bits:
    Processor context corrupt
    Error enabled
    Uncorrected error
    panic(cpu 0 caller 0x2a9d27): Machine Check at 0x17e960cc, thread:0x5e7fb7c, trapno:0x12, err:0x0,registers:
    CR0: 0x80010033, CR2: 0x17e97000, CR3: 0x00100000, CR4: 0x00000660
    EAX: 0x0000006d, EBX: 0xb073ad14, ECX: 0x1d52c034, EDX: 0x00000002
    ESP: 0xb073ad14, EBP: 0xb073ad2c, ESI: 0x1d52c1bc, EDI: 0x22e0dd60
    EFL: 0x00010206, EIP: 0x17e960cc
    Backtrace (CPU 0), Frame : Return Address (4 potential args on stack)
    0x819e18 : 0x21b50c (0x5d4438 0x819e4c 0x223974 0x0)
    0x819e68 : 0x2a9d27 (0x595f04 0x595ff1 0x17e960cc 0x5e7fb7c)
    0x819f58 : 0x2a1912 (0x1 0x0 0x0 0x0)
    BSD process name corresponding to current thread: WebKitPluginHost
    Mac OS version:
    10J567
    Kernel version:
    Darwin Kernel Version 10.6.0: Wed Nov 10 18:13:17 PST 2010; root:xnu-1504.9.26~3/RELEASE_I386
    System model name: MacBook2,1 (Mac-F4208CA9)
    System uptime in nanoseconds: 602770527130
    unloaded kexts:
    (none)
    loaded kexts:
    com.apple.filesystems.autofs 2.1.0 - last loaded 366723211188
    com.apple.driver.AppleTyMCEDriver 1.0.2d2
    com.apple.driver.InternalModemSupport 2.6.2
    com.apple.driver.AudioAUUC 1.13
    com.apple.driver.AppleIntelYonahProfile 14
    com.apple.driver.AppleIntelPenrynProfile 17
    com.apple.DontSteal_Mac_OSX 7.0.0
    com.apple.driver.AppleUpstreamUserClient 3.4.5
    com.apple.driver.AppleIntelNehalemProfile 11
    com.apple.driver.AudioIPCDriver 1.1.6
    com.apple.driver.AppleHDA 1.9.9f12
    com.apple.driver.AppleMCCSControl 1.0.17
    com.apple.driver.AppleIntelGMA950 6.2.6
    com.apple.driver.AirPort.Atheros 411.19.4
    com.apple.driver.AppleGraphicsControl 2.8.68
    com.apple.driver.SMCMotionSensor 3.0.0d4
    com.apple.iokit.AppleYukon2 3.2.1b1
    com.apple.driver.AppleIntelMeromProfile 19
    com.apple.driver.ACPISMCPlatformPlugin 4.5.0d5
    com.apple.driver.AirPort.Atheros21 424.14.5
    com.apple.driver.AppleLPC 1.4.12
    com.apple.driver.AppleBacklight 170.0.34
    com.apple.driver.AppleIntelIntegratedFramebuffer 6.2.6
    com.apple.driver.CSRHIDTransitionDriver 2.3.8f7
    com.apple.driver.AppleIRController 303.8
    com.apple.driver.AppleUSBTrackpad 200.3.2
    com.apple.driver.AppleUSBTCKeyEventDriver 200.3.2
    com.apple.driver.AppleUSBTCKeyboard 200.3.2
    com.apple.driver.USBCameraFirmwareLoader 1.1.0
    com.apple.iokit.SCSITaskUserClient 2.6.5
    com.apple.iokit.IOAHCIBlockStorage 1.6.3
    com.apple.BootCache 31
    com.apple.AppleFSCompression.AppleFSCompressionTypeZlib 1.0.0d1
    com.apple.driver.AppleUSBHub 4.1.7
    com.apple.driver.AppleAHCIPort 2.1.5
    com.apple.driver.AppleEFINVRAM 1.4.0
    com.apple.driver.AppleUSBEHCI 4.1.7
    com.apple.driver.AppleIntelPIIXATA 2.5.1
    com.apple.driver.AppleFWOHCI 4.7.1
    com.apple.driver.AppleUSBUHCI 4.1.5
    com.apple.driver.AppleRTC 1.3.1
    com.apple.driver.AppleHPET 1.5
    com.apple.driver.AppleSmartBatteryManager 160.0.0
    com.apple.driver.AppleACPIButtons 1.3.5
    com.apple.driver.AppleSMBIOS 1.6
    com.apple.driver.AppleACPIEC 1.3.5
    com.apple.driver.AppleAPIC 1.4
    com.apple.driver.AppleIntelCPUPowerManagementClient 105.13.0
    com.apple.security.sandbox 1
    com.apple.security.quarantine 0
    com.apple.nke.applicationfirewall 2.1.11
    com.apple.driver.AppleIntelCPUPowerManagement 105.13.0
    com.apple.driver.AppleProfileReadCounterAction 17
    com.apple.driver.AppleProfileTimestampAction 10
    com.apple.driver.AppleProfileThreadInfoAction 14
    com.apple.driver.AppleProfileRegisterStateAction 10
    com.apple.driver.AppleProfileKEventAction 10
    com.apple.driver.AppleProfileCallstackAction 20
    com.apple.iokit.IOSurface 74.2
    com.apple.iokit.IOBluetoothSerialManager 2.3.8f7
    com.apple.iokit.IOSerialFamily 10.0.3
    com.apple.driver.AppleHDAPlatformDriver 1.9.9f12
    com.apple.driver.AppleHDAHardwareConfigDriver 1.9.9f12
    com.apple.driver.DspFuncLib 1.9.9f12
    com.apple.iokit.IOAudioFamily 1.8.0fc1
    com.apple.kext.OSvKernDSPLib 1.3
    com.apple.iokit.IOFireWireIP 2.0.3
    com.apple.iokit.AppleProfileFamily 41
    com.apple.driver.AppleSMC 3.1.0d3
    com.apple.driver.IOPlatformPluginFamily 4.5.0d5
    com.apple.driver.AppleHDAController 1.9.9f12
    com.apple.iokit.IOHDAFamily 1.9.9f12
    com.apple.iokit.IO80211Family 312
    com.apple.iokit.IONetworkingFamily 1.10
    com.apple.iokit.IONDRVSupport 2.2
    com.apple.iokit.IOGraphicsFamily 2.2
    com.apple.driver.CSRUSBBluetoothHCIController 2.3.8f7
    com.apple.driver.AppleUSBBluetoothHCIController 2.3.8f7
    com.apple.iokit.IOBluetoothFamily 2.3.8f7
    com.apple.driver.AppleUSBMergeNub 4.1.5
    com.apple.iokit.IOUSBHIDDriver 4.1.5
    com.apple.driver.AppleUSBComposite 3.9.0
    com.apple.iokit.IOSCSIMultimediaCommandsDevice 2.6.5
    com.apple.iokit.IOBDStorageFamily 1.6
    com.apple.iokit.IODVDStorageFamily 1.6
    com.apple.iokit.IOCDStorageFamily 1.6
    com.apple.driver.XsanFilter 402.1
    com.apple.iokit.IOATAPIProtocolTransport 2.5.1
    com.apple.iokit.IOSCSIArchitectureModelFamily 2.6.5
    com.apple.driver.AppleFileSystemDriver 2.0
    com.apple.iokit.IOUSBUserClient 4.1.5
    com.apple.iokit.IOAHCIFamily 2.0.4
    com.apple.driver.AppleEFIRuntime 1.4.0
    com.apple.iokit.IOATAFamily 2.5.1
    com.apple.iokit.IOFireWireFamily 4.2.6
    com.apple.iokit.IOUSBFamily 4.1.7
    com.apple.iokit.IOHIDFamily 1.6.5
    com.apple.iokit.IOSMBusFamily 1.1
    com.apple.security.TMSafetyNet 6
    com.apple.kext.AppleMatch 1.0.0d1
    com.apple.driver.DiskImages 289
    com.apple.iokit.IOStorageFamily 1.6.2
    com.apple.driver.AppleACPIPlatform 1.3.5
    com.apple.iokit.IOPCIFamily 2.6
    com.apple.iokit.IOACPIFamily 1.3.0
    Model: MacBook2,1, BootROM MB21.00A5.B07, 2 processors, Intel Core 2 Duo, 2 GHz, 2 GB, SMC 1.13f3
    Graphics: Intel GMA 950, GMA 950, Built-In, spdisplaysintegratedvram
    Memory Module: global_name
    AirPort: AirPort Extreme, Atheros 5416: 2.1.14.5
    Bluetooth: Version 2.3.8f7, 2 service, 19 devices, 1 incoming serial ports
    Network Service: AirPort, AirPort, en1
    Serial ATA Device: WDC WD1600BEVT-22A23T0, 149.05 GB
    Parallel ATA Device: HL-DT-ST DVDRW GSA-S10N6
    USB Device: Built-in iSight, 0x05ac (Apple Inc.), 0x8501, 0xfd400000
    USB Device: Apple Internal Keyboard / Trackpad, 0x05ac (Apple Inc.), 0x021b, 0x1d200000
    USB Device: IR Receiver, 0x05ac (Apple Inc.), 0x8240, 0x5d200000
    USB Device: Bluetooth USB Host Controller, 0x05ac (Apple Inc.), 0x8205, 0x7d100000

    Welcome to Discussions, proartpro
    You have encountered a "kernel panic".
    Start here for help resolving your kernel panic: http://www.thexlab.com/faqs/kernelpanics.html
    Don't be concerned that it refers to OS X 10.5. The suggestions also apply to your 10.6.x Mac.
    If you want more info, the following will give you as much as you want:
     • Another KP help site: http://www.index-site.com/kernelpanic.html
     • Apple's KP knowledge base article: http://support.apple.com/kb/HT1392
     • Apple's 10.6 help article: http://docs.info.apple.com/article.html?path=Mac/10.6/en/8965.html
     • In-depth KP info: http://developer.apple.com/mac/library/technotes/tn2002/tn2063.html
    EZ Jim
    Mac Pro Quad Core (Early 2009) 2.93Ghz Mac OS X (10.6.6); MacBook Pro (13 inch, Mid 2009) 2.26GHz (10.6.6)
    LED Cinema Display; G4 PowerBook 1.67GHz (10.4.11); iBookSE 366MHz (10.3.9); External iSight; iPod4touch4.2.1

  • Prints of a pdf include the bleed after I alter things in illustrator? Can't understand please help.

    I have been given a leaflet to adjust which is in pdf format. After alterations I resaved the pdf and printed a sample but the print now has a white border around it.  Why have the dimensions changed??  Or what has happened? 
    Please help.

    krisbkrisp,
    Does the PDF look right on screen?
    When you print from PDF  in Acrobat/Reader, you should make sure that the print size of the contents is not reduced; depending on version, it may have different names (Print As Image or Zoom = 100% will give you fuill size, whereas Shrink oversizes pages to paper size or a Zoom level of less than 100% will shrink the contents).

  • Exceptions...don't understand, please help!

    Desperately seeking help! these exceptions are thrown when I get to a button that uses values entered in a table to do some math and plot a graph
    Exception occurred during event dispatching:
    java.lang.ArrayIndexOutOfBoundsException
    at CUTT_Analyser_Engine.validateStage2(CUTT_Analyser_Engine.java:127)
    at CUTT_Analyser$Listener.actionPerformed(CUTT_Analyser.java:434)
    at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
    at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown
    Source)
    at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
    at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source
    at java.awt.Component.processMouseEvent(Unknown Source)
    at java.awt.Component.processEvent(Unknown Source)
    at java.awt.Container.processEvent(Unknown Source)
    at java.awt.Component.dispatchEventImpl(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
    at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
    at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Window.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.run(Unknown Source)
    I honestly have no idea what these exceptions are trying to point out....
    I'm not very good but I think it might have to do with my array.... can any one please take a look and help?

    What java.lang.ArrayIndexOutOfBoundsException means: http://java.sun.com/j2se/1.4.2/docs/api/java/lang/ArrayIndexOutOfBoundsException.html
    java.lang.ArrayIndexOutOfBoundsException
    at CUTT_Analyser_Engine.validateStage2(CUTT_Analyser_Engine.java:127)
    The 127 is the line number that produced the error, so look at the class CUTT_Analyser_Engine, go to line 127 to see what it's trying to do.

  • What is wrong with this code; i just dot understand , please help

    <html>
    <head>
    <META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">
    <META HTTP-EQUIV="PRAGMAS" CONTENT="NO-CACHE">
    <META HTTP-EQUIV="EXPIRES" CONTENT="0">
    </head>
    <%@ page language="java" contentType="text/html" %>
    <%-- Import the necessary Java classes --%>
    <%@ page import="javax.servlet.*" %>
    <%@ page import="javax.servlet.http.*" %>
    <%@ page import="java.sql.*" %>
    <%@ page import="java.awt.*" %>
    <%@ page import="java.net.*" %>
    <%@ page import="java.io.*" %>
    <%@ page import="java.util.*" %>
    <%
         String queryText = "insert into User values('";
              queryText = queryText.concat((String)request.getParameter("title"));
              queryText = queryText.concat("','");
              queryText = queryText.concat(request.getParameter("firstname"));
              queryText = queryText.concat("','");
              queryText = queryText.concat(request.getParameter("surname"));
              queryText = queryText.concat("','");
              queryText = queryText.concat(request.getParameter("email1"));
              queryText = queryText.concat("','");
              queryText = queryText.concat(request.getParameter("password2"));
              queryText = queryText.concat("','");
              queryText = queryText.concat(request.getParameter("security_question"));
              queryText = queryText.concat("','");
              queryText = queryText.concat(request.getParameter("security_answer"));
              queryText = queryText.concat("')");
         Statement stmt = null;
        ResultSet rs = null;
         try     {
                   //load the ODBC JDBC driver
                   Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
                   //open a connection to the "gugis" database
                   Connection con = DriverManager.getConnection("jdbc:odbc:gugis","","");
                   //create a statement object for sending SQL queries
                   stmt = con.createStatement();
                   // Insert data into table using staement's method
                rs = stmt.executeQuery(queryText);          
                   //clean up all objects
                   stmt.close();
                   con.close();
                   response.sendRedirect("Reg_Success.html");
              catch (ClassNotFoundException err)
                   out.println("Data can't be inserted into our database...");
                   response.sendRedirect("Error.jsp");
    %>
    </html>error msg comes when i try to submit
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: An exception occurred processing JSP page /gugis.co.uk/adduser.jsp at line 49
    46:                stmt = con.createStatement();
    47:                               
    48:                // Insert data into table using staement's method
    49:             rs = stmt.executeQuery(queryText);          
    50:
    51:                //clean up all objects
    52:                stmt.close();
    Stacktrace:
         org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:505)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:398)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    root cause
    javax.servlet.ServletException: java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] Number of query values and destination fields are not the same.
         org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:850)
         org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:779)
         org.apache.jsp.gugis_co_uk.adduser_jsp._jspService(adduser_jsp.java:130)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    root cause
    java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] Number of query values and destination fields are not the same.
         sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:6957)
         sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:7114)
         sun.jdbc.odbc.JdbcOdbc.SQLExecDirect(JdbcOdbc.java:3110)
         sun.jdbc.odbc.JdbcOdbcStatement.execute(JdbcOdbcStatement.java:338)
         sun.jdbc.odbc.JdbcOdbcStatement.executeQuery(JdbcOdbcStatement.java:253)
         org.apache.jsp.gugis_co_uk.adduser_jsp._jspService(adduser_jsp.java:108)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    note The full stack trace of the root cause is available in the Apache Tomcat/6.0.16 logs.
    Apache Tomcat/6.0.16i am working on this for the last three hour but no luck
    please help
    Regards
    Gugi

    String queryText = "insert into User (Title, First_Name, Surname, Email, Password, Security_Question, Security_Answer) values('";
              queryText = queryText.concat((String)request.getParameter("title"));
              queryText = queryText.concat("','");
              queryText = queryText.concat(request.getParameter("firstname"));
              queryText = queryText.concat("','");
              queryText = queryText.concat(request.getParameter("surname"));
              queryText = queryText.concat("','");
              queryText = queryText.concat(request.getParameter("email1"));
              queryText = queryText.concat("','");
              queryText = queryText.concat(request.getParameter("password2"));
              queryText = queryText.concat("','");
              queryText = queryText.concat(request.getParameter("security_question"));
              queryText = queryText.concat("','");
              queryText = queryText.concat(request.getParameter("security_answer"));
              queryText = queryText.concat("')");i m using the above code instead of the other sql
    now i m getting the following
    HTTP Status 500 -
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: javax.servlet.ServletException: java.sql.SQLException: No ResultSet was produced
         org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:522)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:398)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    root cause
    javax.servlet.ServletException: java.sql.SQLException: No ResultSet was produced
         org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:850)
         org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:779)
         org.apache.jsp.gugis_co_uk.adduser_jsp._jspService(adduser_jsp.java:145)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    root cause
    java.sql.SQLException: No ResultSet was produced
         sun.jdbc.odbc.JdbcOdbcStatement.executeQuery(JdbcOdbcStatement.java:259)
         org.apache.jsp.gugis_co_uk.adduser_jsp._jspService(adduser_jsp.java:108)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    note The full stack trace of the root cause is available in the Apache Tomcat/6.0.16 logs.
    Apache Tomcat/6.0.16help plz
    regards
    gugi

  • Don't understand please help

    Okay well I bought my first ipod nano a few days ago. I have a laptop, my husband downloaded itunes on his laptop. Well we live in seprate locations at the moment due to the air force and his training. I downloaded itunes from a new computer and it deleted all my songs and won't let me "sync" songs onto my ipod? Did I do something wrong....can I not use itunes from our other computer? Is there a way I can start out new???? Thanks in advance

    Take a look here; it should help:
    Using iPod with multiple computers
    Regards.

  • What is "line mask" of "DIO PORT WRITE.VI"?​? I CANNOT Understand the Help file.

    In a example , i see "x*2n" for it. why !

    Hey gpibssx,
    The line mask is used to mask off the bits you are not interested in or you do not want to change. It is normally applicable when writing to a port.
    For example if the existing port value was 0b00001111 and you are writing the value 0b10101010 to a port. If the line mask was 0b00000001 the new value written to the port would be 0b00001110. If the line mask was 0b00001111 the new value would be 0b00001010. If the line mask was the default 0b11111111 the new value of the port would be 0b10101010.
    Basically the mask lets you know what values to change. I hope this helps out and let us know if this is still confusing.
    Joshua P.
    Application Engineering
    National Instruments

  • I bought the wrong season in french and I don't understand please help me

    ?

    Gift cards have always been that way - they are only good in the country, and the currency, they were purchased in.

  • Please help to understand the Service parts planning,we r tring to do poc for project

    Hi
    Please help to understand the Service parts planning,we r tring to do poc for project
    1)How the sales history flow from cube to Interactive forecasting screen(like dp in apo there is no Planning area to store data and no load planning area from cube,so please let me know how it will load data?)
    2)How the Final demand will flow to DRP for further planning?
    3)What is the exact purpose of BOD?
    4)What is the leading indicator forecasting and the purpose?
    5)Where data will store in SPP (forecasting and other data like liveache in dp)?
    6)Product interchangeability and use?
    6)Can you please forward the process document to understand the flow as i am not able understand the help document
    Thanks for advance help
    Regards
    kkk

    Hi,
    Please check Service Part Supply Plan - Enterprise Services in SAP Advanced Planning and Optimization - SAP Library
    BR

  • The best way to get help with logic

    I was posting in a thread on support for logic which appears to have been deleted. anyway, what I was going to say I think is useful info for people, so I'm going to post it anyway. to the mods - it doesn't contain any speculation about policies or anything like that. just an explanation of my views on the best way to deal with issues people have with logic, which I think is a valuable contribution to this forum.
    I think there's a need for perspective. when you buy an apple product you get 90 days of free phone support to get everything working nice and neat. you can call them whenever, and you could actually keep them on the phone all day if you wanted, making them explain to you how to copy a file, install microsoft office, or any number of little questions no matter how simple - what is that red button thingy in my window for?.. on top of that, you've got a 14 day dead on arrival period (or 10 days I can't remember) in which if your machine has any kind of hardware fault whatsoever it's exchanged for a totally new one, no questions asked. a lot of people complain that applecare is overpriced.. and if you think of it just as an extended warranty, then it is a little pricey. but if you are someone that could use a lot of phone support, then it's actually potentially a total bargain. the fact that 2 or more years after you bought a computer, you could still be calling them every single day, asking for any kind of advice on how to use anything on the machine, is quite something. many people on this forum have had problems when they made the mistake of upgrading to 10.4.9 without first creating a system clone or checking first with their 3rd party plug in vendors to make sure it was ok. so, with apple care, you could call them and keep a technician on the phone _all day_ talking you through step-by-step how to back up all of your user data, how to go through and preserve your preferences and any other specific settings you might not want to lose, and then how to rollback to an earlier OS version.. they'll hold your hand through the whole thing if you need them to.
    as for applecare support for pro apps like logic, I'd be the first person to agree that it's not great for anyone except beginners and first time users. if you look at what it takes to get even the highest level of logic certification, it's all pretty basic stuff. and logic doesn't exist in a vacuum, there is an entire universe of 3rd party software and hardware, as well as studio culture and advanced user techniques that are going to be totally invisible to some poor phone support guy at apple that did a logic 101. but it's not hard to see that apple are trying to promote a different kind of support culture, it's up to you to decide whether you want to buy into it or not.
    the idea is that they are able to provide basic setup support for new users, including troubleshooting. because it's a simpler level of support, at least they can do this well. so there's no reason why any new user with say a new imac and logic can't get up and running with the 90 days of phone support they get for free.
    but the thing is, for extremely high end pro users it's a different matter altogether. pro use of logic within the context of say, a studio or a film composition scenario is a very different world. it's almost a nonsense to imagine that apple could even hire people capable of giving useful support for this end of the spectrum, over the phone. there are so many variables, and so many things that require a very experienced studio person or in-work composer to even begin to understand the setup, let alone troubleshoot it. and it's a constantly evolving world, you actually have to be working in it and aware of developments on 3rd party fronts as well as changes in hardware.. not to mention even changes in the culture of studio production and the changed expectations that come from that. there's no way some poor little guy sitting at a help desk at apple can even hope to be privy to that kind of knowledge. it's already good enough that they don't outsource their support staff to india, let alone go out to studios and hire the very people with the skills that should be staying in the studio! not answering phones for apple.
    so, given this reality.. companies have two choices. they can either offer an email based support ticket system, which others do. but in my opinion.. this can just be frustrating and only a half-solution. sure you 'feel' like you are getting a response from the people that make the software and therefore must know it.. but it's not really the case due to what I said above. DAWs don't exist in a vacuum, and so much of what you need to understand to help people requires an intimate knowledge of the music industry in which they are working. you still won't get that from steinberg, even if they sort of answer your emails. the other problem is that this kind of system can mean sporadic answers, a lot of tail-chasing, and quite often you won't get an answer that helps you in the end anyway.
    the other model is to foster a strong user support culture. some people react in the wrong way to this idea.. they just think it's a big brush off from the manufacturer, saying we don't care, go sort it out yourselves.. but this isn't true. apple has a classification for pro resellers called 'apple solutions expert - audio'. what this means is that these dealers are recognised as audio specialists and they can receive extra support and training from apple for this. but more importantly than this.. most of them are music stores, or pro gear dealerships that are also mac and logic dealers. they already employ people that have worked or do work in the music industry, and are constantly on top of all of this stuff. apple encourages these dealers to run workshops, and to provide expert sales advice in the very niche area that logic is in, which they can do far better than some generic apple store ever could. but most importantly, they are encouraged to offer their own expert after-sales support and whatever other value-adding expertise they can, to get sales. because margins in computer gear are so tight nowadays, discounting is not really a viable option for these dealers to guarantee getting musicians to buy computers and logic setups from them. the only companies that can entice people with a lower price a big online wholesalers or big chain stores. so the best idea for these niche expert stores to get sales is to offer you their own experts to help with configuration, ongoing support and to generally make it a better idea that you bought your system from them rather than from some anonymous online store. I can see the wisdom of this.. it puts the support back out there on the ground where it's needed, and also where it can work best. apple could never hope to offer the same level of expertise in helping a film composer work through some issues with a specific interface or some highly specific issue they have with getting a task done. no big software manufacturer could do this anywhere near as well as people out there that have worked in studios or currently do work in studios. so in my opinion it's a far better model to foster this kind of support culture, along with training courses, books and training video support. also user forums like this one are possibly one of the most valuable ports of call anyone could ask for. apple couldn't replicate this with their own staff, even if they tried. and even if they made a system where some of the people close to logic development were able to answer emails, it would still be nowhere near as useful, as rapid or as capable of being up to speed with logic use out in the real world with 3rd pary gear, as any of these other methods are.
    the only thing I think they could do better would be to publish a list of known bugs which are officially recognised. this would help everyone and put an end to a lot of wasted time and speculation on if something is a bug totally to do with logic, or if it's a specific issue raised by a particular configuration.
    but really, in my view, a 3rd party support and training culture through a combination of specialist dealers, consultants that literally run a business setting up computers for pro-users and helping them keep it all working, online user-to-user forums and published materials really are the way forward.

    In all honesty this is currently the 3rd "logicboard" (motherboard)
    in my powerbook due to a design flaw regarding the 2nd memory slot....
    Yep. Mine failed five weeks after I bought it. However, I bought it for work and couldn't afford being without it for four weeks while they fixed it, so I had to live with it. My serial number did not entitle me to a replacement either, post Applecare.
    My firewire ports have burnt out from a third-party defective device (no hot-plugging involved)
    My screen is blotchy (my PW serial number did not entitle me to a replacement).
    My battery serial number did not entitle me to a replacement, and is not that good these days.
    My guaranteed Powerbook-compatible RAM is actually not, causing RAM related problems, most notably these days meaning that as soon as I switch to battery power, the laptop crashes, so I can only use mains power. The company I bought it from stopped taking my calls and wouldn't replace it after they replaced it once, so I'm stuck with it. And of course, only one ram slot is working, so I can't even use my original stick in the first slot, which would shift the dodgy stuff away from the lower system area.
    My power supply failed at the weak spot and caught fire. I managed to break apart the power supply and recable it so I didn't have to buy a new power supply, although the connection at the laptop end is loose (all the more fun that as soon as power is lost, the laptop crashes - see above). The power supply is held together with gaffa tape. Silver gaffer tape though, so it's still kind of 'Appley"...
    My internal hard drive is dying - four or five times now it clicks and won't power up, causing the laptop to die.
    One foot has fallen off (but glued back on).
    The lid is warped.
    The hinge is loosish.
    The S-Video adaptor cable is intermittent.
    But aside from all that, I have looked after it well, and I love it to death. Just as well, because it doesn't look like it will be that long...
    But it still "just works". Apart from the battery power obviously. And the ram slot. And the ram. And the screen. And the hard drive. And the firewire ports. And the feet.
    But everything apart from the main board, the screen, the case, the hard drive and the power supply works fine. So thats... er..
    Hmm.

  • Help Using a range of random numbers

    so what i understand from this im learning flash from lynda.com tutorials and no matter how many times i listen to each word the guy says, i dont understand this part
    in the vid, we are making a die to roll from 1-6 although the code below is not the finali hope someone can help me unserstand
    var randomNumber:Number = Math.round(Math.random() * (10 - 1) + 1);
    trace(randomNumber);
    so what i understand from this is:
    The variables name is randomNumber:randomNumber is going to be a Number = Using the Math class - we are going to round the Number(we make a random Number from 0 to 1 not including 1() * from here i need help understanding, please help me

    Hi,
    Math.random() will give you a number between 0 and 0.9999999 ( but not 1 );
    lets suggest that you want a random number from 1 to 10. Note that round give you a digit from "0", so you must substract 1  ( 10 - 1) ( 0-10 fave 11 digits )
    To get a random number of Some digit you will need to multiply Math.random() with this digit -1 - so if yo want to get a random digit from 10 you will need to get a random digit ( Math.random() ) and multiply it by 10-1. this will give you a randum number between 0 and 8.999(9).
    but this have a floating part. To remove the "." you must round the result so after rounding the result will be a randm digit from  0 to 9. but the first digit is '0" if you dont neededthe result must be increment + 1 after rounding  and will be from 1 to 10

  • I installed itunes 10.5 in my PC to sync with my ipod touch 4G but it's giving me error that itunes could not connect to itnues store.Make sure network connection is active and try again...I'm connected to internet though, please help!

    I installed itunes 10.5 in my PC to sync with my ipod touch $G but it's giving me error message that itunes could not connect to itunes store..."make sure network is active and try again." I'm connected to internet though so I don't understand please help!

    Close your iTunes,
    Go to command Prompt -
    (Win 7/Vista) - START/ALL PROGRAMS/ACCESSORIES, right mouse click "Command Prompt", choose "Run as Administrator".
    (Win XP SP2 &amp; above) - START/ALL PROGRAMS/ACCESSORIES/Command Prompt
    In the "Command Prompt" screen, type in
    netsh winsock reset
    Hit "ENTER" key
    Restart your computer.
    If you do get a prompt after restart windows to remap LSP, just click NO.
    Now launch your iTunes and see if it is working now.
    If you are still having these type of problems after trying the winsock reset, refer to this article to identify which software in your system is inserting LSP:
    iTunes 10.5 for Windows: May see performance issues and blank iTunes Store
    http://support.apple.com/kb/TS4123?viewlocale=en_US

  • Please help me with the homework given to me by my teacher

    hello,i am new in java programming please help me with the home work given to me by my teacher at school, help me to build an interface that can work with this code.i can build an interface but i dont just understand this code.
    //references:
    //http://forums.techguy.org/development/570048-need-write-java-program-convert.html
    import java.util.Map;
    import java.util.HashMap;
    import java.util.Iterator;
    import java.io.FileNotFoundException;
    import java.io.IOException;
    import java.io.BufferedReader;
    import java.io.FileReader;
    public class Translate
      public static void main(String [] args) throws IOException
        if (args.length != 2)
          System.err.println("usage: Translate wordmapfile textfile");
          System.exit(1);
        try
          HashMap words = ReadHashMapFromFile(args[0]);
          System.out.println(ProcessFile(words, args[1]));
    catch (Exception e)
          e.printStackTrace();
      // static helper methods
       * Reads a file into a HashMap. The file should contain lines of the format
       *    "key\tvalue\n"
       * @returns a hashmap of the given file
      @SuppressWarnings("unchecked")
      private static HashMap ReadHashMapFromFile(String filename) throws FileNotFoundException, IOException
        BufferedReader in = null;
        HashMap map = null;
        try
          in = new BufferedReader(new FileReader(filename));
          String line;
          map = new HashMap();
          while ((line = in.readLine()) != null)
            String[] fields = line.split("\\t", 2);
            if (fields.length != 2) continue; //just ignore "invalid" lines
            map.put(fields[0], fields[1]);
    finally
          if(in!=null) in.close(); //may throw IOException
        return(map); //returning a reference to local variable is safe in java (unlike C/C++)
       * Process the given file
       * @returns String contains the whole file.
      private static String ProcessFile(Map words, String filename) throws FileNotFoundException, IOException {
        BufferedReader in = null;
        StringBuffer out = null;
        try {
          in = new BufferedReader(new FileReader(filename));
          out = new StringBuffer();
          String line = null;
          while( (line=in.readLine()) != null ) {
            out.append(SearchAndReplaceWordsInText(words, line)+"\n");
        } finally {
          if(in!=null) in.close(); //may throw IOException
        return out.toString();
       * Replaces all occurrences in text of each key in words with it's value.
       * @returns String
      private static String SearchAndReplaceWordsInText(Map words, String text) {
        Iterator it = words.keySet().iterator();
        while( it.hasNext() ) {
          String key = (String)it.next();
          text = text.replaceAll("\\b"+key+"\\b", (String)words.get(key));
        return text;
       * @returns: s with the first letter capitalized
      String capitalize(String s)
        return s.substring(0,0).toUpperCase() + s.substring(1);
    }... here's the head of my pirate_words_map.txt
    hello     ahoy
    hi     yo-ho-ho
    pardon me     avast
    excuse me     arrr
    yes     aye
    my     me
    friend     me bucko
    sir     matey
    madam     proud beauty
    miss     comely wench
    stranger     scurvy dog
    officer     foul blaggart
    where     whar
    is     be
    are     be
    am     be
    the     th'
    you     ye
    your     yer
    tell     be tellin'

    Heres your answer. Run it in on your pc.
    public class Annoy
    public static void main(String[] args)
       System.out.println("I am a triple poster.");
       System.out.println("I can not understand why I can not understand the help I have receved to date on the java forums.");
    }

  • Help needed in installing Identity management 11.1.1.2

    Hi,
    I have installed Oracle Webcenter and SOA suite (11g) in single domain and also installed and conten server 10.1.3.4. All in a single machine. And I want to provide LDAP Identity store for custom applications/Spaces application with content management. I am in the process installing Identity management. I have the following issues
    1. Do I need to install all the 5 components of Identity suite?
    2. Due to performance reasons I want to install Idm suite on different machine. Can the webcenter application on machine1 be configured to use the identity services from machine2 ,consideing i created a new domain on machine2 that contains it identity servers with its own admin console/Fusion control?
    installation guide contains lot of options which i could not understand .Please help me in this regard.
    Thansk,
    indra

    resolved

Maybe you are looking for

  • RFC JAVA CONNECTOR CAUSING THE JAVA TO BE IN SAFE MODE

    Hi GURUS : We have SolMan with JAVA as Add in . Now during the JSPM Launch the JSPM Aborts with the Err Messages as shown : in trace file dev_jrfc.trc and in defaultTrace we have this same message : >>>> #1.5 #0003BA951BE1004C0000000500007486000456B8

  • What's wrong in the code.....Not giving proper answer.

    Hi All, below is code for adding 2 simple no's using pl-sql but by setting serveroutput on size 50000,I'm unable to find answer to this .. declare no_1 number; no_2 number; result number; a number; b number; begin dbms_output.put_line ('Enter the Fir

  • Converting Object Arrays?

    I have created a vector which adds various strings to it as it goes along. At the end of this I want to convert the vector into a String array. I've tried to use the vector .toArray() function but it converts it to an Object Array. Does anybody know

  • "Stacking" Components

    I'm not really sure how to approach a GUI issue I'm facing. I've been playing around with JLayeredComponents but a.) can't get them working and b.) I'm not even sure that that would be the ideal solution, so... I'm trying to create a JDialog. From a

  • Contacts shortcut on homescreen

    I haven't seen it mentioned anywhere, but I really wonder why the contact shortcuts on the N97 don't have the same functionality as on the 5800 - a log of calls and messages, when you press on one of the four contacts.  On the N97 it's just a plain s