'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.

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 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

  • 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

  • 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

  • Error in getting Initial Context

    Hello,
    I am facing the following exception while trying to get the Initial Context. Following
    is the snippet of code that I use for getting the Context -
    Properties p = new Properties();
    p.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory");p.
    put(Context.PROVIDER_URL, url);
    if (user != null) {
    p.put(Context.SECURITY_PRINCIPAL, user);
    if (password == null)
    password = "";
    p.put(Context.SECURITY_CREDENTIALS, password);
    return new InitialContext(p);
    The following is the exception that I encounter -
    javax.naming.AuthenticationException. Root exception is java.lang.SecurityException:
    attempting to add an object which is not an instance of java.security.Principal
    to a Subject's Principal Set
    Am i missing anything. Thanks for your time.
    See the attached file for the details of the exception
    Thanks,
    Ashutosh
    [trace.txt]

    Hi Tim,
    If you are running within a browser, you will not have access to anything
    outside the sandbox which includes making RMI calls. Try signing the applet.
    You can find more information on signing applets on the sun java website.
    Regards
    Arjuna
    "Tim" <[email protected]> wrote in message
    news:3c5ab818$[email protected]..
    >
    I get the following eror when I try to get the Initial Context in anapplet:
    >
    java.lang.ExceptionInInitializerError: java.security.Acc
    ess denied (java.util.PropertyPermission * read,write)
    atjava.security.AccessControlContext.checkPermission(AccessControlConte
    xt.java:272)
    atjava.security.AccessController.checkPermission(AccessController.java:
    399)
    Does anyone have any idea what would cause this? The code works finerunning
    from an application. From what I understand there might be a problem withmy
    policy file. However, it seems to look ok. Any ideas?

  • 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

  • ActiveWorkbook.Connections(Connection).OLEDBConnection - Subscript out of range error

    With ActiveWorkbook.Connections(Connection).OLEDBConnection  ' This statement is giving me a script out of range error                                      
                                                                        ' when used inside
    the function shown below.
    Sub getData(qArray() As String, Connection As String, ActSheet As String)
    'Updates the data from the Database. qArray is the SQL query in an array, connection defines which connection to use and ActSheet defines in which sheet to place the data
    Sheets(ActSheet).Select
        Range("A1").Select
            With ActiveWorkbook.Connections(Connection).OLEDBConnection
            .CommandText = qArray
            .BackgroundQuery = False ' Hvis true opdateres ikke før script er kørt færdig
            .CommandType = xlCmdSql
            .Connection = "OLEDB;Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=RDWEB;Data Source=dk0149sql.niladv.org;"
            .RefreshOnFileOpen = False
            .SavePassword = False
            .SourceConnectionFile = ""
            .SourceDataFile = ""
            .ServerCredentialsMethod = xlCredentialsMethodIntegrated
            .AlwaysUseConnectionFile = False
        End With
        ActiveWorkbook.Connections(Connection).Refresh
    End Sub
    I am getting a subscript out of range when I use the above statement inside the  getData function shown below.
    The data is getting into the qArray as seen the Locals Window after it errors
    How do I eliminate this error? 

    It seems that Connection has some bad value. Have you investigated what that may be?
    The code looks puzzling to me - it never seems to be running the query. Then again, this is a forum for SQL Server, and not for programming Excel. And it's probably in a forum of the latter type should have posted your question.
    Erland Sommarskog, SQL Server MVP, [email protected]

  • Repost: Oracle VM Manager (IndexError: list index out of range) error

    The Oracle VM Manager software will not import a server side created VM for management purposes. It is giving an index-out-of-range error when trying to retrieve the Memory Size from the jumpbox.xen file (I created a symbolic link to this file called vm.cfg).
    Here is the log for the index-out-of-range error:
    ovs_root.log
    "2008-08-20 02:03:26" INFO=> utl_list_dir: directory('/OVS/running_pool') => pro
    jectweb/,infinesse-web/
    "2008-08-20 02:03:26" INFO=> list_dir: directory('/OVS/running_pool') => project
    web/,infinesse-web/
    "2008-08-20 02:03:26" INFO=> utl_get_vm_size: vm('/OVS/running_pool/infinesse-we
    b') => 12020
    "2008-08-20 02:03:26" INFO=> get_vm_size:vm('/OVS/running_pool/infinesse-web') =
    success:size=12020"2008-08-20 02:03:26" ERROR=> xen_get_memory:vm('/OVS/running_pool/infinesse-web
    ')=><IndexError: list index out of range>
    "2008-08-20 02:03:26" INFO=> get_vm_memory: vm('/OVS/running_pool/infinesse-web'
    ) scope=cfg rs=failed:<IndexError: list index out of range>
    and my vm.cfg file:
    # -- mode: python; --
    # This JumpBox requires Hardware Support otherwise known as Xen's HVM mode.
    # To test your Xen installation if it supports this mode, issue the following
    # command:
    # sudo xm info | grep xen_caps
    # it should return a capabilities line like:
    # xen_caps : xen-3.0-x86_32 hvm-3.0-x86_32
    # as long as there is an hvm entry as shown above it should work.
    ## If starting Xen fails you may need to set a custom path
    ## for your kernel or device model files. Uncommant the following
    ## variables and put in the appropriate paths
    ## Uncomment and set your custom hvm loader path here
    # hvm_path = ""
    ## Uncomment and set your custom device model loader path here
    # devmodel_path = ""
    # You will probably want to uncomment the following VNC variables so you
    # can see the JumpBox console over VNC. Make sure to set the vncpassword to
    # something unique. Also, if you run multiple JumpBoxes on the same host, you
    # may want to leave vncdisplay unset and use the domid for the display numbers
    #vnc=1 # enable VNC library for graphics, default = 1
    #vnclisten="0.0.0.0" # address that should be listened on for the VNC server if vnc is set.
    #vncdisplay=1 # set VNC display number, default = domid
    #vncconsole=1 # enable spawning vncviewer for domain's console
    #vncpasswd='password' # set password for domain's VNC console
    memory = '256'
    vfb = ['type=vnc,vncunused=1,vnclisten=0.0.0.0']
    ########### You shouldn't have to edit anything below here ##############
    import os
    import sys
    # Assemble the basepath
    file = os.getcwd() + '/' + sys.argv[2]
    basepath = os.path.dirname(os.path.abspath(file))
    datatarball = basepath + '/disks/data/data.xen.tgz'
    builder = "hvm"
    hvmfiles = [
    '/usr/lib/xen/boot/hvmloader',
    '/usr/lib/xen-ioemu-3.0/boot/hvmloader'
    devfiles = [
    '/usr/lib/xen/bin/qemu-dm',
    '/usr/lib/xen-ioemu-3.0/bin/qemu-dm'
    # Check to see if the user has assigned custom HVM or device_model paths
    try:
    hvmfiles.insert(hvm_path,0)
    except NameError:
    pass
    try:
    devfiles.insert(devmodel_path,0)
    except NameError:
    pass
    # Choose the appropriate HVM Loader
    for i in hvmfiles:
    if os.path.exists(i):
    kernel = i
    break
    # Choose the appropriate Device Models
    for i in devfiles:
    if os.path.exists(i):
    device_model = i
    break
    # Need to test if device_model and kernel are set, if not return with error.
    # If this is the first time this has run, extract the data disk tarball
    # then remove the tarball
    if os.path.exists(datatarball):
    os.chdir(basepath + '/disks/data')
    os.system("tar -zxpf " + datatarball)
    os.remove(datatarball)
    # Continue normal configuration
    name = "joomla15"
    vif = ['type=ioemu, mac=00:16:3E:2B:1F:04, bridge=xenbr0']
    disk = ['file:' + basepath + '/disks/root/root.hdd,hda,w','file:' + basepath + '/disks/data/data.xen,hdb,w']
    root = "/dev/hda1 ro"
    extra = "4"

    Hi Ravi,
    the error is due to the componet JAVA(TM) 7 which is not supported.
    Better to run JAVA 6, I'm running the update 33, you can download it from http://www.oracle.com/technetwork/java/javase/downloads/jre6-downloads-1637595.html
    Remeber to remove JAVA &
    Go to control panel --> add remove programs and remove JAVA (TM) 7.
    It will solve the problem.
    Ciao,
    Massimo

  • Vector Array out of range error

    Hiya, I've run into a strange Vector out of range error when trying to splice a Vector array. The idea is to cut off the Vector array after a certain point....
    var vec:Vector.<int> = new Vector.<int>();
    vec.push(1);
    vec.push(2);
    vec.push(3);
    vec.push(4);
    vec.push(5);
    vec.splice(3,vec.length); // output RangeError: Error #1125: The index 5 is out of range 5.
    The strange thing is that it works perfectly, if I change the Vector to a regular array like:
    var vec:Vector.<int> = new Vector.<int>();    to    var vec:Array.<int> = new Array();
    Any ideas what am i doing wrong ?
    Thanks, Martin

    I don't know why it don't throw error in Array, but seccond parameter in splice method is deletecount, so you try to delete all elements start from 3 (from element 3 to element 8, but you don't have 8 elements).
    vec.splice(3,vec.length - 3);

  • Attribute out of range error with Dalsa Spyder camera

    I have a Dalsa Spyder camera SG-11 which seems to work fine in NI MAX. I've also had this camera working successfully in a LabView vi but now, for some reason, I am getting an error message "Attribute out of range  (-1074360302)". 
    I've tried using different gain values (since MAX sometimes gives an attribute out of range error relating to gain) but am not having much success.
    Has anyone else experienced this problem and found a work around?
    Lightworker 

    Hi LightWorker,
    I've not seen this probelm specifically with Dalsa Spyder SG-11 cameras but there are several KnowLedge Base Articles on the error for various differnt models of camera. It may be that one of these fixes will apply to your camera as well.
    How Do I Resolve "Error: 0xBFF69012 Attribute value is out of range” When Connecting to a GigE Camer...
    Why do I get Error 0xBFF69012 "Attribute Value is Out of Range" with my Basler GigE Camera?
    Stingray Camera & NI LabView / Vision Builder Error -1074360302 "Attribute is out of range"
    Please let us know if any of these solve your issue.
    Kind regards,
    James W
    Controls Systems Engineer
    STFC

  • CRAXDDRT PrintOutEx method throes 'value out of range' error

    Hi,
    I am using CRAXDDRT.dll for Crystal reports 10 to print a report to a file in afp format.
    The following is the scenario:
    We have to print out the Tax forms of all the accounts. These forms are printed through an AFP printer. We generate the AFP file and push it to the printer for printing. We create the files each containg10000 accounts. So, we create multiple afp files going in a loop in our code, breaking our files to contain 10000 accounts. For writing the report to a file we use the PrintOutEx method of CRAXDDRT.dll which also takes StartPage number and StopPage numbers as parameters. But when either of the parameters exceeds 32000(int) the method fails with a 'value out of range' error. Do we have any hot fix so that the PrintOutEx method accepts StartPageNum and StopPageNum values more than 32000.
    Public crReport As CRAXDDRT.ReportClass
    crReport.PrintOutEx(False, piCopiesToPrinter, True, 33000, 38000, sPortName)
    Thanks.

    CR 10 has been out of patch support since december of 07. See the following for more details:
    Business Objects Product Lifecycles [original link is broken]
    There is no equivalent API to PrintOutEx in the Crystal Reports SDK for .NET. Thus I understand why you need to use the RDC. However, my suggestion of changing your reference to craxDrt.dll as opposed to craxDDrt.dll still stands due to the two reasons I gave in my previous post (licensing and stability).
    I would also consider Don's suggestion re. the 32K limit:
    "Only work around I can think of is to limit the number of pages for your print jobs to 32K and then create multiple print jobs to select the same limit. Using Record Selection formula to set the limit, as for the actual page numbers being printed you will likely have to limit them also to 32k, the field may not be able to hold any page numbers higher than 32k."
    Finally, another suggestion worth investigating is to see if CR XI release 2 with the latest Service Pack has the same issue. CR XI r2 eval can be downloaded from here:
    http://www.businessobjects.com/products/reporting/crystalreports/eval.asp
    The latest Service Pack can be downloaded from here:
    https://smpdl.sap-ag.de/~sapidp/012002523100013876392008E/crxir2win_sp5.exe
    Ludek

  • Shared Services API - Error when getting datasource weblogic/pool/PooledConnectionDataSource

    Hello,
    I have a program that connects to shared services using Java APIs. The code is usually working fine on other environment.
    This one is on EPM version 11.1.2.1 and I get an error after this procedure --> system = CSSSystem.getInstance(context, "");
    Jan 27, 2015 9:36:44 AM com.hyperion.hit.registry.RegistryUtils buildConnFromDriverManager
    WARNING: Check whether Oracle Home and Instance environment variables are defined appropriately. RootCause : weblogic.jdbc.sqlserver
    .SQLServerDriver
    Error when getting datasource weblogic/pool/PooledConnectionDataSource
    Jan 27, 2015 9:36:44 AM com.hyperion.hit.registry.RegistryUtils createNewConnection
    SEVERE: Failed to create connection from data source. RootCause:weblogic/pool/PooledConnectionDataSource.
    Jan 27, 2015 9:36:44 AM com.hyperion.hit.registry.exceptions.RegistryException <init>
    INFO: Registry Exception Occured - Failed to create new database connection using datasource.RootCause:[weblogic/pool/PooledConnecti
    onDataSource]
    Jan 27, 2015 9:36:44 AM com.hyperion.hit.registry.Registry lookupComponentsWithException
    INFO: EPMREG-11045
    Jan 27, 2015 9:36:44 AM com.hyperion.hit.registry.exceptions.RegistryException <init>
    INFO: Registry Exception Occured - Failed to create new database connection using datasource.RootCause:[weblogic/pool/PooledConnecti
    onDataSource]
    Jan 27, 2015 9:36:44 AM com.hyperion.hit.registry.Registry lookupWithException
    INFO: EPMREG-11038
    Jan 27, 2015 9:36:44 AM com.hyperion.hit.registry.exceptions.RegistryException <init>
    INFO: Registry Exception Occured - com.hyperion.hit.registry.exceptions.RegistryException: Failed to create new database connection
    using datasource.RootCause:[weblogic/pool/PooledConnectionDataSource]
    Jan 27, 2015 9:36:44 AM com.hyperion.hit.registry.Registry lookup
    INFO: EPMREG-11038
    Jan 27, 2015 9:36:44 AM com.hyperion.css.registry.RegistryManager RegistryManager
    SEVERE: Failed to initialize EPM Shared Services security instance. Component SYSTEM9/FOUNDATION_SERVICES_PRODUCT/SHARED_SERVICES_PR
    ODUCT is null in EPM System Registry. Verify EPM System Registry configuration.
    java.lang.NullPointerException
            at start.initialize(start.java:84)
            at start.Sample(start.java:59)
            at cc.main(cc.java:10)
    I guess it is something with the SQLServer driver.Do you have any ideas?
    My ORACLE_HOME and ORACLE_INSTANCE are set correctly.
    Thanks in advance,
    Regards,
    Nicolas

    Hello,
    I finally got it working!
    I added the weblogic libraries located under EPM/Middleware/wlserver_10.3/server/lib, and now it works fine.
    It was a pain to find it out, because the error message did not specify that it was a missing library..
    Anyway, if it helps, here is the list of external libraries I am using:
    "wlssapi.jar"
    "wlssapi-internal.jar"
    "wlss-datatier.jar"
    "wlss-descriptor-binding.jar"
    "wlssdiameter.jar"
    "wlssechosvr.jar"
    "wlss-mbeaninfo.jar"
    "WLSSSecurityProviders.jar"
    "wlthint3client.jar"
    "wlw-langx.jar"
    "wlw-langx-ja.jar"
    "wlw-langx-ko.jar"
    "wlw-langx-zh_CN.jar"
    "wlw-langx-zh_TW.jar"
    "wlw-wsee-soapfault.jar"
    "xmlparserv2_sans_jaxp_services.jar"
    "xmlrpc-2.0.1.jar"
    "audit-client.jar"
    "castor-1.0.5.jar"
    "com.bea.core.apache.commons.pool_1.3.0.jar"
    "commons-lang-2.1.jar"
    "css.jar"
    "dms.jar"
    "interop-sdk.jar"
    "ojdl.jar"
    "quartz.jar"
    "regexp.jar"
    "registry-api.jar"
    "scheduler_ces.jar"
    "sqljdbc.jar"
    "wf_ces_utils.jar"
    "wf_eng_agent.jar"
    "wf_eng_api.jar"
    "wf_eng_server.jar"
    "wlcipher.jar"
    "wlclient.jar"
    "wlcommons-logging.jar"
    "wlconnector.jar"
    "wldb2.jar"
    "wldeploy.jar"
    "wlinformix.jar"
    "wl-j2ee-client.jar"
    "wljarbuilder.jar"
    "wljmsclient.jar"
    "wljmxclient.jar"
    "wllog4j.jar"
    "wlnmclient.jar"
    "wlpool.jar"
    "wlsafclient.jar"
    "wls-api.jar"
    "wlss.jar"
    "wlss_i18n.jar"
    Thank you all for your help.
    Regards,
    Nicolas

  • Oracle ORA-01428: argument is out of range error

    Oracle ORA-01428: argument is out of range error

    I take it you don't feel like spending the extra money for the EE add-on that was designed to CREATE an INDEX on polygons of logitude,latitude values in such away that a simple
    SELECT * FROM ZIP_CODES WHERE SDO_WITHIN_DISTANCE( Z.ZIPCODE_AREA, /* point for zipcode */, 'distance=' || in_distance ) = 'TRUE';
    will be very efficient and fast.
    primary thing:
    you need to drop out the WHEN OTHERS THEN NULL;
    also, take advantage of the NO_ROWS_FOUND exception for finding out if a row exists in the database. (instead of doing an IF statement on the results of COUNT(*))
    back to your problem
    You'll need to investigate which row is causing the problem.
    Most likely, it is the zipcode that was the input for the search.  I've seen this occur many times on similar trigonometric calculations.
    You may have to surround a lot of those trigonometric functions with ROUND( ____, 25) to get it to work.
    However, I highly advise you to take a look at what can be done with Oracle Spacial
    MK

Maybe you are looking for

  • Query performance while migrating from 9i to 11G

    Hi, We've one production application with version 9.2.0.6 and migrating to 11g release. At present we're having a lot of queries in our 9i database which are using the cost based optimizer. Just wanted to check if we move all the cost based queries f

  • A pop up window asks about every 2 to 5 minutes to authorize a certificate for google, I click "deny" but it just keeps on popping up.

    I do not want to disable "ask me every time" option on Firefox even for a few seconds. I have searched for answers but nothing seems to be reasonable. One option was for me to create my own certificate and hope Firefox will pick that certificate if I

  • Blue borders still

    Hello, I hope someone can help me, I've been doing my first site & some how I appear to have moved the page away from the edge of the design screen & now have a pale blue border around the edge of the design & can't seem to find out how to get rid of

  • Problems syncing 3GS with iTunes: Can't read content

    I have a 3GS and when I try to sync it, I get an error message saying that iTunes can't read the content of my phone. (I've tried syncing on mulitple computers and get this message each time.) Interestingly, iPhoto opens and has no problems. iTunes g

  • IPad broken screen

    Just back from the Apple store having taken my 5 month old iPad 2 to the Genius bar with a cracked glass. I intended to buy a new iPad 64Gb 3G and have the iPad 2 repaired for another member of my family. The Genius who served me wanted almost £200 f