Problem when clustering with O Cluster

Dear all ,
i have the following error when trying to build a clustering model on my data. I used O cluster with the default settings. The strange thing is i have have created a build before for the same data and on the same machine and it worked fine. what could be wrong ? The error description says a memory problem but my settings have not changed since last time.
here is the complete error desciption
Server task state: error
Server task detail:
ORA-40101: Data Mining System Error ORA-40101: Data Mining System Error ORA-40101: Data Mining System Error ODM_OC_CLUSTERING_MODEL-BUILD_OC.build_ocluster--20010
ORA-06512: at "SYS.DBMS_SYS_ERROR", line 105
ORA-06512: at "DMSYS.ODM_OC_CLUSTERING_MODEL", line 122
ORA-06512: at "DMSYS.ODM_OC_CLUSTERING_MODEL", line 2408
ORA-40101: Data Mining System Error ODM_OC_CLUSTERING_MODEL-BUILD_OC.ocluster--20010
ORA-06512: at "SYS.DBMS_SYS_ERROR", line 105
ORA-06512: at "DMSYS.ODM_OC_CLUSTERING_MODEL", line 122
ORA-06512: at "DMSYS.ODM_OC_CLUSTERING_MODEL", line 2312
ORA-06500: PL/SQL: storage error
ORA-04030: out of process memory when trying to allocate 16396 bytes (koh-kghu call ,pmucalm coll)
ORA-06512: at "SYS.DBMS_SYS_ERROR", line 105
ORA-06512: at "DMSYS.ODM_OC_CLUSTERING_MODEL", line 122
ORA-06512: at "DMSYS.ODM_OC_CLUSTERING_MODEL", line 2408
ORA-06512: at "SYS.DBMS_SYS_ERROR", line 105
ORA-06512: at "DMSYS.ODM_OC_CLUSTERING_MODEL", line 122
ORA-06512: at "DMSYS.ODM_OC_CLUSTERING_MODEL", line 2312
ORA-06512: at "DMSYS.DBMS_DATA_MINING", line 30--
Many thanks
Lamia Abo zaid

hi ,
In this scenario u can use the load balancer instead of fail over clustering .
I would suggest u to create apache proxy for redirect the request for many jboss instance.
Rgds
kathir

