Bind problem for varchar2 of object type??

Hello all,
I am trying out binding Oracle Object types to java object types using the SQLData interface.
I created a simple object type called employee with the syntax
create type employee as object (empName varchar2(50),empNo number(9));
I then created a class called EmplyoeeObj which implements the interface. The code for the readSQL and
writeSQL methods are below:
public void readSQL(SQLInput stream, String typeName) throws SQLException {
empName = stream.readString();
empNo = stream.readInt();
public void writeSQL(SQLOutput stream) throws SQLException {
stream.writeString(empName);
stream.writeInt(empNo);
empName is a String and empNo is an int. The code that does the calling is:
String query = "{call test_employee(?)}";
Map map = connection.getTypeMap();
map.put("CISWEB.EMPLOYEE",
Class.forName("test.jdbc.EmployeeObj"));
/*Set back the type map with the new mappings*/
connection.setTypeMap(map);
/*Create a statement to make the call */
ocs = (OracleCallableStatement)connection.prepareCall(query);
ocs.registerOutParameter(1,
OracleTypes.STRUCT,
"CISWEB.EMPLOYEE");
boolean isWorked = ocs.execute();
System.out.println("Execute finished........");
Object outParam = ocs.getObject(1);
System.out.println("Object was obtained........" + outParam);
System.out.println("name:" + ((EmployeeObj)outParam).getName());
As can be seen I have created a stored procedure which has one out parameter. All
this preocedure does is assign an Employee object to the out parameter with a name of
'Alex' and an employee number of 9.
The code runs and all but I get this strange result. In the print I am getting the employee number
coming out correctly but the employee name comes out as 3 question marks. I can't understand why
"Alex" does not out. I have tried different things such as adding a new varchar2 to the object type and new a new integer and what I observer is that I keep getting 3 question marks coming back instead of whatever I assign for the employee name. Could someone please help and let me know what could be wrong?
I have no clue as what is causing this weird behaviour.
Thanks.

Hi,
i have not really a idea. But at the next step i would
try the same procedure with in/out parameter and use a
initialized string. Maybe there is a problem to
determine the length of string.
Bye ThomasThanks for you reply Thomas,
This is the code for stored procedure that I use. As can be seen I just assign an employee to the
out parameter.
CREATE OR REPLACE PROCEDURE test_employee(emp out EMPLOYEE) IS
BEGIN
     emp := EMPLOYEE('Alex',49);
END;
Now in the java code when the statement >>
System.out.println("name:" + ((EmployeeObj)outParam).getName());
executes I get the name coming out as the String: "???". That is three question marks. It is very weird. I then attempted to create the object using JPublisher and I get the same result. I attempted not only to use hte SQLData interface but Oracle's ORAData interfaces as well. I went to to create a table with column as the EMPLOYEE type and use in insert to put the same object and and then sellect * from the table to the the and I still get the 3 question marks for the name and the number comes out correctly.
I am not sure what could be causing the text to come out as three question marks. I am using Oracle 9.2.0.4.0 and the ojdbc_g.jar drivers version :9.2.0.3.0. Any help would be greatly appreciated.
Thanks

Similar Messages

  • ""  No authorization for number range object type GTIN and activity SHOW ""

    While creating number range in number  range administration for GTIN system showing the error
    ""  No authorization for number range object type GTIN and activity SHOW ""
    Pls help me to solve this issue

    Hi ,
    Please check roles for user assigend as  [ This is for super administrator ]
    SAP_AIN_ADMINISTRATOR
    SAP_AIN_OER_ADMINISTRATOR
    SAP_AIN_SUPER_ADMINISTRATOR
    SAP_AIN_SUPERVISOR
    SAP_AIN_WORKER
    and profiles assgined as
    SAP_ALL          
    SAP_NEW          
    Hope it will helps
    Thanks .,
    V.Rangarajan

  • No authorization for number range object type BTI and activity SHOW

    Hi All,
    When I try to execute
    SAP Easy Access screen - > Auto-ID Infrastructure -> Master data -> Number Ranges -> Number Range Administration
    on the next web window when I select the object type BTI , it comes up with the error
    Number range table not maintained for object BTI in customizing  
      No authorization for number range object type BTI and activity SHOW  
    I am using AIN 5.1 .  Is this an authorization issue ?. If so which all roles I should give to the user?  IF you have any idea about this please share some tips.

    Hi Sahad,
    Only few number range object types are available in the standard system:
    Follow the link for help .
    http://help.sap.com/saphelp_autoid2007/helpdata/EN/45/e2240c7abb56dde10000000a114a6b/frameset.htm
    Follow the for setting up the others.
    http://help.sap.com/saphelp_autoid2007/helpdata/EN/45/e2240c7abb56dde10000000a114a6b/frameset.htm

  • Remove details for web page object types in search results

    Within the search results, the first 200 characters are displayed for documents, web pages, etc.. Web pages show the HTML code. Is there a way to hide these details for web pages but have them visible for all other object types?

    The solution can be found in this thread: http://discussions.apple.com/thread.jspa?threadID=2456976
    Download Secrets at http://secrets.blacktree.com/
    Install the prefspane, select Safari in the left hand list, and uncheck "Use new URL completion list".
    You need to log out and log in again for it to work.

  • Exception '1250' is not defined for method 'CREATE' object type 'MESSAGE'

    Dear experts,
    I set up the document distribution (SWU3, backgroundjob SMTP, activated the workflows, flagged the linkages, etc). Now, I have still a error:
    Exception '1250' is not defined for method 'CREATE' object type 'MESSAGE'
    Does anyone know what the cause of exception 1250 could be?
    Thanks in advance and kind regards,
    Samuel

    hi,
    SAP ITS is SAP Internet Transaction Server which provides connection between SAP ERP system and html client.
    Check with bassis, i think TCP/IP or work station application not configured yet. i guess?
    Benakaraja
    ??P

  • Exception '1003' is not defined for method 'SENDTASKDESCRIPTION' object type 'SELFITEM'

    Hi All,
    Please help me in this. I am trying to send a mail when user rejected the item in his inbox. I am getting error like
    Exception '1003' is not defined for method 'SENDTASKDESCRIPTION' object type 'SELFITEM'. I tried so  many ways like no attachments,send express ,siganture,encryption all disabled but still the same error from user outbox who ever rejects it.
    Regards,
    Madhu.

    Hi Madhu,
    This exception is raised means you have checked the Signature check-box  and encrypt check box.
    Now you have unchecked that the issue should be solved , but if it is still giving the same exception synchronize your run time buffer using the t-code SWU_OBUF .
    Let me know if the issue is still there.
    Regards
    Bikas

  • Problem with UDF updation - Object type 46

    Hi Experts,
    Scenario :
    For printing the amounts(in words- Indian format) in Cheque and marketing documents, we created UDFs in Title of marketing documents and outgoing payments.
    Then created a function in the DB for convertion of amounts into words and invoked it from  SBO_SP_TransactionNotification for object type '46' (Outgoing payment) and for transaction type 'A'.
    We tried it  with Out going payments
    Problem :
    Initially It was not working at all. When we removed the  transaction type condition the amount got updated on updation of existing records. Still It is not updating the UDFs while adding a new outgoing payment.
    We inserted the values like object type , transaction type etc into a temp table for testing from SBO_SP_TransactionNotification .
    The value we got for Out going payment addition is
    Object type: 30 and transaction type : A (Why this is 30 while adding outgoing payment?)
    The value we got for Out going payment modification is
    Object type: 46 and transaction type :U
    Please Help us on this
    I don't know whether this is the right forum or not.
    We are using SAP Business One 2007 B PL 13
    Thanks and regards
    Ajith G
    Edited by: Ajith G on Oct 5, 2009 11:48 AM

    Hi,
    Step to have check print in Indian format
    1)create function
    2)create user field in that master table
    3)make user define query
    declare @Doc_total numeric (19,6)
    set @Doc_total= (SELECT $[ORPC.DocTotal])
    declare @F100 varchar(20)
    declare @DocCurr varchar(20)
    SET @DocCurr= (SELECT $[ORPC.DocCur])
    set @F100= (SELECT Chk100Name FROM OCRN WHERE CurrCode = @DocCurr)
    select REPLACE(SBO_DB.dbo.AmountToWords (@Doc_total), 'Paise',  @F100)
    4)save above query and define that query in user field by shift+F2
    i hope u may know next step
    Kevin

  • Issue with RCDC for Custom "Department" object type

    Hey Guys,
    Maybe somebody can point out where the issue is with the RCDC. I have a custom object type called Department in FIM portal and wanted to create a simple interface for it so users can add and edit department fields.
    The only two fields that should show on the RCDC is department and divisions(this is the name of the custom field) all the fields work but I keep getting the following error "There's an error in the Department display configuration.Please contact your
    system administrator"
    Below is the RCDC:
    <?xml version="1.0" encoding="utf-8"?>
    <!--Copyright (c) Microsoft Corporation. All rights reserved.-->
    <my:ObjectControlConfiguration xmlns:xd="http://schemas.microsoft.com/office/infopath/2003" xmlns:my="http://schemas.microsoft.com/2006/11/ResourceManagement" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <my:ObjectDataSource my:Name="object" my:TypeName="PrimaryResourceObjectDataSource"/>
    <my:ObjectDataSource my:Name="delta" my:TypeName="PrimaryResourceDeltaDataSource"/>
    <my:ObjectDataSource my:Name="rights" my:TypeName="PrimaryResourceRightsDataSource"/>
    <my:ObjectDataSource my:Name="schema" my:TypeName="SchemaDataSource"/>
    <my:XmlDataSource my:Name="summaryTransformXsl" <my:Parameters="Microsoft.IdentityManagement.WebUI.Controls.Resources.DefaultSummary.xsl"/>
    <my:Panel my:Name="page" my:Caption="Default Configuration" my:AutoValidate="true">
    <my:Grouping my:Name="_caption" my:Caption="Caption" my:IsHeader="true">
    <my:Control my:Name="_caption" my:TypeName="UocCaptionControl" my:Caption="Create Department" my:Description="" my:ExpandArea="true">
    <my:Properties>
    <my:Property my:Name="MaxHeight" my:Value="32"/>
    <my:Property my:Name="MaxWidth" my:Value="32"/>
    </my:Properties>
    </my:Control>
    </my:Grouping>
    <my:Grouping my:Name="DepartmentInformation" my:Caption="Department Information">
    <my:Control my:Name="Department" my:TypeName="UocLabel" my:Caption="{Binding Source=schema, Path=Department.DisplayName}" my:Description="" my:RightsLevel="{Binding Source=rights, Path=Department}">
    <my:Properties>
    <my:Property my:Name="Required" my:Value="True"/>
    <my:Property my:Name="Text" my:Value="{Binding Source=object, Path=Department, Mode=TwoWay}"/>
    </my:Properties>
    </my:Control>
    <my:Control my:Name="Divisions" my:TypeName="UocDropDownList" my:Caption="{Binding Source=schema, Path=Divisions.DisplayName}" my:Description="{Binding Source=schema, Path=Divisions.Description}">
    <my:Options>
    <my:Option my:Value="" my:Caption="" my:Hint="Please Select a Division"/>
    <my:Option my:Value="Division of Academic Affairs" my:Caption="Division of Academic Affairs"/>
    <my:Option my:Value="Division of Administration" my:Caption="Division of Administration"/>
    <my:Option my:Value="Division of Adult &amp; Continuing Education" my:Caption="Division of Adult &amp; Continuing Education"/>
    <my:Option my:Value="Division of Information Technology" my:Caption="Division of Information Technology"/>
    <my:Option my:Value="Division of Institutional Advancement" my:Caption="Division of Institutional Advancement"/>
    <my:Option my:Value="Division of President's Office" my:Caption="Division of President's Office"/>
    <my:Option my:Value="Division of Student Affairs" my:Caption="Division of Student Affairs"/>
    </my:Options>
    <my:Properties>
    <my:Property my:Name="Required" my:Value="{Binding Source=schema, Path=Divisions.Required}"/>
    <my:Property my:Name="ValuePath" my:Value="Value"/>
    <my:Property my:Name="CaptionPath" my:Value="Caption"/>
    <my:Property my:Name="HintPath" my:Value="Hint"/>
    <my:Property my:Name="ItemSource" my:Value="Custom"/>
    <my:Property my:Name="SelectedValue" my:Value="{Binding Source=object, Path=Divisions, Mode=TwoWay}"/>
    </my:Properties>
    </my:Control>
    </my:Grouping>
    <my:Grouping my:Name="summary" my:Caption="Summary" my:IsSummary="true">
    <my:Control my:Name="summaryControl" my:TypeName="UocHtmlSummary" my:ExpandArea="true">
    <my:Properties>
    <my:Property my:Name="ModificationsXml" my:Value="{Binding Source=delta, Path=DeltaXml}"/>
    <my:Property my:Name="TransformXsl" my:Value="{Binding Source=summaryTransformXsl, Path=/}"/>
    <my:Property my:Name="Hint" my:Value="{Binding Source=schema, Path=%AttributeName%.Hint}"/>
    </my:Properties>
    </my:Control>
    </my:Grouping>
    </my:Panel>
    </my:ObjectControlConfiguration>
    Any advice is appreciated.

    I don't know RCDCs well enough to debug it from the xml. One approach when I don't know something too well is to brute it. Copy one of the default RCDCs and make sure it's working then add the required attributes one by one checking that it works each
    time. Once it's working with the added attributes remove all the ones you don't need. If that breaks it, go back to where it was working and remove them one by one.

  • Setting bind variable for a view object from the Managed Bean

    Hi,
    i am using JDeveloper 11g, i have to create LOV in the JSF. To show the LOV, it has to populate data using View object and its query parameter need to be sent from the Managed Bean.
    For the View object i want to set the bind variable parameter from the managed bean value. bename is stored in a managed bean (session scope)
    #{beantest.bename}
    But it gives the following exception.
    JBO-29000: Unexpected exception caught:
    org.codehaus.groovy.control.MultipleCompilationErrorsException,msg=startup failed, Script1.groovy: 1: expecting '!',found '{'@ line1, column 2.
    I have followed the link http://kr.forums.oracle.com/forums/thread.jspa?threadID=615474 like Frank wrote on 8.2.2008:
    But steps are not clear.
    How to input the VO bind parameter with Managed bean variable?
    Any Help
    Regards
    Raj
    Edited by: user9928180 on Dec 17, 2008 9:51 AM

    Hi,
    a bind variable in a VO needs to be exposed as an executeWithParams operation in the pageDef file. Just add a new action binding to the pageDef file (context menu) and select the executeWithParams operation on teh VO. Then in the argument field, reference the managed bean property for the value
    Frank

  • Help! modifying size of varchar2 in object-type

    Hi,
    Does anybody know a way to increase the size of a varchar2 attribute in an ORACLE object type without having to drop all object tables created from this type? I'm working on a ORACLE 8i (8.1.6) version and there are several millions of records stored in that table, and all I need to do is modify a varchar2(35) to varchar2(100).
    Michael

    This command don't work ?
    alter table TABLE_NAME modify COLUMN_NAME varchar2(100);

  • Support for unit testing object types

    There's a Feature Request that suggests expanding the unit test tool to object types:
    Title
    Provide object type support for unit tests
    Description
    In the current version (2.1.0.63) I can perform only unit test for packages, function and procedures. But we use a lot of object types in the database and would like to test them. When is a support for object types scheduled?
    Average Rating
    10
    Development Comment
    This is planned for the next release.
    Status
    Scheduled for 3.0
    Although the status suggests inclusion in v3, in my current version 3.2.20.09 there is nothing.
    This is clearly an important issue for those who have voted for it as it scores a perfect 10 on average rating.
    Is there any sign of object types being supported in the 4.0EA1 release? There is a strong desire within my organisation to move to a more object-based approach to PL/SQL coding but until we are able to unit test easily there will be no real progress.

    If you are ready to learn a little bit of Ruby then you can try [PL/SQL unit testing with Ruby|http://blog.rayapps.com/2009/11/27/oracle-plsql-unit-testing-with-ruby/]. ruby-plsql library [supports also PL/SQL object types|http://blog.rayapps.com/2009/11/25/more-oracle-data-types-supported-by-ruby-plsql-gem/] as input and output parameters and return values.

  • Me23n Print preview display problem for specific o/p type

    Hello gurus,
    A small problem..
    I have modified the Smartform for a specific o/p type in PO and the moved to PRD
    when seeing the Print preview in me23n the Smartform is not being displayed in PRD....
    all other setting in ->messages, further data in me22n are same as for other o/p types..
    The poblem is only for this o/p type POs all other o/p types the print-preview is displaying the form..
    suggestions required...
    thnks in advance

    sorry dev...
    hi srikar
    i think  there is a missing of cluster table ..
    check the t-code se09
    go to the customizing release  request .
    there is a ur updated nace release request number.
    expand that request number .
    see there is an another request number.
    again expand it.
    check whether there is a view cluster maintenance data or not?
    if it is present.
    expand it there u see the cluster table.
    else.
    u mistaked in nace transport.
    regards
    surender
    Edited by: surender on Feb 5, 2009 12:18 PM

  • 0crm_complaints_i doesnot extract for few item object types

    Hi Gurus,
    I need to have data records in BI box with respect to item object types BUS2000164 and BUS2000185. I have tried with 0CRM_COMPLAINTS_I. There I have data records corresponding to BUS2000160, BUS2000161 and BUS2000167. But not the above ones. I have checked other relevant datasources as well. But couldn't find one.
    It would be of great help if anybody can provide me the solution or give me some clue.
    Thanks in advance!!!

    I have the same quesiton
    Have you solved this problem?

  • Code Inspector/ATC checks for VKOS/VKOI object types

    Dear Experts,
    I found a strange behavior while executing CI checks on a transport request. TR contained only IMG Activity objects (Object Type VKOS/VKOI). After CI checks it gave errors "Recognized dead code". There is no coding for these kind of object type, I don't know where it was able to find the dead code. On debugging I found that, it is trying to populate Program name concatenatinv " SAPIC " and the object type. ( SAPICVKO). But there is no such program existing. It then gives "Recognized dead code" error.
    Has anyone faced such error before? I guess this is error in the standard program.
    Thank you.

    Other language NUnit test frameworks similar to ABAP Unit (AUnit) commonly have project extensions for storing test results. These are useful for the unit level regression (did a new change break any existing functions). History of test results, help narrow down the nature of a current failure by answering the question of 'When did this break?' or when did it last pass? In systems dependent upon outside components the history can provide a pattern for occasional failures due to factors outside the system under test.
    I see that ABAP unit test results can be added into the Code Inspector under the Check Variant.
    1. Is it common or recomended to use the Code Inspector (SCI) to store AUnit test results?
    2. Is it common or recomended to use Code Inspector Object variants to collect individual AUnit tests for a regresssion style 'TestSuite'?
    3. What reporting or tools exists for Code Inspector history?
    4. Is Application Logging the better spot for AUnit results history?
    (also posted on the wiki.. apologies - I'm new to the forum and wiki)
    Will Loew-Blosser

  • Automatic Colour settings problem for WAD Chart Column type

    Hi,
    In WAD (BI 7.0) Chart Creation i am having issues with colour settings for Chart item Column type with 3D. I have six key fig in query i am trying to show all KF in Chart. But it is showing only one colour for all keyfigs. atlast  I have manually assigned different colours for different series, but no use... the issue remains same.. Please help me on this issue
    Thanks in Advance
    Regards
    Harsh

    Hi Harsh,
    Please try the following options.
    1. Try swapping the axes. Certain charts follow the YX convention.
    2. Right Click > Edit > Click on 'Refine' > Click on the chart type on the right frame (Bars/Pie etc) > [OK] Vary Category by Color: Enable this checkbox.
    3. If you have finished with these settings, you may switch back to Wizard mode to follow up the settings (Step 3 of 6 - Value Properties)
    4. Under Categories in Wizard, just make sure you are giving options to suit all the Categories in an uniform fashion. To begin with don't bother to give a fixed Category Count. (As your chart size may increase dynamically based on GRID data)
    5. Goto Refine > Click on Global Settings > Choose 'Color Palette' > Tradeshow/Enjoy/StreamLine/Custom : These are the optional themes which may be well adjusted to suit your requirements.
    Thanks,
    Arun Bala

Maybe you are looking for