BI-Beans: getcursor error

I have a cube with 10 dimensions and 1 measures with about 16K records.
When I tried to open this cube with BI-Beans, I got this following error message:
oracle.express.ExpressServerExceptionError class: OLAPI
Server error descriptions:
DPR: Unable to execute the query, Generic at TxsOqCursorManager::fetchInitialBlocks
OES: ORA-04031: unable to allocate 16 bytes of shared memory ("shared pool","SELECT /*+ INDEX_COMBINE(V7...","Typecheck heap","kkqgAllocEle.5")
, Generic at TxsRdbOCIConnection::execStmt
     oracle.express.olapi.data.CursorBlock oracle.express.olapi.data.full.FullCursorBlockFetcher.fetchAnyCursorBlock(oracle.olapi.data.cursor.CursorInput[])
Can you guys help me how to solve this problem ??
tx, Sjarif

This is not really a BI Beans error, but happens because the database gets low on memory due to the complexity of the generated SQL.
Try the following OLAP optimization in the init.ora file.
init.ora Parameters
Modify the standard init.ora file (named initsid.ora, located oracle_home/admin/sid/pfile) by setting or adding the parameters described below. When starting the database for an initial build or major data update
operation, use this specifically modified parameters file with a command such as this:
startup pfile = filepath
Make the following changes to the parameters file:
db_cache_size=n
Where: n is 25% of real memory
Example: 128M for 512M of RAM
db_file_multiblock_read_count=n
Where: n is a number based on hardware. The ideal would be multiplier of 8k blocks to equal the disk stripe width.
shared_pool_size = n
Where: n is 10% or less of real memory.
Example: Approximately 10M for 512M of RAM
pga_aggregate_target=n
Where: n is 50% of real memory
Example: 256M for 512M of RAM
parallel_automatic_tuning=true
#parallel_max_servers
Comment out this setting with the # symbol.
#parallel_min_servers
Comment out this setting with the # symbol.
parallel_broadcast_enabled=true
workarea_size_policy=AUTO
disk_asynch_io=true
optimizer_mode=CHOOSE

