Execurte qeury on CachedRowSet Object

i have a chached row set object,populated with data, how is it possible
to query on this object like "select * from table_name" and pass it to
result set.
would you plz help.

i have a chached row set object,populated with data,
how is it possible
to query on this object like "select * from
table_name" and pass it to
result set.
would you plz help.
No.

Similar Messages

  • How can I instantiate and load a new CachedRowSet object from a non-JDBC so

    How can I instantiate and load a new CachedRowSet object from a non-JDBC source?
    cheers

    webrowset reads whole data;
    I would rather need to get data line by line

  • CachedRowSet Pagination

    Section 10.0 of the javadoc for CachedRowSet has this example.
    CachedRowSet crs = new CachedRowSetImpl();
    crs.setPageSize(5);
    crs.execute(conHandle);
    Did they forget to set the command? I assume that is the case. What is not clear is how the connection handle is managed. I think it's safe to assume we close the connection handle. The bigger question is pagination. This makes no sense to me:
    To access the next page (chunk of data), an application calls the method nextPage. This method creates a new CachedRowSet object and fills it with the next page of data.I have the saame CachedRowSet object. I assume they mean it repopulates itself?
    The data from the first CachedRowSet object will no longer be in memory because it is replaced with the data from the second CachedRowSet object.The data is replaced, NOT the CachedRowSet object, right? Nothing in the example shows the object reference being replaced.
    Big question: where is it getting the next page from? That all-important issue is not even discussed. If the CachedRowSet has one page in memory and you call pageNext, WHERE does it get the data? Is it keeping my connection open? If so then I cannot close it, right? Maybe it's keeping the data in a temp file and paging that?
    The CachedRowSet documentation is clear as mud. Any clarification would be greatly appreciated.

    Writing raw Java code with the JDBC API in a JSP file instead of a Java class and having problems with the JDBC API doesn't make it a JSP problem. Get rid of that scriptlet clutter and just put it all nicely in a Java class and test it independently as a Java application using main().
    There's a JDBC forum around for problems with the JDBC API.

  • Serializing ResultSet using CachedRowSet

    Hi all,
    I am trying to serialize the retrieved results of a query from one machine to another machine by populating the ResultSet into a CachedRowSet object. According to my understanding CachedRowSet is Serializable an should allow for data serialization over the wire. However, when I try sending the data, I get the following error. I googled the problem online and some people suggested that it is a problem with the version of the OJDBC driver. I have tried ojdbc14 and ojdbc6 for XE 11g but the results are the same. Could anyone give me some suggestion about whether it is possible, and how so?
    From my understanding, the Connection should be marked as transient and only the raw data should be transferred. I wonder if Oracle's implementation of CachedRowSet is not supporting serializability or whether I am doing something wrong.
    thanks!
    Here is the error:
    java.lang.RuntimeException: java.io.NotSerializableException: oracle.jdbc.driver.T4CConnection
         at remoting.RemotingManager.doPost(RemotingManager.java:190)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:755)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
         at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:598)
         at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:486)
         at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)
         at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:499)
         at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:233)
         at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1065)
         at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:413)
         at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:192)
         at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:999)
         at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
         at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:250)
         at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:149)
         at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:111)
         at org.eclipse.jetty.server.Server.handle(Server.java:350)
         at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:454)
         at org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:900)
         at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:954)
         at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:851)
         at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)
         at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:77)
         at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:606)
         at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:46)
         at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:603)
         at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:538)
         at java.lang.Thread.run(Thread.java:722)
    Caused by:
    java.io.NotSerializableException: oracle.jdbc.driver.T4CConnection
         at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1180)
         at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1528)
         at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1493)
         at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1416)
         at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1174)
         at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1528)
         at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1493)
         at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1416)
         at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1174)
         at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1362)
         at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1170)
         at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1528)
         at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1493)
         at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1416)
         at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1174)
         at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1362)
         at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1170)
         at java.io.ObjectOutputStream.access$300(ObjectOutputStream.java:161)
         at java.io.ObjectOutputStream$PutFieldImpl.writeFields(ObjectOutputStream.java:1687)
         at java.io.ObjectOutputStream.writeFields(ObjectOutputStream.java:478)
         at java.util.Vector.writeObject(Vector.java:1073)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
         at java.lang.reflect.Method.invoke(Method.java:601)
         at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:975)
         at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1480)
         at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1416)
         at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1174)
         at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1528)
         at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1493)
         at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1416)
         at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1174)
         at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:346)
         at remoting.RemotingManager.upCall(RemotingManager.java:179)
         at remoting.RemotingManager.upCall(RemotingManager.java:137)
         at remoting.RemotingManager.doPost(RemotingManager.java:187)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:755)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:848)
         at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:598)
         at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:486)
         at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)
         at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:499)
         at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:233)
         at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1065)
         at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:413)
         at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:192)
         at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:999)
         at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
         at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:250)
         at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:149)
         at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:111)
         at org.eclipse.jetty.server.Server.handle(Server.java:350)
         at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:454)
         at org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:900)
         at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:954)
         at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:851)
         at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)
         at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:77)
         at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:606)
         at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:46)
         at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:603)
         at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:538)
         at java.lang.Thread.run(Thread.java:722)
    Edited by: 944957 on Oct 4, 2012 12:04 AM

    >
    I am trying to serialize the retrieved results of a query from one machine to another machine by populating the ResultSet into a CachedRowSet object. According to my understanding CachedRowSet is Serializable an should allow for data serialization over the wire. However, when I try sending the data, I get the following error. I googled the problem online and some people suggested that it is a problem with the version of the OJDBC driver. I have tried ojdbc14 and ojdbc6 for XE 11g but the results are the same. Could anyone give me some suggestion about whether it is possible, and how so?
    >
    This question should have been posted to the JDBC forum
    https://forums.oracle.com/forums/category.jspa?categoryID=288
    If the below does not answer your question mark it ANSWERED and repost it in the JDBC forum
    See CachedRowSet in chap 18 JDBC RowSets in the JDBC Developer's Guide
    http://docs.oracle.com/cd/E14072_01/java.112/e10589/jcrowset.htm#i630230
    That section includes extensive documentation of this and also includes example serialization code you can adapt.
    >
    The following code illustrates how an OracleCachedRowSet object is serialized to a file and then retrieved:

  • Sorting CachedRowSet

    Hi,
    I am Ryan.
    In our application, we want to be able to sort a CachedRowSet object. Unfortunately there are no built-in methods to sort a CachedRowSet. At the same time we don't want to rerun the SQL by changing the order by clause, which will be another IO in the DB.
    We thought about taking a specific column, creating an array out of it and then use the Arrays.sort method for sorting. Interestingly our requirement is slightly higher. We want to be able to sort more than one column at a given time.
    Does anybody know how to accomplish this task? Are there any third part libraries out there to get this done?
    Thanks
    Ryan Norman

    We thought about taking a specific column, creating an
    array out of it and then use the Arrays.sort method
    for sorting. Interestingly our requirement is slightly
    higher. We want to be able to sort more than one
    column at a given time.You can create Comparator objects and use the overloaded Arrays.sort() to get this feature.

  • Deleting a row from a resultSet with nulls

    Hello All,
    I have stumbled across a bit of a problem when using a cachedRowSet
    If I select columns from my database that have null values, and I call deleteRow() I get a
    NullPointerException.
    at com.sun.rowset.internal.CachedRowSetWriter.deleteOriginalRow
    However if I don�t select the null columns in my cachedRowSet. I can delete no worries.
    I would of though that the cachedRowSet object could handle nulls but it seems it doesn�t, anyone know any workarounds for this?
    NOTE: using JTDS driver would that play a part?

    If I select columns from my database that have null
    values, and I call deleteRow() I get a Does the whole row a null record ?
    Please put a sample program so that the problem can be reproduced.
    >
    NullPointerException.
    at
    com.sun.rowset.internal.CachedRowSetWriter.deleteOrigi
    nalRow
    Also give the stack trace.

  • StreamCorruptedException from Stateless Session bean to java class

    Hi all,
    We have 2 servers, a ColdFusion App server which contains suns jdk 1.4.2 and websphere appserver using Ibm jdk, 1.4.2. On Server 1, we have a standalone java class which does a stateless session bean lookup and requests a service from it. On server 2(websphere), we have a stateless session bean deployed which connects to a database using a jndi lookup, executes a query and returns back a CachedRowSet object (which populates the ResultSet from the above query.) In some cases, session bean returns back an array of objects or String objects or just plain int values.
    When the java class on server 1 invokes the methods returning CachedRowSet, we are getting a StreamCorruptedException, whereas on the server side, there is no exception. everything gets executed fine on websphere. This is the case only for CachedRowSet and not for other return types(as mentioned earlier the session bean returns an array of object in some cases which the java class on server 1 is successfully able to use).
    This is what the piece of code look like on server 1:
    // First gets a StatelessSessionBean using suns InitialContextFactory
    Hashtable env = new Hashtable();
    env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.cosnaming.CNCtxFactory");
    env.put(Context.PROVIDER_URL,"iiop://localhost:2809");
    System.out.println("Creating initial context");
    Context ctx = new InitialContext(env);
    System.out.println("Initial context created.");
    Object homeObj = ctx.lookup("cell/nodes/localhost/servers/server1/ejb/SSBHome");
    SSBHome eHome = (SSBHome)PortableRemoteObject.narrow(homeObj,SSBHome.class);
    System.out.println("Got Home");
    SSB eBean = eHome.create();
    CachedRowSet crs = eBean.getAccts(param1, param2);
    //This is the line of code which throws the exception.
    The stacktrace shoows as follows:
    Got Home
    java.io.StreamCorruptedException
         at com.sun.corba.se.internal.io.IIOPInputStream.inputRemoteMembersForReadFields(IIOPInputStream.java:1675)
         at com.sun.corba.se.internal.io.IIOPInputStream.readFields(IIOPInputStream.java:1595)
         at com.sun.corba.se.internal.io.InputStreamHook.readFields(InputStreamHook.java:177)
         at java.math.BigInteger.readObject(BigInteger.java:3034)
         at com.sun.corba.se.internal.io.IIOPInputStream.readObject(Native Method)
         at com.sun.corba.se.internal.io.IIOPInputStream.invokeObjectReader(IIOPInputStream.java:1298)
         at com.sun.corba.se.internal.io.IIOPInputStream.inputObject(IIOPInputStream.java:908)
         at com.sun.corba.se.internal.io.IIOPInputStream.simpleReadObject(IIOPInputStream.java:261)
         at com.sun.corba.se.internal.io.ValueHandlerImpl.readValueInternal(ValueHandlerImpl.java:247)
         at com.sun.corba.se.internal.io.ValueHandlerImpl.readValue(ValueHandlerImpl.java:209)
         at com.sun.corba.se.internal.iiop.CDRInputStream_1_0.read_value(CDRInputStream_1_0.java:1084)
         at com.sun.corba.se.internal.iiop.CDRInputStream.read_value(CDRInputStream.java:293)
         at com.sun.corba.se.internal.io.IIOPInputStream.inputObjectField(IIOPInputStream.java:1484)
         at com.sun.corba.se.internal.io.IIOPInputStream.inputClassFields(IIOPInputStream.java:1893)
         at com.sun.corba.se.internal.io.IIOPInputStream.defaultReadObjectDelegate(IIOPInputStream.java:424)
         at com.sun.corba.se.internal.io.InputStreamHook.defaultReadObject(InputStreamHook.java:163)
         at java.math.BigDecimal.readObject(BigDecimal.java:1084)
         at com.sun.corba.se.internal.io.IIOPInputStream.readObject(Native Method)
         at com.sun.corba.se.internal.io.IIOPInputStream.invokeObjectReader(IIOPInputStream.java:1298)
         at com.sun.corba.se.internal.io.IIOPInputStream.inputObjectUsingFVD(IIOPInputStream.java:1182)
         at com.sun.corba.se.internal.io.IIOPInputStream.simpleReadObject(IIOPInputStream.java:259)
         at com.sun.corba.se.internal.io.ValueHandlerImpl.readValueInternal(ValueHandlerImpl.java:247)
         at com.sun.corba.se.internal.io.ValueHandlerImpl.readValue(ValueHandlerImpl.java:209)
         at com.sun.corba.se.internal.iiop.CDRInputStream_1_0.read_value(CDRInputStream_1_0.java:948)
         at com.sun.corba.se.internal.iiop.CDRInputStream.read_value(CDRInputStream.java:289)
         at com.sun.corba.se.internal.corba.TCUtility.unmarshalIn(TCUtility.java:266)
         at com.sun.corba.se.internal.corba.AnyImpl.read_value(AnyImpl.java:561)
         at com.sun.corba.se.internal.iiop.CDRInputStream_1_0.read_any(CDRInputStream_1_0.java:635)
         at com.sun.corba.se.internal.iiop.CDRInputStream.read_any(CDRInputStream.java:260)
         at com.sun.corba.se.internal.javax.rmi.CORBA.Util.readAny(Util.java:100)
         at javax.rmi.CORBA.Util.readAny(Util.java:90)
         at com.sun.corba.se.internal.io.ValueHandlerImpl.read_Array(ValueHandlerImpl.java:586)
         at com.sun.corba.se.internal.io.ValueHandlerImpl.readValueInternal(ValueHandlerImpl.java:244)
         at com.sun.corba.se.internal.io.ValueHandlerImpl.readValue(ValueHandlerImpl.java:209)
         at com.sun.corba.se.internal.iiop.CDRInputStream_1_0.read_value(CDRInputStream_1_0.java:1084)
         at com.sun.corba.se.internal.iiop.CDRInputStream.read_value(CDRInputStream.java:293)
         at com.sun.corba.se.internal.io.IIOPInputStream.inputObjectField(IIOPInputStream.java:1577)
         at com.sun.corba.se.internal.io.IIOPInputStream.inputClassFields(IIOPInputStream.java:1796)
         at com.sun.corba.se.internal.io.IIOPInputStream.inputObject(IIOPInputStream.java:913)
         at com.sun.corba.se.internal.io.IIOPInputStream.simpleReadObject(IIOPInputStream.java:261)
         at com.sun.corba.se.internal.io.ValueHandlerImpl.readValueInternal(ValueHandlerImpl.java:247)
         at com.sun.corba.se.internal.io.ValueHandlerImpl.readValue(ValueHandlerImpl.java:209)
         at com.sun.corba.se.internal.iiop.CDRInputStream_1_0.read_value(CDRInputStream_1_0.java:948)
         at com.sun.corba.se.internal.iiop.CDRInputStream.read_value(CDRInputStream.java:289)
         at com.sun.corba.se.internal.corba.TCUtility.unmarshalIn(TCUtility.java:266)
         at com.sun.corba.se.internal.corba.AnyImpl.read_value(AnyImpl.java:561)
         at com.sun.corba.se.internal.iiop.CDRInputStream_1_0.read_any(CDRInputStream_1_0.java:635)
         at com.sun.corba.se.internal.iiop.CDRInputStream.read_any(CDRInputStream.java:260)
         at com.sun.corba.se.internal.javax.rmi.CORBA.Util.readAny(Util.java:100)
         at javax.rmi.CORBA.Util.readAny(Util.java:90)
         at com.sun.corba.se.internal.io.ValueHandlerImpl.read_Array(ValueHandlerImpl.java:586)
         at com.sun.corba.se.internal.io.ValueHandlerImpl.readValueInternal(ValueHandlerImpl.java:244)
         at com.sun.corba.se.internal.io.ValueHandlerImpl.readValue(ValueHandlerImpl.java:209)
         at com.sun.corba.se.internal.iiop.CDRInputStream_1_0.read_value(CDRInputStream_1_0.java:1084)
         at com.sun.corba.se.internal.iiop.CDRInputStream.read_value(CDRInputStream.java:293)
         at com.sun.corba.se.internal.io.IIOPInputStream.inputObjectField(IIOPInputStream.java:1577)
         at com.sun.corba.se.internal.io.IIOPInputStream.inputClassFields(IIOPInputStream.java:1796)
         at com.sun.corba.se.internal.io.IIOPInputStream.inputObject(IIOPInputStream.java:913)
         at com.sun.corba.se.internal.io.IIOPInputStream.simpleReadObject(IIOPInputStream.java:261)
         at com.sun.corba.se.internal.io.ValueHandlerImpl.readValueInternal(ValueHandlerImpl.java:247)
         at com.sun.corba.se.internal.io.ValueHandlerImpl.readValue(ValueHandlerImpl.java:209)
         at com.sun.corba.se.internal.iiop.CDRInputStream_1_0.read_value(CDRInputStream_1_0.java:1084)
         at com.sun.corba.se.internal.iiop.CDRInputStream.read_value(CDRInputStream.java:293)
         at com.sun.corba.se.internal.io.IIOPInputStream.inputObjectField(IIOPInputStream.java:1577)
         at com.sun.corba.se.internal.io.IIOPInputStream.inputClassFields(IIOPInputStream.java:1796)
         at com.sun.corba.se.internal.io.IIOPInputStream.inputObject(IIOPInputStream.java:913)
         at com.sun.corba.se.internal.io.IIOPInputStream.simpleReadObject(IIOPInputStream.java:261)
         at com.sun.corba.se.internal.io.ValueHandlerImpl.readValueInternal(ValueHandlerImpl.java:247)
         at com.sun.corba.se.internal.io.ValueHandlerImpl.readValue(ValueHandlerImpl.java:209)
         at com.sun.corba.se.internal.iiop.CDRInputStream_1_0.read_value(CDRInputStream_1_0.java:1084)
         at com.sun.corba.se.internal.iiop.CDRInputStream.read_value(CDRInputStream.java:293)
         at com.EJBProj._SSB_Stub.getAccts(_SSB_Stub.java:240)
         at com.test.Test1.getAccts(Test1.java:101)
         at com.test.Test1.<init>(Test1.java:65)
         at com.test.Test1.main(Test1.java:81)
    java.io.IOException: Unable to read value from underlying bridge : Serializable readObject method failed internally
         at com.sun.corba.se.internal.io.IIOPInputStream.throwExceptionType(Native Method)
         at com.sun.corba.se.internal.io.IIOPInputStream.defaultReadObjectDelegate(IIOPInputStream.java:446)
         at com.sun.corba.se.internal.io.InputStreamHook.defaultReadObject(InputStreamHook.java:163)
         at java.math.BigDecimal.readObject(BigDecimal.java:1084)
         at com.sun.corba.se.internal.io.IIOPInputStream.readObject(Native Method)
         at com.sun.corba.se.internal.io.IIOPInputStream.invokeObjectReader(IIOPInputStream.java:1298)
         at com.sun.corba.se.internal.io.IIOPInputStream.inputObjectUsingFVD(IIOPInputStream.java:1182)
         at com.sun.corba.se.internal.io.IIOPInputStream.simpleReadObject(IIOPInputStream.java:259)
         at com.sun.corba.se.internal.io.ValueHandlerImpl.readValueInternal(ValueHandlerImpl.java:247)
         at com.sun.corba.se.internal.io.ValueHandlerImpl.readValue(ValueHandlerImpl.java:209)
         at com.sun.corba.se.internal.iiop.CDRInputStream_1_0.read_value(CDRInputStream_1_0.java:948)
         at com.sun.corba.se.internal.iiop.CDRInputStream.read_value(CDRInputStream.java:289)
         at com.sun.corba.se.internal.corba.TCUtility.unmarshalIn(TCUtility.java:266)
         at com.sun.corba.se.internal.corba.AnyImpl.read_value(AnyImpl.java:561)
         at com.sun.corba.se.internal.iiop.CDRInputStream_1_0.read_any(CDRInputStream_1_0.java:635)
         at com.sun.corba.se.internal.iiop.CDRInputStream.read_any(CDRInputStream.java:260)
         at com.sun.corba.se.internal.javax.rmi.CORBA.Util.readAny(Util.java:100)
         at javax.rmi.CORBA.Util.readAny(Util.java:90)
         at com.sun.corba.se.internal.io.ValueHandlerImpl.read_Array(ValueHandlerImpl.java:586)
         at com.sun.corba.se.internal.io.ValueHandlerImpl.readValueInternal(ValueHandlerImpl.java:244)
         at com.sun.corba.se.internal.io.ValueHandlerImpl.readValue(ValueHandlerImpl.java:209)
         at com.sun.corba.se.internal.iiop.CDRInputStream_1_0.read_value(CDRInputStream_1_0.java:1084)
         at com.sun.corba.se.internal.iiop.CDRInputStream.read_value(CDRInputStream.java:293)
         at com.sun.corba.se.internal.io.IIOPInputStream.inputObjectField(IIOPInputStream.java:1577)
         at com.sun.corba.se.internal.io.IIOPInputStream.inputClassFields(IIOPInputStream.java:1796)
         at com.sun.corba.se.internal.io.IIOPInputStream.inputObject(IIOPInputStream.java:913)
         at com.sun.corba.se.internal.io.IIOPInputStream.simpleReadObject(IIOPInputStream.java:261)
         at com.sun.corba.se.internal.io.ValueHandlerImpl.readValueInternal(ValueHandlerImpl.java:247)
         at com.sun.corba.se.internal.io.ValueHandlerImpl.readValue(ValueHandlerImpl.java:209)
         at com.sun.corba.se.internal.iiop.CDRInputStream_1_0.read_value(CDRInputStream_1_0.java:948)
         at com.sun.corba.se.internal.iiop.CDRInputStream.read_value(CDRInputStream.java:289)
         at com.sun.corba.se.internal.corba.TCUtility.unmarshalIn(TCUtility.java:266)
         at com.sun.corba.se.internal.corba.AnyImpl.read_value(AnyImpl.java:561)
         at com.sun.corba.se.internal.iiop.CDRInputStream_1_0.read_any(CDRInputStream_1_0.java:635)
         at com.sun.corba.se.internal.iiop.CDRInputStream.read_any(CDRInputStream.java:260)
         at com.sun.corba.se.internal.javax.rmi.CORBA.Util.readAny(Util.java:100)
         at javax.rmi.CORBA.Util.readAny(Util.java:90)
         at com.sun.corba.se.internal.io.ValueHandlerImpl.read_Array(ValueHandlerImpl.java:586)
         at com.sun.corba.se.internal.io.ValueHandlerImpl.readValueInternal(ValueHandlerImpl.java:244)
         at com.sun.corba.se.internal.io.ValueHandlerImpl.readValue(ValueHandlerImpl.java:209)
         at com.sun.corba.se.internal.iiop.CDRInputStream_1_0.read_value(CDRInputStream_1_0.java:1084)
         at com.sun.corba.se.internal.iiop.CDRInputStream.read_value(CDRInputStream.java:293)
         at com.sun.corba.se.internal.io.IIOPInputStream.inputObjectField(IIOPInputStream.java:1577)
         at com.sun.corba.se.internal.io.IIOPInputStream.inputClassFields(IIOPInputStream.java:1796)
         at com.sun.corba.se.internal.io.IIOPInputStream.inputObject(IIOPInputStream.java:913)
         at com.sun.corba.se.internal.io.IIOPInputStream.simpleReadObject(IIOPInputStream.java:261)
         at com.sun.corba.se.internal.io.ValueHandlerImpl.readValueInternal(ValueHandlerImpl.java:247)
         at com.sun.corba.se.internal.io.ValueHandlerImpl.readValue(ValueHandlerImpl.java:209)
         at com.sun.corba.se.internal.iiop.CDRInputStream_1_0.read_value(CDRInputStream_1_0.java:1084)
         at com.sun.corba.se.internal.iiop.CDRInputStream.read_value(CDRInputStream.java:293)
         at com.sun.corba.se.internal.io.IIOPInputStream.inputObjectField(IIOPInputStream.java:1577)
         at com.sun.corba.se.internal.io.IIOPInputStream.inputClassFields(IIOPInputStream.java:1796)
         at com.sun.corba.se.internal.io.IIOPInputStream.inputObject(IIOPInputStream.java:913)
         at com.sun.corba.se.internal.io.IIOPInputStream.simpleReadObject(IIOPInputStream.java:261)
         at com.sun.corba.se.internal.io.ValueHandlerImpl.readValueInternal(ValueHandlerImpl.java:247)
         at com.sun.corba.se.internal.io.ValueHandlerImpl.readValue(ValueHandlerImpl.java:209)
         at com.sun.corba.se.internal.iiop.CDRInputStream_1_0.read_value(CDRInputStream_1_0.java:1084)
         at com.sun.corba.se.internal.iiop.CDRInputStream.read_value(CDRInputStream.java:293)
         at com.EJBProj._SSB_Stub.getAccts(_SSB_Stub.java:240)
         at com.test.Test1.getAccts(Test1.java:101)
         at com.test.Test1.<init>(Test1.java:65)
         at com.test.Test1.main(Test1.java:81)
    Again, everything seems to work fine on websphere server.
    Any Clue of why this is happening?
    All suggestions are greatly appreciated.
    Thanks
    Neorav
    Message was edited by:
    NeoravB

    Sorry for the confusion!
    The solution mentioned above is not the right solution.
    The above given code works fine irrespective of having corbaloc in the url, if you are working in the IBMs jvm.
    It fails if you are working in suns jvm.
    Anyone with any idea whats missing here.
    Thanks a lot for any suggestion/ideas
    Neorav

  • Dataprovider: javax.faces.el.PropertyNotFoundException

    Hi!!!
    When I link a textField with a dataprovider field, it works well. OK. After I close the IDE, studio creator, and open again the IDE. When the IDE shows me the textField it tells me this:
    javax.faces.el.PropertyNotFoundException: javax.faces.el.PropertyNotFoundException: Field 'APELLIDO1' not found in DataProvider.
    I don't understand why it gives me that error. I go to link again the textField, and I can't see the dataprovider fields.
    Why???
    Byeeee

    Hi!!!
    This problem is like a bug.
    When I reopen the IDE, I can see that the cachedRowset property of the Dataproviders is empty. So the textField give me a error. But if I open the SessionBean, where are the Datarpovider and cachedRowset declared, the cachedRowset property becames in a valid cachedRowset object and the textField error disappear, and the project runs well.
    What can I do to resolve this problem???
    Thanksssss

  • Cached Row Set

    I have the following JSP for CachedRowSet :
    It works okey for the first time but when I click on next it is giving me : The environment is WebSphere 3.5 on AS400
    Note: A servlet gathers the regular resultset , populates the CachedRowSet with it and then puts the CachedRowset in to the session and sendRedirects the request to this jsp...
    Any ideas greatly appriciated...
    Thanks
    Cuneyt
    ERROR START
    java.lang.NullPointerException
    sun/jdbc/rowset/CachedRowSet.checkIndex(I)V+0 (CachedRowSet.java:1338)
    ERROR END
    JSP CODE START:
    <!-- Sample JSP file -->
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <%@ page import="java.util.*, sun.jdbc.rowset.CachedRowSet"%>
    <HTML>
    <HEAD>
    <jsp:useBean id="crsItems" class="sun.jdbc.rowset.CachedRowSet" scope="session">
    <%
         crsItems = (CachedRowSet) session.getAttribute("crsItemResults");
         session.removeAttribute("crsItemResults");     
         crsItems.first();
    %>
    This is the first time start up...
    </jsp:useBean>
    <META name="GENERATOR" content="IBM WebSphere Page Designer V3.5.2 for Windows">
    <META http-equiv="Content-Style-Type" content="text/css">
    <TITLE></TITLE>
    <LINK rel="stylesheet" href="file:///P:/CUSTOM~1/Genesys/STUDIO~1/GENESY~1/theme/Master.css" type="text/css">
    <SCRIPT LANGUAGE="JavaScript" SRC="file:///P:/CUSTOM~1/Genesys/STUDIO~1/GENESY~1/GCMFunctions.js"></SCRIPT>
    <SCRIPT language="JavaScript">
    xLocation = document.location;
    xLocation = xLocation.toString();
    xRoot = xLocation.substring(0,xLocation.indexOf('/servlet'));
    if (xRoot == "") xRoot = xLocation.substring(0,xLocation.lastIndexOf('/'));
    function showGroup(){
         parent.document.frames[1].location = xRoot + "file:///P:/CUSTOM~1/Genesys/STUDIO~1/GENESY~1/" + "wait-iframe.html?cmd=Group";
    </SCRIPT>
    </HEAD>
    <BODY BGCOLOR="#FFFFFF" onLoad="showGroup();">
    This is the second time
    <%
         if ( request.getParameter("next") != null ) {
              out.println("next me");
              if (crsItems.next()) out.println("yes next");
              else out.println("no next");
    %>
    <FORM METHOD="POST">
         <INPUT TYPE="text" NAME="field1" VALUE="<%=crsItems.getString(1)%>">
         <BR>
         <FONT size="2" face="Tahoma">
         <INPUT type="submit" name="previous" value="Previous Item" class="PButtonOut" onmouseover="this.className='PButtonIn'" onmouseout="this.className='PButtonOut'">
         </FONT><FONT size="2" face="Tahoma">
         <INPUT type="submit" name="next" value="Next Item" class="PButtonOut" onmouseover="this.className='PButtonIn'" onmouseout="this.className='PButtonOut'">
         </FONT>
    </FORM>
    </BODY>
    </HTML>
    END OF JSP CODE

    I think the problem lies in how you use <jsp:useBean>.
    On first entry to this page, I assume that the CachedRowSet has been populated and stored as a session attribute with key "crsItemResults".
    For this first time through, the session context will not contain an attribute "crsItems" and so the <jsp:useBean name= "crsItems"....> will do the following:
    1. Instantiate a CachedRowSet object with default constructor, define a local variable "crsItems" and assign it as the reference to the new CachedRowSet.
    2. Add a session attribute with key "crsItems" and value = the new (and empty) CachedRowSet instance.
    3. Perform the initialization code inside the <jsp:useBean> tag.
    crsItems = (CachedRowSet) session.getAttribute("crsItemResults");
    Retrieves the pre-populated CachedRowSet from the session context and assigns the reference to local variable crsItems.
    session.removeAttribute("crsItemResults");
    Remove the original session attribute.
    At the end of this code, the local variable "crsItems" refers to the populated CachedRowSet but the session attribute "crsItems" refers to an empty CachedRowSet.
    On the second time through, the "crsItems" session attribute is retrieved and local variable "crsItems" references the empty CachedRowSet. The original data is no longer available which results in your error.
    It's a long-winded theory but I hope it helps. Fixing the problem should be easy - either save the original CachedRowSet with session attribute key "crsItems" and remove the init code or add a line in the init code to re-save the "crsItems" attribute.

  • Returning the result of a database query to a client

    glassfish
    JAX-WS 2.0
    NetBeans 5.5
    Is it possible to send a CachedRowSet object to a client?
    I get an error when i try to do so. (I can't deploy the web service method that returns the CachedRowSet)
    Is there a better way to return the result of database query to a client?
    I'd appreciate any suggestions or sample code.

    Hi!
    The result of this query will be the max ID of users' IDs.
    Let say we have:
    String sql="select max(users.id) from users";
    Statement st = ctx.conn.createStatement();
    ResultSet rs = st.executeQuery(sql);
    rs.next();     
    So you can get the max Id in the following way:     
    int maxId=rs.getInt("id");
    Regards,
    Rossi

  • Error while running CachedRowSet Example

    I am getting the following error when I try to the CachedRowSet example. Any help would would be greatly appreciated.
    ERROR:
    Request URI:/test548_html/untitled2.jsp
    Exception:
    java.lang.NoClassDefFoundError: javax/naming/Referenceable
    CODE EXAMPLE AS IN JSP DEVELOPERS GUIDE:
    <%@ page import="java.sql.*, javax.sql.*, oracle.jdbc.pool.*" %>
    <!------------------------------------------------------------------
    * This is a JavaServer Page that uses Connection Caching at Session
    * scope.
    --------------------------------------------------------------------!>
    <jsp:useBean id="ods" class="oracle.jdbc.pool.OracleConnectionCacheImpl"
    scope="session" />
    <HTML>
    <HEAD>
    <TITLE>
    ConnCache 3 JSP
    </TITLE>
    </HEAD>
    <BODY BGCOLOR=EOFFFO>
    <H1> Hello
    <%= (request.getRemoteUser() != null? ", " + request.getRemoteUser() : "") %>
    ! I am Connection Caching JSP.
    </H1>
    <HR>
    <B> Session Level Connection Caching.
    </B>
    <P>
    <%
    try {
    ods.setURL((String)session.getValue("connStr"));
    ods.setUser("scott");
    ods.setPassword("tiger");
    Connection conn = ods.getConnection ();
    Statement stmt = conn.createStatement ();
    ResultSet rset = stmt.executeQuery ("SELECT ename, sal " +
    "FROM scott.emp ORDER BY ename");
    if (rset.next()) {
    %>
    <TABLE BORDER=1 BGCOLOR="C0C0C0">
    <TH WIDTH=200 BGCOLOR="white"> <I>Employee Name</I> </TH>
    <TH WIDTH=100 BGCOLOR="white"> <I>Salary</I> </TH>
    <TR> <TD ALIGN=CENTER> <%= rset.getString(1) %> </TD>
    <TD ALIGN=CENTER> $<%= rset.getDouble(2) %> </TD>
    </TR>
    <% while (rset.next()) {
    %>
    <TR> <TD ALIGN=CENTER> <%= rset.getString(1) %> </TD>
    <TD ALIGN=CENTER> $<%= rset.getDouble(2) %> </TD>
    </TR>
    <% }
    %>
    </TABLE>
    <% }
    else {
    %>
    <P> Sorry, the query returned no rows! </P>
    <%
    rset.close();
    stmt.close();
    conn.close(); // Put the Connection Back into the Pool
    } catch (SQLException e) {
    out.println("<P>" + "There was an error doing the query:");
    out.println ("<PRE>" + e + "</PRE> \n <P>");
    %>
    </BODY>
    </HTML>
    null

    Hi,
    Goto Project Properties:
    Search for the following in left pane:
    Oracle Applications -> Runtime Connection
    DBC file : Choose the correct dbc file from your local machine. You have to get it from your dba and paste it in this path: jdevhome\jdev\dbc_files\secure\*.dbc
    User Name: Application User Name
    Password : Application password
    Responsibilty Key:
    Goto Application Developer --> Responsibility --> Define -- >
    Query for the available responsibility for the given user. Say for example: "Order Management Super User"
    Application: Order Management
    Responsibilty Key: ORDER_MGMT_SUPER_USER
    Application Short Name:
    Goto Application Developer --> Application --> Register -- >
    Query for the given application " Order Management"
    Short Name: ONT
    Responsibility Key and Application Short Name depends upon the object you are developing.
    Regards.

  • Obtaining CachedRowSet from web service in Axis

    Hi,
    I could not find any method to pass a CachedRowSet query result from server side of the web service to the client. I want the transleted type also be a resultset.
    Does anyone know the basic solution?
    I am using Axis and Tomcat as server.

    Write a method that puts that values into an array and send that. If you look at the Axis Users Guide (http://ws.apache.org/axis/java/user-guide.html) the advice is 'The most reliable way to send aggregate objects is to use arrays".

  • Get database result as a type of complex object

    Hi,
    I would like to make a query and send the results with web service to the client by a user defined object type. I send the servis and client code below. My query works fine but I got all array elements of my object equal to null. I could not understand the reason.
    Could you look and help me to solve it please?
    Server Code:
    import com.sun.rowset.CachedRowSetImpl;
    import java.sql.SQLException;
    public class deneme3 {
    public datayeni hesapla(datayeni don){
    int counter = 0;
    CachedRowSetImpl crs=null;
    SQLInterface iface = new SQLInterface();
    if (!iface.execQuery("SELECT isim, soyisim, email, " +
    "kart FROM musteri"))
    System.exit(1);
    // create CachedRowSet and output data to object data
    try
    crs = new CachedRowSetImpl();
    crs = iface.getRowSet();
         if(crs != null)
         while (crs.next())
         counter++;
         int j = 1;     
         int i = 0;                         
         don.setisim(i,crs.getString(j++)) ;
         System.out.println (don.getisim(i));
         don.setsoyisim(i,crs.getString(j++)) ;
         System.out.println (don.getsoyisim(i));
         don.setemail(i,crs.getString(j++)) ;
         System.out.println (don.getemail(i));
         don.setkart(i,crs.getString(j++)) ;
         System.out.println (don.getkart(i));          
         i++;
    } catch (SQLException se) {        
         return don;
    The Client Code:
    import org.apache.axis.AxisFault;
    import org.apache.axis.client.Call;
    import org.apache.axis.client.Service;
    import org.apache.axis.utils.Options;
    import javax.xml.namespace.QName;
    import javax.xml.rpc.ParameterMode;
    public class deneme3_Client {
    public static void main(String [] args) throws Exception {
    Options options = new Options(args);
    String ad[]=new String[10];
    String soyad[]=new String[10];
    String eposta[]=new String[10];
    String card[]=new String[10];
    datayeni obje_return = new datayeni();
    Service service = new Service();
    Call call = (Call) service.createCall();
    QName qn = new QName( "urn:BeanService", "datayeni" );
    call.registerTypeMapping(datayeni.class, qn,
    new org.apache.axis.encoding.ser.BeanSerializerFactory(datayeni.class, qn),
    new org.apache.axis.encoding.ser.BeanDeserializerFactory(datayeni.class, qn));
    call.setTargetEndpointAddress( new java.net.URL(options.getURL()) );
    call.setOperationName( new QName("deneme3", "hesapla") );
    call.addParameter( "arg1", qn, ParameterMode.INOUT );
    call.setReturnType( qn );
    datayeni ret = new datayeni();
    obje_return = (datayeni) call.invoke( new Object[] {obje_return} );
    int i = 0;
    for (i = 0;i<4;i++)
         ad[i] = obje_return.getisim(i);
         System.out.println(ad);     
         soyad[i] = obje_return.getsoyisim(i);
         System.out.println(soyad[i]);
         eposta[i] = obje_return.getemail(i);
         System.out.println(eposta[i]);
         card[i] = obje_return.getkart(i);
         System.out.println(card[i]);
    And the code for the class datayeni:
    public class datayeni{
    //attributes
    private String isim[]=new String[10];
    private String soyisim[]=new String[10];
    private String email[]=new String[10];
    private String kart[]=new String[10];
    //setter methods
    public void setisim (int index,String isim)
         this.isim[index] = isim;
    public void setsoyisim (int index,String soyisim)
         this.soyisim[index] = soyisim;
    public void setemail (int index,String email)
         this.email[index] = email;
    public void setkart (int index,String kart)
         this.kart[index] = kart;
    //getter methods
    public String getisim(int index)
         return this.isim[index];
    public String getsoyisim(int index)
         return this.soyisim[index];
    public String getemail(int index)
         return this.email[index];
    public String getkart(int index)
         return this.kart[index];
    Thank You!!!

    I really wonder, how ur code got compiled ...
    Try removing this four lines from ur clinet side code:
    String ad[]=new String[10];
    String soyad[]=new String[10];
    String eposta[]=new String[10];
    String card[]=new String[10];Now
    your all get methods return String...but u are assigning that string to
    array of strings like :
    ad = obje_return.getisim(i);
    soyad = obje_return.getsoyisim(i);
    eposta = obje_return.getemail(i);
    card = obje_return.getkart(i);instead write it like this:
    String ad = obje_return.getisim(i);
    String soyad = obje_return.getsoyisim(i);
    String eposta = obje_return.getemail(i);
    String card = obje_return.getkart(i);If above thing doesnt work ....
    I am very sure problem is not with webservice..its between jumbling of string/int and arrays of respective...
    because when u define new array of objects(in ur case: array of Strings), all newborn strings are initlialized to null.

  • Reading a modified data column in a cachedrowset

    I am using the tutorial
    http://developers.sun.com/jscreator/learning/tutorials/2/inserts_updates_deletes.html
    as a base of learning.
    I want to detect the edited changes to any row/column data in a cachedrowset displayed in a table.
    I have put all the fields of the table in a virtual form and set the "submitonchange" attribute of each element.
    When my server function "textField1_processValueChange()" is executed the value that I get from the element via the code ...
    CachedRowSetDataProvider cdp = tripDataProvider;
    try {
    RowKey rk = cdp.getCursorRow();
    FieldKey fk = cdp.getFieldKey("DEPDATE");
    Date d1 = (Date)cdp.getValue(fk);
    is the original value of the field, not the new value.
    What do I have to do to get the edited value?
    thanks
    jim murray

    The processValueChange method passes a ValueChangeEvent object as a parameter.
    Try using ValueChangeEvent's getNewValue method to get the edited value. The return value is an Object so you'd have to cast it to the appropriate object type.
    NOTE: I have not tried this, so I don't know if it will work.

  • Tag Library to display CachedRowSet contents?

    i am not a strong proponent of OR mapping. I think relational data should be treated as just data. Too much hard work to map data to objects.
    Is there a tag library that I can use to iterate through the contents of a CachedRowSet?
    I want to be able to iterate through it using a tag such as
    <c:forEach var="row" items="${rowset.rows}">
    <tr>
    <c:forEach var="column" items="${row}">
    <td><c:out value="${column.value}"/></td>
    </c:forEach>
    </tr>
    </c:forEach>

    i am not a strong proponent of OR mapping. I think relational data should be treated as just data. Too much hard work to map data to objects.
    Is there a tag library that I can use to iterate through the contents of a CachedRowSet?
    I want to be able to iterate through it using a tag such as
    <c:forEach var="row" items="${rowset.rows}">
    <tr>
    <c:forEach var="column" items="${row}">
    <td><c:out value="${column.value}"/></td>
    </c:forEach>
    </tr>
    </c:forEach>

Maybe you are looking for

  • PO Order value against Contract

    Hi, I am loading data from 2lis_02_hdr, 2lis_02_itm, 2lis_02_scl datasources in to cusotmized cube. In the ITM datasource we have fields EBELN(PO Number), KONNR(Agreement number), and we have a filed NETWR(Net Order value) against the PO number. Here

  • How to capture changed value in ALV Grid

    Hi Guys, I have an ALV grid report where I have 'Edit On' for one of the quantity fields in the report. How do I capture the new (changed) value in the suboutine for user command when user changes the value in the report and clicks on a button ? Poin

  • How can you add cds on the new i-tunes

    Like a idiot I uploaded the new i-tunes softwear. Its ******* **** and now cant add any new cds to my libary of 3500 cds. You cant create new folders to name after the artist or add the new cd to the folder. I dont use use i-tunes downloads as will o

  • One long repeating beep and no video output

    Sometimes when switching on a system build with KT6 Delta , I get one long repeating beep and no video output. The problem usually is solved if I unplug the monitor cable from the vga card and plug it in again. Still, I am thinking why does this happ

  • How to remove OTA Settings badge after delete of IOS 8.0.1 software update from storage

    Running iOS 8 I had downloaded and not installed IOS 8.0.1 software update.  A "1" Badge appears as expected on my Settings icon.  I then removed the software from storage.  Settings->General->Usage->Manage Storage but the badge was not removed.  Thi