Urget!!!! OrionRemoteException: Disconnected: Type code out of range, is 52

I am running oc4j version 9.0.3.0.0
I have a client which creates a statefull session bean on the server.
in the session xml, I defined timeout = 0 so the seesion will not be removed if client does not invoke session for amount of time.
the client stores the session interface as a private member.
Every one minute the client invokes the session intensively.
bothe client and server are located on the same host.
The problem is that randomly (generally after 15-20 minutes), the client receives the next exception from the server:
com.evermind.server.rmi.OrionRemoteException: Disconnected: Type code out of range, is 52
void com.evermind.server.rmi.RMIConnection.EXCEPTION_ORIGINATES_FROM_THE_REMOTE_SERVER(java.lang.Throwable)
RMIConnection.java:1512
java.lang.Object com.evermind.server.rmi.RMIConnection.invokeMethod(com.evermind.server.rmi.RMIContext, long, long, java.lang.reflect.Method, java.lang.Object[])
RMIConnection.java:1435
java.lang.Object com.evermind.server.rmi.RemoteInvocationHandler.invoke(java.lang.Object, java.lang.reflect.Method, java.lang.Object[])
RemoteInvocationHandler.java:53
java.lang.Object com.evermind.server.rmi.RecoverableRemoteInvocationHandler.invoke(java.lang.Object, java.lang.reflect.Method, java.lang.Object[])
RecoverableRemoteInvocationHandler.java:22
java.lang.Object com.evermind.server.ejb.StatefulSessionRemoteInvocationHandler.invoke(java.lang.Object, java.lang.reflect.Method, java.lang.Object[])
StatefulSessionRemoteInvocationHandler.java:31
The real problem is that the session interface that I hold as an attribute on client is no longer valid after the disconnect exception occurs.
In other words, after the exception occurs I have to recreate the session again (and restore its interface) before I can invoke any session's method again......
What really annoyes me, is that I tried to invoke from client a session's method which does nothing on server side (empty implementation on bean) and so no exception should occur on server side!!!!
As I said b4, I invoke this method intensively and get this disconnected exception once in while.
Could it be an oc4j bug/problem ??????

Avi -- Please try the latest v903 Developer Preview. A number of changes have gone into it.
Thanks -- Jeff

