Doubt: NullPointerException instead of RemoteException???

Hi,
Scenario:
1. An external object (hosted by another process) registers itself in WebLogic
JNDI by invoking bind
2. WebLogic EJBs invoke the external object, everything is OK
3. Process hosting the external object goes down
4. Remote reference still exists in JNDI
5. Invoking the remote object throws the following exception:
2002-09-09 15:54:13,492 ERROR [ExecuteThread: '6' for queue: 'default'] cz.oskarmobil.is.bmg.connectivity.protocolhandler.ucp.UCPPostprocessorBean
- Failed to send message to clientconnector: Test-SMSC
java.lang.NullPointerException
     at weblogic.transaction.internal.PropagationContext.getVersion(PropagationContext.java:646)
     at weblogic.transaction.internal.PropagationContext.writeExternal(PropagationContext.java:165)
     at weblogic.common.internal.ChunkedObjectOutputStream.writeObject(ChunkedObjectOutputStream.java:92)
     at weblogic.common.internal.ChunkedObjectOutputStream.writeObjectWL(ChunkedObjectOutputStream.java:113)
     at weblogic.rjvm.MsgAbbrevOutputStream.setTxContext(MsgAbbrevOutputStream.java:111)
     at weblogic.rmi.internal.BasicOutboundRequest.setTxContext(BasicOutboundRequest.java:143)
     at weblogic.rmi.internal.BasicRemoteRef.getOutboundRequest(BasicRemoteRef.java:95)
     at weblogic.rmi.internal.BasicRemoteRef.invoke(BasicRemoteRef.java:116)
     at cz.oskarmobil.is.bmg.connectivity.tcpip.UCPClientConnector_WLStub.sendMessage(Unknown
Source)
     at cz.oskarmobil.is.bmg.connectivity.protocolhandler.ucp.UCPPostprocessorBean.sendMessage(UCPPostprocessorBean.java:294)
     at cz.oskarmobil.is.bmg.connectivity.protocolhandler.ucp.UCPPostprocessorBean.sendMessage(UCPPostprocessorBean.java:237)
     at cz.oskarmobil.is.bmg.connectivity.protocolhandler.ucp.UCPPostprocessorBean.onMessage(UCPPostprocessorBean.java:177)
     at weblogic.ejb20.internal.MDListener.execute(MDListener.java:348)
     at weblogic.ejb20.internal.MDListener.transactionalOnMessage(MDListener.java:282)
     at weblogic.ejb20.internal.MDListener.onMessage(MDListener.java:263)
     at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:2309)
     at weblogic.jms.client.JMSSession.execute(JMSSession.java:2232)
     at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:152)
     at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:133)
Why not RemoteException??? Why NullPointerException??? Wouldn't be RemoteException
the right exception in this case?
Please clarify this, since I thought it is enough to catch only RemoteException
and relookup the object but now seems NullPointerException is also needed to be
catched.
Or, do I miss something?
/SB

while inserting data inserted into Temp_EmployeeDetails1, but not inserting in EmployeeDetails1,
Because it is an INSTEAD OF trigger; instead of directly inserting the data into the base table the Trigger is fired and you have to insert the data on your own, e.g. after validationg or modifying the data.
See
INSTEAD OF INSERT Triggers /
Designing INSTEAD OF Triggers
Use an AFTER Trigger instead or modify your INSTEAD OF Trigger =>
create trigger [dbo].[tr_emp1]
on [dbo].[Employeedetails1]
instead of insert
as
begin
insert into Emploeeydetails1
[EmployeeID],
[Employeename],
[Deptname]
select ins.[EmployeeID],
ins.[Employeename],
ins.[Deptname]
from inserted ins
insert into Temp_Emploeeydetails1
[EmployeeID],
[Employeename],
[Deptname]
select ins.[EmployeeID],
ins.[Employeename],
ins.[Deptname]
from inserted ins
end
Olaf Helper
[ Blog] [ Xing] [ MVP]