Similar Messages

  • My iPhone 5 got problem when connect with lighting cable, this will keep pop up message "this accessory may not be supported"

    My iPhone 5 got problem when connect with lighting cable, this will keep pop up message "this accessory may not be supported", I can't charge or sync at all. I tried plug and unplug many time, still can't detect/charge my iPhone5, but sometime will 'lucky' that can connect to my iTunes and charge battery…
    This message will auto pop up also when I don't have plug anything in my iPhone 5, It is very annoying…
    The lighting cable is original and now i'm using OS 7.0.4 / iTunes is 11.1.3
    What I can do to fix this problem? Thank you.

    I would try using another cable you can likely borrow one to test from somebody
    if it's the same then likely the connector in your iphone have been damaged

  • Problem when working with package???Please, help me!!!

    I got 3 .java files from one Java tutorial as follow:
    Server.java (in package mygame.server)
    Utilities.java (in package mygame.shared)
    Client.java (in package mygame.client)
    All the above files are placed in "E:\Java Programmes\source"
    After compiling, i got correspponding .class files:
    Server.class (placed in "E:\Java Programmes\class\mygame\server")
    Utilities.class (placed in "E:\Java Programmes\class\mygam\shared")
    Clients.class (placed in "E:\Java Programmes\class\mygame\client")
    But when i run Server.class which contains main method, i got error as follow:
    E:\Java Programmes>java class\mygame\server\Server
    Exception in thread "main" java.lang.NoClassDefFoundError: class\mygame\server\S
    erver (wrong name: mygame/server/Server)
    at java.lang.ClassLoader.defineClass1(Native Method)
    at java.lang.ClassLoader.defineClass(Unknown Source)
    at java.security.SecureClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.access$100(Unknown Source)
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClassInternal(Unknown Source)
    That was very puzzled for me. I cannot find out what wrong with my files. Please., any boby, help me!!! I always got this problem when working with package and managing files. Thanls a lot.

    java -cp "E:\Java Programmes\class" mygame.server.Server

  • Problem when streaming with the CLI flash media encoder 2.5

    I have a problem when streaming with Flash Media Encoder 2.5. When I run the GUI, everything works, but when I use the commandline with the same profile I have created using the GUI, it says it can't connect to the server.
    I have to use this version of the encoder, because the other is not working with the server, and I have to create a program to remotely control the flash media encoder, so I have to use the CLI. What can i do to go over this problem?
    Any help would be really appreciated. Thankyou.

    First of all, thankyou.
    There is no authentication needed. I can't use Flash Live Media Encoder 3 because it is not supported by the people which manages the server i have to connect to.
    In fact, I don't know why they dont support it, but that is the way it is.
    Through the GUI, i connect directly and without problems, without user/pass.
    Thankyou again.

  • Nexus 1000V. problem when working with the console VMWare

    I have a problem when working with the console VMWare.
    Sometimes it is impossible to connect any of the hypervisor to the guest OS managed by them.
    I get the message: "Unable connect to the MKS: Host address lookup for server <name of the hypervisor> failed: No such host is known."
    This message always appears in conjunction with the reconfiguration of virtual switch: "Reconfigure vNetwork Distributed Switch .... Initiated by Cisco_Nexus_1000V_ ....."
    Upon completion of the reconfiguration, Communication console, with guest OS is restored, or on its own or after a reboot srv-vc.
    In this time, I do not see any message in Nexus 1000v log.
    What is this?
    Thanks in advance.

    Smells of a DNS issue.  Are you sure your ESX hosts are reachable from your client via DNS hostname?  Try pinging them from a command prompt/terminal.  You may have DNS server issues.
    As a temp fix, edit your [windowspath]/system32/etc/drivers/hosts file and manually add the ESX host name and IP, then re-test.
    Regards,
    Robert

  • Problem when iterating with JSTL

    hi ,
    i have occured a problem when iterating with JSTL
    althought this error,my application works fine but i would like to know why this error:
    ther is my iteration code:
    <c:forEach items="#{sWIMmoduleStatistiques.listeModules}" var="m">
               <h:panelGroup>
                <br>
                 <div class="connectorChartHeader" onclick="toggleImage('${m.nomChart}');" >
                <span class="headerTitle">${m.nom}</span>
            </div>
                   <br><br>
                   <img src="${m.nomChart}" id="${m.nomChart}" />
               </h:panelGroup> 
           </c:forEach>       
         the error is:
    javax.servlet.jsp.JspTagException: Don't know how to iterate over supplied "items" in <forEach>
         at org.apache.taglibs.standard.tag.common.core.ForEachSupport.toForEachIterator(ForEachSupport.java:274)
         at org.apache.taglibs.standard.tag.common.core.ForEachSupport.supportedTypeForEachIterator(ForEachSupport.java:238)
         at org.apache.taglibs.standard.tag.common.core.ForEachSupport.prepare(ForEachSupport.java:155)
         at javax.servlet.jsp.jstl.core.LoopTagSupport.doStartTag(LoopTagSupport.java:256)
         at org.apache.jsp.pages.modulesStatistiques_jsp._jspx_meth_c_005fforEach_005f0(modulesStatistiques_jsp.java:434)
         at org.apache.jsp.pages.modulesStatistiques_jsp._jspx_meth_h_005fpanelGrid_005f0(modulesStatistiques_jsp.java:399)
         at org.apache.jsp.pages.modulesStatistiques_jsp._jspx_meth_f_005fview_005f0(modulesStatistiques_jsp.java:181)
         at org.apache.jsp.pages.modulesStatistiques_jsp._jspService(modulesStatistiques_jsp.java:109)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
         at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:630)
         at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436)
         at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374)
         at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
         at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:410)
         at com.sun.faces.application.ViewHandlerImpl.executePageToBuildView(ViewHandlerImpl.java:473)
         at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:141)
         at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
         at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:196)
         at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:109)
         at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
         at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
         at TimeoutFilter.doFilter(TimeoutFilter.java:60)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
         at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:177)
         at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:267)
         at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:380)
         at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:507)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
         at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
         at java.lang.Thread.run(Thread.java:595)

    that line generated an error:
    java.lang.NumberFormatException: For input string: "class"
         java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
         java.lang.Integer.parseInt(Integer.java:447)
         java.lang.Integer.parseInt(Integer.java:497)
         javax.el.ListELResolver.coerce(ListELResolver.java:166)
         javax.el.ListELResolver.getValue(ListELResolver.java:51)
         javax.el.CompositeELResolver.getValue(CompositeELResolver.java:53)
         com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:72)
         org.apache.el.parser.AstValue.getValue(AstValue.java:118)
         org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)
         org.apache.jasper.el.JspValueExpression.getValue(JspValueExpression.java:101)
         javax.faces.component.UIOutput.getValue(UIOutput.java:184)
         com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer.getValue(HtmlBasicInputRenderer.java:201)
         com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.getCurrentValue(HtmlBasicRenderer.java:284)
         com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeEnd(HtmlBasicRenderer.java:154)
         javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:861)
         javax.faces.component.UIComponent.encodeAll(UIComponent.java:946)
         javax.faces.render.Renderer.encodeChildren(Renderer.java:148)
         javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:837)
         javax.faces.component.UIComponent.encodeAll(UIComponent.java:936)
         javax.faces.component.UIComponent.encodeAll(UIComponent.java:942)
         com.sun.faces.application.ViewHandlerImpl.doRenderView(ViewHandlerImpl.java:271)
         com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:202)
         org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:108)
         org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:196)
         com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:109)
         com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
         com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
         javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
         TimeoutFilter.doFilter(TimeoutFilter.java:64)
         org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:177)
         org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:267)
         org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:380)
         org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:507)

  • Problem when using with native document as cdf

    Hay all,
    I am trying to use native document as cdf in the simple way without define any converters.
    I have a placeholder in my page that has been asigned to native document.
    My goal his to display a native documant(like word) as web view html.
    My problem his that i got this error:
    " Caused by: oracle.stellent.ridc.protocol.ServiceException: Unable to download 'ERANTEST'. Failed to export document 'ERANTEST' using template '(null)' and layout '(null)'. Export process: 'hcexport' "
    Can anyone have an idea for this problem?
    Note: i have another application that running in a different enviornment that work fine except hebrew problem.
    Thanks,
    Eran z

    Hi Eran ,
    Root cause for this issue :
    In a windows based cluster environment intradoc.cfg had weblayout and vault pointing to the UNC path of the shared file system . This is a known bug / issue with the cluster environment where in indexer would fail .
    Here too the same issue was causing the issue where in the files being checked in are failing to get indexed due to the UNC path set for weblayoutdir and vaultdir values in intradoc.cfg .
    Solution :
    Map the shared file system to a drive letter like Y:/weblayout and Y:/vault .
    Use these values in weblayoutdir and vaultdir in intradoc.cfg and restart the server.
    After the re-index the entire collection to resolve the issue .
    Thanks
    Srinath

  • JDO object id problem when working with an appserver

    Hi,
    I'm running into a problem when passing a JDO object id as an argument to a
    bean. My client is finding a JDO object locally, then attempting to
    instantiate a bean which wraps the JDO object. Since the JDO object is not
    Serializable, I'm passing the object id to the bean constructor, so that the
    bean can look up the object again, this time in the appserver, and wrap it,
    without ever serializing the object.
    I'm guessing that the JDOId class for the JDO object is generated on the fly
    in the client, and therefore does not exist in the ClassLoader in the
    appserver. Any ideas how I can fix this?
    Thanks,
    Eric
    Exception in thread "main" java.lang.reflect.UndeclaredThrowableException:
    java.lang.ClassNotFoundException: test.TheTest$JDOId (no security manager:
    RMI class loader disabled)
    at
    sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteC
    all.java:245)
    at
    sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:220)
    at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:122)
    at
    org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker_Stub.invokeHome(Unkno
    wn Source)
    at
    org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invokeHome(HomeProxy.java:25
    8)
    at
    org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invoke(HomeProxy.java:182)
    at $Proxy0.create(Unknown Source)
    at test.TheTestRemote.<init>(Unknown Source)
    at test.TheTest.getRemoteObject(TheTest.java:19)
    at
    com.hcm.tools.util.CollectionHelper.getFirst(CollectionHelper.java:23)
    at
    com.hcm.tools.jdo.JDOFactory.executeSingletonQuery(JDOFactory.java:234)
    at test.Test.print(Test.java:22)
    at test.Test.main(Test.java:11)

    Hi David,
    I'm trying to use JDO to completely replace Entity Beans. Of course, this
    leaves me with an important question: how do you make the JDO object
    available remotely? My answer is to wrap JDO objects with a stateful
    session bean, and pass through method calls made on the bean to the JDO
    object. Both the bean and the JDO object will implement some interface, so
    you can use an object in a client without any knowledge as to whether it is
    a bean or a JDO object. ( Important note: I can get away with this because
    of another cool Solarmetric product, the session bean creator, which
    enhances a simple java object into a session bean )
    Now, once I have some interface implementation, maybe a local persistent
    object, maybe a remote object, I will want to do something with it. There
    are a couple considerations here. First, if I want to edit the object, I
    need to make sure a transaction gets started. I do this by having my
    session beans take care of starting and committing transactions. Since I
    have written my own JDO Factory that takes care of synchronizing PM caches
    across transactions, this has the effect of keeping all my caches in the
    appserver up-to-date as well ( more on that if you're interested ). So, in
    order to call a 'set' method, I need to ensure that the object I have is in
    it's "remote" state, so-to-speak.
    So I created an interface called RemotePersistentObject, which all these
    other interfaces extend. It includes two methods, getRemoteObject (), and
    getObjectId (). The reason for getObjectId (), instead of
    getPersistentObject (), is that often times you don't want your JDO objects
    to be Serializable, especially if you have JDO objects that you want to
    guarantee remain unique ( say, no two Stock objects have the same ticker
    symbol ). Besides, you want the remote object to represent the same
    concept, and as soon as you serialize the persistent object, you have a copy
    of the original JDO object that will no longer do nice things you'd like it
    to do, like get updated when some transaction in a different thread modifies
    a field.
    So, to get around this serialization issue, I just pass the JDO object id to
    the bean, and have the bean lookup and wrap the appropriate JDO object on
    the server. I wrote a couple optional base classes that provide a lot of
    the functionality for this, since it turns out that wrapping a
    non-serializable JDO object is non-trivial. The problem there is that when
    the bean passivates, it serializes the state of the session bean... oops.
    So the base classes take care of keeping a transient reference to the actual
    object, while keeping a non-transient ref to the object id. All attempts to
    use the actual JDO object are filtered through a getObject () method, which,
    if the transient ref has disappeared due to bean passivation, looks up the
    object in a read-only PM again.
    Hmmmm. Lots of stuff here. I'll stop here and answer any questions (
    criticisms ) you may have.
    -Eric
    "David Ezzio" <[email protected]> wrote in message
    news:[email protected]...
    Eric,
    Curious minds want to know: what are you up to here? I found this to
    be a very interesting post, and I would like to know more about the
    architecture you are using and its motivation if you can share it.
    David Ezzio
    Eric Lindauer wrote:
    Hi,
    I'm running into a problem when passing a JDO object id as an argument
    to a
    bean. My client is finding a JDO object locally, then attempting to
    instantiate a bean which wraps the JDO object. Since the JDO object isnot
    Serializable, I'm passing the object id to the bean constructor, so thatthe
    bean can look up the object again, this time in the appserver, and wrapit,
    without ever serializing the object.
    I'm guessing that the JDOId class for the JDO object is generated on thefly
    in the client, and therefore does not exist in the ClassLoader in the
    appserver. Any ideas how I can fix this?
    Thanks,
    Eric
    Exception in thread "main"java.lang.reflect.UndeclaredThrowableException:
    java.lang.ClassNotFoundException: test.TheTest$JDOId (no securitymanager:
    RMI class loader disabled)
    at
    sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteC
    all.java:245)
    at
    sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:220)
    at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:122)
    at
    org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker_Stub.invokeHome(Unkno
    wn Source)
    at
    org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invokeHome(HomeProxy.java:25
    8)
    at
    org.jboss.ejb.plugins.jrmp.interfaces.HomeProxy.invoke(HomeProxy.java:182)
    at $Proxy0.create(Unknown Source)
    at test.TheTestRemote.<init>(Unknown Source)
    at test.TheTest.getRemoteObject(TheTest.java:19)
    at
    com.hcm.tools.util.CollectionHelper.getFirst(CollectionHelper.java:23)
    at
    com.hcm.tools.jdo.JDOFactory.executeSingletonQuery(JDOFactory.java:234)
    at test.Test.print(Test.java:22)
    at test.Test.main(Test.java:11)

  • Problem when Working With Combo

    Dear all,
    I am having a problem when i am working with Combobox.At the time of modification of any existing record i am retrieving the value and description of a Combo and doing accordingly.But sometimes it is showing error that Object Reference is not set.
    If i click that combo(one time) then i am not getting any of error.
    Error comming from the line like : strDesac=oCombobox.Selected.Description
    The thing is that this is not selected item ,it it comming automatically.
    How to handle this types of error.
    Waiting for as reply soon.
    Regards
    Sanjay

    But, this is the question! I dont know how to initialize the combobox' first option. Help me, please! I am using the addItem method as follow:
    MakeJCombo ( JComboBox ComboObj) {
    ComboObj.addItem ("option1");
    ComboObj.addItem ("option2");
    ComboObj.addItem ("option3");
    then:
    public void itemStateChange(ItemEvent ie) ...
    Object origem = ie.getSource()...
    if (origem == ComboObj) ...

  • Problem when communicating with postgres

    Hi everyone,
    i have got a problem when i am trying to communicate with postgres.
    i am calling a bean in which i have methods for insertion. for ur convinience i here provide the class.
    package Harish;
    import java.sql.*;
    import java.util.*;
    import java.lang.*;
    public class Exception_IP_List
         Connection con;
         Statement st;
         //Constructor
         public void Exception_IP_List()
         //Getting the Connection with the database
         public Connection getConnection()
              try {
                   Class.forName("org.postgresql.Driver");
                   con = DriverManager.getConnection("jdbc:postgresql://localhost/CF","postgres"," ");
                   System.out.println("Connection Created");
                   st = con.createStatement();
                   System.out.println("Statement Created");
              }catch(Exception e){
                   e.printStackTrace();
              }finally{
                   return con;
         } //end of getting connection with database
         //Inserting the exception IP details into the database
         public int insertExceptionIPList(String ipAddress)
    int insert = 0;
              try {
                   getConnection();
                   String sql = "INSERT INTO exception_ip_list (ip_Address)"
                                            + " VALUES (?)";
                   PreparedStatement pstmt = con.prepareStatement(sql);
                   pstmt.setString(1, ipAddress);
                   insert = pstmt.executeUpdate();
                   System.out.println("Insert " +insert);
                   /*if there is any insertion in this table the table
                        Update will be updated as well
                   if(insert > 0)
                        String sql1 = "update Update set Status='yes' where code='100' ";
                        Statement st1 = con.createStatement();
                        st1.executeUpdate(sql1);
              } catch(Exception e){
                   System.out.println(e);
              }finally{
                   return insert;
         }//end of inserting class
              //Closing Connection to Database
         public void closeConnection()
              try{
                   con.close();
                   System.out.println("Connection closed");
              }catch(Exception e){
                   e.printStackTrace();
         //Main Method for Exception_ip_list Class
         public static void main(String args[])
              Exception_IP_List exiplist = new Exception_IP_List();     
              //exiplist.getConnection();
              //exiplist.insertExceptionIPList("192.168.1.150");
              //System.out.println("data successfully inserteD");
              //exiplist.deleteExceptionIPList("191.11.22.33");
              //System.out.println("Item Deleted");
              //exiplist.getExceptionIPList();
              //exiplist.closeConnection();
    following is the jsp files to access the method insertExceptionIPList
    <%@ page language="java"%>
    <html>
    <head>
    <title>
    </title>
    </head>
    <body>
    <form name="exiplist" method="post" action="test1.jsp">
         <input type="text" name="ip"><br>
         <input type="submit" name="SUBMIT" value="SUBMIT">
    </form>
    </body>
    </html>
    <%@ page language="java" import="java.sql.*, Harish.*" %>
    <jsp:useBean id="exiplist" scope="page" class="Harish.Exception_IP_List" />
    <%=request.getParameter("ip")%><br>
    Inserted: <% int i = exiplist.insertExceptionIPList(request.getParameter("ip")) %>
    i am really confused, what is the mistake i made? .
    please help and its urgent. thanks
    harish.

    Hello Harish,
    I was introduced to databases at university with postgres. I now use SQL Server 7.
    Anyway, what is the problem exactly - which exceptions are being thrown?
    I have to admit, these forums don't present code very well and it makes it more confusing to read.
    What are you inserting into your database - what is the context of your application ?
    I did notice your constructor will be treated like a method. It does not matter in this case as it doesnt do anything, but you can't have void or any return type in your constructor - it has implicit instructions to return an instance of this class when it is called. If it is empty, omit it altogether.
    I understand you getConnection() method.
    I've never used the prepared statement:
    String sql = "INSERT INTO exception_ip_list (ip_Address)" + " VALUES (?)";
    PreparedStatement pstmt = con.prepareStatement(sql);
    pstmt.setString(1, ipAddress);I assume the '?' in the sql string gets replaced with 'ipAddress' parameter variable? Are you sure 1 is the correct number - I know sql counts from 1 but java counts from 0.
    You have created statement st and haven't used it, but later created st1 ?
    For your JSP's, try
    test0.jsp
    <%@ page language="java"%> <!-- this is not needed -->
    <html>
    <head>
    <title>
    </title>
    </head>
    <body>
    <form name="exiplist" method="post" action="test1.jsp">
    <input type="text" name="ip"><br>
    <input type="submit" name="SUBMIT" value="SUBMIT">
    </form>
    </body>
    </html>
    test1.jsp
    <%@ page language="java" import="java.sql.*, Harish.*" %> <!-- this is not needed -->
    <jsp:useBean id="exiplist" scope="page" class="Harish.Exception_IP_List" />
    <html>
    <body>
    <%=request.getParameter("ip")%><br>
    Inserted: <% int i = exiplist.insertExceptionIPList(request.getParameter("ip")); out.print(i); %>
    </body>
    </html>
    Please let me know how this works,
    Darren B

  • Problem when syncing with MobileMe

    I am using iPhone 3G, software 2.1. I use GMail for email (no problems) but my contacts, and only my contacts, sync through MobileMe.
    The problem is that with MobileMe active, my Contact list, "Mail, Contacts and Calendars" settings and several other minor features simply do not work - they open, pause for a few seconds, then crash. The Mail application also hangs and crashes every other time I open it.
    My local Apple Store restored 2.1, after which my Contact list and Email worked perfectly until I re-activated my MobileMe syncing, after which the problems resumed.
    As the problems occurred only after MobileMe syncing is turned on, I assume this is the cause of the problem, but because "Mail, Contacts..." settings crashes every time I open it I cannot disable MobileMe syncing.
    Any suggestions please? All help gratefully received...

    This was resolved by completely removing the MobileMe account from the iPhone, rebooting it and adding the account again.

  • Codepage problem when compiling with fastjavac

    Hi,
    I'm getting the following warnings when compiling with fastjavac:
    fastjavac: warning: Can't find codepage for "Cp1250" encoding.
    fastjavac: warning: Use default ANSI codepage.
    2 warnings
    How could I suppress these warnings?
    Thanks in advance

    I think you are posting it on the wrong Forum. This is for Forte 4GL not Forte for Java.

  • Keymapping problem when working with emacs and openbox

    I have an apple keyboard and I had to do some remapping of the keys to make the mod-4 key the first key to the left of the space bar for when working with Emacs.  The below script worked fine when I was using the dwm window manager, but after switching to openbox I have found that instead of swapping keycodes between the option and command keys, only the command key seems to be working since the initial openbox command-space doesn't work when pressing option-space.
    One odd thing I noticed, was on the new setup when I click run `showkey` and press the option and command keys I get 56 and 125 respectively, but these keys don't work at all when inserting them into the below script instead of the 64 and 133.
    I must admit I created the script below by continually tweaking it until it worked so there could be a much better way of doing it.
    //.xmodmap
    ### capslock => ctrl
    xmodmap -e "clear Lock"
    xmodmap -e "add Control = Caps_Lock"
    ### switch alt and command
    xmodmap -e "keycode 64 = Alt_L"
    xmodmap -e "keycode 133 = Meta_L"
    ### remap of mod 4
    xmodmap -e "clear Mod4"
    xmodmap -e "add Mod4 = Super_L"
    ** Update:  The Alt key is not being swapped with the command key, but is not just a duplicate.  So no M-x can be done by both Alt-x and Command-x
    Last edited by iso (2011-02-19 19:21:01)

    java -cp "E:\Java Programmes\class" mygame.server.Server

  • Problems when load testing a cluster on CSS11501

    Hello there,
    I have the following setup:
    INTERNET <--> CSS11501 <----> SERVER CLUSTER
    Vlan address of server cluster is in the same subnet of that of the CSS. server's gateway is IP of CSS. My problem is when we do load testing on each server, it goes well with no errors. but when we do the load testing using the VIP address of the cluster, the load testing app gets a timeout when getting the flash content of the cluster.
    my config on the content is:
    content BGUIDE_NEW
    vip address 192.168.8.4
    protocol tcp
    port 80
    balance leastconn
    advanced-balance sticky-srcip
    add service SRV1
    add service SRV2
    add service SRV3
    add service SRV4
    active
    Is there anything lacking in my content config that I need to do? Where else in the config do I need to look at.
    Thanks in advanced.
    JC

    Testing tool is outside the subnet/network. Only the particular file cannot be loaded. I haven't used any sniffer programs yet. Should I install it on one of the server in the cluster? What do I look for on the trace.
    Sorry about this. I haven't used sniffer programs yet.
    Thanks

  • IPhone 4 restarting problems when syncing with iTunes

    I know been done before, just to clarify some things is that though some answers are correct to a percentage.
    First one needs to try another USB and another PC or Mac for clarifying that its not a problem with the iPhone itself. I found this out when I had this problem and well I tried another USB port and working fine now.
    Disabling USB ports through device manager can get results - however you may be adding additional problems - the problem is associated to the hardware of the computer (mac or pc) and this is either software related with drivers or hardware related and the USB port is stuffed - connecting any device to this port can result in failure of that device. Identifying the USB port is at fault can help you in many ways to overcome other hardware faults on your computer - seriously this isnt just about the iPhone but more to the point saving your computer from damages.
    Due to many viruses and software codes - identifying if the problem is hardware or software based can be tricky, even with aid of programing benchmark programs, the only real way to know if it is hardware and not software is that doing a complete reformat - really this is the quickest and most surest way of clarifiication - you can spend days on end trying to identify where the fault is through programs and stuff and really you may not get anywhere - so reformating the computer and complete reinstall will determine if it is a hardware fault - now if it is hardware fault then it can either be the port itself, the motherboard or the power supply going to that port - so best be sure to back up everything and safegaurd all your hardware componants inside the computer as if it is a motherboard or power supply you really down want all your hardware becomming faulty due to surges or even meltdown.
    Now if the iPhone is going faulty on other USB ports of other computer systems then you really need to contact your supplier if under warrenty or have it repaired - unless you personally know how to repair them. I have read a few threads here and they are archieved so really no one that I know of has covered this answer I am applying now. so if there is a failure to syncing through iPhone turning off and on then really cheack out the computer and iPhone (iPhone on other USB ports and other computers) and protect your data.

    I have similar problem. Played podcasts becomes UNPLAYED after synch with iTune.

Maybe you are looking for

  • IMac 27" does not show "apple logo" on boot, keeps on restarting.

    Hello there is something wrong with my girlfriend's iMac. She has the iMac 27" 2.8GHz, Quad-Core Intel Core i5, 8GB RAM She bought it two days ago, it gave her problems last night (after less than a day of usage), when she tried to call the call cent

  • JTextField: How to fill it with a "number" instead of with "text"

    Hi everybody, I want to fill a JTextField variable with "something" that is actually a number (an int variable). How could I do it? I can not cast from int into string... Thanks a lot! Fran.

  • External Speakers quit working with Yosemite

    Speakers are Harmon Kardon Sound sticks and were working fine AFTER the install of Yosemite but just stopped working today.  Checked Sound in Sound preferences and it is still set on internal speakers for output like always.  I used the headphone jac

  • Captivate 6 Not Updating Publishing Title

    Captivate 6 is not updating the title when publishing.  It IS updating the publishing location. I've tried doing "Save As" in a totally different folder, and it's still remembering the publish title from the original CPTX file that i copied. I've als

  • Criteria for choosing to create index on column?

    Hello, This maybe is a trivial question. I have been reading on performance tuning of SQL queries. What criteria is used to determine which column needs to have an index? If a query is as follows: Select * from table where column1=<value> and column2