Similar Messages

  • Message-driven bean deployment error

    Hi:
    When attempting to deploy a message-driven bean to the server I get a the following error message:SEVERE: MDB00030: [MessageControllerJAR:MessageControllerEJB]: Exception in setting up message-drive
    n bean container: [[C4003]: Error occurred on connection creation. - caught java.lang.NumberFormatEx
    ception] However, bindings to the queues seem to be created successfully, as evidenced here:
    INFO: CORE5076: Using Java HotSpot(TM) Server VM, Version 1.4.2_02 from Sun Microsystems Inc.
    INFO: JTS5014: Recoverable JTS instance, serverId is 100
    INFO: RAR5060: Install JDBC Datasources ...
    INFO: JMS5015: Install JMS resources ...
    INFO: JMS5002: Binding [< JMS Destination: jms/Sample, javax.jms.Queue, [ imqDestinationName=sample] >]
    INFO: JMS5002: Binding [< JMS Connection Factory: jms/SampleQCF, javax.jms.QueueConnectionFactory [imqBrokerHostName=localhost , imqBrokerHostPort=7222 ] >]
    INFO: LDR5010: All ejb(s) of [stateless-simple] loaded successfully!
    INFO: WEB0100: Loading web module [stateless-simple:stateless-simple.war] in virtual server [server1
    ] at [helloworld]
    INFO: HTTP3072: HTTP listener http-listener-1 [http://xxxxxx:99] ready to accept requests
    startup: server started successfully
    INFO: CORE3274: successful server startup
    I'm using an external JMS provider and according to them the problem is not their server. If we look at the exception trace (javax.jms.JMSException) this is what gets displayed in the server's console:
    SEVERE: MDB00030: [MessageControllerJAR:MessageControllerEJB]: Exception in setting up message-drive
    n bean container: [[C4003]: Error occurred on connection creation. - caught java.lang.NumberFormatEx
    ception]
    SEVERE: MDB00017: [MessageControllerEJB]: Exception in creating message-driven bean container: [java
    x.jms.JMSException: [C4003]: Error occurred on connection creation. - caught java.lang.NumberFormatE
    xception]
    SEVERE: javax.jms.JMSException
    javax.jms.JMSException: [C4003]: Error occurred on connection creation. - caught java.lang.NumberFor
    matException
            at com.sun.messaging.jmq.jmsclient.ExceptionHandler.getJMSException(ExceptionHandler.java:183)
            at com.sun.messaging.jmq.jmsclient.ExceptionHandler.handleException(ExceptionHandler.java:136)
            at com.sun.messaging.jmq.jmsclient.PortMapperClient.readBrokerPorts(PortMapperClient.java:145)
            at com.sun.messaging.jmq.jmsclient.PortMapperClient.init(PortMapperClient.java:86)
            at com.sun.messaging.jmq.jmsclient.PortMapperClient.<init>(PortMapperClient.java:47)
            at com.sun.messaging.jmq.jmsclient.protocol.tcp.TCPConnectionHandler.<init>(TCPConnectionHandler.java:46)
            at com.sun.messaging.jmq.jmsclient.protocol.tcp.TCPStreamHandler.openConnection(TCPStreamHandler.java:101)
            at com.sun.messaging.jmq.jmsclient.ProtocolHandler.init(ProtocolHandler.java:501)
            at com.sun.messaging.jmq.jmsclient.ProtocolHandler.<init>(ProtocolHandler.java:930)
            at com.sun.messaging.jmq.jmsclient.ConnectionImpl.openConnection(ConnectionImpl.java:1482)
            at com.sun.messaging.jmq.jmsclient.ConnectionImpl.init(ConnectionImpl.java:403)
            at com.sun.messaging.jmq.jmsclient.ConnectionImpl.<init>(ConnectionImpl.java:234)
            at com.sun.messaging.jmq.jmsclient.UnifiedConnectionImpl.<init>(UnifiedConnectionImpl.java:33)
            at com.sun.messaging.jmq.jmsclient.QueueConnectionImpl.<init>(QueueConnectionImpl.java:32)
            at com.sun.messaging.jmq.jmsclient.XAQueueConnectionImpl.<init>(XAQueueConnectionImpl.java:33)
            at com.sun.messaging.jmq.jmsclient.JMSXAQueueConnectionImpl.<init>(JMSXAQueueConnectionImpl.java:33)
            at com.sun.messaging.jmq.jmsclient.JMSXAQueueConnectionFactoryImpl.createXAQueueConnection(JMSXAQueueConnectionFactoryImpl.java:75)
            at com.sun.messaging.jmq.jmsclient.JMSXAQueueConnectionFactoryImpl.createXAQueueConnection(JMSXAQueueConnectionFactoryImpl.java:51)
            at com.sun.enterprise.jms.ConnectionFactoryWrapper.createQueueConnection(ConnectionFactoryWrapper.java:118)
            at com.sun.ejb.containers.MessageBeanHelperBase.setup(MessageBeanHelperBase.java:394)
            at com.sun.ejb.containers.MessageBeanContainer.<init>(MessageBeanContainer.java:206)
            at com.sun.ejb.containers.ContainerFactoryImpl.createContainer(ContainerFactoryImpl.java:173)
            at com.iplanet.ias.server.AbstractLoader.loadEjbs(AbstractLoader.java:345)
            at com.iplanet.ias.server.EJBModuleLoader.load(EJBModuleLoader.java:79)
            at com.iplanet.ias.server.StandAloneEJBModulesManager.moduleDeployed(StandAloneEJBModulesManager.java:194)
            at com.iplanet.ias.server.StandAloneEJBModulesManager.moduleDeployed(StandAloneEJBModulesManager.java:166)
            at com.iplanet.ias.server.StandAloneEJBModulesManager.moduleDeployed(StandAloneEJBModulesManager.java:297)
            at com.iplanet.ias.admin.event.AdminEventMulticaster.invokeModuleDeployEventListener(AdminEventMulticaster.java:464)
            at com.iplanet.ias.admin.event.AdminEventMulticaster.handleModuleDeployEvent(AdminEventMulticaster.java:451)
            at com.iplanet.ias.admin.event.AdminEventMulticaster.processEvent(AdminEventMulticaster.java:294)
            at com.iplanet.ias.admin.event.AdminEventMulticaster.multicastEvent(AdminEventMulticaster.java:99)
            at com.iplanet.ias.admin.server.core.channel.AdminChannelServer.sendNotification(AdminChannelServer.java:84)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:324)
            at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261)
            at sun.rmi.transport.Transport$1.run(Transport.java:148)
            at java.security.AccessController.doPrivileged(Native Method)
            at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
            at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
            at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
            at java.lang.Thread.run(Thread
    SEVERE: EJB5090: Exception in creating EJB container [javax.jms.JMSException: [C4003]: Error occurre
    d on connection creation. - caught java.lang.NumberFormatException]
    SEVERE: appId=MessageControllerJAR moduleName=MessageControllerJAR ejbName=MessageControllerEJB
    SEVERE: LDR5004: UnExpected error occured while creating ejb container
    javax.jms.JMSException: [C4003]: Error occurred on connection creation. - caught java.lang.NumberFor
    matException
            at com.sun.messaging.jmq.jmsclient.ExceptionHandler.getJMSException(ExceptionHandler.java:183)
            at com.sun.messaging.jmq.jmsclient.ExceptionHandler.handleException(ExceptionHandler.java:136)
            at com.sun.messaging.jmq.jmsclient.PortMapperClient.readBrokerPorts(PortMapperClient.java:145)
            at com.sun.messaging.jmq.jmsclient.PortMapperClient.init(PortMapperClient.java:86)
            at com.sun.messaging.jmq.jmsclient.PortMapperClient.<init>(PortMapperClient.java:47)
            at com.sun.messaging.jmq.jmsclient.protocol.tcp.TCPConnectionHandler.<init>(TCPConnectionHandler.java:46)
            at com.sun.messaging.jmq.jmsclient.protocol.tcp.TCPStreamHandler.openConnection(TCPStreamHandler.java:101)
            at com.sun.messaging.jmq.jmsclient.ProtocolHandler.init(ProtocolHandler.java:501)
            at com.sun.messaging.jmq.jmsclient.ProtocolHandler.<init>(ProtocolHandler.java:930)
            at com.sun.messaging.jmq.jmsclient.ConnectionImpl.openConnection(ConnectionImpl.java:1482)
            at com.sun.messaging.jmq.jmsclient.ConnectionImpl.init(ConnectionImpl.java:403)
            at com.sun.messaging.jmq.jmsclient.ConnectionImpl.<init>(ConnectionImpl.java:234)
            at com.sun.messaging.jmq.jmsclient.UnifiedConnectionImpl.<init>(UnifiedConnectionImpl.java:33)
            at com.sun.messaging.jmq.jmsclient.QueueConnectionImpl.<init>(QueueConnectionImpl.java:32)
            at com.sun.messaging.jmq.jmsclient.XAQueueConnectionImpl.<init>(XAQueueConnectionImpl.java:33)
            at com.sun.messaging.jmq.jmsclient.JMSXAQueueConnectionImpl.<init>(JMSXAQueueConnectionImpl.java:33)
            at com.sun.messaging.jmq.jmsclient.JMSXAQueueConnectionFactoryImpl.createXAQueueConnection(JMSXAQueueConnectionFactoryImpl.java:75)
            at com.sun.messaging.jmq.jmsclient.JMSXAQueueConnectionFactoryImpl.createXAQueueConnection(JMSXAQueueConnectionFactoryImpl.java:51)
            at com.sun.enterprise.jms.ConnectionFactoryWrapper.createQueueConnection(ConnectionFactoryWrapper.java:118)
            at com.sun.ejb.containers.MessageBeanHelperBase.setup(MessageBeanHelperBase.java:394)
            at com.sun.ejb.containers.MessageBeanContainer.<init>(MessageBeanContainer.java:206)
            at com.sun.ejb.containers.ContainerFactoryImpl.createContainer(ContainerFactoryImpl.java:173)
            at com.iplanet.ias.server.AbstractLoader.loadEjbs(AbstractLoader.java:345)
            at com.iplanet.ias.server.EJBModuleLoader.load(EJBModuleLoader.java:79)
            at com.iplanet.ias.server.StandAloneEJBModulesManager.moduleDeployed(StandAloneEJBModulesManager.java:194)
            at com.iplanet.ias.server.StandAloneEJBModulesManager.moduleDeployed(StandAloneEJBModulesManager.java:166)
            at com.iplanet.ias.server.StandAloneEJBModulesManager.moduleDeployed(StandAloneEJBModulesManager.java:297)
            at com.iplanet.ias.admin.event.AdminEventMulticaster.invokeModuleDeployEventListener(AdminEventMulticaster.java:464)
            at com.iplanet.ias.admin.event.AdminEventMulticaster.handleModuleDeployEvent(AdminEventMulticaster.java:451)
            at com.iplanet.ias.admin.event.AdminEventMulticaster.processEvent(AdminEventMulticaster.java:294)
            at com.iplanet.ias.admin.event.AdminEventMulticaster.multicastEvent(AdminEventMulticaster.java:99)
            at com.iplanet.ias.admin.server.core.channel.AdminChannelServer.sendNotification(AdminChannelServer.java:84)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:324)
            at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261)
            at sun.rmi.transport.Transport$1.run(Transport.java:148)
            at java.security.AccessController.doPrivileged(Native Method)
            at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
            at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
            at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.ja
    WARNING: CORE5020: Error while loading ejb module
    WARNING: ADM5603:Event listener error [Error while loading EJB module [MessageControllerJAR]. Please refer to the server log for more details. Any suggestions will be appreciated. Thanks. SC

    Hi:
    When attempting to deploy a message-driven bean to the server I get a the following error message:SEVERE: MDB00030: [MessageControllerJAR:MessageControllerEJB]: Exception in setting up message-drive
    n bean container: [[C4003]: Error occurred on connection creation. - caught java.lang.NumberFormatEx
    ception] However, bindings to the queues seem to be created successfully, as evidenced here:
    INFO: CORE5076: Using Java HotSpot(TM) Server VM, Version 1.4.2_02 from Sun Microsystems Inc.
    INFO: JTS5014: Recoverable JTS instance, serverId is 100
    INFO: RAR5060: Install JDBC Datasources ...
    INFO: JMS5015: Install JMS resources ...
    INFO: JMS5002: Binding [< JMS Destination: jms/Sample, javax.jms.Queue, [ imqDestinationName=sample] >]
    INFO: JMS5002: Binding [< JMS Connection Factory: jms/SampleQCF, javax.jms.QueueConnectionFactory [imqBrokerHostName=localhost , imqBrokerHostPort=7222 ] >]
    INFO: LDR5010: All ejb(s) of [stateless-simple] loaded successfully!
    INFO: WEB0100: Loading web module [stateless-simple:stateless-simple.war] in virtual server [server1
    ] at [helloworld]
    INFO: HTTP3072: HTTP listener http-listener-1 [http://xxxxxx:99] ready to accept requests
    startup: server started successfully
    INFO: CORE3274: successful server startup
    I'm using an external JMS provider and according to them the problem is not their server. If we look at the exception trace (javax.jms.JMSException) this is what gets displayed in the server's console:
    SEVERE: MDB00030: [MessageControllerJAR:MessageControllerEJB]: Exception in setting up message-drive
    n bean container: [[C4003]: Error occurred on connection creation. - caught java.lang.NumberFormatEx
    ception]
    SEVERE: MDB00017: [MessageControllerEJB]: Exception in creating message-driven bean container: [java
    x.jms.JMSException: [C4003]: Error occurred on connection creation. - caught java.lang.NumberFormatE
    xception]
    SEVERE: javax.jms.JMSException
    javax.jms.JMSException: [C4003]: Error occurred on connection creation. - caught java.lang.NumberFor
    matException
            at com.sun.messaging.jmq.jmsclient.ExceptionHandler.getJMSException(ExceptionHandler.java:183)
            at com.sun.messaging.jmq.jmsclient.ExceptionHandler.handleException(ExceptionHandler.java:136)
            at com.sun.messaging.jmq.jmsclient.PortMapperClient.readBrokerPorts(PortMapperClient.java:145)
            at com.sun.messaging.jmq.jmsclient.PortMapperClient.init(PortMapperClient.java:86)
            at com.sun.messaging.jmq.jmsclient.PortMapperClient.<init>(PortMapperClient.java:47)
            at com.sun.messaging.jmq.jmsclient.protocol.tcp.TCPConnectionHandler.<init>(TCPConnectionHandler.java:46)
            at com.sun.messaging.jmq.jmsclient.protocol.tcp.TCPStreamHandler.openConnection(TCPStreamHandler.java:101)
            at com.sun.messaging.jmq.jmsclient.ProtocolHandler.init(ProtocolHandler.java:501)
            at com.sun.messaging.jmq.jmsclient.ProtocolHandler.<init>(ProtocolHandler.java:930)
            at com.sun.messaging.jmq.jmsclient.ConnectionImpl.openConnection(ConnectionImpl.java:1482)
            at com.sun.messaging.jmq.jmsclient.ConnectionImpl.init(ConnectionImpl.java:403)
            at com.sun.messaging.jmq.jmsclient.ConnectionImpl.<init>(ConnectionImpl.java:234)
            at com.sun.messaging.jmq.jmsclient.UnifiedConnectionImpl.<init>(UnifiedConnectionImpl.java:33)
            at com.sun.messaging.jmq.jmsclient.QueueConnectionImpl.<init>(QueueConnectionImpl.java:32)
            at com.sun.messaging.jmq.jmsclient.XAQueueConnectionImpl.<init>(XAQueueConnectionImpl.java:33)
            at com.sun.messaging.jmq.jmsclient.JMSXAQueueConnectionImpl.<init>(JMSXAQueueConnectionImpl.java:33)
            at com.sun.messaging.jmq.jmsclient.JMSXAQueueConnectionFactoryImpl.createXAQueueConnection(JMSXAQueueConnectionFactoryImpl.java:75)
            at com.sun.messaging.jmq.jmsclient.JMSXAQueueConnectionFactoryImpl.createXAQueueConnection(JMSXAQueueConnectionFactoryImpl.java:51)
            at com.sun.enterprise.jms.ConnectionFactoryWrapper.createQueueConnection(ConnectionFactoryWrapper.java:118)
            at com.sun.ejb.containers.MessageBeanHelperBase.setup(MessageBeanHelperBase.java:394)
            at com.sun.ejb.containers.MessageBeanContainer.<init>(MessageBeanContainer.java:206)
            at com.sun.ejb.containers.ContainerFactoryImpl.createContainer(ContainerFactoryImpl.java:173)
            at com.iplanet.ias.server.AbstractLoader.loadEjbs(AbstractLoader.java:345)
            at com.iplanet.ias.server.EJBModuleLoader.load(EJBModuleLoader.java:79)
            at com.iplanet.ias.server.StandAloneEJBModulesManager.moduleDeployed(StandAloneEJBModulesManager.java:194)
            at com.iplanet.ias.server.StandAloneEJBModulesManager.moduleDeployed(StandAloneEJBModulesManager.java:166)
            at com.iplanet.ias.server.StandAloneEJBModulesManager.moduleDeployed(StandAloneEJBModulesManager.java:297)
            at com.iplanet.ias.admin.event.AdminEventMulticaster.invokeModuleDeployEventListener(AdminEventMulticaster.java:464)
            at com.iplanet.ias.admin.event.AdminEventMulticaster.handleModuleDeployEvent(AdminEventMulticaster.java:451)
            at com.iplanet.ias.admin.event.AdminEventMulticaster.processEvent(AdminEventMulticaster.java:294)
            at com.iplanet.ias.admin.event.AdminEventMulticaster.multicastEvent(AdminEventMulticaster.java:99)
            at com.iplanet.ias.admin.server.core.channel.AdminChannelServer.sendNotification(AdminChannelServer.java:84)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:324)
            at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261)
            at sun.rmi.transport.Transport$1.run(Transport.java:148)
            at java.security.AccessController.doPrivileged(Native Method)
            at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
            at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
            at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
            at java.lang.Thread.run(Thread
    SEVERE: EJB5090: Exception in creating EJB container [javax.jms.JMSException: [C4003]: Error occurre
    d on connection creation. - caught java.lang.NumberFormatException]
    SEVERE: appId=MessageControllerJAR moduleName=MessageControllerJAR ejbName=MessageControllerEJB
    SEVERE: LDR5004: UnExpected error occured while creating ejb container
    javax.jms.JMSException: [C4003]: Error occurred on connection creation. - caught java.lang.NumberFor
    matException
            at com.sun.messaging.jmq.jmsclient.ExceptionHandler.getJMSException(ExceptionHandler.java:183)
            at com.sun.messaging.jmq.jmsclient.ExceptionHandler.handleException(ExceptionHandler.java:136)
            at com.sun.messaging.jmq.jmsclient.PortMapperClient.readBrokerPorts(PortMapperClient.java:145)
            at com.sun.messaging.jmq.jmsclient.PortMapperClient.init(PortMapperClient.java:86)
            at com.sun.messaging.jmq.jmsclient.PortMapperClient.<init>(PortMapperClient.java:47)
            at com.sun.messaging.jmq.jmsclient.protocol.tcp.TCPConnectionHandler.<init>(TCPConnectionHandler.java:46)
            at com.sun.messaging.jmq.jmsclient.protocol.tcp.TCPStreamHandler.openConnection(TCPStreamHandler.java:101)
            at com.sun.messaging.jmq.jmsclient.ProtocolHandler.init(ProtocolHandler.java:501)
            at com.sun.messaging.jmq.jmsclient.ProtocolHandler.<init>(ProtocolHandler.java:930)
            at com.sun.messaging.jmq.jmsclient.ConnectionImpl.openConnection(ConnectionImpl.java:1482)
            at com.sun.messaging.jmq.jmsclient.ConnectionImpl.init(ConnectionImpl.java:403)
            at com.sun.messaging.jmq.jmsclient.ConnectionImpl.<init>(ConnectionImpl.java:234)
            at com.sun.messaging.jmq.jmsclient.UnifiedConnectionImpl.<init>(UnifiedConnectionImpl.java:33)
            at com.sun.messaging.jmq.jmsclient.QueueConnectionImpl.<init>(QueueConnectionImpl.java:32)
            at com.sun.messaging.jmq.jmsclient.XAQueueConnectionImpl.<init>(XAQueueConnectionImpl.java:33)
            at com.sun.messaging.jmq.jmsclient.JMSXAQueueConnectionImpl.<init>(JMSXAQueueConnectionImpl.java:33)
            at com.sun.messaging.jmq.jmsclient.JMSXAQueueConnectionFactoryImpl.createXAQueueConnection(JMSXAQueueConnectionFactoryImpl.java:75)
            at com.sun.messaging.jmq.jmsclient.JMSXAQueueConnectionFactoryImpl.createXAQueueConnection(JMSXAQueueConnectionFactoryImpl.java:51)
            at com.sun.enterprise.jms.ConnectionFactoryWrapper.createQueueConnection(ConnectionFactoryWrapper.java:118)
            at com.sun.ejb.containers.MessageBeanHelperBase.setup(MessageBeanHelperBase.java:394)
            at com.sun.ejb.containers.MessageBeanContainer.<init>(MessageBeanContainer.java:206)
            at com.sun.ejb.containers.ContainerFactoryImpl.createContainer(ContainerFactoryImpl.java:173)
            at com.iplanet.ias.server.AbstractLoader.loadEjbs(AbstractLoader.java:345)
            at com.iplanet.ias.server.EJBModuleLoader.load(EJBModuleLoader.java:79)
            at com.iplanet.ias.server.StandAloneEJBModulesManager.moduleDeployed(StandAloneEJBModulesManager.java:194)
            at com.iplanet.ias.server.StandAloneEJBModulesManager.moduleDeployed(StandAloneEJBModulesManager.java:166)
            at com.iplanet.ias.server.StandAloneEJBModulesManager.moduleDeployed(StandAloneEJBModulesManager.java:297)
            at com.iplanet.ias.admin.event.AdminEventMulticaster.invokeModuleDeployEventListener(AdminEventMulticaster.java:464)
            at com.iplanet.ias.admin.event.AdminEventMulticaster.handleModuleDeployEvent(AdminEventMulticaster.java:451)
            at com.iplanet.ias.admin.event.AdminEventMulticaster.processEvent(AdminEventMulticaster.java:294)
            at com.iplanet.ias.admin.event.AdminEventMulticaster.multicastEvent(AdminEventMulticaster.java:99)
            at com.iplanet.ias.admin.server.core.channel.AdminChannelServer.sendNotification(AdminChannelServer.java:84)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:324)
            at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261)
            at sun.rmi.transport.Transport$1.run(Transport.java:148)
            at java.security.AccessController.doPrivileged(Native Method)
            at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
            at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
            at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.ja
    WARNING: CORE5020: Error while loading ejb module
    WARNING: ADM5603:Event listener error [Error while loading EJB module [MessageControllerJAR]. Please refer to the server log for more details. Any suggestions will be appreciated. Thanks. SC

  • JAX-RPC + Bean = deserialization error: java.lang.NullPointerException

    I�m trying to use a bean as return type from a web service method, but I get an error:
    deserialization error: java.lang.NullPointerException
    this is the class consuming the web service
    package local.jws;
    import local.jws.remote.TestBeanIF;
    import local.jws.remote.TestBean;
    import java.io.*;
    import java.net.URL;
    import javax.xml.rpc.Service;
    import javax.xml.rpc.ServiceException;
    import javax.xml.rpc.ServiceFactory;
    import javax.xml.namespace.QName;
    public class Client implements java.io.Serializable
         private TestBean tb;
         private String somestring;
         public Client()
              try
                   String wsURL = "http://localhost:8080/webservice/testbean?WSDL";
                   String nameSpaceURI = "http://local.jws/wsdl/MyTestBean";
                   String portName = "TestBeanIFPort";
                   String serviceName = "MyTestBean";
                   URL serviceURL = new URL( wsURL );
                   ServiceFactory serviceFactory = ServiceFactory.newInstance();
                   QName qServiceName = new QName( nameSpaceURI, serviceName );
                   Service ws = serviceFactory.createService( serviceURL, qServiceName );
                   QName qPortName = new QName( nameSpaceURI, portName );
                   TestBeanIF myTestBeanIF = (TestBeanIF)ws.getPort( qPortName, local.jws.remote.TestBeanIF.class );
                   somestring = myTestBeanIF.getString();
                   tb = myTestBeanIF.getTestBean( "hello bean" );
              catch( Exception ex )
         public TestBean getTb()
              return this.tb;
         public void setTb( TestBean tb )
              this.tb = tb;
         public String getSomestring()
              return this.somestring;
         public void setSomestring( String value )
              this.somestring = value;
    this is the bean:
    package local.jws.beans;
    public class TestBean implements java.io.Serializable
         private String test;
         public TestBean(){ }
         public String getTest()
              return test;
         public void setTest( String value )
              this.test = value;
    this is the interface implementation:
    package local.jws;
    import local.jws.beans.TestBean;
    public class TestBeanImpl implements TestBeanIF
         public TestBean getTestBean( String value )
              TestBean tb = new TestBean();
              tb.setTest( value );
              return tb;
         public String getString()
              return "some string";
    using the getString() method works fine but getTestBean() doesn�t;
    any clue on this?
    thanks

    Hi,
    I'm experiencing exactly the same problem as you ...
    The only fix I found is to use static invocation ... with static invocation, WSCompile generates a deserializer and everything works fine, no mure NullPointer exception ...
    With dynamic invocation as you are trying to manage here, I didn't find any way to tell the client to use the deserializer generated with wscompile ...
    Does anyone know how to do it ?
    Thanks,
    Olivier

  • Stateless bean giving error when deployed through j2ee 1.3RI

    I have written a simple stateless bean and deployed through j2ee 1.3 RI
    Context initial = new InitialContext(h);
    Object obj = initial.lookup("SampleObject"); // SampleObject -jndi name
    SampleHome home = (SampleHome)PortableRemoteObject.narrow(obj, SampleHome.class);
    But when running the Client , getting the error
    java.lang.ClassCastException
    at com.sun.corba.se.internal.javax.rmi.PoartableRemoteObject.narrow(Unknown Source)
    at javax.rmi.PortableRemoteObject.narrow(Unknown Source)     at SampleClient.main(SampleClient.java:27)
    Is it a system error or what

    Hi sessionbean,
    The most common cause of this exception is when the RMI-IIOP stubs are not found within the client's classpath. The client stubs are returned from the deployment step.
    Also, it's better to use the no-arg initial context constructor "new InitialContext()" and let the J2EE 1.3 RI code bootstrap the correct naming service.
    --ken                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • [EJB] Stateful session bean--- strange error

    hi guys,
    here s my problem. i m trying to developp a stateful session bean with two ejbcreate method. one with parameters ( ejbcreate(int val)) and another one without (ejbcreate()).
    The client can call ejbcreate without any pbs. everything s allright.
    but when i try to get a remote access to the bean via a
    MY_BEAN.create(5); then i got an error saying :
    FAILED TO FIND METHOD FOR HASH ......
    i dont understand cuz i checked my files many times and the two methods are implemented and declared in the home interface.
    what should i do ?
    please.
    tery

    Hi Tery,
    You are in the wrong forum. This forum is for the Sun Java Studio Creator.
    Cheers :-)!!!

  • Why my refrencing value of  selectOneMenu to HashMap bean cause error?

    i use HashMap bean in my face-config xml to generate HashMap Bean and refrence it to my selectOneMenu , field "value" of selectedItems .
    evry thing is true and my combo box fill with my hashmap.
    but when i submit a form this error generate :
    java.lang.IllegalArgumentException
         javax.faces.component.SelectItemsIterator.next(SelectItemsIterator.java:124)
         javax.faces.component.UISelectOne.matchValue(UISelectOne.java:141)
         javax.faces.component.UISelectOne.validateValue(UISelectOne.java:114)
         javax.faces.component.UIInput.validate(UIInput.java:634)
         javax.faces.component.UIInput.executeValidate(UIInput.java:838)
         javax.faces.component.UIInput.processValidators(UIInput.java:412)
         javax.faces.component.UIForm.processValidators(UIForm.java:170)
         javax.faces.component.UIComponentBase.processValidators(UIComponentBase.java:904)
         javax.faces.component.UIViewRoot.processValidators(UIViewRoot.java:342)
         com.sun.faces.lifecycle.ProcessValidationsPhase.execute(ProcessValidationsPhase.java:78)
         com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
         com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90)
         javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
    my jsf file is have thise source :
    <f:view>
         <f:loadBundle basename="lables" var="bundle"/>
         <f:loadBundle basename="global" var="global"/>
         <h:form id="forms2">      
                        <h:selectOneMenu id="lang" styleClass="textbox2" >
                                            <f:selectItems value="#{langs}" />
                        </h:selectOneMenu>
                        <h:commandButton value="ok" type="submit" />
                   </h:form>
    </f:view>
    and my face-config has this config :
         <managed-bean>
              <display-name>langs</display-name>
              <managed-bean-name>langs</managed-bean-name>
              <managed-bean-class>java.util.HashMap</managed-bean-class>
              <managed-bean-scope>application</managed-bean-scope>
              <map-entries>
                   <map-entry>
                        <key>fa</key>
                        <value>persian</value>
                   </map-entry>
              </map-entries>
              <map-entries>
                   <map-entry>
                        <key>en</key>
                        <value>english</value>
                   </map-entry>
              </map-entries>
         </managed-bean>
    can anybody help me ? i cann't solve this problem yet .
    thanx a lot

    Did you get this resolved? I've been working on this same problem. I haven't been able to get the HashMap to work, but using the selectItems (as mentioned above) DOES work!
    I used this site as a reference:
    http://jsf.iatp.org.ua/components/jsf_htmlselectmanylistbox.html
    I'll post some of the code in case the link goes bad (future) and someone would still like to see it...
    Static items .jsp page:
    <f:view>
         <h:selectManyListbox value="#{staticPageBean.selectedItems}" size="5">
              <f:selectItem itemValue="firstName" itemLabel="First Name" />
              <f:selectItem itemValue="lastName" itemLabel="Last Name" />
              <f:selectItem itemValue="age" itemLabel="Age" />
              <f:selectItem itemValue="sex" itemLabel="Sex" />
         </h:selectManyListbox>
         <h:commandButton value="Show Selected" actionListener="#{staticPageBean.showSelected}" />
         <h:outputText binding="#{staticPageBean.selItemsOutput}" />
    </f:view>
    The bean for that page
    public class StaticPageBean {
         //array of values of selected items
         private String[] selectedItems;
         private HtmlOutputText selItemsOutput;
         public void setSelectedItems(String[] items) {
              this.selectedItems = items;
         public String[] getSelectedItems() {
              return selectedItems;
         public void setSelItemsOutput(HtmlOutputText component) {
              selItemsOutput = component;
         public HtmlOutputText getSelItemsOutput() {
              return selItemsOutput;
         public void showSelected(ActionEvent actionEvent) {
              String str = "";
              int length = selectedItems.length;
              for(int i=0; i<length; i++) {
                   str += selectedItems[ i ]+"   ";
              selItemsOutput.setValue(str);
    To dynamically populate the select Items
    <h:selectManyListbox value="#{dynamicPageBean.selectedItems}" size="5">
         <f:selectItems value="#{dynamicPageBean.items}" />
    </h:selectManyListbox>
    Code behind that
    public class DynamicPageBean {
         //List of SelectItem instances
         private List items;
         public DynamicPageBean() {
              items = new ArrayList();
              SelectItem item = new SelectItem("firstName", "First Name");
              items.add(item);
              item = new SelectItem("lastName", "Last Name");
              items.add(item);
              item = new SelectItem("sex", "Sex");
              items.add(item);
              item = new SelectItem("ssn", "SSN");
              items.add(item);
         public void setItems(List items) {
              this.items = items;
         public List getItems() {
              return items;
    }

  • Session bean calls enttity bean got error !!!! *urgent*

    i have a session bean(customerController)with jndi(ejb/customer) calling entity bean (customer).Both using remote interface. when i build a frame application to test these beans. i get the error below.
    can anybody tell me wat happen ?!!
    23:20:22,861 ERROR [LogInterceptor] EJBException: javax.ejb.EJBException: removeCustomer: null      at sessioncallsentitybean.CustomerControllerBean.createCustomer(CustomerControllerBean.java:63)      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)      at java.lang.reflect.Method.invoke(Method.java:324)      at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:660)      at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:186)      at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:77)      at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:107)      at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:237)      at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:98)      at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:130)      at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:208)      at org.jboss.ejb.StatelessSessionContainer.invoke(StatelessSessionContainer.java:313)      at org.jboss.ejb.Container.invoke(Container.java:738)      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)      at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke
    (JRMPInvoker.java:383)      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)      at java.lang.reflect.Method.invoke(Method.java:324)      at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261)      at sun.rmi.transport.Transport$1.run(Transport.java:148)      at java.security.AccessController.doPrivileged(Native Method)      at sun.rmi.transport.Transport.serviceCall(Transport.java:144)      at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)      at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)      at java.lang.Thread.run(Thread.java:536)

    seems like the logic stops when session bean is trying to create an instance of entity bean. i ve set my jndi name (ejb/Customer)correctly in the naming code part in session bean. Can u tell me wat steps that i might have missed. pls. thank you so much. =)
    session bean manages to pass through methods below:
    ejbCreate ()
    createCustomer()
    makeConnection()
    releaseConnection()... but throws the EJBException
    public String createCustomer(String custName, String custEmail, String custAddress, String custGender, String custPhoneNo) throws CreateException {
         System.out.println("CustomerControllerBean createCustomer");
        try{
          makeConnection();
          customer = customerHome.create(customerId, custName,
                     custEmail, custAddress, custGender, custPhoneNo);
          releaseConnection();
        } catch (Exception ex){
          releaseConnection();
          throw new EJBException
          ("createCustomer: " + ex.getMessage());
        return customerId;
      }my error is "javax.ejb.EJBException: createCustomer: null" the rest of the error warning is mentioned in the first posted message above.

  • Urgent help please : useBean: Duplicate bean name error

    hi,
    i am trying to add a record to data base and my bean name is
    DBConn. when i try instantiate it is giving error. help imm.
    code:
    <%@ page import="java.sql.*" %>
    <jsp:useBean id="DConn" scope="request" class="src.DBConn" />
    <%
         try {
         ResultSet rsa;
         String sclName = request.getParameter("SclName");
         String sclMissing = request.getParameter("SclMissing");
         int intMeasure= Integer.parseInt(request.getParameter("SclMeasure"));
         String sclMeasure = "";     
         boolean     flag=false;
         switch(intMeasure) {
         case 0:     
              sclMeasure="O";
              break;
         case 1:
              sclMeasure="M";     
              break;
         case 2:
              sclMeasure="N";
              break;
         String RecValue[]= new String [3];
         RecValue[0]=sclName;
         RecValue[1]=sclMeasure;
         RecValue[2]=sclMissing;
         flag=DConn.Execute("SCAMI1", new String[] { RecValue[0], RecValue[1],RecValue[2]});
         if (flag) {
         catch(Exception e) {
              System.out.println(e);
    %>

    i am mention the same bean in this page and after this, when i press the add button, i will move for another html page and from that page it will go to the bean which is given error.
    Code: Page1:
    =============
    <html><head><title>JSP Page</title>
    <%@ page language="java" import="java.sql.*" session ="true" %>
    <script type="text/javascript" >
         function AddSubmit()
         document.OutCome.action = "OutAddScale.html";
         document.OutCome.submit();
         function openModHtml()
              window.open ("OutModScale.html");          
         function openDelHtml()
              window.open ("OutDelScale.html");          
         function getRecord(thecaller) {
              (thecaller.value);
    </script>
    </head>
    <body>
    <FORM name=OutCome method="GET" >
    <P align=center><STRONG><FONT color=#000000>Out Come</FONT></STRONG> </P>
    <INPUT id=btnAdd name=btnAdd type=button value=Add onclick ="AddSubmit()" style="HEIGHT: 24px; WIDTH: 65px">
    <INPUT id=btnMod name=btnMod type=submit value=Modify style="LEFT: 136px; TOP: 381px" > 
    <STRONG><FONT color=#000000> </FONT></STRONG>
    <INPUT id=btnDelete name=btnDelete onclick ="openDelHtml()" type=button value=Delete style="LEFT: 190px; TOP: 381px">
    <p></p>
    <!-- data base connection. ->
    <jsp:useBean id="DConn" scope="page" class="src.DBConn" />
    <%
         DConn.DBConnect("MSSql","sun.jdbc.odbc.JdbcOdbcDriver","jdbc:odbc:ews","sa","sakshi123");
         response.setContentType("text/html");
         ResultSet rsa;
         String PSId="";
         String CSId="";
         try {
    %>
         <Table border="1" width=400>
         <tr>
         <td><b>Select</b></td>
         <td><b>Scale</b></td>
              <td><b>Measure</b></td>
              <td><b>Missing</b></td>
              <td><b>Options</b></td>
         </tr>     
    <%
              rsa=DConn.getRs("SCAMS1",new String[]{""});
              while(rsa.next()) {
                   CSId=     rsa.getString("ScaleId");
                   String id= rsa.getString("ScaleId");
                   String name= rsa.getString("ScaleName");
                   String measure= rsa.getString("Measure");
                   int missing = rsa.getInt("Missing");
                   String label= rsa.getString("Label");
                   int sclIndex = rsa.getInt("ScaleIndex");
                   if (measure.equals("O")) {
                        measure="Ordinal";
                   }else if ( measure.equals("M") ) {
                        measure="Metric";
                   }else if ( measure.equals("N") ) {
                        measure="Nominal";
                   if (!CSId.equals(PSId)) {
                        PSId=CSId;
    %>
                   <tr >
                        <Td><Input Type="Radio" name ="RSel" id="RSel" value= <%= CSId %> onClick="return getRecord(this )" ></td>
                        <td> <%= name %></td>
                        <td> <%= measure %></td>          
                        <td> <%= missing %></td>
                        <td> <%= sclIndex %> - <%= label %></td>
                   </tr>
    <%                         
                   }else {
    %>     
                   <tr>
                        <td></td>
                        <td></td><td></td><td></td>
                        <td><%= sclIndex %> - <%= label %></td>
                   </tr>
    <%
                   }     // else condition close          
         }     // while loop
    %>
         </table>
    <%
         }catch(Exception e){
              System.out.println(e);
              // e.printStackTrace();
    finally{      
    %> </form></body></html>
    code page2:
    ============
    <HTML><HEAD><TITLE>Add Scale</TITLE>
    <script language=javascript src="..\JScript\Validation.js">     
    </script>
    <script language=javascript src="..\JScript\Common.js">     
    </script>
    </HEAD>
    <body >
    <FORM name=AddScale method="GET" >
    <P align=center><STRONG>Add Scale</STRONG></P>
    <FONT color=darkblue>Scale Name 
    </FONT>   
    <INPUT id=SclName name=SclName onkeypress="return validateCharKeyPress(event)" style="WIDTH: 160px; HEIGHT: 18px"><P>
    <FONT color=darkblue>Scale Measure </FONT>
    <SELECT id=SclMeasure name=SclMeasure style="LEFT: 105px; WIDTH: 92px; TOP: 96px; HEIGHT: 22px">
                        <OPTION selected>ORDINAL</OPTION>
                        <OPTION>NOMINAL</OPTION>
                        <OPTION>METRIC</OPTION>
                        </SELECT></P>
    <p><FONT color=darkblue>Scale Missing</FONT>  
    <INPUT id=SclMissing name=SclMissing onkeypress="return validateNumberKeyPress(event)" style="LEFT: 98px; WIDTH: 155px; TOP: 101px; HEIGHT: 19px" align=right></p>
    <HR>
    <P><FONT color=darkblue><STRONG> Scale Options</STRONG></FONT></P>
    <SELECT id=SelScaleOpt name=SelScaleOpt onClick="SelList()" onChange="SelList()" size=2 style="WIDTH: 313px; HEIGHT: 114px" >
    <OPTION selected>1=Male</OPTION>
    <OPTION >2=FeMale</OPTION>
    </SELECT> 
    <p><FONT color=darkblue>                        
    <INPUT id=btnUp name=btnUp type=button value=UP onclick="LstUp()" style="WIDTH: 45px; HEIGHT: 24px" >
    <INPUT id=btnDown name=btnDown type=button value=Down onclick="LstDown()" style="LEFT: 67px; TOP: 436px" > </FONT></p>
    <p><FONT color=darkblue>Scale Option    </FONT>
    <INPUT id=txtScaleOpt name=txtScaleOpt onkeypress="return validateCharKeyPress(event)" style="WIDTH: 152px; HEIGHT: 20px"></p>
    <p>  
    <INPUT id=SclOptAdd name=SclOptAdd type=button value=Add onclick="addToList()" style="WIDTH: 65px; HEIGHT: 24px"> 
    <INPUT id=btnMod name=button1 style="LEFT: 136px; TOP: 381px" type=button value=Modify onclick="ModToList()" >
    <INPUT id=SclOptRemove name=SclOptRemove type=button value=Remove onClick="DelList()" style="LEFT: 190px; TOP: 381px"></p>
    <HR>
    <P>         
    <INPUT id=SclOk name=Ok type=button value=Save OnClick="ChkFields()" style ="WIDTH: 64px; HEIGHT: 24px">
    <INPUT id=SclCan name=Cancel style="WIDTH: 64px; HEIGHT: 24px" type=reset value=Cancel></P>
    </FORM>
    </body>
    </HTML>
    code page3 in this page its giving error
    ====================================================
    it is saying
    <jsp:useBean id="DConn" scope="page" class="src.DBConn" />
    <%     
         try {
         ResultSet rsa;
         String sclName = request.getParameter("SclName");
         String sclMissing = request.getParameter("SclMissing");
         String sclMeasure= request.getParameter("SclMeasure");
         if (sclMeasure.equals("ORDINAL")) {
              sclMeasure="O";
         }else if (sclMeasure.equals("METRIC")) {
              sclMeasure="M";     
         }else if (sclMeasure.equals("NOMINAL")) {
              sclMeasure="N";     
         String RecValue[]= new String [3];
         RecValue[0]=sclName;
         RecValue[1]=sclMeasure;
         RecValue[2]= sclMissing;          
    flag=DConn.Execute("SCAMI1", new String[]{RecValue[0],RecValue[1],RecValue[2]});
         if (flag) {
              out.println("tru");
         }else {
              out.write("false");
         catch(Exception e) {
              System.out.println(e);
    %>

  • Change one entity bean query, errors pop up in another... why?

    In my application I have the following entity bean:
    @Entity
    @Table(name = "ventureprofile")
    @SecondaryTable(name = "venture")
    @NamedQueries( {       
            @NamedQuery(name = "Ventureprofile.findByVentureprofileid", query = "SELECT v FROM Ventureprofile v WHERE v.ventureprofileid = :ventureprofileid"),
            @NamedQuery(name = "Ventureprofile.findByVentureid", query = "SELECT v FROM Ventureprofile v WHERE v.ventureid = :ventureid"),
            @NamedQuery(name = "Ventureprofile.findByLogoimagelocation", query = "SELECT v FROM Ventureprofile v WHERE v.logoimagelocation = :logoimagelocation"),
            @NamedQuery(name = "Ventureprofile.findByVisible", query = "SELECT v FROM Ventureprofile v WHERE v.visible = :visible ORDER BY v.venturename")
            //@NamedQuery(name = "Ventureprofile.findByVisibleRange", query = "SELECT v FROM Ventureprofile v WHERE v.visible = :visible ORDER BY v.venturename OFFSET 1 LIMIT 2")
    public class Ventureprofile implements Serializable {
        @GeneratedValue(strategy=GenerationType.AUTO, generator="Ventureprofile.ventureprofileid.seq")
        @SequenceGenerator(name="Ventureprofile.ventureprofileid.seq", sequenceName="ventureprofile_ventureprofileid_seq", allocationSize=1) 
        @Column(name = "ventureprofileid", nullable = false)
        private BigInteger ventureprofileid;
        @Id
        @JoinColumn(name = "ventureid", referencedColumnName = "ventureid")
        private long ventureid;  
        @Lob
        @Column(name = "venturesummary")
        private String venturesummary;
        @Column(name = "logoimagelocation")
        private String logoimagelocation;
        @Column(name = "visible", nullable = false)
        private char visible;
        @Column(table = "venture", name = "venturename", insertable=false)
        private String venturename;
    ...and another entity bean:
    @Entity
    @Table(name = "venturelink")
    @NamedQueries( {
            @NamedQuery(name = "Venturelink.findByVenturelinkid", query = "SELECT v FROM Venturelink v WHERE v.venturelinkid = :venturelinkid"),
            @NamedQuery(name = "Venturelink.findByVentureprofileid", query = "SELECT v FROM Venturelink v WHERE v.ventureprofileid = :ventureprofileid"),
            @NamedQuery(name = "Venturelink.findByLinkurl", query = "SELECT v FROM Venturelink v WHERE v.linkurl = :linkurl"),
            @NamedQuery(name = "Venturelink.findByLinkname", query = "SELECT v FROM Venturelink v WHERE v.linkname = :linkname")
    public class Venturelink implements Serializable {
        @Id
        @GeneratedValue(strategy=GenerationType.AUTO, generator="Venturelink.venturelinkid.seq")
        @SequenceGenerator(name="Venturelink.venturelinkid.seq", sequenceName="venturelink_venturelinkid_seq", allocationSize=1)  
        @Column(name = "venturelinkid", nullable = false)
        private BigInteger venturelinkid;
        @Column(name = "ventureprofileid", nullable = false)
        private long ventureprofileid;
        @Column(name = "linkurl", nullable = false)
        private String linkurl;
        @Column(name = "linkname", nullable = false)
        private String linkname;
    ...    If I uncomment the last NamedQuery ~
    @NamedQuery(name = "Ventureprofile.findByVisibleRange", query = "SELECT v FROM Ventureprofile v WHERE v.visible = :visible ORDER BY v.venturename OFFSET 1 LIMIT 2")I experience the following runtime error:
    javax.ejb.EJBException: nested exception is: java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
            java.rmi.RemoteException: null; nested exception is:
            java.lang.IllegalArgumentException: NamedQuery of name: Venturelink.findByVentureprofileid not found.Container: Glassfish
    Database: Postgres
    OS: WinXP sp2
    Persistence provider: Toplink
    Note that I am not altering 'Venturelink', I am only altering 'Ventureprofile', however errors are manifesting themselves in 'Venturelink'.
    I have heard a rumor that 'OFFSET' and 'LIMIT' are not supported by the majority of persistence providers, but that would be a ridiculous situation... unless the majority of persistence providers lazy-load results when they are pulled from a result set. Is that the case?
    Regardless, this is making me guess what is going on behind the scenes. So, at some point during runtime, is all of my EJB query code getting munged together? And then whatever interprets them into SQL is giving up as soon as it finds a query it doesn't like? That's what this smells like, at least...
    Typically, I find weird errors like this crop up when I'm doing something stupid that a system wasn't designed to handle. So I'd really appreciate it if someone would set me straight.

    Solution, via Doug Clarke at the TopLink forums:
    2. JPA's query language does not support OFFSET and LIMIT. Instead JPA offers setFirstResult(int) and setMaxResult(int) on the Query object. In TopLink this generally translates to JDBC calls of similar names.
    (Thanks Doug!)
    so yeah... unless somebody knows otherwise and I'm wrong (often the case), looks like things choke across multiple entity beans as soon as one malformed query is found. Not good.

  • Bean access error

    I have three jsp pages :
    1. A simple form to input name, age and branch with the action as the next page.
    2. this contains only two jsp tags and nothing else - useBean and setProperty.
    3.calls the bean functions to display the inputted items.
    The first page works perfect.But the second does not.It shows "Unable to load class for JSP"
    I have defined the CLASSPATH as the directory containing the class file of my bean.
    But it just doesn't work
    I use Tomcat 5.5 server.Please help

    Thanks angry cat for the help.It works perfectly now.The changes I made were :
    1.Insert the class into a package and create the corresponding directory structure in WEB-INF
    2. Change the getProperty tag to setProperty.(That was a mistake of the tutorial i read)
    Also, Tomcat has a really annoying feature of showing previously compiled pages when pressing the refresh a number of times.That's a real big headache during deugging which will force you to restart the server each time you make changes to the page.
    So, a better alternative is to delete the cached objects which are stored in the %CATALINA_HOME%\work directory.Just delete all the contents in that directory and say goodbye to confusing (old) error pages

  • Using beans, compile error

    Hi I created a bean called Employee, it belongs to package bean. This class compiles but when I import bean.Employee in other class as "import bean.Employee", I get error saying package bean not found. What am I missing?

    looks like a classpath problem,
    check if your classpath contains the package bean.
    kind regards,
    Koen

  • Sun beans tutorial "error" II

    Forgot to mention the DOS messages:
    D:\DOWNLOAD\Java\beans\beanbox>set CLASSPATH=classes;..\lib\methodtracer.jar;..\
    infobus.jar
    D:\DOWNLOAD\Java\beans\beanbox>java sun.beanbox.BeanBoxFrame
    D:\DOWNLOAD\Java\beans\jars\buttons.jar: jar load failed: java.lang.Error: java.
    beans.IntrospectionException: Method "actionPerformed" should have argument "Act
    ionPerformedEvent"
    java.lang.Error: java.beans.IntrospectionException: Method "actionPerformed" sho
    uld have argument "ActionPerformedEvent"
    at sunw.demo.buttons.ExplicitButtonBeanInfo.getEventSetDescriptors(Expli
    citButtonBeanInfo.java:60)
    at java.beans.Introspector.getTargetEventInfo(Unknown Source)
    at java.beans.Introspector.getBeanInfo(Unknown Source)
    at java.beans.Introspector.getBeanInfo(Unknown Source)
    at sun.beanbox.JarInfo.<init>(JarInfo.java:66)
    at sun.beanbox.JarLoader.createJarInfo(JarLoader.java:292)
    at sun.beanbox.JarLoader.loadJar(JarLoader.java:197)
    at sun.beanbox.JarLoader.loadJarDoOnBean(JarLoader.java:207)
    at sun.beanbox.ToolBoxPanel.addBeansInJar(ToolBox.java:175)
    at sun.beanbox.ToolBoxPanel.<init>(ToolBox.java:105)
    at sun.beanbox.ToolBoxScrollPane.<init>(ToolBox.java:69)
    at sun.beanbox.ToolBox.<init>(ToolBox.java:28)
    at sun.beanbox.BeanBoxFrame.<init>(BeanBoxFrame.java:124)
    at sun.beanbox.BeanBoxFrame.main(BeanBoxFrame.java:91)
    Regards
    Pierre R

    If you are using jdk 1.4, try to use an older version.

  • Connection bean demo error

    Trying to run ConnBeanDemo.jsp and get this error:
    java.sql.SQLException: Io exception: Connection refused(DESCRIPTION=(TMP=)(VSNNUM=150999297)(ERR=12505)(ERROR_STACK=(ERROR=(CODE=12505)(EMFI=4))))
    What does this mean ?

    Hi,
    The error message seems to indicate that the database connection parameters may not be correct. Could you verify the database username, password, hostname, port and SID are correct and try again ?
    HTH,
    Sujatha
    OTN Group,IDC.

  • [11G] Java Bean OracleBarCode -  Error in barcodemaker.renderBarCode

    Hi,
    I managed to get the bar codes to print on Windows using OracleBarCode.jar.
    On Windows I have JAVA 1.6.
    Now I am trying to do the same on Linux 2.6.18 with Java 1.4.2.
    The error message displays in the EM Console:
    Message     C Engine Job ID = 4254 ERR REP-1401: A fatal PL/SQL error occurred in program unit cf_cabformula.
    Détails supplémentaires     ORA-39565: Message 39565 not found; product=RDBMS; facility=ORA
    I have some Java instructions working, but there is a problem with the /temp/file management.
    I have set the directory properties to 777.
    After having scanned all web site for answers, I am at the end of my options.
    Many thanks if you can help.

    What are the java requirements for OracleBarCode.jar?
    Have you considered upgrading java?
    For instance:
    # yum install java-1.6*
    or just the runtime package
    # yum install java-1.6.0-openjdk
    For example:
    # uname -a
    Linux oel54.example.com 2.6.32-100.0.19.el5 #1 SMP Fri Sep 17 17:51:41 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux
    # java -version
    java version "1.4.2"
    # yum install java-1.6.0-openjdk
    # alternatives --config java
    There are 2 programs which provide 'java'.
      Selection    Command
    + 1           /usr/lib/jvm/jre-1.4.2-gcj/bin/java
    *  2           /usr/lib/jvm/jre-1.6.0-openjdk.x86_64/bin/java
    Enter to keep the current selection[+], or type selection number: 2
    # java -version
    java version "1.6.0"

  • SendMail Bean access error.

    I'm trying to use SendMail (Degrelle version) in my form.
    All seems to be ok until I try to send the mail : I get a java.security.AccessControlException.
    I'm using java plugin and I run OC4J server on the same system in which I use the browser.
    I tried to find where and how java.policy should be set but I wasn't able to find a solution.
    I added
    grant {
         permission java.security.AllPermission;
    to every java.policy file I found (more or less) but i get no result.
    How can I solve that issue ?
    Tks
    Tullio

    Tks for Your help, I solved with Your suggestions.
    Now the problem is the following : running I get the following error
    javax.mail.MessagingException: IOException while sending message;
    nested exception is:
         javax.activation.UnsupportedDataTypeException: no object DCH for MIME type multipart/mixed;
         boundary="----=_Part_0_19147537.1169027359218"
         at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:625)
         at javax.mail.Transport.send0(Transport.java:169)
         at javax.mail.Transport.send(Transport.java:98)
         at axioma.a4f.plugin.SendMail.send(SendMail.java:182)
         at axioma.a4f.plugin.SendMail.setProperty(SendMail.java:72)
         at oracle.forms.handler.ComponentItem.setCustomProperty(Unknown Source)
         at oracle.forms.handler.ComponentItem.onUpdate(Unknown Source)
         at oracle.forms.handler.JavaContainer.onUpdate(Unknown Source)
         at oracle.forms.handler.UICommon.onUpdate(Unknown Source)
         at oracle.forms.engine.Runform.onUpdateHandler(Unknown Source)
         at oracle.forms.engine.Runform.processMessage(Unknown Source)
         at oracle.forms.engine.Runform.processSet(Unknown Source)
         at oracle.forms.engine.Runform.onMessageReal(Unknown Source)
         at oracle.forms.engine.Runform.onMessage(Unknown Source)
         at oracle.forms.engine.Runform.sendInitialMessage(Unknown Source)
         at oracle.forms.engine.Runform.startRunform(Unknown Source)
         at oracle.forms.engine.Main.createRunform(Unknown Source)
         at oracle.forms.engine.Main.start(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Caused by: javax.activation.UnsupportedDataTypeException: no object DCH for MIME type multipart/mixed;
         boundary="----=_Part_0_19147537.1169027359218"
         at javax.activation.ObjectDataContentHandler.writeTo(DataHandler.java:851)
         at javax.activation.DataHandler.writeTo(DataHandler.java:305)
         at javax.mail.internet.MimeBodyPart.writeTo(MimeBodyPart.java:1350)
         at javax.mail.internet.MimeMessage.writeTo(MimeMessage.java:1683)
         at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:585)
         ... 19 more
    SendMessage: no object DCH for MIME type multipart/mixed;
         boundary="----=_Part_0_19147537.1169027359218"
    Could You suggest a solution ?
    Tks
    Tullio

Maybe you are looking for

  • How many GB of free space needed to install Leopard?

    Before I install Leopard to upgrade my computer (I currently have Panther), how much free space is recommended? I have about 6 GB, I know not much... I am currently moving a lot of photos over to an external hard drive to free up more space. But not

  • Planned orders overlapping

    Hello, How to overlap the planned orders of the component to that of the superior material assembly? Lead time for the superior assembly for manufacturing 10 piece is 2 days. Say the start date is 31.12 and end date is 02.01 The lead time for the com

  • Inventory for Netware Servers

    Hi, in our Novell Network we have installed ZEN for Desktops and ZEN Asset Management. The Inventory for tehe Workstations and Windows Servers work fine. Is there an Option (nlm)to inventory the Netware (6.5 SP6) Servers in the Asset Mangement ?

  • LabView Run-Time Installation Failure

    Hi I am trying to install the LabVIEW Run-Time Engine 20112 under a Windows XP Professional 32-bit SP3 Versin 2002, but every time I open the executable file, the comand prompt returns the message "Program too big to fit in memory". The machine has 2

  • Can Firefox themes be expanded to fill more of the browser window?

    I love the themes for the firefox browser window. The only complaint I have is that I would like the theme to cover more of the browser window at the top. Lots of the theme pic is covered up by the tools at the top. It would be nice to be able to see