Similar Messages

  • Doubt in INSTEAD of trigger

    Hi all,
      This is very basic doubt in Trigger.
    i create 2 tables:
    create table Employeedetails1
    EmployeeID varchar(4) primary key,
    Employeename varchar(10),
    Deptname varchar(5)
    create table Temp_Emploeeydetails1
    EmployeeID varchar(4),
    Employeename varchar(10),
    Deptname varchar(5)
    created Instead of insert trigger on Emploeedetails table.
    USE [DB]
    GO
    /****** Object: Trigger [dbo].[tr_emp1] Script Date: 6/11/2014 12:56:48 PM ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    create trigger [dbo].[tr_emp1]
    on [dbo].[Employeedetails1]
    instead of insert
    as begin
    insert into Temp_Emploeeydetails1
    [EmployeeID],
    [Employeename],
    [Deptname]
    select ins.[EmployeeID],
    ins.[Employeename],
    ins.[Deptname]
    from inserted ins
    end
    GO
    while inserting data inserted into Temp_EmployeeDetails1, but not inserting in EmployeeDetails1,How INSTEAD OF trigger behave.pls help me.
    Thanks

    while inserting data inserted into Temp_EmployeeDetails1, but not inserting in EmployeeDetails1,
    Because it is an INSTEAD OF trigger; instead of directly inserting the data into the base table the Trigger is fired and you have to insert the data on your own, e.g. after validationg or modifying the data.
    See
    INSTEAD OF INSERT Triggers /
    Designing INSTEAD OF Triggers
    Use an AFTER Trigger instead or modify your INSTEAD OF Trigger =>
    create trigger [dbo].[tr_emp1]
    on [dbo].[Employeedetails1]
    instead of insert
    as
    begin
    insert into Emploeeydetails1
    [EmployeeID],
    [Employeename],
    [Deptname]
    select ins.[EmployeeID],
    ins.[Employeename],
    ins.[Deptname]
    from inserted ins
    insert into Temp_Emploeeydetails1
    [EmployeeID],
    [Employeename],
    [Deptname]
    select ins.[EmployeeID],
    ins.[Employeename],
    ins.[Deptname]
    from inserted ins
    end
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • EJBException instead of RemoteException???

    Hi, everybody!
    Does someone knows wyh my 9ias on Unix throws, from remote calls on EJBs, a javax.EJBException instead of a RemoteException??
    The Specs says that the container will wrap the EJBException in a RemoteException.
    This happens on the stand alone OC4J installation, but not on the Enterprise Application Server (same 9.0.3 version, same ear deployed).
    Where am I wrong?
    Thanks

    Hi, everybody!
    Does someone knows wyh my 9ias on Unix throws, from remote calls on EJBs, a javax.EJBException instead of a RemoteException??
    The Specs says that the container will wrap the EJBException in a RemoteException.
    This happens on the stand alone OC4J installation, but not on the Enterprise Application Server (same 9.0.3 version, same ear deployed).
    Where am I wrong?
    Thanks

  • NullPointerException in OraclePreparedStatement.processCompletedBindRow

    In the context of a very slow LAN with very little
    bandwidth left, we occasionally get:
    java.lang.NullPointerException
         at oracle.jdbc.driver.OraclePreparedStatement.processCompletedBindRow(OraclePreparedStatement.java:1581)
         at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:2883)
         at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:2960)
    etc etc
    I guess Oracle loses or lets go of something (some kind
    of time out) and when the action resumes after a long
    lull you get this null pointer exception but that does
    not help me much. Can anybody offer advice on such
    errors? Clearly it is unexpected since Oracle throws
    a "naked" NullPointerException instead of a well-formed
    SQLException with an error code.

    I think you've answered it yourself,
    user setNull or make suer aVar is not null...

  • Can't load images: nullPointerException

    This one is baffling me. NetBeans nor my hard-coded Image seems to feel like showing itself and throws a nullPointerException instead.
    The stacktrace/full error:
    Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
            at maps.mapdata.mlevel1data.<init>(mlevel1data.java:26)
            at maps.mlevel1.initComponents(mlevel1.java:30)
            at maps.mlevel1.<init>(mlevel1.java:19)
            at maps.mlevel1runner.initComponents(mlevel1runner.java:27)
            at maps.mlevel1runner.<init>(mlevel1runner.java:17)
            at maps.mlevel1runner$1.run(mlevel1runner.java:54)
            at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
            at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
            at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
            at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
            at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
            at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
            at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
            at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)This hasn't happened before and I don't know what's causing it, but anyway, here's the code I'm using:
            Image bricks = Toolkit.getDefaultToolkit().getImage("/mazerunner/images/brick.jpg");
            Graphics g = null;
            g.drawImage(bricks, 0, 320, 1932, 40, this);This is probably a simple question/error but google nor my own interpretation of the error aren't seeming to do any good.

    perhaps:
          bricks = ImageIO.read(new File("/mazerunner/images/bricks.jpg"));should be:
          bricks = ImageIO.read(new File("mazerunner/images/bricks.jpg"));Especially if it's relative to your class path. That first slash implies to go back to the root. :\
    But I think someone said earlier, to use the URL, not the file...
          URL u = new File("mazerunner/images/bricks.jpg").toURL();
          bricks = ImageIO.read(u);However, this is how the programmer I'm workign with does it:
          String path = "mazerunner/images/bricks.jpg";
          bricks = ImageIO.read(mlevel1.class.getResource(path));Another note is, if you're just starting out, it's a good time to standardize the names of your classes with ClassName, and methods/variables with methodName.
    Cheers! (Can we play this game when its done?) :)
    -FBL

  • NullPointerException from generated code? (WLS81SP2)

    We are receiving an NPE, and looks like it is coming from
    the generated code. Most oddly, it is intermittent; repeating the operation that causes the error often succeeds. Any thoughts? Here is the stack trace:
    2005-09-12 17:21:31.273 | payprocess.ProcessBatch:process | EJB Exception: ; nested exception is:
         javax.ejb.TransactionRolledbackLocalException: EJB Exception: ; nested exception is: javax.ejb.TransactionRolledbackLocalException: EJB Exception: ; nested exception is: java.lang.NullPointerException
    java.rmi.RemoteException: EJB Exception: ; nested exception is:
         javax.ejb.TransactionRolledbackLocalException: EJB Exception: ; nested exception is: javax.ejb.TransactionRolledbackLocalException: EJB Exception: ; nested exception is: java.lang.NullPointerException
         at weblogic.rjvm.BasicOutboundRequest.sendReceive(BasicOutboundRequest.java:108)
         at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:284)
         at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java:244)
         at org.ecmc.nib.batch.session.PaymentProcessFacade_blomzu_EOImpl_812_WLStub.processPayments(Unknown Source)
         at org.ecmc.nib.batch.payprocess.ProcessPaymentsHelper.queryFredTransPosted(ProcessPaymentsHelper.java:72)
         at org.ecmc.nib.batch.payprocess.ProcessBatch.checkForPayments(ProcessBatch.java:206)
         at org.ecmc.nib.batch.payprocess.ProcessBatch.process(ProcessBatch.java:133)
         at org.ecmc.common.batch.AbstractBatchJob.startBatch(AbstractBatchJob.java:40)
         at org.ecmc.nib.batch.payprocess.ProcessPayments.main(ProcessPayments.java:71)
    Caused by: javax.ejb.TransactionRolledbackLocalException: EJB Exception: ; nested exception is: javax.ejb.TransactionRolledbackLocalException: EJB Exception: ; nested exception is: java.lang.NullPointerException
         at weblogic.ejb20.internal.EJBRuntimeUtils.throwTransactionRolledbackLocal(EJBRuntimeUtils.java:248)
         at weblogic.ejb20.internal.BaseEJBLocalHome.handleSystemException(BaseEJBLocalHome.java:247)
         at weblogic.ejb20.internal.BaseEJBLocalObject.postInvoke(BaseEJBLocalObject.java:327)
         at org.ecmc.nib.batch.session.RouterFacade_s27p4a_ELOImpl.route(RouterFacade_s27p4a_ELOImpl.java:57)
         at org.ecmc.nib.batch.session.PaymentProcessFacadeBean.processPayments(PaymentProcessFacadeBean.java:38)
         at org.ecmc.nib.batch.session.PaymentProcessFacade_blomzu_EOImpl.processPayments(PaymentProcessFacade_blomzu_EOImpl.java:46)
         at org.ecmc.nib.batch.session.PaymentProcessFacade_blomzu_EOImpl_WLSkel.invoke(Unknown Source)
         at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:477)
         at weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerRef.java:108)
         at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:420)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:353)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:144)
         at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:415)
         at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:30)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)

    Oops, sorry about that, grabbed the stack trace from the wrong spot; the correct trace is below:
    ####<Sep 12, 2005 5:21:31 PM CDT> <Info> <EJB> <wlsprd2.ecmc.lan> <ms1> <ExecuteThread: '20' for queue: 'weblogic.kernel.Default'> <PMT_PROCESS> <BEA1-593B17F9A1A85E2AA270> <BEA-010051> <EJB Exception occurred during invocation from home: org.ecmc.nib.model.LoanCancelFacade_fy2xso_HomeImpl@184a0b7 threw exception: java.lang.NullPointerException
    java.lang.NullPointerException
    >
    ####<Sep 12, 2005 5:21:31 PM CDT> <Info> <EJB> <wlsprd2.ecmc.lan> <ms1> <ExecuteThread: '20' for queue: 'weblogic.kernel.Default'> <PMT_PROCESS> <BEA1-593B17F9A1A85E2AA270> <BEA-010051> <EJB Exception occurred during invocation from home: [email protected]89 threw exception: javax.ejb.TransactionRolledbackLocalException: EJB Exception: ; nested exception is: java.lang.NullPointerException
    javax.ejb.TransactionRolledbackLocalException: EJB Exception: ; nested exception is: java.lang.NullPointerException
    java.lang.NullPointerException
    javax.ejb.TransactionRolledbackLocalException: EJB Exception: ; nested exception is: java.lang.NullPointerException
         at weblogic.ejb20.internal.EJBRuntimeUtils.throwTransactionRolledbackLocal(EJBRuntimeUtils.java:248)
         at weblogic.ejb20.internal.BaseEJBLocalHome.handleSystemException(BaseEJBLocalHome.java:247)
         at weblogic.ejb20.internal.BaseEJBLocalObject.postInvoke(BaseEJBLocalObject.java:327)
         at org.ecmc.nib.model.LoanCancelFacade_fy2xso_ELOImpl.localGetLoanPlacementStatusTypCd(LoanCancelFacade_fy2xso_ELOImpl.java:228)
         at org.ecmc.nib.batch.session.payprocess.CheckLoanBalance.update(CheckLoanBalance.java:40)
         at org.ecmc.nib.batch.session.payprocess.RouteToMethods$RouteMeQueryHandler.processStep(RouteToMethods.java:240)
         at org.ecmc.nib.batch.session.payprocess.RouteToMethods$RouteMeQueryHandler.processRow(RouteToMethods.java:111)
         at org.springframework.jdbc.core.JdbcTemplate$RowCallbackHandlerResultSetExtractor.extractData(JdbcTemplate.java:939)
         at org.springframework.jdbc.core.JdbcTemplate$1QueryStatementCallback.doInStatement(JdbcTemplate.java:256)
         at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:204)
         at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:266)
         at org.springframework.jdbc.core.JdbcTemplate.query(JdbcTemplate.java:270)
         at org.ecmc.nib.batch.session.payprocess.RouteToMethods.routeMe(RouteToMethods.java:62)
         at org.ecmc.nib.batch.session.RouterFacadeBean.route(RouterFacadeBean.java:35)
         at org.ecmc.nib.batch.session.RouterFacade_s27p4a_ELOImpl.route(RouterFacade_s27p4a_ELOImpl.java:46)
         at org.ecmc.nib.batch.session.PaymentProcessFacadeBean.processPayments(PaymentProcessFacadeBean.java:38)
         at org.ecmc.nib.batch.session.PaymentProcessFacade_blomzu_EOImpl.processPayments(PaymentProcessFacade_blomzu_EOImpl.java:46)
         at org.ecmc.nib.batch.session.PaymentProcessFacade_blomzu_EOImpl_WLSkel.invoke(Unknown Source)
         at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:477)
         at weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerRef.java:108)
         at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:420)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:353)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:144)
         at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:415)
         at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:30)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)

  • NullPointerException submitting JSP

    I am new to Java and am converting a String array from the request object to an int. That appears to work fine.
    When I submit, I get a NullPointerException, instead of writing several new records to the database.
    I'm very new to this and really appreciate any guidance.
    NOTE: All MM code was written before me, I'm building from the dynamic query.
    // Using QUESTION_ID from request object.
    // Converting from Object, to String, to int.
    String QUESTION_ID = (String)request.getAttribute("QUESTION_ID");
    String QUESTION_ID_t = QUESTION_ID.trim();
    int QUESTION_ID_i = Integer.parseInt(QUESTION_ID_t);
    do {
    MM_editQuery = new StringBuffer("insert into " + MM_editTable);
    MM_editQuery.append(" (").append(MM_tableValues.toString()).append(") values (");
    MM_editQuery.append(MM_dbValues.toString()).append(")");
    } while (QUESTION_ID_i > 0);
    thank you.
    JD

    Below is the current code excerpt as it exists. No more NullPointerException. It does submit once successfully to the database, but on the second iteration, the QUESTION_ID field is not updating to the next value. So, it returns an Error 500 from Oracle as a unique constraint violation.
    Any ideas how to iterate to the next QUESTION_ID value correctly?
    // Using QUESTION_ID from request object.
    // Converting from Object, to String, to int.
    String QUESTION_ID = (String)request.getParameter("QUESTION_ID");
    String QUESTION_ID_t = QUESTION_ID.trim();
    int QUESTION_ID_i = 0;
    try {
    QUESTION_ID_i = Integer.parseInt(QUESTION_ID_t);
    } catch(java.lang.NumberFormatException e) {
    QUESTION_ID_i = 0;
    QUESTION_ID_i++) {
    MM_editQuery = new StringBuffer(" insert into " + MM_editTable );
    MM_editQuery.append( " ( " );
    MM_editQuery.append(MM_tableValues.toString() );
    MM_editQuery.append(" ) values ( " );
    MM_editQuery.append(MM_dbValues.toString() );
    MM_editQuery.append( " ) " );
    QUESTION_ID_i--;
    if (!MM_abortEdit) {
    // finish the sql and execute it
    Driver MM_driver = (Driver)Class.forName(MM_editDriver).newInstance();
    Connection MM_connection = DriverManager.getConnection(MM_editConnection,MM_editUserName,MM_editPassword);
    PreparedStatement MM_editStatement = MM_connection.prepareStatement(MM_editQuery.toString());
    MM_editStatement.executeUpdate();
    MM_connection.close();
    Everyone, thanks so far! It's almost solved.
    -JD

  • RemoteException deprecation and EJBException

    Is throwing a RemoteException from remote interfaces a deprecated
    programming practice?
    I've read some articles and newsgroups which stated that.
    If true, since when exactly is this deprecated?
    Remote interfaces implement java.rmi.Remote so they must throw a
    RemoteException, don't they?
    Should I throw EJBException instead of RemoteException?
    Any remarks, explanations would be greatly helpful.

    Exactly.
    The container implementation of your remote interface will throw a
    RemoteException or javax.transaction.TransactionRolledBackException
    (which is an instance of RemoteException) if you throw an EJBException
    from your Bean implementation.
    If instead you use a Local interface, then you should either get the
    EJBException or javax.ejb.TransactionRolledBackLocalException (which is
    an instance of EJBException).
    It's a bit complicated and I might have been unclear myself for which I
    apologize.
    HTH,
    Dejan
    Yonatan Taub wrote:
    I don't quite follow.
    Do you mean that my remote interface class should declare that it throws a
    RemoteException while my bean implementation class
    should not state in its throws clause a RemoteException?
    "Deyan D. Bektchiev" <[email protected]> wrote in message
    news:[email protected]...
    EJB 1.1 Spec deprecates throwing RemoteExceptions from the Bean
    implementations.
    EJBs can still throw it and the container should behave in the same was
    as if an EJBException was thrown.
    The difference is when all this happens if your EJB has a Remote and
    Local interfaces. The local clients (those using the local interface)
    should get the EJB exception that might be wrapped in a
    TransactionRolledBackException to indicate that the current transaction
    was rolled back, while the remote clients should get the EJB exception
    (or any RuntimeException thrown from your EJB implementation) wrapped in
    a RemoteException.
    HTH,
    Dejan
    Yonatan Taub wrote:
    All of this is known to me.
    Since then I read some more material on the subject.
    It seems that throwing a RemoteException from a bean implementation
    class
    is deprecated.
    RemoteException indicates a system exception and the bean implementation
    class should throw an EJBException.
    The container specific implementation would catch this exception and
    throw a
    RemoteException.
    http://groups.google.com/groups?q=ejb+RemoteException+deprecated+ejbexcepti
    on&hl=en&lr=&ie=UTF-8&oe=UTF-8&selm=8i5b64%24bk8%241%40newsgroups.bea.com&rn
    um=4
    I would appreciate your thoughts on the subject.

  • Columns out of order in ageing report

    Hello,
    When running the 'Customer Receivables Ageing' Report the ageing columns are not in the order they should be. For example:
    The columns should be in this order:
    Customer Code  |  Customer Name  |  Balance Due  |  Future Remit  |  0- 30  |  31-60  |  61-90  |  91-120  |  120+  |  Doubtful Debt
    Instead it is showing in this order - which is wrong:
    Future Remit  |  0-30  |  Customer Name  |  120+  |  31-60  |  61-90  |  91-120  | Customer Code  |  Doubtful Debt  |  Balance Due
    I have located a similar instance on the SAP notes but this refers to their being a possible two instances of this report open. This is not the case. I have had the user log out of SAP and log back in as well as having them restart their pc - both to no avail.
    Would anyone else have any suggestions?
    Regards,
    Juan

    Hello Juan -
    contact SAP Support or Partner immediately - we had the similar situation a logn time ago and someone at SAP had to apply a fix.   I never heard what caused it...
    Take care - Zal

  • Need help:Urgent:MS SQL Server and J2EE Server

    Hello,
    i am developing simple bean managed persistence bean. i want to know how could i use microsoft SQL Server as my database with ejb's in J2EE. i don't want to use cloudscape rather i want to connect through jdbc bridge with sql server. can any body help me out ?
    i have developed DSN for my database with the name of DsnProduct and user name for DB is guest and password is guest123.
    so do i have to change configuration is my J2EE server . or put some additional code. so far i have added the following line in my implementation class
    private String dbName= "java:comp/env/jdbc/ProductDB";
    DataSource ds = (DataSource) ic.lookup(dbName);
    con = ds.getConnection("guest","guest123");
    moreover in server configuration i have added driver
    sun.jdbc.odbc.JdbcOdbcDriver
    and also provide the following JNDI Name
    jdbc/ProductDB
    and
    it's url is
    jdbc:odbc:DsnProduct
    i am thankfull for your support.
    [email protected]

    hi llturro,
    Thanks for answering my question. I have tried out what you suggested, but I still can't fix my problem. The following are the messages that display when I try to run my servlet. It seems that the DataSource, Connection and Statement are ok, however when it comes to the ResultSet the error message appear. What's wrong with my ResultSet coding ?
    ResultSet rs = stat.executeQuery("SELECT ISBN FROM BOOKSINFO WHERE ISBN='"+primarykey+"'");
    setEntityContext Method
    Find by primary key
    DataSource OK
    Connection OK
    Primary Key = 013-00-675721-9
    Statement OK
    java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
    java.rmi.RemoteException: Unknown Exception/Error thrown by EJB method.; nested exception is:
    java.lang.NullPointerException
    java.rmi.RemoteException: Unknown Exception/Error thrown by EJB method.; nested exception is:
    java.lang.NullPointerException
    java.lang.NullPointerException
    <<no stack trace available>>

  • Navigational Attribute Clarification

    Hi all,
    I have gone  thru the forum for this concept.
    Still i have little bit confusion on this.
    Wat i understood is, Nav Attr behaves like a characterstic in Reporting, wat my doubt is instead of creating Nav Attr why don't we go for Creating that as a characterstic.
    If we create a field as a navigational attribute from where it fetches the data during the reporting.
    If i created a fiels as a characterstic from where it fetches the data during reporting.
    Please
    Regards,
    Madhu

    Hi,
    A NAV is already a characteristic.
    I believe that your question is more: why don't we store the characteristic directly in the InfoProvider instead of reporting on a NAV.
    Suppose you sell articles (the basic char; CAMCORDER XYZ)
    Suppose each article has an attribute "STATUS" = LIVE or DISCONTINUED.
    Now you load your sales in a sales cube; you post the selling date, the article ID and it's status. When the article has been just listed (in JAN) to your shop it has the status LIVE, so you'll post something like
    JAN__CAMCORDER XYZ__LIVE__$100
    Now the status is set to discontinued by a buyer in FEB. Still you sell the remaining pieces:
    FEB_CAMCORDER XYZ_DISC_$2000
    Interesting to see that your cube can tell the turn over of this CAMCORDER depeding on its status over time.
    Now the buyers might be interested to report only on LIVE articles.
    Obviously filtering a query on STATUS = LIVE will still show $100 turn over in JAN, even if the article is now discontinued.
    This is when the NAV enters into the into the game. If you enable the attribute STATUS as NAV of MATERIAL in your provider and filter you query ON MATERIAL__STATUS = LIVE, the CAMCORDER XYZ won't show up anymore.
    just adding: during reporting, the X table of your basic char will give the SID of your NAV. Reporting with NAV add joins between tables, which can impact performance if not tuned properly.
    hoping this clear you doubts...
    Olivier.
    Edited by: Olivier Cora on Apr 9, 2008 10:10 AM

  • Help - JDBC MS SQL Server and Cursors Error

    Hello,
    Please help. I am using weblogic 8.1 and MS SQL Server 2000. Using JDBC. I have am calling a stored procedure which outputs a CURSOR. I haveing problems specifying the right java.sql.Type for this. I tried java.sql.Type.OTHER but it fails. The code is as follows
    Connection conn = null;
    CallableStatement stmt = null;
    String sqlProc = "{ call GetDocumentDetails(?,?) }";
    try {
    conn = this.getConnection();               
    stmt = conn.prepareCall(sqlProc);
    stmt.setInt(1, docId);
    stmt.registerOutParameter(2,Types.OTHER);
    stmt.execute();
    ResultSet rs = (ResultSet) stmt.getObject(2);
    while(rs.next()) {
    The exception that I get is
    java.sql.SQLException: [BEA][SQLServer JDBC Driver]The specified SQL type is not supported by this driver.
         at weblogic.jdbc.base.BaseExceptions.createException(Unknown Source)
    PLEASE HELP.
    Thanks in advance
    GM

    hi llturro,
    Thanks for answering my question. I have tried out what you suggested, but I still can't fix my problem. The following are the messages that display when I try to run my servlet. It seems that the DataSource, Connection and Statement are ok, however when it comes to the ResultSet the error message appear. What's wrong with my ResultSet coding ?
    ResultSet rs = stat.executeQuery("SELECT ISBN FROM BOOKSINFO WHERE ISBN='"+primarykey+"'");
    setEntityContext Method
    Find by primary key
    DataSource OK
    Connection OK
    Primary Key = 013-00-675721-9
    Statement OK
    java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
    java.rmi.RemoteException: Unknown Exception/Error thrown by EJB method.; nested exception is:
    java.lang.NullPointerException
    java.rmi.RemoteException: Unknown Exception/Error thrown by EJB method.; nested exception is:
    java.lang.NullPointerException
    java.lang.NullPointerException
    <<no stack trace available>>

  • Problem launching 1.4.2 JRE after 1.5.0 is installed

    I am having problems trying to launch the 1.4.2_16 JRE to run an applet after I have installed the 1.5.0_11 JRE. I have already gone through the documentation on how you supposedly do this (http://java.sun.com/javase/6/webnotes/family-clsid.html and http://java.sun.com/j2se/1.5.0/docs/guide/plugin/developer_guide/version.html and http://java.sun.com/j2se/1.5.0/docs/guide/deployment/deployment-guide/properties.html) and nothing has worked so far.
    Right now, I have 1.4.2_06, 1.4.2_16 and 1.5.0_11 all installed. 1.4.2_06 was our original JRE, but it is not up to the security baseline version for 1.4.2 (which is 1.4.2_10 according to the documentation). So I installed 1.4.2_16 as well. Now, when I use this HTML to launch my applet:
    <html>
    <head>
    <title>TestApplet</title>
    </head>
    <body>
    <object name="TestApplet" classid="clsid:CAFEEFAC-0014-0002-FFFF-ABCDEFFEDCBA" width="280" height="100">
    <param name="CODE" value="test.TestApplet.class">
    <param name="CODEBASE" value="file:///C:/Development/TestApplet/classes">
    <param name="type" value="application/x-java-applet;version=1.4.2_16">
    <param name="archive" value="">
    <param name="cache_option" value="Plugin">
    </object>
    </body>
    </html>
    I would expect it to use 1.4.2_16 without prompting me to OK the version, but I am receiving a NullPointerException instead:
    java.lang.NullPointerException
         at sun.plugin.net.proxy.PluginProxyManager.getProxyInfo(Unknown Source)
         at sun.plugin.net.protocol.http.HttpURLConnection.connectSetup(Unknown Source)
         at sun.plugin.net.protocol.http.HttpURLConnection.connect(Unknown Source)
         at sun.plugin.net.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
         at sun.plugin.net.protocol.http.HttpUtils.followRedirects(Unknown Source)
         at sun.plugin.cache.CachedJarLoader.isUpToDate(Unknown Source)
         at sun.plugin.cache.CachedJarLoader.loadFromCache(Unknown Source)
         at sun.plugin.cache.CachedJarLoader.load(Unknown Source)
         at sun.plugin.cache.JarCache.get(Unknown Source)
         at sun.plugin.net.protocol.jar.CachedJarURLConnection.connect(Unknown Source)
         at sun.plugin.net.protocol.jar.CachedJarURLConnection.getJarFile(Unknown Source)
         at sun.misc.URLClassPath$JarLoader.getJarFile(Unknown Source)
         at sun.misc.URLClassPath$JarLoader.<init>(Unknown Source)
         at sun.misc.URLClassPath$3.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.misc.URLClassPath.getLoader(Unknown Source)
         at sun.misc.URLClassPath.getLoader(Unknown Source)
         at sun.misc.URLClassPath.getResource(Unknown Source)
         at java.net.URLClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(Unknown Source)
         at sun.applet.AppletClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadCode(Unknown Source)
         at sun.applet.AppletPanel.createApplet(Unknown Source)
         at sun.plugin.AppletViewer.createApplet(Unknown Source)
         at sun.applet.AppletPanel.runLoader(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Research on this exception indicates that there may be a way to configure the java console to recognize the JRE that I want it to use. But I have been unable to find the right combination of properties to put into the deployment.properties file to make this happen. Has anyone else run into this problem and been able to solve it?

    For those who have this problem and haven't found a solution elsewhere, I found one that works for us.
    You must configure the 1.4.2 java plug-in to use the version of the 1.4.2 JRE that is the most recent. However, you can't use the 1.5 java control panel to do this. You must use the 1.4.2 control panel. Since the Windows control panel only has an icon for the most recent java control panel, you have to launch it by executing C:\Program Files\Java\j2re1.4.2_16\bin\jpicpl32.cpl from the file system. Then, go to the Advanced tab and select the 1.4.2_16 JRE and apply. This modifies the deployment.properties file (found at C:\Documents and Settings\<userid>\Application Data\Sun\Java\Deployment\deployment.properties) to set the following properties:
         javaplugin.jre.version=1.4.2_16
         javaplugin.jre.path=C\:\\Program Files\\Java\\j2re1.4.2_16

  • R12.1.1 Upgrade - patch 6678700 - American English upgrade patch driver

    Hi All,
    I am doing an upgrade from 11.5.10.2 to R12.1.1. I am executing the patch 6678700. I have given 25 workers to execute this patch. The patch is running for almost 1 hour and now I find only 1 worker is running and all the other workers are waiting.
    I do not find any error, the files are getting allocated only to Worker 1 and getting completed and another file is loaded again on Worker 1 and so on.
    The remaining 24 workers are waiting. The adctrl output is follows
    Control
    Worker Code Context Filename Status
    1 Run AutoPatch R120 pl pat148.odf Running
    2 Run AutoPatch R120 pl Wait
    3 Run AutoPatch R120 pl Wait
    4 Run AutoPatch R120 pl Wait
    5 Run AutoPatch R120 pl Wait
    6 Run AutoPatch R120 pl Wait
    7 Run AutoPatch R120 pl Wait
    8 Run AutoPatch R120 pl Wait
    9 Run AutoPatch R120 pl Wait
    10 Run AutoPatch R120 pl Wait
    11 Run AutoPatch R120 pl Wait
    12 Run AutoPatch R120 pl Wait
    13 Run AutoPatch R120 pl Wait
    14 Run AutoPatch R120 pl Wait
    15 Run AutoPatch R120 pl Wait
    16 Run AutoPatch R120 pl Wait
    17 Run AutoPatch R120 pl Wait
    18 Run AutoPatch R120 pl Wait
    19 Run AutoPatch R120 pl Wait
    20 Run AutoPatch R120 pl Wait
    21 Run AutoPatch R120 pl Wait
    22 Run AutoPatch R120 pl Wait
    23 Run AutoPatch R120 pl Wait
    24 Run AutoPatch R120 pl Wait
    25 Run AutoPatch R120 pl Wait
    Is this behavior normal during this patch ? Only 1st worker is used so only 1 file is processed at a time. All the other workers are waiting.
    Regards
    Sridhar M

    Hi Hussein,
    Thanks for the response.
    I do not find any error the database log or the worker 1 log. I had the doubt because instead of using all 25 processes, the adpatch is using only 1 worker to execute this patch and I have almost 117273 remaining and the count is getting reduced 1 by 1 because of 1 worker.
    Is there any way that we can make other workers which are waiting ?
    Regards
    Sridhar M

  • Execute view links

    Dear All,
    Good Evening,
    My requirement is pass header level(first vo) inventory item id
    to 2nd region
    for this i create a view link based on these 2 view objects.
    for this i wrote the code like this,
    xxcrmForQuoteOrderItemsVOImpl vo = getxxcrmForQuoteOrderItemsVO1();
    String wclause = "item_code='" + itemcode + "'";
    vo.setWhereClause(wclause);
    vo.executeQuery();
    String inventoryitemid=vo.first().getAttribute("InventoryItemId").toString();
    xxcrmForItemsStockDetailsVOImpl vo1 = getxxcrmForItemsStockDetailsVO1();
    String wclause1 = "INVENTORY_ITEM_ID='" + inventoryitemid + "'";
    vo1.setWhereClause(wclause1);
    vo1.executeQuery();
    Its working fine,
    But my doubt is
    instead of writing this code
    how to pass the first view object attribute val to 2nd view object attribute.
    please any one can help me

    Hi,
    If you use view link then there is no need to pass value to second VO it will be achieved through view link.
    Even then if you want to pass then the joining attribute(po_header_id will be joining attribute in po_headers and lines) just include that in your where clause and pass the value to second vo and execute query on second vo.
    Let me know if you want to know anything else.
    Regards,
    Reetesh Sharma

Maybe you are looking for

  • Lcd/monitor driver for win7 on t400

    Where is the lcd/montir driver for win7? It is not listed in the win 7 driver download page.

  • Can I use two webservices in one Java Bean?

    Hi, I have created two webservices (deployed on my local J2EE Engine). I want to use both services in one application and create a new webservice that combines the functionality of both services. Is this possible to combine the two services with a ja

  • My x3 phone can't open any image file

    i updated my phone yestrday and after that, my phone cannot open any image files....it says 'no image to display'......now whats wrong with my phone????

  • Touch Screen not working when plugged in via usb to laptop

    I am hoping someone can help me figure out what to do because I have run out of ideas... When I plug the phone into my laptop via the USB cable provided with the phone (2006 Dell 1710 Inspiron, Windows Vista) the touch screen does not work. The phone

  • Imei on iphone 4 shows its iphone 3gs

    hey i was just wondering, after i noticed that my iphone 4's imei number shows up as an iphone 3gs on a unlocking website... does this even make sense