java.sql.SQLException: stream has already been closed when using long vo

Hi all

I get the following exception java.sql.SQLException: stream has already been closed.
This is the first time that we met this exception, even if we use the application for some time.

This configuration attribute.
< ViewAttribute
Name = "AdditionalWhereClause".
IsUpdateable = "false".
IsQueriable = "false".
IsPersistent = "false".
PrecisionRule = 'true '.
Type = "Java.lang.String"
ColumnType = "LONG".
AliasName = 'ADDITIONAL_WHERE_CLAUSE. '
Expression = "ADDITIONAL_WHERE_CLAUSE."
SQLType = "VARCHAR" / >


Any body has clues.

Help is appreciated.

-Nanga

You're using Long or Long Raw in DB. If Yes, would be great if you can file a bug with the test case. BTW, the below given points have been suggested for problems similar return some time assuming you are using the type Long (btw, I have not tried these personally)
1. JVM option "-Doracle.jdbc.useFetchSizeWithLongColumn = true '.
2. make SQLTYPE as long in the application (XMLs EO/VO)
3 convert the type LONG LOB (table).

Tags: Java

Similar Questions

  • RJVM has already been shutdown error when looking up foreign server

    Hello

    I'm trying to set up 2 new servers in a clustered environment. I configured a foreign server which is looking for queues on another server.

    The structure is as follows: 1 foreign with 2 queues and 1 Server makes connections with exactly the same name they present on the host server.
    When you start the server, I get an exception:

    < 5 November 2012 19:39:58 EET > < WARNING > < EJB > < BEA-010061 > < The Message - Driven EJB: ClonedQueueAnonymousWaiter is unable to connect to the JMS destination: MDB_QUEUE_RESPONSE. The error was:
    javax.naming.CommunicationException [root exception is java.rmi.UnmarshalException: RJVM has already been extinguished; nested exception is:]
    [java.io.IOException: RJVM has been arrested]
    at weblogic.jndi.internal.ExceptionTranslator.toNamingException(ExceptionTranslator.java:74)
    at weblogic.jndi.internal.WLContextImpl.translateException(WLContextImpl.java:470)
    at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:426)
    at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:411)
    at javax.naming.InitialContext.lookup(InitialContext.java:392)
    at weblogic.deployment.jms.ForeignOpaqueReference.getReferent(ForeignOpaqueReference.java:221)
    at weblogic.jndi.internal.WLNamingManager.getObjectInstance(WLNamingManager.java:96)
    at weblogic.jndi.internal.ServerNamingNode.resolveObject(ServerNamingNode.java:377)
    at weblogic.jndi.internal.BasicNamingNode.resolveObject(BasicNamingNode.java:856)
    at weblogic.jndi.internal.BasicNamingNode.lookup(BasicNamingNode.java:209)
    at weblogic.jndi.internal.WLEventContextImpl.lookup(WLEventContextImpl.java:254)
    at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:411)
    at javax.naming.InitialContext.lookup(InitialContext.java:392)
    to weblogic.jms.common.CDS$ 2.run(CDS.java:486)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
    at weblogic.jms.common.CrossDomainSecurityManager.runAs(CrossDomainSecurityManager.java:131)
    at weblogic.jms.common.CDS.lookupDestination(CDS.java:480)
    at weblogic.jms.common.CDS.lookupDDAndCalloutListener(CDS.java:345)
    in weblogic.jms.common.CDS.access$ 100 (CDS.java:41)
    to weblogic.jms.common.CDS$ DDListenerRegistrationTimerListener.timerExpired (CDS.java:193)
    at weblogic.timers.internal.TimerImpl.run(TimerImpl.java:273)
    to weblogic.work.SelfTuningWorkManagerImpl$ WorkAdapterImpl.run (SelfTuningWorkManagerImpl.java:528)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:176)
    Caused by: java.rmi.UnmarshalException: RJVM has already been arrested. nested exception is:
    java.io.IOException: RJVM has already been turned off
    at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:360)
    at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:259)
    at weblogic.jndi.internal.ServerNamingNode_1034_WLStub.lookup (unknown Source)
    at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:423)
    ... 21 more
    Caused by: java.io.IOException: RJVM has already been turned off
    at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:234)
    at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:348)
    ... 24 more
    Caused by: java.io.IOException: RJVM has already been turned off
    at weblogic.rjvm.RJVMImpl.addPendingResponse(RJVMImpl.java:513)
    at weblogic.rjvm.RJVMImpl.send(RJVMImpl.java:900)
    at weblogic.rjvm.MsgAbbrevOutputStream.flushAndSend(MsgAbbrevOutputStream.java:394)
    at weblogic.rjvm.MsgAbbrevOutputStream.sendRecv(MsgAbbrevOutputStream.java:404)
    at weblogic.rjvm.BasicOutboundRequest.sendReceive(BasicOutboundRequest.java:109)
    at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:345)
    ... 24 more
    >

    WebLogic is installed in the Solaris machine and the version of welogic is 10.3.4.0 with Java version 1.6.0 update 33. I checked the firewall, / etc/hosts, but there is no problem with it.

    The JNDI connection URL is set up as: t3://xx.xxx.x.xx,xx.xxx.x.xx:7001/
    I tried to give it like this: t3://xx.xxx.x.xx:7001,xx.xxx.x.xx:7001/ or t3: / / hostname1, hostname2:7001 / or t3: / / hostname1:7001, hostname2:7001 /.
    but nothing has worked.

    Foreign servers are accessible from my Application Server when I telnet to the port. There is no required cross-domain security. Funny thing is that I have a same set up in two different application server (again) and he on the configuration of the same foreign server for IPs, I'm not facing problems at all.

    Can anyone help me please with this. Searched everywhere but have no idea about this topic. Many forums mentioned in connection to firewall and etc/hosts, but it's also not deal seems.

    Kind regards
    Africando

    The root cause of PeerGone is due with the exception of folklore here, as can be seen in the debug log.

    Caused by: weblogic.rjvm.PeerGoneException:; nested exception is:
    java.io.EOFException
    at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:234)
    at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:348)

    You can debug it socket & messaging & perspective by adding additional logging to the list of else to debug it, that are already in place to check if this isn't a problem with the DNS name resolution or other issues

    -Dweblogic.debug.DebugMessaging = true
    -Dweblogic.debug.DebugMuxer = true
    -Dweblogic.debug.DebugMuxerDetail = true
    -Dweblogic.debug.DebugMuxerTimeout = true
    -Dweblogic.debug.DebugMuxerConnection = true
    -Dweblogic.debug.DebugMuxerException = true

  • Lesson 3: flow has already been operated or closed

    IHAQ on the exercise of Levenshtein.

    When I run the code below, then I get the following exception: flow has already been operated or closed

            Stream<String> wordListStream1 = createStream(wordList, parallel);
            Stream<String> wordListStream2 = createStream(wordList, parallel);
    
            distances = wordListStream1
    //                .map(word1 -> wordList.stream().mapToInt(word2 -> lev(word1, word2)).toArray())
                    .map(word1 -> wordListStream2.mapToInt(word2 -> lev(word1, word2)).toArray())
                    .toArray(int[][]::new);
    
    
    

    But when I run the following code, and then I don't get an exception:

            Stream<String> wordListStream1 = createStream(wordList, parallel);
            Stream<String> wordListStream2 = createStream(wordList, parallel);
    
            distances = wordListStream1
                    .map(word1 -> wordList.stream().mapToInt(word2 -> lev(word1, word2)).toArray())
    //                .map(word1 -> wordListStream2.mapToInt(word2 -> lev(word1, word2)).toArray())
                    .toArray(int[][]::new);
    
    
    

    Can someone explain to me why? I thought that the two pieces of code should behave identically.

    The create method is:

    private static Stream<String> createStream(List<String> wordList, boolean parallel) {
            return (parallel) ? wordList.parallelStream() : wordList.stream();
    }
    
    

    You create a time wordListStream2. And closed after treatment first word1. Second code is correct because it creates a new tier for each deposits1.

  • What is the reason for the error. weblogic.application.ModuleException: java.sql.SQLException: ORA-28001: the password has expired

    Mr President

    Make me a mistake for an adf application.

    Running application ElizaSoft on IntegratedWebLogicServer...] 
    [06:38:05 PM] Web Module ViewControllerWebApp.war recognized in project ViewController.jpr
    [06:38:07 PM] ----  Deployment started.  ----
    [06:38:07 PM] Target platform is  (Weblogic 12.x).
    [06:38:10 PM] Retrieving existing application information
    [06:38:11 PM] Running dependency analysis...
    [06:38:11 PM] Deploying 2 profiles...
    [06:38:20 PM] Wrote Web Application Module to C:\Users\TANVIR\AppData\Roaming\JDeveloper\system12.2.1.0.42.151011.0031\o.j2ee\drs\ElizaSoft\ViewControllerWebApp.war
    [06:38:22 PM] Wrote Enterprise Application Module to C:\Users\TANVIR\AppData\Roaming\JDeveloper\system12.2.1.0.42.151011.0031\o.j2ee\drs\ElizaSoft
    [06:38:23 PM] Deploying 3 data source(s) to the server...
    [06:38:24 PM] Deploying Application...
    <Jan 3, 2016 6:38:35 PM PKT> <Error> <Deployer> <BEA-149265> <Failure occurred in the execution of deployment request with ID "2192494870412" for task "0" on [partition-name: DOMAIN]. Error is: "weblogic.application.ModuleException: java.sql.SQLException: ORA-28001: the password has expired
    "
    weblogic.application.ModuleException: java.sql.SQLException: ORA-28001: the password has expired
    
    
      at weblogic.jdbc.module.JDBCModule.prepare(JDBCModule.java:402)
      at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:100)
      at weblogic.application.internal.flow.ModuleStateDriver$1.next(ModuleStateDriver.java:196)
      at weblogic.application.internal.flow.ModuleStateDriver$1.next(ModuleStateDriver.java:191)
      at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:45)
      Truncated. see log file for complete stacktrace
    Caused By: java.sql.SQLException: ORA-28001: the password has expired
    
    
      at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:466)
      at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:399)
      at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:391)
      at oracle.jdbc.driver.T4CTTIfun.processError(T4CTTIfun.java:1126)
      at oracle.jdbc.driver.T4CTTIoauthenticate.processError(T4CTTIoauthenticate.java:507)
      Truncated. see log file for complete stacktrace
    > 
    <Jan 3, 2016 6:38:36 PM PKT> <Warning> <Deployer> <BEA-149004> <Failures were detected while initiating deploy task for application "ElizaSoft".> 
    <Jan 3, 2016 6:38:36 PM PKT> <Warning> <Deployer> <BEA-149078> <Stack trace for message 149004
    weblogic.application.ModuleException: java.sql.SQLException: ORA-28001: the password has expired
    
    
      at weblogic.jdbc.module.JDBCModule.prepare(JDBCModule.java:402)
      at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:100)
      at weblogic.application.internal.flow.ModuleStateDriver$1.next(ModuleStateDriver.java:196)
      at weblogic.application.internal.flow.ModuleStateDriver$1.next(ModuleStateDriver.java:191)
      at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:45)
      Truncated. see log file for complete stacktrace
    Caused By: java.sql.SQLException: ORA-28001: the password has expired
    
    
      at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:466)
      at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:399)
      at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:391)
      at oracle.jdbc.driver.T4CTTIfun.processError(T4CTTIfun.java:1126)
      at oracle.jdbc.driver.T4CTTIoauthenticate.processError(T4CTTIoauthenticate.java:507)
      Truncated. see log file for complete stacktrace
    > 
    [06:38:36 PM] Deployment cancelled.
    [06:38:37 PM] ----  Deployment incomplete  ----.
    [06:38:37 PM] Remote deployment failed (oracle.jdevimpl.deploy.common.Jsr88RemoteDeployer)
    #### Cannot run application ElizaSoft due to error deploying to IntegratedWebLogicServer.
    [06:38:37 PM] Cancel requested
    [Application ElizaSoft stopped and undeployed from IntegratedWebLogicServer]
    
    

    But I got back to the top of the same request for the same user and password but it works and do not give the error.

    Help, please.

    Concerning

    Mr President

    I just want to remove the old conn ide and create a new ide conn and add to the application and it works

    Concerning

  • Caused by: java.sql.SQLException: ORA-28001: the password has expired

    Hi all

    After that I installed vCloud Director and it works OK for the last 2 weeks. Now, after reboot yesterday for the ESX interview, I get the following error in the /opt/vmware/cloud-director/logs/vcloud-container-info.log:

    Caused by: java.sql.SQLException: ORA-28001: the password has expired

    Director vCould crashes and refuses to come,-(.)

    Anyone out there had this problem too? How can I fix? Thanks in advance for your help. See you soon.

    PSK@Centrify

    http://www.VMware.com/PDF/vcd_10_install.PDF

    Pages 9-23

  • java.sql.SQLException: JDBC LLR, table check failed for the table ' WL_LLR_ADMI

    Hello

    I am trying to install OSB in a different domain. I already have a suite of soa running.

    This is the directory structure
    Middleware/user_projects/domains

    (a) soa_domain
    (b) osb_domain

    Who, from the administration server for the BSO, I get error below.


    Error: -.
    < server failed. Reason: Last forest resource [JTAExceptions:119002] failed during initialization. The server cannot start unless all configured logging last resource (LLRs) initialize. Fault reason:
    javax.transaction.SystemException: weblogic.transaction.loggingresource.LoggingResourceException: java.sql.SQLException: check table JDBC LLR, failed for the table "WL_LLR_ADMINSERVER", line ' JDBC LLR field / / server ' record had an unexpected value ' soa_domain / / AdminServer' expected ' osb_domain / / AdminServer'* ONLY the domain and the server that creates a table original LLR can access *.



    I see the solution in https://blogs.oracle.com/epc/entry/technical_table_verify_failed_for but I have no doubt here.

    When I run

    Select RECORDSTR in the WL_LLR_ADMINSERVER where
    XIDSTR = "field of LLR JDBC / / server ';"

    I get the result like-> soa_domain / / AdminServer


    If I change it to osb_domain / / this AdminServer, will affect my soa_domain server... ? Please advice

    Published by: user10720442 on December 11, 2012 11:54

    Hello

    There are two possible solutions to this problem:

    Solution 1:

    To solve this problem reconfigures the basic information database of Point differently for each domain, if you have more than one domain. That, to change the port of the database and the name below two files in the field

    In the setDomainEnv.cmd (or .sh) file inside directory change DOMAIN_HOME/bin Point base port number and the name of the comic.

    Set POINTBASE_PORT = 9094
    Set POINTBASE_DBNAME = weblogic_eval2

    JDBC:PointBase:server://localhost:9094 / weblogic_eval2

    In the file wlsbjmsrpDataSource - jdbc.xml inside change DOMAIN_HOME/config/jdbc directory under entries with port of pointbase database updated and the name (this will be in two places in the file).

    Solution 2:

    If the domain name has been changed and do not want to change the database properties, then an update to the WL_LLR_ADMINSERVER table is possible:

    that is to say:
    Update SCHEMA_SAMPLE. Set RECORDSTR = WL_LLR_ADMINSERVER ' base_domain / / AdminServer' where XIDSTR = "JDBC LLR field / / server ';"

    Kind regards
    Kal

  • avctl start_collector - java.sql.SQLException: ORA-01017: name of user and password invalid. connection refused

    Hi all

    I was hoping you could help me.  After a server restart scheduled that I tried to start my fundraiser, when I did, I got the following error:

    09/29/14 10:19:36       Error executing command start_collector
    Internal Error
            at oracle.av.common.AuditException.toAuditException(AuditException.java:253)
            at oracle.av.management.impl.HttpManagementAdaptor.getData(HttpManagementAdaptor.java:259)
            at oracle.av.management.impl.HttpManagementAdaptor.getData(HttpManagementAdaptor.java:291)
            at oracle.av.management.impl.HttpManagementAdaptor.startCollector(HttpManagementAdaptor.java:434)
            at oracle.av.management.impl.ManagementServiceImpl.startCollector(ManagementServiceImpl.java:651)
            at oracle.av.management.impl.ManagementServiceImpl.startCollector(ManagementServiceImpl.java:696)
            at oracle.av.management.impl.ManagementServiceImpl.startCollector(ManagementServiceImpl.java:707)
            at oracle.av.avca.control.StartCollectorTask.executeTask(StartCollectorTask.java:82)
            at oracle.av.avca.backend.BaseTask.execute(BaseTask.java:104)
            at oracle.av.avca.Avctl.startCTL(Avctl.java:180)
            at oracle.av.avca.Avctl.main(Avctl.java:213)
    Nested Exception:
    java.sql.SQLException: ORA-28001: the password has expired
            at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
            at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:67)
            at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
            at java.lang.reflect.Constructor.newInstance(Constructor.java:522)
            at oracle.av.common.AuditException.toAuditException(AuditException.java:250)
            at oracle.av.management.impl.HttpManagementAdaptor.getData(HttpManagementAdaptor.java:259)
            at oracle.av.management.impl.HttpManagementAdaptor.getData(HttpManagementAdaptor.java:291)
            at oracle.av.management.impl.HttpManagementAdaptor.startCollector(HttpManagementAdaptor.java:434)
            at oracle.av.management.impl.ManagementServiceImpl.startCollector(ManagementServiceImpl.java:651)
            at oracle.av.management.impl.ManagementServiceImpl.startCollector(ManagementServiceImpl.java:696)
            at oracle.av.management.impl.ManagementServiceImpl.startCollector(ManagementServiceImpl.java:707)
            at oracle.av.avca.control.StartCollectorTask.executeTask(StartCollectorTask.java:82)
            at oracle.av.avca.backend.BaseTask.execute(BaseTask.java:104)
            at oracle.av.avca.Avctl.startCTL(Avctl.java:180)
            at oracle.av.avca.Avctl.main(Avctl.java:213)
    
    

    So I checked the database of Audit Vault and of course, uses that have expired there, Audit Vault users expire after 180 days.

    SELECT username, account_status, expiry_date
      FROM dba_users
    WHERE account_status = 'EXPIRED';
    
    

    I had a user "AGENT_BW3", which has expired. I also had the SYSAV & AVREPORTUSER that have expired.  So I changed my profile and then reset the password for these uses to the same than what have been before

    Now when I try to restart the collector, I get the following:

    09/29/14 10:36:02       Error executing command start_collector
    Internal Error
            at oracle.av.common.AuditException.toAuditException(AuditException.java:253)
            at oracle.av.management.impl.HttpManagementAdaptor.getData(HttpManagementAdaptor.java:259)
            at oracle.av.management.impl.HttpManagementAdaptor.getData(HttpManagementAdaptor.java:291)
            at oracle.av.management.impl.HttpManagementAdaptor.startCollector(HttpManagementAdaptor.java:434)
            at oracle.av.management.impl.ManagementServiceImpl.startCollector(ManagementServiceImpl.java:651)
            at oracle.av.management.impl.ManagementServiceImpl.startCollector(ManagementServiceImpl.java:696)
            at oracle.av.management.impl.ManagementServiceImpl.startCollector(ManagementServiceImpl.java:707)
            at oracle.av.avca.control.StartCollectorTask.executeTask(StartCollectorTask.java:82)
            at oracle.av.avca.backend.BaseTask.execute(BaseTask.java:104)
            at oracle.av.avca.Avctl.startCTL(Avctl.java:180)
            at oracle.av.avca.Avctl.main(Avctl.java:213)
    Nested Exception:
    java.sql.SQLException: ORA-01017: invalid username/password; logon denied
            at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
            at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:67)
            at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
            at java.lang.reflect.Constructor.newInstance(Constructor.java:522)
            at oracle.av.common.AuditException.toAuditException(AuditException.java:250)
            at oracle.av.management.impl.HttpManagementAdaptor.getData(HttpManagementAdaptor.java:259)
            at oracle.av.management.impl.HttpManagementAdaptor.getData(HttpManagementAdaptor.java:291)
            at oracle.av.management.impl.HttpManagementAdaptor.startCollector(HttpManagementAdaptor.java:434)
            at oracle.av.management.impl.ManagementServiceImpl.startCollector(ManagementServiceImpl.java:651)
            at oracle.av.management.impl.ManagementServiceImpl.startCollector(ManagementServiceImpl.java:696)
            at oracle.av.management.impl.ManagementServiceImpl.startCollector(ManagementServiceImpl.java:707)
            at oracle.av.avca.control.StartCollectorTask.executeTask(StartCollectorTask.java:82)
            at oracle.av.avca.backend.BaseTask.execute(BaseTask.java:104)
            at oracle.av.avca.Avctl.startCTL(Avctl.java:180)
            at oracle.av.avca.Avctl.main(Avctl.java:213)
    
    

    Now of course I went on this issue the wrong way, is - that someone has encountered this problem before?

    Just to add, I tried to connect with the same passwords for all users of Audit Vault in sqlplus and all work fine, its only the "start_collector" that has the problem.

    Kind regards.

    I fixed it by following these steps.

    When the audit Vault database is created all users will see the profile by DEFAULT, it is a grace expires 180 days.  I needed to reset user passwords that I did.  The part that missed me, was that even if I put the passwords for what they had been before the expiry I still need to change the portfolio.

    sqlplus SYSAVDVA/xx

    -User AV_ADMIN

    ALTER USER SYSAV IDENTIFIED BY xx;

    -Server wallet

    CD $ORACLE_HOME/network/admin/avwallet

    AVCA create_credential - wrl. dbalias - av - usr SYSAV/xx

    sqlplus SYSAVDVA/xx

    -User AV_AGENT

    ALTER USER IDENTIFIED BY AGENT_BW3 xx.

    -Portfolio Officer

    CD $ORACLE_HOME/network/admin/avwallet

    AVCA create_credential - wrl. dbalias - av - usr AGENT_BW3/xx

    This fixed the problem.

  • java.sql.SQLException: no driver appropriate

    I am new to ODI, and I'm launching the following ODI demo:

    [Creating and connecting to ODI master and work repositories | http://www.oracle.com/technology/obe/fusion_middleware/odi/ODImaster_work_repos/ODImaster_work_repos.htm]

    but I can't start with the demo, because when I try to connect to the master repository Wizard to the Oracle 10 g XE database, I get the following error message:

    java.sql.SQLException: no driver appropriate

    There are two sections in the installation guide of ODI 10.1.3 I find difficult, and perhaps I did not understood them correctly:

    Section 'Configuration of Java' _: _

    I have installed a new jdk or jre, jre 1.4.2 has already settled with ODI and ODI_JAVA_HOME is already pointing to this one:

    ODI_JAVA_HOME=C:\OraHome_1\jre\1.4.2


    _ "" Installation JDBC / drivers JMS ' section: _ "

    I've included the jdbc drivers included in Oracle 10g XE in the CLASSPATH:

    ORACLE_HOME/JDBC/lib/ojdbc14.jar
    ORACLE_HOME/jlib/orai18n.jar

    in my case, which translates:

    CLASSPATH=C:\oraclexe\app\oracle\product\10.2.0\server\jdbc\lib\ojdbc14.jar; C:\oraclexe\app\oracle\product\10.2.0\server\jlib\orai18n.jar

    I am new to java, as well, so I might have made an error of configuration of the java runtime environment. Can someone help me?


    Juan Algaba Colera

    In topology, you entered the JDBC Driver (JDBC) field. And in the JDBC URL?

    Concerning

  • Cause: java.sql.SQLException: ORA-22295: unable to bind more than 4000 bytes

    Hello

    When you use Java/XML to insert, we got an error like:

    Cause: java.sql.SQLException: ORA-01461: can bind to a LONG value only for insert into a LONG column

    then change column varchar2 (4000) to a long data type.

    as:
    truncate table BAM_ACTIVITY

    ALTER TABLE BAM_ACTIVITY CHANGE (CONTEXT LONG);


    then download the new error message like:

    Cause: java.sql.SQLException: ORA-22295: impossible to link more LOB data and LONG columns 4000 bytes in 1 statement


    I think that time limit of data type is only 2 Giga bytes, do we need to change the data type of this column to
    CLOB, which can be as large as 4 GB,

    Or an experience to draw from this kind of error?

    Thank you very much

    Roy

    Published by: ROY123 on January 25, 2010 14:26

    Published by: ROY123 on January 25, 2010 14:27

    Has LONG been deprecated for a (pardon the pun) a very long time.

    CLOB would be your horse if you need store more than 4000 bytes of information.

    If you need help with that (insert via java), this can provide useful information for you.

    [http://www.oracle.com/technology/sample_code/tech/java/codesnippet/jdbc/clob10g/handlingclobsinoraclejdbc10g.html]

  • java.sql.SQLException: ORA-06550 and ORA-00900 call stored procedures

    Hi all

    I have 2 a stored procedures that I want to call from my Session bean. One of them takes a few settings, but not the other. When I call the procedures, I get the following errors described below. I tested the two stored procedures in sql plus and sqldveleoper and they work well. The funniest, it is, I have another stored procedure that I can call successfully from the same bean in session with no problems, so I'm a bit confused as to why his play now.

    I use stand-alone 10.1.3.4 OC4J and Oracle 10 g Db 10.2.0.4 and platform DB that I use is Oracle10gPlatform and Eclipselink as my JPA provider. I have also tried against toplink (not toplink essentials) and still no joy

    Here is the error I get when I try and call the procedure which takes the parameters of the session bean
    Internal Exception: java.sql.SQLException: ORA-06550: line 1, column 7:
    PLS-00306: wrong number or types of arguments in call to 'HASHDATA'
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    
    Error Code: 6550
    Call: BEGIN HashData(input=>?, hashedValue=>?, hashed=>?); END;
         bind => [password1, => hashedValue, => hashed]
    Query: DataReadQuery()
    Here are my stored procedure that take parameters
    create or replace procedure hashData(input IN VARCHAR2, hashedValue OUT BLOB, hashed OUT BOOLEAN)  as  
    
    inputRaw RAW(2000);
    --hashed BOOLEAN := false;
    begin 
    
    dbms_output.put_line('the data to be hashed is '||input);
    
    dbms_output.put_line('converting input to raw ...');
    inputRaw := utl_i18n.string_to_raw(input,'AL32UTF8');
    
    dbms_output.put_line('Hashing Data ...');
    hashedValue := DBMS_CRYPTO.Hash (src=>inputRaw,typ=>DBMS_CRYPTO.HASH_SH1);
    
    dbms_output.put_line('hash is '||UTL_I18N.raw_to_char(dbms_lob.substr(hashedValue, 4000,1)));
    
    if (hashedValue  is not null) then 
     
    
     hashed :=true;
      dbms_output.put_line('hashedValue IS NOT  null');
     else
     hashed := false;
      dbms_output.put_line('hashedValue IS null');
     end if;
    
    end;
    Here is my code in the session bean to call the procedure that takes as parameters (Hashdata)

    public UserBean() {
              // TODO Auto-generated constructor stub
    
              sessMan = SessionManager.getManager();
              session = sessMan.getSession("Session", Thread.currentThread()
                        .getContextClassLoader());
    
         }
    
    public Serializable hashData(String input){
    
              logger.debug("Hashing Data ... "); 
              hashedValue= null; 
              boolean hashed=false; 
         
              StoredProcedureCall call = new StoredProcedureCall();
    
              ValueReadQuery query = new ValueReadQuery();
              call.setProcedureName("HashData");
              call.addNamedArgumentValue("input", input);
              call.addNamedOutputArgument("hashedValue", "hashedValue", java.sql.Blob.class);
              call.addNamedOutputArgument("hashed", "hashed", java.lang.Integer.class);
                        
              query.addArgument("input");
              
              query.setCall(call);
              
              session.executeQuery(query);
               
              if ((Boolean)hashed){
                   logger.debug("The data has been hashed and the hash value is: "+hashedValue);
              }
              
              else{
                   logger.debug("The data has could not be hashed");
                   hashedValue=null;
              }
              
              return (Serializable)hashedValue;
              }
    When I call the other takes no parameters, I get the following error.
    Internal Exception: java.sql.SQLException: ORA-00900: invalid SQL statement
    
    Error Code: 900
    Call: BEGIN testJPAProc(); END;
    Query: DataReadQuery()
    Here is the procedure which takes no parameters
    create or replace procedure testJPAProc is 
     
     begin
     dbms_output.put_line('testJPAProc called');
     end;
    Heres is the code to call procedures that take no parameters
                                    StoredProcedureCall call = new StoredProcedureCall();
      
              ValueReadQuery query = new ValueReadQuery();
              
              call.setProcedureName("testJPAProc");
              query.setCall(call);
              
              session.executeQuery(query);
    You guys can tell me where I'm wrong if I do something wrong. Why make these mistakes? because as far as I can tell the code (java and pl/sql) are both correct unless there is something I missed. It's kinda funny because I have another stored procedure I can call successfully.


    Thank you

    The first question is that the Boolean in Oracle is not a supported JDBC type, but a PLSQL type.
    Change to an INTEGER is probably the best, you can also use the PLSQLStoredProcedureCall class to access.

    The second problem is perhaps that the stored procedure is not valid, make sure that it compiled correctly. It can also be the type of your query, you must use a DataModifyQuery, not a read request that it returns nothing.
    If still no luck, try to call directly through JDBC, it works?

    ---
    James: http://www.eclipselink.org: http://en.wikibooks.org/wiki/Java_Persistence

  • "Is:java.sql.SQLException error: ORA-01555: snapshot too old: rollback segment number with the name ' ' too small '.

    Hello

    We conduct apply CM which is a failure with the Error: "declared:java.sql.SQLException: ORA-01555: snapshot too old: rollback segment number with the name '' too small'."

    Its in our unique the production instance. I checked on the return parameter. Here are the details.

    SQL > show Cancel parameter

    VALUE OF TYPE NAME

    ------------------------------------ ----------- ------------------------------

    _in_memory_undo Boolean TRUE

    _undo_debug_usage integer 2

    UNDO_MANAGEMENT string AUTO

    UNDO_RETENTION integer 40000

    undo_tablespace string APPS_UNDOTS1

    SQL > select max (maxquerylen) of v$ undostat;

    MAX (MAXQUERYLEN)

    ----------------

    637116

    Please suggest what needs to be done to go further.


    Kind regards

    Prabhat.

    Post edited by: 942633

    Hello

    ORA-02067: the rollback transaction or registration required

    As mentioned, you will need to look at the design of the code:

    Error: ORA 2067
    Text: rollback transaction or registration required
    -------------------------------------------------------------------------------
    Cause: A failure (typically a trigger or a stored procedure with several updates remotely) has occurred, such as the execution of all or nothing from a previous call to Oracle cannot be guaranteed.
    Action: return to a previous point of backup or restore the transaction and resubmit.

    ------

    ORA-01555 caused by the following SQL statement (SQL ID: 5y0q4u8r2hdy9, query term s = 637608, SCN: 0x0bcc.4ed82762):

    ------

    ACTUAL SIZE [MB] UNDO UNDO RETENTION [s] NECESSARY UNDO SIZE [MB]

    ------------------------                   ------------------------------------------------------------------------- ------------------------

    304849 40000 267232.292

    To better help you, please let us know:

    -What is the function of this program.

    -Did you recently parameter changes until you have this error.

    Please ensure that the validation controls are implemented correctly, the DBA team and development will work hand in hand.

    Thank you &

    Best regards

  • Caused by: java.sql.SQLException: column type invalid or NOT?

    It has all,

    I use JDev Studio Edition Version 11.1.2.3.0
    Oracle 11g
    Problem is simple a table

    CREATE TABLE 'FACT '. "" MU_UREDJAJ ".
    (
    ACTIVATE THE "MUURE_ID" NUMBER (32.0) NOT NULL,
    VARCHAR2 (25 CHAR) "MUURE_BROJ_UREDJAJA."
    NUMBER (15.0) "MUTU_ID."
    NUMBER (4,0) "MUURE_GOD_PROZ."
    NUMBER (4,0) "MUURE_GOD_OVERE."
    NUMBER (2.0) "MUVUR_ID."
    NUMBER (2.0) "MUSVL_ID."
    NUMBER (2.0) "MUSURE_ID."
    'MU_UREDJAJ_PK' CONSTRAINT PRIMARY KEY ('MUURE_ID')
    )

    VO and EO created based on this table
    Here is the generated type the JDev

    < attribute
    Name = "MuureId".
    IsNotNull = 'true '.
    Precision = "32".
    Scale = '0 '.
    ColumnName = "MUURE_ID."
    SQLType = 'DIGITAL '.
    Type = "Java.Math.BigInteger"
    ColumnType = 'NUMBER '.
    TableName = "MU_UREDJAJ."
    PrimaryKey = "true" / >
    < attribute
    Name = "MuureBrojUredjaja".
    Precision = "25".
    ColumnName = "MUURE_BROJ_UREDJAJA."
    SQLType = 'VARCHAR '.
    Type = "Java.lang.String"
    ColumnType = "VARCHAR2".
    TableName = "MU_UREDJAJ" >
    < DesignTime >
    < name Attr = "_DisplaySize" Value = "25" / >
    < / DesignTime >
    < / attribute >
    ......

    When I try to insert only primary keys with all null values I get error:
    [51] INFO: not app def in BindingContext for: AppModule
    [52] DCUtil, returning:oracle.jbo.uicli.binding.JUApplication, for AppModule
    [53] replacement: null with: AppModule_MuUredjajView1_0PageDef
    [54] INFO: not app def in BindingContext for: AppModule
    [55] DCUtil, returning:oracle.jbo.uicli.binding.JUApplication, for AppModule
    [56] INFO: not app def in BindingContext for: PROJECT_GLOBAL_VARIABLES
    [57] INFO: search mDCRefMap has failed. The cpx has an entry dataControlUsages 'dc '? PROJECT_GLOBAL_VARIABLES
    [58] fix VO:AppModule.MuUredjajView1 of iterator binding: oracle_jbo_uicli_binding_JUIteratorBinding_2
    [59] DCUtil, RETURN: < null > to AppModule.MuUredjajView1
    [60] MuUredjajView1 ViewRowSetImpl.execute caused to be 'one' changed params
    [61] with over CappedRowCount:-1 for ViewRowSet:MuUredjajView1
    [62] number of columns: 8
    [63] executeQueryForCollection ViewObject:MuUredjajView1, RowSet:MuUredjajView1
    [64] MuUredjajView1 > #q calculated SQLStmtBufLen: 298, real = 271, storage = 301
    [65] SELECT MuUredjaj.MUURE_ID, MuUredjaj.MUURE_BROJ_UREDJAJA, MuUredjaj.MUTU_ID, MuUredjaj.MUURE_GOD_PROZ, MuUredjaj.MUURE_GOD_OVERE, MuUredjaj.MUVUR_ID, MuUredjaj.MUSVL_ID, MU_UREDJAJ MuUredjaj MuUredjaj.MUSURE_ID
    [66] ViewObject: [model. MuUredjajView] AppModule.MuUredjajView1 creating new QUERY statement
    [67] params for ViewObject bind: [model. MuUredjajView] AppModule.MuUredjajView1
    [68] DBTransactionImpl.mDefaultSparseArrayThreshold is 20
    [69] entity with key:oracle.jbo.Key [375681] owned by row:oracle.jbo.Key [375681]
    [70] * refreshControl() for BindingContainer: AppModule_MuUredjajView1_0PageDef
    [71] * refreshControl() for BindingContainer: AppModule_MuUredjajView1_0PageDef
    [72] INFO: not app def in BindingContext for: adfFacesContext
    [73] INFO: search mDCRefMap has failed. The cpx has an entry dataControlUsages 'dc '? adfFacesContext
    [74] INFO: not app def in BindingContext for: adfFacesContext
    [75] INFO: search mDCRefMap has failed. The cpx has an entry dataControlUsages 'dc '? adfFacesContext
    [76] OracleSQLBuilder: SAVEPOINT 'BO_SP '.
    [77] OracleSQLBuilder execution, memorize 2 DML: MU_UREDJAJ (insert)
    [78] INSERT buf MuUredjaj > #i SQLStmtBufLen: 165, real = 44
    [79] INSERT INTO MU_UREDJAJ (MUURE_ID) VALUES (: 1).
    [80] insert link param 1:400000
    [81] OracleSQLBuilderImpl.doEntityDML is not...
    [82] X / Open SQL State is: 99999
    [83] java.sql.SQLException: invalid column type
    at oracle.jdbc.driver.OraclePreparedStatement.setObjectCritical(OraclePreparedStatement.java:11256)
    at oracle.jdbc.driver.OraclePreparedStatement.setObjectInternal(OraclePreparedStatement.java:10605)
    at oracle.jdbc.driver.OraclePreparedStatement.setObjectInternal(OraclePreparedStatement.java:11665)
    at oracle.jdbc.driver.OraclePreparedStatement.setObject(OraclePreparedStatement.java:11631)
    at oracle.jdbc.driver.OraclePreparedStatementWrapper.setObject(OraclePreparedStatementWrapper.java:253)
    at oracle.jbo.server.OracleSQLBuilderImpl.bindInsertStatement(OracleSQLBuilderImpl.java:2036)
    at oracle.jbo.server.EntityImpl.bindDMLStatement(EntityImpl.java:10466)
    at oracle.jbo.server.OracleSQLBuilderImpl.doEntityDML(OracleSQLBuilderImpl.java:415)
    at oracle.jbo.server.EntityImpl.doDML(EntityImpl.java:8518)
    at oracle.jbo.server.EntityImpl.postChanges(EntityImpl.java:6775)
    at oracle.jbo.server.DBTransactionImpl.doPostTransactionListeners(DBTransactionImpl.java:3264)
    at oracle.jbo.server.DBTransactionImpl.postChanges(DBTransactionImpl.java:3067)
    at oracle.jbo.server.DBTransactionImpl.commitInternal(DBTransactionImpl.java:2071)
    at oracle.jbo.server.DBTransactionImpl.commit(DBTransactionImpl.java:2352)
    at oracle.adf.model.bc4j.DCJboDataControl.commitTransaction(DCJboDataControl.java:1590)
    at oracle.adf.model.binding.DCDataControl.callCommitTransaction(DCDataControl.java:1415)
    at oracle.jbo.uicli.binding.JUCtrlActionBinding.doIt(JUCtrlActionBinding.java:1428)
    at oracle.adf.model.binding.DCDataControl.invokeOperation(DCDataControl.java:2169)
    at oracle.jbo.uicli.binding.JUCtrlActionBinding.invoke(JUCtrlActionBinding.java:731)
    at oracle.jbo.uicli.jui.JUActionBinding.actionPerformed(JUActionBinding.java:193)
    at oracle.jbo.uicli.controls.JUNavigationBar.doAction(JUNavigationBar.java:412)
    at oracle.jbo.jbotester.NavigationBar.doAction(NavigationBar.java:112)
    to oracle.jbo.uicli.controls.JUNavigationBar$ NavButton.actionPerformed (JUNavigationBar.java:118)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
    in javax.swing.AbstractButton$ Handler.actionPerformed (AbstractButton.java:2318)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
    at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:272)
    at java.awt.Component.processMouseEvent(Component.java:6289)
    at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
    at java.awt.Component.processEvent(Component.java:6054)
    at java.awt.Container.processEvent(Container.java:2041)
    at java.awt.Component.dispatchEventImpl(Component.java:4652)
    at java.awt.Container.dispatchEventImpl(Container.java:2099)
    at java.awt.Component.dispatchEvent(Component.java:4482)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
    at java.awt.Container.dispatchEventImpl(Container.java:2085)
    at java.awt.Window.dispatchEventImpl(Window.java:2478)
    at java.awt.Component.dispatchEvent(Component.java:4482)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:644)
    to java.awt.EventQueue.access$ 000 (EventQueue.java:85)
    in java.awt.EventQueue$ 1.run(EventQueue.java:603)
    in java.awt.EventQueue$ 1.run(EventQueue.java:601)
    at java.security.AccessController.doPrivileged (Native Method)
    in java.security.AccessControlContext$ 1.doIntersectionPrivilege(AccessControlContext.java:87)
    in java.security.AccessControlContext$ 1.doIntersectionPrivilege(AccessControlContext.java:98)
    in java.awt.EventQueue$ 2.run(EventQueue.java:617)
    in java.awt.EventQueue$ 2.run(EventQueue.java:615)
    at java.security.AccessController.doPrivileged (Native Method)
    in java.security.AccessControlContext$ 1.doIntersectionPrivilege(AccessControlContext.java:87)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:614)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

    [84] OracleSQLBuilder: ROLLBACK WORK point registration "BO_SP".
    [85] DCBindingContainer.reportException: oracle.jbo.DMLException
    [86] oracle.jbo.DMLException: Houston-26041: failure to publish data from database in "Insert": SQL statement "INSERT INTO MU_UREDJAJ (MUURE_ID) VALUES (: 1).
    at oracle.jbo.server.OracleSQLBuilderImpl.doEntityDML(OracleSQLBuilderImpl.java:581)
    at oracle.jbo.server.EntityImpl.doDML(EntityImpl.java:8518)
    at oracle.jbo.server.EntityImpl.postChanges(EntityImpl.java:6775)
    at oracle.jbo.server.DBTransactionImpl.doPostTransactionListeners(DBTransactionImpl.java:3264)
    at oracle.jbo.server.DBTransactionImpl.postChanges(DBTransactionImpl.java:3067)
    at oracle.jbo.server.DBTransactionImpl.commitInternal(DBTransactionImpl.java:2071)
    at oracle.jbo.server.DBTransactionImpl.commit(DBTransactionImpl.java:2352)
    at oracle.adf.model.bc4j.DCJboDataControl.commitTransaction(DCJboDataControl.java:1590)
    at oracle.adf.model.binding.DCDataControl.callCommitTransaction(DCDataControl.java:1415)
    at oracle.jbo.uicli.binding.JUCtrlActionBinding.doIt(JUCtrlActionBinding.java:1428)
    at oracle.adf.model.binding.DCDataControl.invokeOperation(DCDataControl.java:2169)
    at oracle.jbo.uicli.binding.JUCtrlActionBinding.invoke(JUCtrlActionBinding.java:731)
    at oracle.jbo.uicli.jui.JUActionBinding.actionPerformed(JUActionBinding.java:193)
    at oracle.jbo.uicli.controls.JUNavigationBar.doAction(JUNavigationBar.java:412)
    at oracle.jbo.jbotester.NavigationBar.doAction(NavigationBar.java:112)
    to oracle.jbo.uicli.controls.JUNavigationBar$ NavButton.actionPerformed (JUNavigationBar.java:118)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
    in javax.swing.AbstractButton$ Handler.actionPerformed (AbstractButton.java:2318)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
    at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:272)
    at java.awt.Component.processMouseEvent(Component.java:6289)
    at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
    at java.awt.Component.processEvent(Component.java:6054)
    at java.awt.Container.processEvent(Container.java:2041)
    at java.awt.Component.dispatchEventImpl(Component.java:4652)
    at java.awt.Container.dispatchEventImpl(Container.java:2099)
    at java.awt.Component.dispatchEvent(Component.java:4482)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
    at java.awt.Container.dispatchEventImpl(Container.java:2085)
    at java.awt.Window.dispatchEventImpl(Window.java:2478)
    at java.awt.Component.dispatchEvent(Component.java:4482)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:644)
    to java.awt.EventQueue.access$ 000 (EventQueue.java:85)
    in java.awt.EventQueue$ 1.run(EventQueue.java:603)
    in java.awt.EventQueue$ 1.run(EventQueue.java:601)
    at java.security.AccessController.doPrivileged (Native Method)
    in java.security.AccessControlContext$ 1.doIntersectionPrivilege(AccessControlContext.java:87)
    in java.security.AccessControlContext$ 1.doIntersectionPrivilege(AccessControlContext.java:98)
    in java.awt.EventQueue$ 2.run(EventQueue.java:617)
    in java.awt.EventQueue$ 2.run(EventQueue.java:615)
    at java.security.AccessController.doPrivileged (Native Method)
    in java.security.AccessControlContext$ 1.doIntersectionPrivilege(AccessControlContext.java:87)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:614)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
    Caused by: java.sql.SQLException: invalid column type
    at oracle.jdbc.driver.OraclePreparedStatement.setObjectCritical(OraclePreparedStatement.java:11256)
    at oracle.jdbc.driver.OraclePreparedStatement.setObjectInternal(OraclePreparedStatement.java:10605)
    at oracle.jdbc.driver.OraclePreparedStatement.setObjectInternal(OraclePreparedStatement.java:11665)
    at oracle.jdbc.driver.OraclePreparedStatement.setObject(OraclePreparedStatement.java:11631)
    at oracle.jdbc.driver.OraclePreparedStatementWrapper.setObject(OraclePreparedStatementWrapper.java:253)
    at oracle.jbo.server.OracleSQLBuilderImpl.bindInsertStatement(OracleSQLBuilderImpl.java:2036)
    at oracle.jbo.server.EntityImpl.bindDMLStatement(EntityImpl.java:10466)
    at oracle.jbo.server.OracleSQLBuilderImpl.doEntityDML(OracleSQLBuilderImpl.java:415)
    ... 52 more
    # # 0 in detail
    java.sql.SQLException: invalid column type
    at oracle.jdbc.driver.OraclePreparedStatement.setObjectCritical(OraclePreparedStatement.java:11256)
    at oracle.jdbc.driver.OraclePreparedStatement.setObjectInternal(OraclePreparedStatement.java:10605)
    at oracle.jdbc.driver.OraclePreparedStatement.setObjectInternal(OraclePreparedStatement.java:11665)
    at oracle.jdbc.driver.OraclePreparedStatement.setObject(OraclePreparedStatement.java:11631)
    at oracle.jdbc.driver.OraclePreparedStatementWrapper.setObject(OraclePreparedStatementWrapper.java:253)
    at oracle.jbo.server.OracleSQLBuilderImpl.bindInsertStatement(OracleSQLBuilderImpl.java:2036)
    at oracle.jbo.server.EntityImpl.bindDMLStatement(EntityImpl.java:10466)
    at oracle.jbo.server.OracleSQLBuilderImpl.doEntityDML(OracleSQLBuilderImpl.java:415)
    at oracle.jbo.server.EntityImpl.doDML(EntityImpl.java:8518)
    at oracle.jbo.server.EntityImpl.postChanges(EntityImpl.java:6775)
    at oracle.jbo.server.DBTransactionImpl.doPostTransactionListeners(DBTransactionImpl.java:3264)
    at oracle.jbo.server.DBTransactionImpl.postChanges(DBTransactionImpl.java:3067)
    at oracle.jbo.server.DBTransactionImpl.commitInternal(DBTransactionImpl.java:2071)
    at oracle.jbo.server.DBTransactionImpl.commit(DBTransactionImpl.java:2352)
    at oracle.adf.model.bc4j.DCJboDataControl.commitTransaction(DCJboDataControl.java:1590)
    at oracle.adf.model.binding.DCDataControl.callCommitTransaction(DCDataControl.java:1415)
    at oracle.jbo.uicli.binding.JUCtrlActionBinding.doIt(JUCtrlActionBinding.java:1428)
    at oracle.adf.model.binding.DCDataControl.invokeOperation(DCDataControl.java:2169)
    at oracle.jbo.uicli.binding.JUCtrlActionBinding.invoke(JUCtrlActionBinding.java:731)
    at oracle.jbo.uicli.jui.JUActionBinding.actionPerformed(JUActionBinding.java:193)
    at oracle.jbo.uicli.controls.JUNavigationBar.doAction(JUNavigationBar.java:412)
    at oracle.jbo.jbotester.NavigationBar.doAction(NavigationBar.java:112)
    to oracle.jbo.uicli.controls.JUNavigationBar$ NavButton.actionPerformed (JUNavigationBar.java:118)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
    in javax.swing.AbstractButton$ Handler.actionPerformed (AbstractButton.java:2318)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
    at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:272)
    at java.awt.Component.processMouseEvent(Component.java:6289)
    at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
    at java.awt.Component.processEvent(Component.java:6054)
    at java.awt.Container.processEvent(Container.java:2041)
    at java.awt.Component.dispatchEventImpl(Component.java:4652)
    at java.awt.Container.dispatchEventImpl(Container.java:2099)
    at java.awt.Component.dispatchEvent(Component.java:4482)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
    at java.awt.Container.dispatchEventImpl(Container.java:2085)
    at java.awt.Window.dispatchEventImpl(Window.java:2478)
    at java.awt.Component.dispatchEvent(Component.java:4482)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:644)
    to java.awt.EventQueue.access$ 000 (EventQueue.java:85)
    in java.awt.EventQueue$ 1.run(EventQueue.java:603)
    in java.awt.EventQueue$ 1.run(EventQueue.java:601)
    at java.security.AccessController.doPrivileged (Native Method)
    in java.security.AccessControlContext$ 1.doIntersectionPrivilege(AccessControlContext.java:87)
    in java.security.AccessControlContext$ 1.doIntersectionPrivilege(AccessControlContext.java:98)
    in java.awt.EventQueue$ 2.run(EventQueue.java:617)
    in java.awt.EventQueue$ 2.run(EventQueue.java:615)
    at java.security.AccessController.doPrivileged (Native Method)
    in java.security.AccessControlContext$ 1.doIntersectionPrivilege(AccessControlContext.java:87)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:614)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

    [87] JUErrorHandlerDlg.reportException (oracle.jbo.DMLException)

    Try to change. BigInteger java.lang.Integer (this is probably a bug in the ADF)

    Dario

  • java.sql.SQLException: IO exception: Got minus one since a call to reading

    Hello

    I have RHE dedicated server with Oracle Database 10 g Express Edition Release 10.2.0.1.0 - Production

    I get the following error:
    java.sql.SQLException: Io exception: Got minus one from a read call
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:145)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:190)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:363)
    at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:401)
    at oracle.jdbc.driver.PhysicalConnection.(PhysicalConnection.java:441)
    at oracle.jdbc.driver.T4CConnection.(T4CConnection.java:165)
    at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:35)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:839)
    at java.sql.DriverManager.getConnection(DriverManager.java:582)
    at java.sql.DriverManager.getConnection(DriverManager.java:185)
    at DB.getOracleConnection(DB.java:45)
    at UserDAO.insertToCvProperties(UserDAO.java:257)
    at BulkSavedCVs.doGet(BulkSavedCVs.java:251)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
    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.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:293)
    at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190)
    at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:291)
    at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:769)
    at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:698)
    at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:891)
    at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690)
    at java.lang.Thread.run(Thread.java:619)
    I googled and found very interesting information. The conclusion that I think that may be the problem with my database driver.

    Here's my method of db connection:
    public static Connection getOracleConnection() throws Exception {
        String driver = "oracle.jdbc.driver.OracleDriver";
        String url = "jdbc:oracle:thin:@127.0.0.1:1521:XE";
        String username = "userNamel";
        String password = "password";
    
        Class.forName(driver); 
        Connection cnn = DriverManager.getConnection(url, username, password);
        return cnn;
    The drivers I have in my tomcat/lib directory are:
    classes12.jar
    classes12_g.jar
    classes12dms.jar
    ojdbc14.jar is
    ojdbc14_g.jar

    Please notify

    Thank you in anticipation

    >
    I googled and found very interesting information
    >
    If you found that interesting why you don't mind to post it so we can see what you're talking about?

    So far, you took the trouble to tell us what it is you are trying to do, how you are trying to do or what problem you have make other that to say that you got an error.
    >
    classes12.jar
    classes12_g.jar
    classes12dms.jar
    ojdbc14.jar is
    ojdbc14_g.jar
    >
    These pots are for Java 1.2 and 1.4, but since you have not "say what you're trying to do there is no way of knowing which version of Java you have on your system or which of those you may be using, and what you use for.

    Why do you use these old JDBC jar?

    Start over and ask you if you could provide any help to someone who has posted only the information that you have posted. This is equivalent to calling a mechanic on the phone, telling them your car makes a funny noise and ask him to tell you what's wrong with your car.

  • FindByIP fails with «the object has already been deleteted...» »

    I use axis2c to access VM web services. I can successfully recover a ServiceInstance a Login.

    I then try to find a virtual machine by sending the following text:

    " & lt; soapenv:Envelope xmlns:soapenv = ' http://schemas.xmlsoap.org/SOAP/envelope/ "& gt;" & lt; soapenv:body & gt; & lt; n: FindByIp xmlns:n = "urn: vim25" & gt; & lt; n: _this type = "Indexderecherche" & gt; FindByIp & lt; / n: _this & gt; & lt; n: ip & gt; 10.177.8.157 & lt; / n: ip & gt; & lt; n: vmSearch & gt; true & lt; / n: vmSearch & gt; & lt; / n: FindByIp & gt; & lt; / soapenv:Body & gt; & lt; / soapenv:Envelope & gt;

    I always get the error:

    & lt;? XML version = "1.0" encoding = "UTF-8"? & gt;

    " & lt; soapenv:Envelope xmlns:soapenc = ' http://schemas.xmlsoap.org/SOAP/encoding/ "

    ' xmlns:soapenv = ' http://schemas.xmlsoap.org/SOAP/envelope/ "

    " container = ' http://www.w3.org/2001/XMLSchema "

    " xmlns: xsi =" http://www.w3.org/2001/XMLSchema-instance "& gt; .

    & lt; soapenv:body & gt;

    & lt; soapenv:fault & gt; & lt; faultcode & gt; ServerFaultCode & lt; / faultcode & gt; & lt; faultstring & gt; The object has already been disposed or was not completely created & lt; / faultstring & gt; & lt; retail & gt; & lt; ManagedObjectNotFoundFault xmlns = "urn: vim25" xsi: type = "ManagedObjectNotFound" & gt; & lt; type obj = "Indexderecherche" & gt; FindByIp & lt; / obj & gt; & lt; / ManagedObjectNotFoundFault & gt; & lt; / detail & gt; & lt; / soapenv:Fault & gt;

    & lt; / soapenv:Body & gt;

    & lt; / soapenv:Envelope & gt;

    Note that I can use the browser MOB with IP address successfully, as shown below.

    Managed object type: ManagedObjectReference:SearchIndex

    ID of the object managed: Indexderecherche

    Method: FindByIp

    ManagedObjectReference:ManagedEntity FindByIp

    Parameters

    Name

    Type

    Value

    Data center (optional)

    ManagedObjectReference:Datacenter

    ip (required)

    string

    vmSearch (required)

    Boolean

    Result of Invocation of method: ManagedObjectReference

    Name

    Type

    Value

    name

    string

    'Return value '.

    Val

    ManagedObjectReference:VirtualMachine

    VM-966\

    Any help is appreciated!

    Petwe

    Something wrong in your SOAP request. The 'object' mentioned in the fault Declaration does NOT mean the subject of the virtual machine that you are trying to perform a search by IP, but the object of the SerachIndex with which the FindByIp() method is defined.

    < n: _this type = "Indexderecherche" > FindByIp < / n: _this >

    should be

    < n: _this type = "Indexderecherche" > Indexderecherche < / n: _this >

    I'm not very sure if the value of the second Indexderecherche, maybe it's 'Indexderecherche', but you can check with the CROWD.

    The "FindByIp" must be earlier to < n: _this.

    In addition, I don't have a "n" before namespace. How do you have it?

    Steve JIN

    Author of VMware VI and vSphere SDK (Prentice Hall)

    Creator of open source (VI) vSphere Java API(tutorial, testimonials, download, samples)

    Blog: DoubleCloud.ORG ( Top 10 best practices, [common mistakes | http://www.doublecloud.org/2010/01/31/Common-Mistakes-using-VMware-VI-and-vSphere-SDK/], Tiny REST API)

    http://www.Twitter.com/sjin2008

  • Failure of JDBC - calling - Java - java.sql.SQLException

    Connection to the database is OK, but I don't call the stored function. Can you help me? This is only a basic solution for me examples.

    private void authenticate() {}
    int numberAccount = Integer.parseInt (loginWindow.getLogin () m:System.NET.SocketAddress.ToString ());
    Password String = loginWindow.getPassword (m:System.NET.SocketAddress.ToString ());

    OracleConnectivity oc = new OracleConnectivity();
    Connection con = oc.getConnection ();
    CallableStatement cstmt = null;
    int connected;

    try {}
    cstmt = con.prepareCall ("{?}") = CALL BS_CHECK_LOGIN(?,?)} ») ; -> I think it's problem
    cstmt.registerOutParameter (1, java.sql.Types.INTEGER);
    cstmt.setInt (2, numberAccount);
    cstmt.setString (3, password);
    cstmt. Execute();
    connected = cstmt.getInt (1);
    cstmt. Close();

    System.out.println (logged);

    } catch (SQLException e) {}
    e.printStackTrace ();
    }
    }
    }
    ........

    java.sql.SQLException: incorrectly formulated SQL92 string on the post: 5 waiting for 'call '.
    + oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134) +.
    + oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179) +.
    + oracle.jdbc.dbaccess.DBError.check_error(DBError.java:1130) +.
    + oracle.jdbc.driver.OracleSql.handleFunction(OracleSql.java:223) +.
    + oracle.jdbc.driver.OracleSql.handleToken(OracleSql.java:183) +.
    + oracle.jdbc.driver.OracleSql.handleODBC(OracleSql.java:121) +.
    + oracle.jdbc.driver.OracleSql.parse(OracleSql.java:69) +.
    + oracle.jdbc.driver.OracleConnection.nativeSQL (OracleConnection.java:11... +)

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

    create or replace
    FUNCTION BS_CHECK_LOGIN)
    p_numberAccount Account.numberAccount%TYPE,
    p_password Account.password%TYPE)
    RETURNS INTEGER
    AS
    v_account account % ROWTYPE;
    BEGIN
    SELECT * FROM v_account has a
    WHERE a.numberaccount = p_numberAccount;

    IF v_account.password = THEN p_password
    RETURN 1;
    ON THE OTHER
    RETURN 0;
    END IF;

    EXCEPTION
    WHILE OTHERS THEN
    RETURN 0;
    END BS_CHECK_LOGIN;

    Based on the error text, I would start with what is different between:

    cstmt = con.prepareCall ("{?}") = CALL BS_CHECK_LOGIN(?,?)} ») ;

    and

    ... Expecting to 'call '.

Maybe you are looking for

  • Remove the screen wireless preferences

    I feel an unusual event, whenever I turn on my Sony TV/Soundbar. My MacPro is starting to switch back to the search/find the TV/Soundbar. It is not connected to the CPU, but seems to connect wireless. I have a Harmony remote, but it seems that is not

  • Unalbe to scroll to the bottom of the page

    today I logged in to check for recent messages, but have found that I can't scroll to the bottom of the page. There is no scroll bar. I don't have a problem with other applications and websites Andy

  • CLJ2620: HP CLJ2620 Firmware

    (Hello!) I just looking for firmware for the printer color laserjet 2620, cause I got a 79 error (I know, his problem of software internal). "But I can't find firmware anywhere, anyone can help me?)

  • I can't delete user in CSACS V 3.0

    I have a v 3.0 CSACS. I have a problem with something of the user. When I will change this user CSACS displays the message: 'New user' and I can not delete this user. The user are the CS database. Thanks in advance.

  • After resetting my laptop, wifi is not available.

    Original title: wifi unavailable I have reset my laptop it is an acer windows 8 Since my laptop wifi option has dissapeard I must now plug the modem which is a problem because of the work of the school pls help