Similar Messages

  • RMI tunneling: JNDI lookup fails with : Disconnected: Type code out of range, is -29

    9iAS Release 2
    When trying to tunnel through Apache to the OC4J_home instance using ...
    http:ormi://<host>:<HTTPport>/<application> <admin><password>
    and then looking up a JNDI name ...
    TopicConnectionFactory connectionFactory =
    (TopicConnectionFactory)new InitialContext(p).lookup("jms/myTopicConnectionFactory");
    I get a NamingException thrown, with the message: Disconnected: Type code out of range, is -29.
    The jms.xml file is correct. It works against a standalone OC4J instance (therefore no tunneling) ...
    ormi://<host>:23791/<application> <admin><password>
    I'm connecting from a standalone client and using the RMIInitialContextFactory, the tunneling is working (changing oc4j username/password gets a SecurityException). What's missing? Do you have to change the jndi name when tunneling? What does -29 mean in english?

    Tunneling through the Apache HTTP server to an OC4J instance from remote standalone clients works on Linux installations of 9iAS but not on NT installations, failing with a 'Type Code out of range, is -29' error, JVM versions on client and server are the same. Also works against a standalone version of oc4j on NT, what's happening?

  • Java.io.StreamCorruptedException: Type code out of  range, is 63

    Hi,
    i ma using Weblogic 7.0 ......... I got one exception in the weblogic log, Exception is as follows -
    ####<Nov 28, 2006 3:15:54 PM EST> <Info> <EJB> <atnyprd5>
    <XXXServer1> <ExecuteThread: '83' for queue: 'default'> <kernel identity>
    <11864:d63651c3623375dd> <010051> <EJB Exception during invocation from home:
    [email protected]53 threw exception:
    com.xxxxxx.exception.XXXXXXEJBException: MSG: javax.naming.CommunicationException
    [Root exceptionis java.rmi.UnmarshalException: cannot unmarshaling return; nested  exception is:   1990         
    java.io.StreamCorruptedException: Type code out of  range, is 63]null TIME: 0> 1991
    com.xxxxxx.exception.xxxxxxEJBException: MSG: javax.naming.CommunicationException
    [Root exception is java.rmi.UnmarshalException: cannot  unmarshaling return; nested exception is:   1992
    java.io.StreamCorruptedException: Type code out of  range, is 63]null TIME: 0 1993
    at com.xxxxxx.util.EJBUtil.handleSysError (EJBUtil.java:40) 1994
    at com.xxxxxx.util.EJBUtil.handleSysError (EJBUtil.java:59) 1995
    at com.xxxxxx.db.DbAccess.initConnection (DbAccess.java:98) 1996
    at com.xxxxxx.db.DbAccess.<init>(DbAccess.java:37)
    I am getting this exception while fetching a datasource connection from the connection pool of weblogic.
    My applciation is running for past 2 years and we did not got this exception before, So I suspect there is no problem in the code......... where it is going wrong ????
    Please help me in this......
    Thanks and regards

    Hi,
    atleast any idea about what the exception is and what it is related to ???
    Its bit urjent to resolve
    Thankx and Regards

  • Java.io.StreamCorruptedException: Type code out of range, is -20

    Hi ,
    When i am connecting from a client to an EJB running in Weblogic on the localhost , I got the follwoing exception.
    GENERAL-EXCEPTION: java.rmi.UnmarshalException: failed to unmarshal cookie; nest
    ed exception is:
    java.io.StreamCorruptedException: Type code out of range, is -20
    java.rmi.UnmarshalException: failed to unmarshal cookie; nested exception is:
    java.io.StreamCorruptedException: Type code out of range, is -20
    java.io.StreamCorruptedException: Type code out of range, is -20
    at java.io.ObjectInputStream.peekCode(ObjectInputStream.java:1551)
    at java.io.ObjectInputStream.refill(ObjectInputStream.java:1679)
    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:278)
    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:231)
    at weblogic.common.internal.ChunkedObjectInputStream.readObject(ChunkedO
    bjectInputStream.java:140)
    at weblogic.rjvm.MsgAbbrevInputStream.readObject(MsgAbbrevInputStream.ja
    va:91)
    at weblogic.rjvm.ResponseImpl.getReplicaInfo(ResponseImpl.java:171)
    at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteR
    ef.java:264)
    at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteR
    ef.java:229)
    Can anyone tell what this type code -20 is?

    www.google.com is your friend.
    http://www.google.com/search?hl=en&ie=UTF-8&oe=UTF-8&q=Type+code+out+of+range%2C+is+-20&btnG=Google+Search

  • Java.io.StreamCorruptedException: Type code out of range, is 0, BLOB, Weblogic 7, Oracle 8i

    Test message

    Nagaraju wrote:
    Hi
    I am trying to insert a Java Object ( Serialized Bean) into Oracle BLOB. I am getting the following exception when reading back from Blob. Following is the code and the Exception stack is pasted below. I am using weblogic 7.0 Applcation server/Oracle 8.i
    If any body have an idea please let me know.
    Thanks is advance..
    Nagaraju.
    java.io.StreamCorruptedException: Type code out of range, is 0
    at java.io.ObjectInputStream.peekCode(ObjectInputStream.java:1551)
    at java.io.ObjectInputStream.refill(ObjectInputStream.java:1679)
    at java.io.ObjectInputStream.read(ObjectInputStream.java:1655)
    at java.io.DataInputStream.readInt(DataInputStream.java:333)
    at java.io.ObjectInputStream.readInt(ObjectInputStream.java:1975)
    at java.util.SimpleTimeZone.readObject(SimpleTimeZone.java:1437)Hi. Unless you post the whole stacktrace, or at least enough of it to show
    some weblogic or even jdbc classes, we can have no clue what this is about...
    Joe

  • 'Type code out of range' error when getting initial Context

    I am running WLS 6.1 SP3 for J2EE 1.2 on Solaris. I try to create a JNDI Context
    with the standard example code:
    ht.put( Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory"
    ht.put( Context.PROVIDER_URL, "t3://3.7.193.101:7001" );
    ctx = new InitialContext( ht );
    When I compile and run this code on the same machine where I am hosting WLS 6.1,
    I get the error messages below. The PROGRAM ERROR output is from the command
    line I used to run the program; the SERVER ERROR output is in the WLS console
    window.
    The funny thing is, when I compile and run the same code on a different machine
    (A Windows laptop) it works fine !
    So ... some kind of network setup problem ?!? I dunno ... can anybody help ?
    Thanks in advance for your effort !!
    PROGRAM ERROR
    java.io.StreamCorruptedException: Type code out of range, is 0
    at java.lang.Throwable.fillInStackTrace(Native Method)
    at java.lang.Throwable.fillInStackTrace(Compiled Code)
    at java.lang.Throwable.<init>(Compiled Code)
    at java.lang.Exception.<init>(Exception.java:42)
    at java.io.IOException.<init>(IOException.java:47)
    at java.io.ObjectStreamException.<init>(ObjectStreamException.java:29)
    at java.io.StreamCorruptedException.<init>(StreamCorruptedException.java:30)
    at java.io.ObjectInputStream.peekCode(Compiled Code)
    at java.io.ObjectInputStream.SkipToEndOfBlockData(Compiled Code)
    at java.io.ObjectInputStream.inputClassDescriptor(Compiled Code)
    at java.io.ObjectInputStream.readObject(Compiled Code)
    at java.io.ObjectInputStream.readObject(Compiled Code)
    at java.io.ObjectInputStream.inputObject(Compiled Code)
    at java.io.ObjectInputStream.readObject(Compiled Code)
    at java.io.ObjectInputStream.readObject(Compiled Code)
    at weblogic.common.internal.ChunkedObjectInputStream.readObject(ChunkedObjectInputStream.java:107)
    at weblogic.common.internal.ChunkedObjectInputStream.readObject(ChunkedObjectInputStream.java:115)
    at weblogic.rjvm.ConnectionManager.readPeerInfo(ConnectionManager.java:685)
    at weblogic.rjvm.ConnectionManagerClient.handleIdentifyResponse(ConnectionManagerClient.java:140)
    at weblogic.rjvm.ConnectionManager.dispatch(ConnectionManager.java:626)
    at weblogic.rjvm.t3.T3JVMConnection.dispatch(Compiled Code)
    at weblogic.socket.JavaSocketMuxer.processSockets2(Compiled Code)
    at weblogic.socket.JavaSocketMuxer.processSockets(Compiled Code)
    at weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:24)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
    at weblogic.kernel.ExecuteThread.run(Compiled Code)
    --------------- nested within: ------------------
    weblogic.utils.AssertionError: ***** ASSERTION FAILED ***** - with nested exception:
    [java.io.StreamCorruptedException: Type code out of range, is 0]
    at java.lang.Throwable.fillInStackTrace(Native Method)
    at java.lang.Throwable.fillInStackTrace(Compiled Code)
    at java.lang.Throwable.<init>(Compiled Code)
    at java.lang.Error.<init>(Error.java:50)
    at weblogic.utils.NestedError.<init>(NestedError.java:24)
    at weblogic.utils.AssertionError.<init>(AssertionError.java:56)
    at weblogic.rjvm.ConnectionManager.readPeerInfo(ConnectionManager.java:687)
    at weblogic.rjvm.ConnectionManagerClient.handleIdentifyResponse(ConnectionManagerClient.java:140)
    at weblogic.rjvm.ConnectionManager.dispatch(ConnectionManager.java:626)
    at weblogic.rjvm.t3.T3JVMConnection.dispatch(Compiled Code)
    at weblogic.socket.JavaSocketMuxer.processSockets2(Compiled Code)
    at weblogic.socket.JavaSocketMuxer.processSockets(Compiled Code)
    at weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:24)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
    at weblogic.kernel.ExecuteThread.run(Compiled Code)
    Exception in EJATestJMSSender main block ! was :javax.naming.CommunicationException
    [Root exception is java.net.ConnectException: No server found at T3://3.7.193.101:7001]:
    javax.naming.CommunicationException. Root exception is java.net.ConnectException:
    No server found at T3://3.7.193.101:7001
    at java.lang.Throwable.fillInStackTrace(Native Method)
    at java.lang.Throwable.fillInStackTrace(Compiled Code)
    at java.lang.Throwable.<init>(Compiled Code)
    at java.lang.Exception.<init>(Exception.java:42)
    at java.io.IOException.<init>(IOException.java:47)
    at java.net.SocketException.<init>(SocketException.java:36)
    SERVER ERROR
    <Sep 6, 2002 12:27:48 PM CDT> <Error> <Posix Performance Pack> <Uncaught Throwable
    in processSockets
    java.util.EmptyStackException
    at weblogic.utils.collections.Stack.pop(Stack.java:72)
    at weblogic.rjvm.InboundMsgAbbrev.getAbbrev(InboundMsgAbbrev.java:85)
    at weblogic.rjvm.MsgAbbrevInputStream.readImmutable(MsgAbbrevInputStream.java:172)
    at weblogic.rjvm.MsgAbbrevInputStream.readClassDescriptor(MsgAbbrevInputStream.java:186)
    at weblogic.common.internal.ChunkedObjectInputStream$NestedObjectInputStream.readClassDescriptor(ChunkedObjectInputStream.java:290)
    at java.io.ObjectInputStream.inputClassDescriptor(ObjectInputStream.java:906)
    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:366)
    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:236)
    at java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1186)
    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:386)
    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:236)
    at weblogic.common.internal.ChunkedObjectInputStream.readObject(ChunkedObjectInputStream.java:107)
    at weblogic.common.internal.ChunkedObjectInputStream.readObject(ChunkedObjectInputStream.java:115)
    at weblogic.rjvm.ConnectionManager.readPeerInfo(ConnectionManager.java:685)
    at weblogic.rjvm.ConnectionManagerServer.handleIdentifyRequest(ConnectionManagerServer.java:255)
    at weblogic.rjvm.ConnectionManager.dispatch(ConnectionManager.java:619)
    at weblogic.rjvm.t3.T3JVMConnection.dispatch(T3JVMConnection.java:454)
    at weblogic.socket.PosixSocketMuxer.deliverGoodNews(PosixSocketMuxer.java:449)
    at weblogic.socket.PosixSocketMuxer.processSockets(PosixSocketMuxer.java:378)
    at weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:24)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)

    I get this error when i run Visual Cafe with Netscape Navigator. All the classes are in CLASSPATH. Can someone point out the reason.

  • Java.io.StreamCorruptedException: Type code out of range, is 0

    Hi
    I am trying to insert a Java Object ( Serialized Bean) into Oracle BLOB. I am getting the following exception when reading back from Blob. Following is the code and the Exception stack is pasted below.
    If any body have an idea please let me know.
    Thanks is advance..
    Nagaraju.

    Hi Nagaraju,
    "Nagaraju" <[email protected]> wrote in message news:40336b22$[email protected]..
    I am trying to insert a Java Object ( Serialized Bean) into Oracle BLOB. I am getting the following exception whenreading back from Blob. Following is the code and the Exception stack is pasted below.
    >
    If any body have an idea please let me know.
    Thanks is advance..Could you post code extract in part where you create, write and read a clob?
    Regards,
    Slava Imeshev

  • "OrionRemoteException: Disconnected: Connection timed out"- slowness

    Hi all,
    I have a bit of a head scratcher of a problem here.
    I have an StatelessSessionBean deployed on an Oracle 9.0.4.0.0 server, which I connect to from 3 different J2EE clients All three of the clients intermittantly get "OrionRemoteException: Disconnected: Connection timed out" messages when invoking the create() method on the EJB Home.
    While I'd like to get to the bottom of the Disconnect, I'm not too worried about that right now.
    The real issue is that on one of the clients, I dont get the timeout returned for 10 (TEN) minutes. Once I get the timeout, the application resets the home instance, and everything recovers sub second.
    Interestingly, the EJB is called from both inside the Container, and from a standalone (non-J2EE) application. Both get the slow timeout.
    The slow client is
    OS     AIX 4.3
    JDK     IBM JDK 1.3.1
    AppServer     IBM Websphere 5.0.0
    J2EE     1.3
    The fast(er) client where the disconnect message comes back in about a minute is
    OS     SunOS 5.8
    JDK     Sun JDK 1.4.2_05-b04
    AppServer     BEA Weblogic 8.1.4
    J2EE     1.3
    Oracle Server
    OS     SunOS 5.8
    JDK     Sun JDK 1.4.1_03
    AppServer     Oracle App Server 10g (9.0.4)
    J2EE     1.3
    So the issue is when I invoke
    remote = (MyService) PortableRemoteObject.narrow(home.create(), MyService.class);
    it intermittantly (<1%) takes 10 minutes before the home.create() method returns the exception "OrionRemoteException: Disconnected: Connection timed out"
    For the record, the home object may have been created some time previously as it is cached.
    So the questions
    Is there any way to set a client timeout?
    Why is the timeout behaviour different for the different clients?
    Last but not least
    Any suggestions for why I'm getting disconnected also appreciated, although I suspect this may be to do with my network environment :-)
    For background.....
    When creating the Home object, the Initial Context is setup using these config settings
    provider.url=ormi://x.x.x.x/MyService
    factory.initial=com.evermind.server.rmi.RMIInitialContextFactory
    jndi.name=MyServiceEJB
    env.put(Context.PROVIDER_URL, providerUrl);
    env.put(Context.INITIAL_CONTEXT_FACTORY, initialFactory);
    env.put(Context.SECURITY_PRINCIPAL, principal);
    env.put(Context.SECURITY_CREDENTIALS, credentials);
    InitialContext ic = null;
    try {
    ic = new InitialContext(env);
    } catch (NamingException ne) {
    log.error("Unable to lookup new InitialContext");
    //rethrow exception
    throw ne;
    Then the home object is retrieved.
    home = (PortServiceHome) PortableRemoteObject.narrow(
    ic.lookup(jndiName),
    PortServiceHome.class);

    Hi Chris,
    Have u found any work around / Solution for the problem. If yes pls share with us. We are having similar problem. We have deployed Stateless session beans in 9.0.2.3 cotainers. From client we are getting "A remote host did not respond within the timeout period" exception. But in the server we found
    java.io.EOFException
         at com.evermind.server.rmi.RMIConnection.readCommand(RMIConnection.java(Compiled Code))
         at com.evermind.server.rmi.RMIConnection.run(RMIConnection.java:460)
         at com.evermind.server.rmi.RMIConnection.run(RMIConnection.java:276)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:802)
         at java.lang.Thread.run(Thread.java:513)
    RMIConnection Disconnected
    The client program is a multithreaded program which will route the request to multiple application server instances. Because of which we need to restart the Client program to make the application work.
    Any help will be highly appreciated.
    Thanks
    Suresh.M

  • The conversion of a varchar data type to a datetime data type resulted in an out-of-range value

    I am trying to insert records into a temporary table with date values concatenated with other string values  into one large string value.I am getting the following error:
    Msg 242, Level 16, State 3, Line 12
    The conversion of a varchar data type to a datetime data type resulted in an out-of-range value.
    Msg 241, Level 16, State 1, Line 28
    Conversion failed when converting date and/or time from character string.
    -My code below
    Declare
           @hdrLOCAL char(255),                                                       
        @CR char(255),                                                             
        @BLDCHKDT DATETIME,                                                         
        @BLDCHTIME DATETIME,                                                         
        @hdrline int
        SELECT @hdrLOCAL = DDLINE FROM DD40400 WHERE INDXLONG =1
        SELECT @CR = DDLINE FROM DD40400 WHERE INDXLONG =2
        SELECT @hdrline =1
        SELECT
                @BLDCHKDT = CONVERT(varchar(20),T756.PAYDATE,105) ,
                -- convert(varchar,getdate(),15)
                @BLDCHTIME= CONVERT(varchar(20),T756.PAYDATE,105)
                FROM STATS.dbo.DD10500 T762
                LEFT OUTER JOIN STATS.dbo.DD10400 T756 ON (
                        T762.INDXLONG = T756.INDXLONG
                        AND T756.INCLPYMT = 1
                WHERE (T756.INCLPYMT = 1)
                    AND (T762.DDAMTDLR <> 0)
      Create TABLE [dbo].[##DD10200B](
        [INDXLONG] [int] NOT NULL,
        [DDLINE] [varchar](8000) NOT NULL,
        [DEX_ROW_ID] [int] IDENTITY(1,1) NOT NULL,
    BEGIN
    INSERT INTO ##DD10200B (INDXLONG,DDLINE)
            VALUES (1,@hdrLOCAL +',' + @CR +','+ @BLDCHKDT +',' + @BLDCHTIME )
    END
    Msg 242, Level 16, State 3, Line 12
    The conversion of a varchar data type to a datetime data type resulted in an out-of-range value.
    Msg 241, Level 16, State 1, Line 28
    Conversion failed when converting date and/or time from character string.
    The Best thing in Life is Life

    Since the Variable
    BLDCHKDT and BLDCHTIME are of type date time why are you trying to assign it a value
    of type varchar
    and the format 105 gives you dd-mm-yyyy but SQL server takes the default format as mm-dd-yyyy so the error occurs for all dates that
    are greater than 12
    try the below code
    Declare
    @hdrLOCAL char(255),
    @CR char(255),
    @BLDCHKDT Varchar(50),
    @BLDCHTIME Varchar(50),
    @hdrline int
    SELECT @hdrLOCAL = DDLINE FROM DD40400 WHERE INDXLONG =1
    SELECT @CR = DDLINE FROM DD40400 WHERE INDXLONG =2
    SELECT @hdrline =1
    SELECT
    @BLDCHKDT = CONVERT(varchar(20),T756.PAYDATE,105) ,
    -- convert(varchar,getdate(),15)
    @BLDCHTIME= CONVERT(varchar(20),T756.PAYDATE,105)
    FROM STATS.dbo.DD10500 T762
    LEFT OUTER JOIN STATS.dbo.DD10400 T756 ON (
    T762.INDXLONG = T756.INDXLONG
    AND T756.INCLPYMT = 1
    WHERE (T756.INCLPYMT = 1)
    AND (T762.DDAMTDLR <> 0)
    Create TABLE [dbo].[##DD10200B](
    [INDXLONG] [int] NOT NULL,
    [DDLINE] [varchar](8000) NOT NULL,
    [DEX_ROW_ID] [int] IDENTITY(1,1) NOT NULL,
    BEGIN
    INSERT INTO ##DD10200B (INDXLONG,DDLINE)
    VALUES (1,@hdrLOCAL +',' + @CR +','+ @BLDCHKDT +',' + @BLDCHTIME )
    END
    the only change done is 
    @BLDCHKDT Varchar(50),
    @BLDCHTIME Varchar(50),
    Surender Singh Bhadauria
    My Blog

  • Retriggering Release strategy for PR with Document Type, Company Code and Price Range as Characaterstics

    Hi Friends,
    I have a issue to fix. The issue is releated to PR.
    There are some PR's in the system which has wrong release strategy picked up or wrong approvers picked up due to some congif change. now that the config changes are rectified correctly, we need to find a solution to correct the PR's which got affected due this.
    I have to retrigger the release strategy for all the affected PR's.
    The characterstics which we have consider for release strategy is Document Type, Company Code and Price Range.
    Can anyone suggest how can we retrigger the PR in bulk or individual to all the affected PR's, so that it picks up correct release strategy as per new config changes.
    Regards,
    Manjunath K

    Hi,
    Refer the discussion to triggers release again on release code addition/change in release strategy.
    release code is changed on PR release strategy - old PR can´t be approved
    Regards,
    Biju K

  • The conversion of a nvarchar data type to a datetime data type resulted in an out-of-range value.

    Below select statement results in "The conversion of a nvarchar data type to a datetime data type resulted in an out of range value"   error. By the way Terms
    field's data type is nvarchar
     SELECT * from INVOICE
    where convert(datetime,Terms) 
    BETWEEN
    '01/01/14'
    and
    '01/30/15' 

    If you can't use TRY_CONVERT (It's only available in 2012+) You should be able to validate the data with something like this (based on your example date formats):
    DECLARE @notDate TABLE (Terms NVARCHAR(10))
    INSERT INTO @notDate (Terms) VALUES
    ('01/01/14'),('02/29/14'),('01/32/15'),('13/13/14'),('13/3/14'),('13-13/14'),('02/29/12'),('02/29/13')
    SELECT *,
    CASE WHEN (LEN(Terms) - 2) <> LEN(REPLACE(Terms,'/','')) OR LEN(Terms) <> 8 THEN 'Bad Form'
    WHEN LEFT(Terms,2) > 12 THEN 'Bad Month'
    WHEN LEFT(Terms,2) IN (9,4,6,11) AND LEFT(RIGHT(Terms,5),2) > '30' THEN 'Bad Day'
    WHEN LEFT(Terms,2) = 2 AND LEFT(RIGHT(Terms,5),2) > (28 + CASE WHEN (2000+RIGHT(Terms,2)) % 400 = 0 THEN 1 WHEN (2000+RIGHT(Terms,2)) % 100 = 0 THEN 0 WHEN (2000+RIGHT(Terms,2)) % 4 = 0 THEN 1 ELSE 0 END) THEN 'Bad Day'
    WHEN LEFT(Terms,2) NOT IN (2,9,4,6,11) AND LEFT(RIGHT(Terms,5),2) > '31' THEN 'Bad Day'
    END
    FROM @notDate
    Don't forget to mark helpful posts, and answers. It helps others to find relevant posts to the same question.

  • IDOCs (Multiple Types) Collection in BPM---string index out of range

    Hi
    I am following this weblog
    IDOCs (Multiple Types) Collection in BPM
    1.
    In Step 4
    Below mapping is for N:1 transformation. (Here input will be having three different types of Abstract IDOCs and target will be having Abstract Target File type)
    (iv) MM_ISU_UKGAS_NOM_to_NOM_ABS"
    when I tried to 3 idoc as sender and My Message Type as the receiver
    I am getting the following error message
    String index out of range: 0
    so how can I do this message Mapping
    2.
    and in Step 3.
    I have just mapped
    Source Idoc 1 with Source Idoc 1
    Source Idoc 2 with Source Idoc 2
    Source Idoc 3 with Source Idoc 3
    is it right way ?
    thanks
    manian
    Edited by: manian on Dec 8, 2008 10:49 AM

    Manian,
    Multiline option should be on for receiver message .
    Mapping seems to be o.k.
    Regards,

  • Need to update out put tax classifcation code for a range of items in Orac

    Hi,
    I need to update out put tax code for a range of items in Oracle EBS. At the moment we update tax code for individual items manually ubder invoice tab. Is there a better way to do this.
    Regards

    Where can I find the mtl_system_items_interface table?Under INV schema.
    R12 -- INV.MTL_SYSTEM_ITEMS_INTERFACE
    http://etrm.oracle.com/pls/et1211d9/etrm_pnav.show_object?c_name=MTL_SYSTEM_ITEMS_INTERFACE&c_owner=INV&c_type=TABLE
    11i -- INV.MTL_SYSTEM_ITEMS_INTERFACE
    http://etrm.oracle.com/pls/trm11510/etrm_pnav.show_object?c_name=MTL_SYSTEM_ITEMS_INTERFACE&c_owner=INV&c_type=TABLE
    Thanks,
    Hussein

  • Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another.

    Hello, I am filtering by date
    DATEADD(d,DATEDIFF(d,0,GETDATE()),0), but
    doing like below gives me an error
    ADODB.Command error '800a0bb9'
    Arguments are of the wrong type, are out of acceptable range,
    or are in
    conflict with one another.
    /aa.asp, line 19
    line 19 is
    Recordset1_cmd.Parameters.Append
    Recordset1_cmd.CreateParameter("param1",
    135, 1, -1, Recordset1__MMColParam) ' adDBTimeStamp
    any one have any idea as to why
    grateful for any help
    thanks
    k
    <%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
    <!--#include file="Connections/connpeepeek.asp" -->
    <%
    Dim Recordset1__MMColParam
    Recordset1__MMColParam =
    "DATEADD(dd,DATEDIFF(d,0,GETDATE()),0)"
    If (Request("MM_EmptyValue") <> "") Then
    Recordset1__MMColParam = Request("MM_EmptyValue")
    End If
    %>
    <%
    Dim Recordset1
    Dim Recordset1_cmd
    Dim Recordset1_numRows
    Set Recordset1_cmd = Server.CreateObject ("ADODB.Command")
    Recordset1_cmd.ActiveConnection = MM_connpeepeek_STRING
    Recordset1_cmd.CommandText = "SELECT usr_image1,
    dateimage_usr FROM
    diddle.ps_usr_image WHERE dateimage_usr = ?"
    Recordset1_cmd.Prepared = true
    Recordset1_cmd.Parameters.Append
    Recordset1_cmd.CreateParameter("param1",
    135, 1, -1, Recordset1__MMColParam) ' adDBTimeStamp
    Set Recordset1 = Recordset1_cmd.Execute
    Recordset1_numRows = 0
    %>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
    Transitional//EN"
    http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=utf-8">
    <title>Untitled Document</title>
    </head>
    <body>
    </body>
    </html>
    <%
    Recordset1.Close()
    Set Recordset1 = Nothing
    %>

    Ben,
    If dbo.TG_Account is a table in your FDM database, then you should be able to populate the recordset with:
    strSQLAcct = "SELECT Account FROM dbo.TG_Account"
    Set rsAcct = DW.DataAccess.farsFireHose(strSQLAcct, False)

  • Index out of range when trying to create a new dimension (reporting type)

    I just created all my dimensions/characteristics, created 2 cubes/infocubes (rate & ownership) in my new appset called 'CONSOLIDATION' and I can't seem to create a 'reporting type cube'.
    When I try to create a cube called TEST or CONSO... (generic, finance or conso) it says 'index as out of range. Must be non negative & less than the size of the collection. Parameter name : index'. The message pops up immediately, before I can even try to choose dimensions.
    Anybody who has a clue, I look forward to suggestions.
    Regards
    Nico

    Hi Sorin,
    Thanks for the reply. If I understand correctly, then in my application set, I cannot create any non-reporting type application? As we have deleted the 'Rate' application which was delivered along with APSHELL. Is there any way out to overcome this as from your reply, it seems not possible as the system needs a reference application belonging to the same application type.
    Many Thanks for your reply.
    Santosh

Maybe you are looking for

  • How do you search through configured Alternate Extensions to correct error message : The phone number or extension has already been assigned to some other object.

    When configuring a new Unity Voicemail Account I receive this message : The phone number or extension has already been assigned to some other object. I understand that this means that the 10 digit number I am trying to configure as the alternate exte

  • Cant download past purchases please help

    Itunes wont download my purchases. What can i do to get it to download? Leaving computer for hours dont help. I have windows 7

  • Listing Issues in IS-Retail

    Hi All, We are facing some problem with listing of articles in IS-Retail system implementation. The issue is ... We have some articles which are in Development Status but we are able to do the listing for this Articles which we don't want to list. i

  • Serious problem with motherboard

    i have a k8 neo platinum that was just bought last month, the bios freezes when ever I enter the hw health monitor , windows does not recognize the onboard sound card, (I have enabled it in the bios) the cpu temp that is benig reported is -123 and th

  • USB 551L problems

    I recently upgraded from a USB760 to a 4g USB 551L modem. At start up I always get a sim card error message. I remove the device from my laptop, remove the sim card then reinsert it. I hit detect device in the VZAM. When configuration is complete I c