Problem while using select single

Hii,
I am using a select single command, My code is
Select single * from zbe_gpfd_comment into wa_gpfd_comment where program_name = program
                                          and  box_type = box_type
                                          and     box_name = box_name.
even though the required data is in the database still nothing is retrived in wa_gpfd_comment.No problem with datatype, I have checked them all..but still I am not able to get where the problem is?
PS : program_name,box_type,box_name are primary key of the table zbe_gpfd_comment.

Hi Priya,
Did u checked what values are u passing in where condition for program , box_type , box_name .
are there any values in the above the fields ,
or just try to check once by hardcoding the values of the above 3 like 
Select single * from zbe_gpfd_comment into wa_gpfd_comment where program_name = 'ZABC'
and box_type = 'CUBE'
and box_name = 'NOKIA'.
give the 3 values which are existing in your zbe_gpfd_comment table .
if it works then nothing wrong with select query ,
and check the values in debugging whether the values are coming in :  program , box_type , box_name .
I guess in ur query all the values are null or space , so it is not retriving values.
check subrc also for the query.
Regards,
Aby

Similar Messages

  • Problem in using Select Single

    Hi Experts,
    This is Prabhakar
    The following requirement is giving littlebit trouble to me. Here I don't know how to use Select single for selecting maktx field from MAKT table and how to link it to MARC and MBEW tables. How i will write code using without headerline.
    <b>Requirement is :</b>
    What this is asking is to create a report that contains the following fields in both the Selection Screen and in the report output:
    •     Material Number  -  MARC-MATNR
    •     Material Description  -  *
    •     Warehouse Cycle Count Indicator  -  MARC-ABCIN
    •     Standard Cost  -   MBEW-STPRS**
    •     Profit Center  -  MARC-PRCTR
    Use the following code to get Material Description (RESULT is the material that results from selecting from MARC):
    FORM GET_MATERIAL_DESCRIPTION.
      CLEAR MAKT.
      SELECT SINGLE MAKTX INTO MAKT-MAKTX FROM MAKT
                          WHERE MATNR = RESULT-MATNR
                          AND   SPRAS = SY-LANGU.
    ENDFORM.                               " GET_MATERIAL_DESCRIPTION
    For now, select standard price with the following criteria:
          SELECT SINGLE STPRS
                 FROM MBEW
                WHERE MATNR = RESULT-MATNR
                AND   BWTAR = SPACE.
    There is another field in the key to MBEW – it is BWKEY, and it is related to plant.
    So, first select from MARC, and with the results of MARC, select from MBEW

    Hi,
    It is advisable that dont include Material Description(MAKTX_ and Cost(STPRS), as, if you miss a single letter in material description in the selection screen you will not get your required data, Cost is also same like that so many materials will having same cost and validating will become difficult. If you include these two unnessesarily you are increasing your program complexity. See the code below which satisfy your requirement with good performance.
    Hope This Info Helps YOU.
    <i>Reward Points If It Helps YOU.</i>
    Regards,
    Raghav
    TABLES : mara,marc,mbew,makt.
    DATA : BEGIN OF itab OCCURS 0,
           matnr LIKE  marc-matnr,
           prctr LIKE  marc-prctr ,
           abcin LIKE  marc-abcin,
           maktx LIKE  makt-maktx,
           stprs LIKE  mbew-stprs,
           END OF itab.
    DATA : BEGIN OF itab1 OCCURS 0,
           matnr LIKE marc-matnr,
           stprs LIKE mbew-stprs ,
           END OF itab1.
    DATA : BEGIN OF itab2 OCCURS 0,
           matnr LIKE mara-matnr,
           maktx LIKE makt-maktx,
           END OF itab2.
    *Selection Screen
    SELECTION-SCREEN BEGIN OF BLOCK b1.
    SELECT-OPTIONS : s_matnr FOR marc-matnr,
                     s_prctr FOR marc-prctr,
                     s_abcin FOR marc-abcin.
    SELECTION-SCREEN END OF BLOCK b1.
    *Validations of the selection-screen
    AT SELECTION-SCREEN.
    PERFORM selection_screen_validation.
    START-OF-SELECTION.
      SELECT matnr
             prctr
             abcin
             INTO TABLE itab
             FROM marc
             WHERE matnr IN s_matnr
             AND abcin IN s_abcin
             AND prctr IN s_prctr.
    if not itab[] is initial.
      SELECT matnr
             maktx
             INTO TABLE itab2
             FROM makt
             for all entries in itab
             WHERE matnr = itab-matnr
             AND spras = sy-langu.
    endif.
    if not itab[] is initial.
      SELECT matnr
             stprs
             INTO TABLE itab1
             FROM mbew
             for all entries in  itab
             WHERE matnr = itab-matnr.
    endif.
    sort itab by matnr.
    sort itab1 by matnr.
    sort itab2 by matnr.
    clear : itab, itab1, itab2.
      LOOP AT itab.
        READ TABLE itab2 WITH KEY matnr = itab-matnr BINARY SEARCH .
        if sy-subrc eq 0.
          itab-maktx = itab2-maktx.
        endif.
        READ TABLE itab1 WITH KEY matnr = itab-matnr BINARY SEARCH .
        if sy-subrc eq 0.
          itab-stprs = itab1-stprs.
        endif.
        MODIFY itab.
        clear: itab, itab1, itab2.
      ENDLOOP.
    END-OF-SELECTION.
      LOOP AT itab.
        WRITE : /  itab-matnr,
                   itab-maktx,
                   itab-abcin,
                   itab-stprs,
                   itab-prctr.
      ENDLOOP.
    *&      Form  selection_screen_validation
    *       text
    *  -->  p1        text
    *  <--  p2        text
    form selection_screen_validation .
    data : v_matnr type mara-matnr,
           v_prctr type cepc-prctr,
           v_abcin type t159c-abcin.
    ** validations for material number
    if not s_matnr[] is initial.
       select matnr from mara
                    into v_matnr
                    up to 1 rows
                    where matnr in s_matnr.
       endselect.
       if sy-subrc = 0.
          message e001 with ' Material '.
       endif.
    endif.
    ** validations for Profit Center
    if not s_prctr[] is initial.
       select prctr from cepc
                    into v_prctr
                    up to 1 rows
                    where prctr in s_prctr.
       endselect.
       if sy-subrc = 0.
          message e001 with ' Profit Center '.
       endif.
    endif.
    ** validations for Cycle Count Indicator
    if not s_abcin is initial.
       select abcin from t159c
                    into v_abcin
                    up to 1 rows
                    where abcin in s_abcin.
       endselect.
       if sy-subrc = 0.
          message e001 with ' Count Indicator '.
       endif.
    endif.
    endform.                    " selection_screen_validation

  • Problem while using SELECT Operation in DB Adapter

    Hi,
    I am trying to use the DB Adapter with SELECT operation on one of the tables in our database. The query looks some thing like,
    SELECT ORDER_HEADER_ID, SHIPPING_GRP_ID, ATG_SHIPPING_GROUP_ID, SO_HEADER_ID, ORDER_NUMBER, SHIP_ITEM_ID FROM <TABLE_NAME> WHERE (<CNAME> = #orderID)
    I have selected order_header_id as the primary key during the creation of my process. And the rest are selected as part of the query.
    The problem that I having is that I am getting the same data for all the rows, the output is as follows
    <root>
    <XxacOrderStatusDetail>
    <orderHeaderId>265</orderHeaderId>
    <shippingGrpId>262</shippingGrpId>
    <ShippingGroupId>sg832798</ShippingGroupId>
    <soHeaderId>4016992</soHeaderId>
    <orderNumber>82555268</orderNumber>
    <ShipItemId>r421379</ShipItemId>
    </XxacOrderStatusDetail>
    <XxacOrderStatusDetail>
    <orderHeaderId>265</orderHeaderId>
    <shippingGrpId>262</shippingGrpId>
    <ShippingGroupId>sg832798</ShippingGroupId>
    <soHeaderId>4016992</soHeaderId>
    <orderNumber>82555268</orderNumber>
    <ShipItemId>r421379</ShipItemId>
    </XxacOrderStatusDetail>
    <XxacOrderStatusDetail>
    <orderHeaderId>265</orderHeaderId>
    <shippingGrpId>262</shippingGrpId>
    <ShippingGroupId>sg832798</ShippingGroupId>
    <soHeaderId>4016992</soHeaderId>
    <orderNumber>82555268</orderNumber>
    <ShipItemId>r421379</ShipItemId>
    </XxacOrderStatusDetail>
    </root>
    For the output above the "ShipItemId" should return different values but it is returning the same for all the results that are returned. As in the first entry should have r421379 then r421380 and then r421381 for the last one.
    When I try including the "ShipItemId" as a primary key I am able to get the correct value but my process will fault in case if there is a null value for the column.
    I wanted to know if there is a way that I can resolve this problem?
    JDeveloper Version: Build JDEVADF_11.1.1.6.0_GENERIC_111205.1733.6192.1
    SOA Version is also 11.1.1.6.0
    Database Driver(Selected during data source creation on WLS) : Oracle's Driver(Thin XA) for Instance connection
    Can anyone please help me with this?
    Thanks.

    Hi,
    You are in a catch 22 situation, it won't work without a proper primary key defined, and a primary key is not suppose to contain nulls...
    This type of case is one of the reasons I always tend to prefer to have surrogate keys on the database... If you had a surrogate key defined your problem just wouldn't exist.
    Some references bellow...
    http://pic.dhe.ibm.com/infocenter/cbi/v10r1m1/index.jsp?topic=%2Fcom.ibm.swg.ba.cognos.ug_ds.10.1.1.doc%2Fc_surrogatekeys.html
    http://en.wikipedia.org/wiki/Surrogate_key
    Cheers,
    Vlad

  • Problem while using select

    I am using the <select>[ tag to display a pull down in my jsp.. I have a menu bar which has another pull down...When i try to select something from the menu if there is a select pull down below it then the select pull down overlaps the menu pull down.How can i remove this problem..

    move the select field.
    I think there's a trick to doing drop-down menus with an iframe in a div as the drop-down part that would cover that up.

  • Problem while using trigger from line of 6534

    I have faced some problems while using triggering with 6534. They are listed below. Please provide solution me.
    1. ) i was using pattern input with triggering(buffered) in which i am using the example given in library buffered pattern input-triggered.vi
    Now i am using port 0 to take input. From line 0 of port 2 i want to generate a pulse which can trigger the operation & start acquisition. For that i am using write to single line.vi . My DPULL is open so bydefault the line will be at low level & by vi i will make it high which will trigger the operation.
    In normal condition if we use write to a single line.vi it will write the given status on that line within a fraction of second and abort execution. But when i am usin
    g it for trigger in following manner, it did not work.
    First i started the VI buffered pattern input-triggered.vi.I have configured the start trigger with leading edge trigger. I have set the time limit properly.Synchronous operation is set at the front panel of vi.
    Now if start the write to a single line.vi to give start trigger, nether it triggered the operation,nor it abort execution of single line write vi.When time out occured in triggered vi, then both vis stopped simultaneously. Why this happened?
    2.) Similar problem i faced when i wanted to perform the change detection.vi Port 0 is configured for input.Line 1 to 7 are fixed with some status by connecting them to Vcc or GND. I have connected port 0 line 0 with port 2 line 0. So when i change status of line 0 of port 2 change detection should be occured o port 0. i am changing the status of line 0 of port 2 by write to a single line.vi But here i faced same problem as first that it was not writing to port 0 line 0. And bo
    th process stopped when time limit occured in change detection vi.
    So what can be the problem? Please help me.

    Hi Vishal,
    1) You should check to see that when you are writting a static 1 to line 0 you see a pulse high. You should also make sure that you wire this line to the STARTTRIG for group 0.
    2) If you solve question 1 you will also have question 2 solved.
    It might be helpful to create a program that configures both programs (pattern I/O on port 0 and static I/O on port 2) in the same program and then starts both groups. I would do a little testing to see exactly what signals you do or do not see.
    Ron

  • Problem while using h:selectOneMenu tag

    Hello All,
    I am facing a problem while using the <h:selectOneMenu in my JSP.
    My requirement is as below,
    I am having a list of manager in the select box.
    User will select any of the manager and click a command link to assign the manager.
    On click of this command link backerbean method should be invoked.
    My problem is,
    I am able to display the list box without any problem.
    But Once I select any value from the list box the command link is not working.
    That is click on the command link is not invoking the backer bean method.
    My code look as below,
    JSP
    <td>                 
    <h:selectOneMenu value="#pc_EmployeeDetailsView.assignedMgrPositionId}" id="assignedMgrPositionId" style="width: 170px">
    <f:selectItems value="#{pc_EmployeeDetailsView.managerList}" />
    </h:selectOneMenu>
    </td><td>�</td>
    <td><h:commandLink action="#pc_EmployeeDetailsView.assignManager}" onmousedown="setEditAction('assign');">
    <h:outputText value="Assign"></h:outputText>
    </h:commandLink></td>Backer Bean
         SelectItem managerSelectItem =  new SelectItem("0","Select Manager");
         ArrayList managerSelectItemList = new ArrayList(); 
         managerSelectItemList.add(managerSelectItem);
         int managerListSize = managerSearchList.size();
         for (int i=0; i<managerListSize; i++) {
              Employee manager = (Employee) managerSearchList.get(i);
              managerSelectItem =  new SelectItem(StringUtils.isNotEmpty(manager.getOrgInfo().getPositionNumber())?manager.getOrgInfo().getPositionNumber():"",StringUtils.isNotEmpty(manager.getFullDisplayName())?manager.getFullDisplayName():"");
              managerSelectItemList.add(managerSelectItem);
         setManagerList(managerSelectItemList);Please help me on this.
    Thanks In Advance

    I have solved this problem by putting the list in portlet session and allowing the get method to get the SelectItem from the session

  • Problem while using DTW

    Hello Experts,
    I am puzzled with a problem while using DTW tool for migration.
    while connencting this tool with database, I am facing problem
    Connection to (server Nane) has failed
    Error code:126
    Fail to load OBServer.dll
    Hope You will answer my query soon.
    Thanks,
    Regards,
    Saurabh Jain

    Saurabh Jain,
    Enter sap b1 user id and password.
    Enter server name correctly.
    Click options,Click choose a database,Click
    Choose databse,Select correct DB type,
    Enter DB user,Correct DB password,Click Refresh,
    Select Correct database name you want to upload.
    Click Ok.
    Hope above answer helps.
    Jeyakanthan

  • AUDIO PROBLEM WHILE USING OR ALONG WITH WEBCAM

    Hi friends,
    SUBJECT : AUDIO PROBLEM WHILE USING OR ALONG WITH WEBCAM
    I'm not getting any sound while using web-cam.
    I tried recording my voice , and played.. i can see my video but audio
    Do we have any settings where i need to cross-check to make sure that everything being turned-on ?
    My laptop details:-
    HP Pavilion dv6 laptop
    Operating system Installed - Windows 7
    Can someone help me with this?
    Thanks
    kiran

    Hi,
    not sure if coincidence or the same question, but the same question got asked internally. The seeded option is required to get the OJSP filter installed. Here's the internal response
    ADF View integration with MDS not configured
    In web.xml, you need to have mds-ojsp intg enabled to load jspx base + customizations from MDS. In your web project in Jdev, go to ADFv project properties and select “Seeded customization” property. It would enable mds-jsp engine configuration in web.xml. If you want to use user personalization feature at runtime, you would need to select “User customization” property as well which would enable ADFv change persistence config in web.xml.
    Warning: Some of the metadata under ... is packaged as part of both WAR and MAR. This metadata cannot be accessed from WAR using MDS.
    For these two packages, you are including the files in both WAR & MAR. This warning conveys that since these base files are being put in MAR, at runtime they would be read from mds repository & not from WAR.
    Frank

  • Error while using selection option variable in the selection screen

    Hi All,
    I am facing an issue while using selection option variable in the selection screen for one of my reports.
    Scenario: For the field "Region From" we need to have wild card logic () in tes selection screen, for example if we put "BE" in the selection screen for the field Region From then the query should be executed only for those "Region From" values which begin from "BE".
    Approach: For the above requirement I have made a selection option variable for "Region From". This allows use wild card
    But when the report is executed we get the following error:
    "System error in program CL_RSR_REQUEST. Invalid filter on ETVRGNFR".
    (ETVRGNFR is technical name of the info object Region From)
    Though the report is executed it displays all the values for the field "Region From" irrespective of the selection given in the selection screen.
    Please give suggestions / alternate solutions to crack this issue.
    Thanks in advance
    Regards
    Priyanka.

    Hi,
    Try to use a variable of type Customer Exit and do the validation inside the exit to display according to your request.
    This is just my view, i am not sure if u are already using this or Char. Variable.
    Cheers.
    Ranga.

  • I am having problem while using ms word with anjal( OS X Lion 10.7.5 (11G63))

    i am having problem while using ms word with anjal  is not working properly but its working in facebook and other areas.i need and  its very important to using tamil fonts for my job.can anyone help me out from this problem.
    thanking you
    by
    moses

    Those who are knowledgable in this area (myself not among them) say that Word's support for Asian languages is faulty. The best word processor for that use is "Mellel."

  • Problem while using receive after invoke activity

    Hi,i have got a problem while using a receive activity,after a invoke activity.The invoke acivity seems that does not work and also the debugger runs forever....But if i remove the receive activity,the invoke activity works fine.
    <h2>The output of GlassfishV2 is:<h2>
    This is from the exception block.
    com.sun.bpel.model.meta.impl.RInvokeImpl@f590c6={<?xml version="1.0" encoding="utf-8" ?>
    *<invoke name="Invoke1"*
    partnerLink="PartnerLink2"
    portType="tns:test_service3"
    operation="luizao"
    inputVariable="LuizaoIn"
    outputVariable="LuizaoOut"
    xmlns:tns="http://dim.test.org/"></invoke>}
    *[Fatal Error] :1:1: Content is not allowed in prolog.*
    System exception occured while executing a business process instance.
    java.lang.NullPointerException: WSDL message model is null
    at com.sun.jbi.engine.bpel.core.bpel.debug.WSDLMessageImpl.<init>(WSDLMessageImpl.java:56)
    at com.sun.jbi.engine.bpel.core.bpel.engine.impl.CallFrame.onFault(CallFrame.java:380)
    at com.sun.jbi.engine.bpel.core.bpel.model.runtime.impl.SyntheticThrowUnitImpl.doAction(SyntheticThrowUnitImpl.java:91)
    at com.sun.jbi.engine.bpel.core.bpel.engine.impl.BPELInterpreter.execute(BPELInterpreter.java:145)
    at com.sun.jbi.engine.bpel.core.bpel.engine.BusinessProcessInstanceThread.execute(BusinessProcessInstanceThread.java:76)
    at com.sun.jbi.engine.bpel.core.bpel.engine.impl.BPELProcessManagerImpl.process(BPELProcessManagerImpl.java:818)
    at com.sun.jbi.engine.bpel.core.bpel.engine.impl.EngineImpl.process(EngineImpl.java:261)
    at com.sun.jbi.engine.bpel.core.bpel.engine.impl.EngineImpl.process(EngineImpl.java:742)
    at com.sun.jbi.engine.bpel.BPELSEInOutThread.processRequest(BPELSEInOutThread.java:401)
    at com.sun.jbi.engine.bpel.BPELSEInOutThread.processMsgEx(BPELSEInOutThread.java:240)
    at com.sun.jbi.engine.bpel.BPELSEInOutThread.run(BPELSEInOutThread.java:158)
    This is from the exception block.
    I think correlation sets are ok(i have two receive activities).
    I use Netbeans6.0 IDE.
    Can anyone help me?
    Sorry,but i don't speak English fluently

    I can't debug it more,because the bpel variables window disappears when the proccess comes to invoke activity.
    The bpel code is simple:I have got a sequence with follow activities:
    receive
    assign
    invoke
    receive
    assign
    reply
    The code is:
    <?xml version="1.0" encoding="UTF-8"?>
    <process
        name="Testfile2"
        targetNamespace="http://enterprise.netbeans.org/bpel/Test2/Testfile2"
        xmlns="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
        xmlns:xsd="http://www.w3.org/2001/XMLSchema"
        xmlns:tns="http://enterprise.netbeans.org/bpel/Test2/Testfile2" xmlns:ns0="http://xml.netbeans.org/schema/Testfile2" xmlns:ns1="http://j2ee.netbeans.org/wsdl/Testfile2">
       <import namespace="http://j2ee.netbeans.org/wsdl/Testfile2" location="Testfile2.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/>
       <import namespace="http://enterprise.netbeans.org/bpel/test_service3Wrapper" location="Partners/test_service3/test_service3Wrapper.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/>
       <import namespace="http://dim.test.org/" location="Partners/test_service3/test_service3.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/>
       <import namespace="http://enterprise.netbeans.org/bpel/test_service2Wrapper" location="Partners/test_service2/test_service2Wrapper.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/>
       <import namespace="http://dim.test.org/" location="Partners/test_service2/test_service2.wsdl" importType="http://schemas.xmlsoap.org/wsdl/"/>
       <partnerLinks>
          <partnerLink name="PartnerLink3" xmlns:tns="http://enterprise.netbeans.org/bpel/test_service2Wrapper" partnerLinkType="tns:test_service2LinkType" myRole="test_service2Role"/>
          <partnerLink name="PartnerLink2" xmlns:tns="http://enterprise.netbeans.org/bpel/test_service3Wrapper" partnerLinkType="tns:test_service3LinkType" partnerRole="test_service3Role"/>
          <partnerLink name="PartnerLink1" xmlns:tns="http://j2ee.netbeans.org/wsdl/Testfile2" partnerLinkType="tns:Testfile21" myRole="Testfile2PortTypeRole"/>
       </partnerLinks>
       <variables>
          <variable name="Testfile2OperationOut" xmlns:tns="http://j2ee.netbeans.org/wsdl/Testfile2" messageType="tns:Testfile2OperationReply"/>
          <variable name="Operation1In" xmlns:tns="http://dim.test.org/" messageType="tns:operation1"/>
          <variable name="LuizaoOut" xmlns:tns="http://dim.test.org/" messageType="tns:luizaoResponse"/>
          <variable name="LuizaoIn" xmlns:tns="http://dim.test.org/" messageType="tns:luizao"/>
          <variable name="Testfile2OperationIn" xmlns:tns="http://j2ee.netbeans.org/wsdl/Testfile2" messageType="tns:Testfile2OperationRequest"/>
       </variables>
       <correlationSets>
          <correlationSet name="CorrelationSet1" properties="ns1:My_Property"/>
       </correlationSets>
       <sequence>
          <receive name="Receive1" createInstance="yes" partnerLink="PartnerLink1" operation="Testfile2Operation" xmlns:tns="http://j2ee.netbeans.org/wsdl/Testfile2" portType="tns:Testfile2PortType" variable="Testfile2OperationIn">
             <correlations>
                <correlation set="CorrelationSet1" initiate="yes"/>
             </correlations>
          </receive>
          <assign name="Assign1">
             <copy>
                <from>$Testfile2OperationIn.part1/ns0:ena</from>
                <to>$LuizaoIn.parameters/ena</to>
             </copy>
             <copy>
                <from>$Testfile2OperationIn.part1/ns0:id</from>
                <to>$LuizaoIn.parameters/id</to>
             </copy>
          </assign>
          <invoke name="Invoke1" partnerLink="PartnerLink2" operation="luizao" xmlns:tns="http://dim.test.org/" portType="tns:test_service3" inputVariable="LuizaoIn" outputVariable="LuizaoOut"/>
          <receive name="Receive2" createInstance="no" partnerLink="PartnerLink3" operation="operation1" xmlns:tns="http://dim.test.org/" portType="tns:test_service2" variable="Operation1In">
             <correlations>
                <correlation set="CorrelationSet1" initiate="no"/>
             </correlations>
          </receive>
          <assign name="Assign2">
             <copy>
                <from>$Operation1In.parameters/hik</from>
                <to>$Testfile2OperationOut.part1/ns0:hik</to>
             </copy>
          </assign>
          <reply name="Reply1" partnerLink="PartnerLink1" operation="Testfile2Operation" xmlns:tns="http://j2ee.netbeans.org/wsdl/Testfile2" portType="tns:Testfile2PortType" variable="Testfile2OperationOut"/>
       </sequence>
    </process>If it's a bug,that means that i can't use second receive after invoke any more?

  • Volume problem while using headphone

    when I use my headphone I have no problem while talking on phone but when I try to listen to music or watch you tube I cannot hear the left side. I restored iphone and got replacement but same problem. I changed headphones but that wasent the problem as well. please help!

    s. laxnars wrote:
    I am facing some problem while using preparedStatement.setNull while using Bea's Orale XA Driver, the same code works fine with oracle XA driver,
    Can any one plz help on this.
    Here the code
    String insertIntoTestRequestQuery = "Insert into A values(?,?,?)";
    PreparedStatement dbInsertStatement = connection.prepareStatement(insertIntoTestRequestQuery);
    dbInsertStatement.setLong(1, 3L);
    dbInsertStatement.setString(2,"test");
    dbInsertStatement.setNull(3,java.sql.Types.NULL);
    I am using Weblogic 9.2 with Oracle 9i
    here the Spy Log
    spy>> PreparedStatement[163].setNull(int parameterIndex, int sqlType)
    spy>> parameterIndex = 1
    spy>> sqlType = 0
    spy>> java.sql.SQLException: [BEA][Oracle JDBC Driver]The specified SQL type is not supported by this driver. ErrorCode=0 SQLState=HY004
    java.sql.SQLException: [BEA][Oracle JDBC Driver]The specified SQL type is not supported by this driver.
         at weblogic.jdbc.base.BaseExceptions.createException(Unknown Source)
         at weblogic.jdbc.base.BaseExceptions.getException(Unknown Source)
         at weblogic.jdbc.base.BasePreparedStatement.validateSqlType(Unknown Source)
         at weblogic.jdbc.base.BasePreparedStatement.setObjectInternal(Unknown Source)
         at weblogic.jdbc.base.BasePreparedStatement.setNull(Unknown Source)
         at weblogic.jdbcx.base.BasePreparedStatementWrapper.setNull(Unknown Source)
         at weblogic.jdbcspy.SpyPreparedStatement.setNull(Unknown Source)
         at weblogic.jdbc.wrapper.PreparedStatement.setNull(PreparedStatement.java:491)Hi. This is a known issue. Call official BEA support and open a case
    so you will be notified when a new driver will have the fix. In the
    meantime, if you set the Type to correspond to the DBMS's column type,
    it will work. In fact, I'll bet that if you just set the Type to VARCHAR
    it will work, regardless of the actual column type...
    Joe

  • Problem while using BEA's Oracle Driver

    I am facing some problem while using preparedStatement.setNull while using Bea's Orale XA Driver, the same code works fine with oracle XA driver,
    Can any one plz help on this.
    Here the code
    String insertIntoTestRequestQuery = "Insert into A values(?,?,?)";
    PreparedStatement dbInsertStatement = connection.prepareStatement(insertIntoTestRequestQuery);
    dbInsertStatement.setLong(1, 3L);
    dbInsertStatement.setString(2,"test");
    dbInsertStatement.setNull(3,java.sql.Types.NULL);
    I am using Weblogic 9.2 with Oracle 9i
    here the Spy Log
    spy>> PreparedStatement[163].setNull(int parameterIndex, int sqlType)
    spy>> parameterIndex = 1
    spy>> sqlType = 0
    spy>> java.sql.SQLException: [BEA][Oracle JDBC Driver]The specified SQL type is not supported by this driver. ErrorCode=0 SQLState=HY004
    java.sql.SQLException: [BEA][Oracle JDBC Driver]The specified SQL type is not supported by this driver.
         at weblogic.jdbc.base.BaseExceptions.createException(Unknown Source)
         at weblogic.jdbc.base.BaseExceptions.getException(Unknown Source)
         at weblogic.jdbc.base.BasePreparedStatement.validateSqlType(Unknown Source)
         at weblogic.jdbc.base.BasePreparedStatement.setObjectInternal(Unknown Source)
         at weblogic.jdbc.base.BasePreparedStatement.setNull(Unknown Source)
         at weblogic.jdbcx.base.BasePreparedStatementWrapper.setNull(Unknown Source)
         at weblogic.jdbcspy.SpyPreparedStatement.setNull(Unknown Source)
         at weblogic.jdbc.wrapper.PreparedStatement.setNull(PreparedStatement.java:491)

    s. laxnars wrote:
    I am facing some problem while using preparedStatement.setNull while using Bea's Orale XA Driver, the same code works fine with oracle XA driver,
    Can any one plz help on this.
    Here the code
    String insertIntoTestRequestQuery = "Insert into A values(?,?,?)";
    PreparedStatement dbInsertStatement = connection.prepareStatement(insertIntoTestRequestQuery);
    dbInsertStatement.setLong(1, 3L);
    dbInsertStatement.setString(2,"test");
    dbInsertStatement.setNull(3,java.sql.Types.NULL);
    I am using Weblogic 9.2 with Oracle 9i
    here the Spy Log
    spy>> PreparedStatement[163].setNull(int parameterIndex, int sqlType)
    spy>> parameterIndex = 1
    spy>> sqlType = 0
    spy>> java.sql.SQLException: [BEA][Oracle JDBC Driver]The specified SQL type is not supported by this driver. ErrorCode=0 SQLState=HY004
    java.sql.SQLException: [BEA][Oracle JDBC Driver]The specified SQL type is not supported by this driver.
         at weblogic.jdbc.base.BaseExceptions.createException(Unknown Source)
         at weblogic.jdbc.base.BaseExceptions.getException(Unknown Source)
         at weblogic.jdbc.base.BasePreparedStatement.validateSqlType(Unknown Source)
         at weblogic.jdbc.base.BasePreparedStatement.setObjectInternal(Unknown Source)
         at weblogic.jdbc.base.BasePreparedStatement.setNull(Unknown Source)
         at weblogic.jdbcx.base.BasePreparedStatementWrapper.setNull(Unknown Source)
         at weblogic.jdbcspy.SpyPreparedStatement.setNull(Unknown Source)
         at weblogic.jdbc.wrapper.PreparedStatement.setNull(PreparedStatement.java:491)Hi. This is a known issue. Call official BEA support and open a case
    so you will be notified when a new driver will have the fix. In the
    meantime, if you set the Type to correspond to the DBMS's column type,
    it will work. In fact, I'll bet that if you just set the Type to VARCHAR
    it will work, regardless of the actual column type...
    Joe

  • Problem while using netscape.ldap.util.ConnectionPool

    Hi,
    We have a problem while using netscape's netscape.ldap.util.ConnectionPool class.
    ( iPlanet 5.1
    ldap sdk 4.0 )
    First we obtain a connection from the ConnectionPool class by using the constructor as below
    //create pool
    pool = new ConnectionPool(10, 50, "localhost", 389, "cn=Directory Manager", "password");
    //get conn from pool
    conn = pool.getConnection();
    After doing some ldap read only operations if we disconnect using
    //disconnect
    conn.disconnect();
    the junit test cases whihc use the above code
    take sometime to execute fully
    Sometimes there's no response also.
    Also just the disconnection alone takes quite some time(~1000 ms)..
    If the conn.disconnect() is not used then its pretty fast.
    Could anybody throw more light on this issue
    Thanx

    I think i found the problem..correct me if i'm wrong
    I tried using
    pool.close( conn );
    and the time taken now is almost negligible
    If you can give suggestions I would be only glad

  • Problem while using struts 1.3.8

    Hi All,
    I have some problem while using struts 1.3.8 in my application.
    I am using OC4J 10.1.2.0.2, my simple coding is follows:
    <%@ page contentType="text/html;charset=utf-8"%>
    <%@ taglib uri="/WEB-INF/tlds/struts-tiles.tld" prefix="tiles"%>
    <%@ taglib uri="/WEB-INF/tlds/struts-bean.tld" prefix="bean"%>
    <%@ taglib uri="/WEB-INF/tlds/struts-html.tld" prefix="html"%>
    <%@ taglib uri="/WEB-INF/tlds/struts-logic.tld" prefix="logic"%>
    <html:xhtml />
    <html:form action="<action page>" method="POST" enctype="multipart/form-data" >
    <p>
         <label for="Subject" ><span class="Mandatory">*</span> Subject:</label>
         <html:text size="40" property="subject" />
    </p>
    <p>
         <label for="upload" >Attachment:</label>
         <html:file size="40" property="attachmentFile" />
    </p>
    <p>
             <html:submit />
    </p>after clicking my the submit button in the server console i m getting
    JAAS-OC4J: JAZNFilter.doFilter - unable to find the current servlet
    javax.servlet.ServletException: JAAS-OC4J: JAZNFilter.doFilter - unable to find the current servlet
    at oracle.security.jazn.oc4j.JAZNFilter.doFilter(Unknown Source)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:663)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)
    at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:222)
    at org.apache.struts.tiles.commands.TilesPreProcessor.doForward(TilesPreProcessor.java:260)
    at org.apache.struts.tiles.commands.TilesPreProcessor.execute(TilesPreProcessor.java:217)
    at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:191)
    at org.apache.commons.chain.generic.LookupCommand.execute(LookupCommand.java:305)
    at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:191)
    at org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:283)
    at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
    at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
    at oracle.security.jazn.oc4j.JAZNFilter$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
    at oracle.security.jazn.oc4j.JAZNFilter.doFilter(Unknown Source)
    at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:16)
    at com.ed.ecomm.edcore.web.filters.SecurityFilter.doFilter(SecurityFilter.java:196)
    at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:20)
    at com.ed.ecomm.edcore.web.filters.MonitoringFilter.doFilter(MonitoringFilter.java:138)
    at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:20)
    at com.ed.ecomm.edcore.web.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:92)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:659)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:330)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:285)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:126)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
    at java.lang.Thread.run(Thread.java:534)
    further i investigate and i removed the "enctype=multipart/form-data" from the form attribute its working fine..
    but without using this attribute struts doesn't support the "upload" i.e, form file... its throwing another exeception..
    could you anyone please let me know whether i can change my OC4J server version of anything need to do..
    many thanks in advance

    I'm having the same exact problem. Any ideas?
    Schema sfactory;
    Schema schema;
    sfactory = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);
    ErrorHandler eHandler = new MyErrorHandler();
    sfactory.setErrorHandler(eHandler);        
    LSResourceResolver lsrResolver = new MyLSResourceResolver();
    sfactory.setResourceResolver(lsrResolver);
    schema = sfactory.newSchema(new File(argv[1]));The last line gives me NullPointerException. I know the file (argv[1]) exists and can be read because I can print it with a BufferedReader.

Maybe you are looking for

  • ABAP API  MDM  vs Standard MDM !!!

    Maybe the expression that I am using is not the best one and hope that someone can give me any clarifications. What I am intending is to know: 1)     If using ABAP API is the best way to implement MDM purposes or if he’s an alternative to implement M

  • More Windows XP classpath BS

    I've been trying to install a Java X10 home automation program called Alice (http://jhome.sourceforge.net) on XP- I wanna squirt water into a birdbath for 10-15 seconds several times a day, and the commercial programs only have 1 minute granularity (

  • Setting for 'status of AuC' in the definition of the asset class

    where should i check the setting for 'status of AuC' in the definition of the asset class

  • How can i uninstall yosemeti?

    I recently downloaded Yosemite and wish to uninstall it and re-install OS X 10.5. How can I do this? I do not have installation discs for either operating system

  • I want to keep my Bookmarks separate from my Favorites but do not know how to do it.

    I am not having error problems. In the past I used IE for my browser but now use Firefox. I have Windows 7, I would like to have a separate category for My Favorites from Bookmarks. I cannot find any reference as to how to do this or if it can be don