How to display oracl.sql.NUMBER in the debugger?
Hi,
I would like to use oracle.sql.NUMBER for various reasons.
Unfortunately, I found no way to display in the JDev debugger
the actual VALUE that is represented by an oracle.sql.NUMBER object.
Is this really not possible or am I missing something here?
Thanks for any hints.
Marcel
Hi Steven,
I get the following warnings and errors if I use oracle.jbo.domain.Number
in a SQLJ-Class (using JDev 3.1.1.2):
Warning: (39) Invalid CustomDatum implementation in oracle.jbo.domain.Number:
missing the factory method getFactory.
Error: (39) Nicht unterst|tzter Java-Typ f|r Host-Element SeqNr (bei Position #1):
oracle.jbo.domain.Number..
Error: (66) Nicht unterst|tzter Java-Typ f|r Host-Element SeqNr (bei Position #1):
oracle.jbo.domain.Number..
I translate the last two error-messages to english:
Unsupported Java-type for host item SeqNr (at Position #1)
So now I am caught, I can't debug with oracle.sql.NUMBER, and I can't compile
with oracle.jbo.domain.Number.
Anyway, could you please convince the JDev-debugger team that the oracle.sql.NUMBER
needs to be displayed in the debugger as nice as its jbo twin. Without this
capability, this class is (at least for me) nearly useless.
Thank you for your support.
Marcel
Similar Messages
-
Hello all,
Windows XP SP 3 32 bit
Java(TM) Platform 1.6.0_11
Oracle IDE 3.1.07.42
Versioning Support 3.1.07.42
Installed SQL Developer 3.1.07.42 in a fresh directory. Imported Connections from SQL Dev. 3.0. Connected to a 9i/11g-database and did a select on an ordinary table in the worksheet. Get an error in the Logging Page - Log Window:
Source: oracle.dbtools.raptor.controls.grid.ResultSetTableCellRenderer
Message: oracle.dbtools.raptor.controls.grid.ResultSetGridCell.computeDisplayValue(ResultSetGridCell.java:28)
All NUMBER-Fileds are displayed with "oracle.sql.NUMBER@...", for example "oracle.sql.NUMBER@lb5889c". And everytime i select a field in this table the Logging-Page grows (actually 3674 entries). And it's regardless which table i select. This error occurs also in the table-data-grid.
Can you help?
Thank you
MarkusHi Markus,
I usually download SQL Developer without the JDK, so I had to download sqldeveloper-3.1.07.42.zip to verify. Yes, in fact tzmappings and the zi are there, both when inspecting the archive and after performing unzip.
Something must have gone wrong with your download/unzip. Looking at various Java JDKs I have installed, or the Java that comes with Oracle 11.2.0.1, all have tzmappings and the zi directory. The file timestamps and the number of files in the zi directory may vary, but it should always be there in some form.
Regards,
Gary
SQL Developer Team -
How to solve Oracle SQL Developer connection problem ?
Folks,
Hello. I am using Oracle Database 11gR1. The Database Control Console https://localhost.localdomain:1158/em works correctly. I can create a Database and a table successfully.
My OS is Linux and connects to internet successfully.
In order to run SQL statements. we need to use Oracle SQL Developer. I connect Oracle SQL Developer in the following way:
Connection Name: DB1 (this is my database name as well)
Username: SYS (this is the user name I used to login to the Console)
Password: SYS (this the password used to login to the Console)
Connection Type: Basic
Host Name: localhost
Port: 1158
SID: DB1 (this is created during installing the Database)
But the error message comes up: "Status: Failure - IO exception Connection Reset."
Can any folk tell me how to solve Oracle SQL Developer connection problem ?user8860348 wrote:
Folks,
Hello. I am using Oracle Database 11gR1. The Database Control Console https://localhost.localdomain:1158/em works correctly. I can create a Database and a table successfully.
My OS is Linux and connects to internet successfully.
In order to run SQL statements. we need to use Oracle SQL Developer. I connect Oracle SQL Developer in the following way:
Connection Name: DB1 (this is my database name as well)
Username: SYS (this is the user name I used to login to the Console)
Password: SYS (this the password used to login to the Console)
Connection Type: Basic
Host Name: localhost
Port: 1158
SID: DB1 (this is created during installing the Database)
But the error message comes up: "Status: Failure - IO exception Connection Reset."
Can any folk tell me how to solve Oracle SQL Developer connection problem ?username: sys
password: enter_your_correct_password given at the time of oracle installation
role: select sysdba if you would connect as sysdba else select normal for users other than sys
hostname: enter your oracle server hostname or ip address eg:- 192.168.11.12
to find the hostname open terminal/command prompt in oracle installed machine
type ---> hostname
type ---->ping hostname
you can find the ipaddress of the server
port number: 1521 (default) ----> i guess , else check the port number in the tnsnames.ora file under your ORACLE_HOME/network/admin folder
SID: DB1
try it
Good Luck -
How to display properties of dimension on the input form and report in bpc
Dear Expert,
Please tell me how to display properties of dimension on the input form and report in bpc. I can only display dimension number.
thanks so much
hungthHi Hungh,
If your are using BPC 10 with EPM add in client, you can use the function:
EPMDimensionProperty ()
This function retrieves the properties of a specified dimension in a specified cell range.
Thanks, Safa -
How to display a fixed number of rows in a page when using CL_GUI_ALV_GRID
Hy experts
How to display a fixed number of rows in a page when using CL_GUI_ALV_GRID?? lets say 500 ?? because my display table it may contain in some cases 10.000 and evidently I can t see all of them..
I have a button in my toolbar witch triggers this event
(display 500 records ) but I don t have the logic to do this only with methods of CL_GUI_ALV_GRID.
can you tell me a standard method of CL_GUI_ALV_GRID witch can help me do this?? any hint will be good..
Till now I was used to add a column to my structure witch represents a flag that is a number corresponding to every 500 records (a batch containing 500 records )
first 500 - flag -> 1
second 500 - flag -> 2
etc..but I m convinced that exists a way of doing this more easy..without damaging my structure..
thanx in advance..don t be shy..reply if you have any hints..Hi,
if method SET_FILTER_CRITERIA doesn´t help, I think that you must work with 2 internal tables, a counter and a loop for filtering the records to be displayed:
case counter.
when 1.
loop at int_table1 from 1 to 500. "<-- your table with all records
move int_table1 to int_table2
endloop.
when 2.
loop at int_table1 from 501 to 1000.
move int_table1 to int_table2
endloop.
etc, etc.
Call grid-->SET_TABLE_FOR_FIRST_DISPLAY
exporting
IT_OUTTAB = int_table2 "<-- instead of your currently table int_table1 -
Issue with Oracle.sql.NUMBER in Java Stored Procedure
When we try to make a call to the Oracle.sql.NUMBER(String) inside a java stored procedure and pass values from '01' to '09', it throws java.lang.StringIndexOutOfBoundsException: String index out of range: 3
We use Oracle 9.2.0.6 - JServer Release 9.2.0.6.0.
It works fine for other values. Please find below the code used for simulating the issue outside the application. Thanks.
create or replace and compile java source named testNumber as
import oracle.sql.NUMBER;
import java.sql.SQLException;
public class TestNumber
public static String convertNumber(String parm) {
NUMBER nTest;
try {
nTest = new NUMBER(parm);
return "TRUE";
}catch (SQLException sqle) {
return "FALSE";
create or replace function test_number (p_str in varchar2) return varchar2 as
language Java name 'TestNumber.convertNumber(java.lang.String) return
java.lang.String';
select test_number('05') from dual; - Throws exception ORA-29532: Java call terminated by uncaught Java exception: java.lang.StringIndexOutOfBoundsException: String index out of range: 3
select test_number('5') from dual; - Works fine
select test_number('010') from dual; - Works fineSiva,
I'm only guessing, but it could be an Oracle bug, in which case I suggest checking with Oracle Support.
(You do have a support contract, don't you? ;-)
Did you try compiling and running your java class "TestNumber" outside the database?
Class "oracle.sql.NUMBER" should be in Oracle's JDBC driver, I believe.
Good Luck,
Avi. -
Tomcat: java.lang.NoClassDefFoundError: oracle/sql/NUMBER
hi,
i have managed to come this far with my "simple" webapplication under tomcat.
the exception is:
java.lang.NoClassDefFoundError: oracle/sql/NUMBER
since i have tried to put the classes12.jar in every reasonable directory without effect, i have to bother this forum. does anyone know "where the dog is burried"(german saying)?
greetz
Selim KeserHi yves,
This class is in the jdev_home/jdbc.lib/ojdbc14.jar.
But prior to deploying your ADF application, did you install the ADF runtime libraries to Tomact as explained here?:
http://www.oracle.com/webapps/online-help/jdeveloper/10.1.3?topic=j2ee_ptomcatdeploy_html
Thanks
Prasanth -
How to add a receipt number in the following Query for PO Report
Hi Guys,
I need a help regarding following query.
Its a PO report for 11.5.10.2
select distinct pv.segment1 supplier_number,
pv.vendor_name supplier_name,
pha.segment1 po_number,
pha.revision_num revision_num,
pha.authorization_status po_status,
to_char(pha.creation_date, 'DD/MM/YYYY') creation_date,
pha.currency_code currency_code,
pla.sum_amount_ordered sum_amount_ordered,
pda.sum_quantity_ordered sum_quantity_ordered,
pda.sum_amount_received sum_amount_received,
pda.sum_quantity_received sum_quantity_received,
(pla.sum_amount_ordered - pda.sum_amount_received) sum_accrued, --AVI
( pda.sum_quantity_ordered - pda.sum_quantity_received) quantity_accrued, --AVi
to_char(rsl.date_receipt, 'DD/MM/YYYY') date_receipt,
-- rsl.receipt_num receipt_number,
ppa.segment1 project_code, ppa.project_status_code, --10.0.0.4
aia.invoice_num invoice_num,
aia.invoice_date invoice_date, --AVI
aia.creation_date invoice_creation_date, --AVI
aia.amount invoice_amount_allocated_to_po, --AVI
pla.purchase_basis,
pla.category_id,
-- pda.item_description,
haou.name organisation, --10.0.0.3
pda.sum_quantity_billed sum_quantity_billed , --10.0.0.3
gcc1.CONCATENATED_SEGMENTS,
gcc2.CONCATENATED_SEGMENTS
from po_headers_all pha,
po_vendors pv,
pa_projects_all ppa,
hr_all_organization_units haou,
(select po_header_id,
sum(quantity * unit_price) sum_amount_ordered,
org_id,
purchase_basis,
category_id
-- pla.item_description,
from po_lines_all
group by po_header_id, org_id
, purchase_basis,
category_id
-- pla.item_description
) pla,
(select pla.po_header_id,
pda.project_id,
sum(pda.quantity_ordered) sum_quantity_ordered,
sum(pda.quantity_delivered * pla.unit_price) sum_amount_received,
sum(pda.quantity_delivered) sum_quantity_received,
sum(pda.quantity_billed) sum_quantity_billed, --10.0.0.3
accrual_account_id
from po_distributions_all pda, po_lines_all pla
where pla.po_line_id = pda.po_line_id
group by pla.po_header_id, pda.project_id,accrual_account_id
) pda,
(select po_header_id, charge_account_id,
-- rsh.receipt_num,
min(rsl.creation_date) date_receipt
from rcv_shipment_lines rsl
where rsh.SHIPMENT_HEADER_ID=rsl.SHIPMENT_HEADER_ID
group by po_header_id,charge_account_id
) rsl,
(select distinct aia.invoice_num, pda.po_header_id , aia.invoice_date --10.0.0.3
, aia.creation_date , sum(aida.amount) amount
from po_distributions_all pda,
ap_invoice_distributions_all aida,
ap_invoices_all aia
where pda.po_distribution_id = aida.po_distribution_id(+)
and aia.invoice_id(+) = aida.invoice_id
Group by
aia.invoice_num, pda.po_header_id , aia.invoice_date --10.0.0.3
, aia.creation_date) aia,
(select haou2.organization_id, haou2.name
from fnd_flex_value_sets ffvs,
fnd_flex_value_norm_hierarchy ffvnh,
fnd_flex_values_vl ffvv,
hr_all_organization_units haou1,
FND_FLEX_VALUE_CHILDREN_V ffvcv,
hr_all_organization_units haou2
where ffvs.FLEX_VALUE_SET_NAME = 'CAP_CODE_BU'
and ffvs.FLEX_VALUE_SET_ID = ffvnh.flex_value_set_id
and ffvnh.parent_flex_value like 'PO%'
and ffvv.FLEX_VALUE_SET_ID = ffvnh.flex_value_set_id
and ffvv.FLEX_VALUE between ffvnh.child_flex_value_low and ffvnh.child_flex_value_high
and substr(haou1.name, 1, Instr(haou1.name, '-')) =
substr(ffvv.DESCRIPTION, 1, Instr(ffvv.DESCRIPTION, '-'))
and haou1.organization_id = fnd_global.org_id
and ffvcv.parent_flex_value = ffvnh.parent_flex_value
and ffvcv.flex_value_set_id = ffvs.flex_value_set_id
and substr(haou2.name, 1, Instr(haou2.name, '-')) =
substr(ffvcv.DESCRIPTION, 1, Instr(ffvcv.DESCRIPTION, '-'))
union --10.0.0.1
select f.organization_id, f.name --10.0.0.1
from hr_all_organization_units f --10.0.0.1
where f.organization_id = fnd_global.ORG_ID --10.0.0.1
) bu
, po_line_locations_all plla --10.0.0.4
, gl_code_combinations_kfv gcc1
,gl_code_combinations_kfv gcc2
where pv.vendor_id = pha.vendor_id
and pla.po_header_id = pha.po_header_id
and pda.po_header_id = pha.po_header_id
and pha.po_header_id = rsl.po_header_id(+)
and pda.project_id = ppa.project_id(+)
and pha.po_header_id = aia.po_header_id(+)
and aia.po_header_id = pha.po_header_id
and pla.org_id = haou.organization_id
and pha.authorization_status in ('APPROVED', 'OPEN')
and plla.po_header_id = pha.po_header_id --10.0.0.4
and plla.closed_code in ('APPROVED', 'OPEN', 'CLOSED FOR INVOICE', 'CLOSED FOR RECEIVING', 'CANCELLED') --10.0.0.4
and bu.organization_id = haou.organization_id
AND gcc1.code_combination_id = pda.accrual_account_id
AND gcc2.code_combination_id =rsl.CHARGE_ACCOUNT_ID
In the following query I have commented receipt_num using the table rcv_transaction_headers.
If I uncomment it the query results huge number of unexpected report.
How can I add receipt number to the following query?
Should I use rcv_transactions. If yes, what would be the join conditions.
Kindly help as its urgent.
Thanks in advance.
Regards
AvijitSandeep is correct. I don't have time to tell you the correct query, but mine is something like this based on Sandeep's information:
SELECT rsh.receipt_num
FROM rcv_transactions rcvt,
po_lines_all pla,
rcv_shipment_headers rsh
WHERE rcvt.shipment_header_id = rsh.shipment_header_id
AND rcvt.PO_LINE_ID = pla.PO_LINE_ID
AND pla.item_id = (select distinct inventory_item_id
from mtl_system_items
where segment1 = '1216107-2') -
How to crate a spool number for the abap program
hi
how to create a spool number for the abap programHi,
Check this thread
how to create a spool requset for 'z program'.
Regards,
Satish -
How to display multi-channel image in the 'proxy'?
There're many examples to show how to display composite channels in the 'proxy'. But I don't find any example to show how to display multi-channel image in the 'proxy'. I found that I can use PSPixelOverlay to display alpha channel data like this:
int nSpotChannel = gChannelCount - 4;
PSPixelOverlay* overlay = new PSPixelOverlay[nSpotChannel];
for(int i = 0; i < nSpotChannel; i++){
if( i != (nSpotChannel - 1) )
overlay[i].next = overlay + i + 1;
else
overlay[i].next = NULL;
overlay[i].data = gChannelData + (4 + i) * nPlaneBytes;
overlay[i].rowBytes = gProxyRect.Width() * gDocDesc->depth / 8;
overlay[i].colBytes = 1;
overlay[i].r = 230;
overlay[i].g = 161;
overlay[i].b = 174;
overlay[i].opacity = 255;
overlay[i].overlayAlgorithm = kStandardAlphaOverlay;
pixels.pixelOverlays = overlay;
Then, Seeing red part, it will trigger a new problem, that is how to get the color value of the alpha channel by plung-in itself? It seems that no channel color value info is in FilterRecord.
If you have other solution, please tell me. Many thanks!This is what I've been doing - was just curious if there was a way to see a more cohesive image.
If the individual EQ plugins are in fact the answer, is there any way to smooth how the Analyzer displays? The image I posted above, all of the tonal curves are very smooth. The analyzer tool shows a lot of peaks and valleys within the overall curve and it's hard to pinpoint each instrument's "sweet spot." Vocals for example are very hard to spot.
- Morgan -
How do I put page number at the center of the bottom of page one and the rest of the page numbers at top right corner?
Put a section break at the bottom of page 1
Then insert your page number in the footer of page 1.
Go to page 2 and click in the body of the text;
Inspector > Layout > Section > uncheck Use Previous Headers & Footers > click in Header on page > insert > Page Number
Peter -
How to display language key (0LANGU) in the query for BW report
Hi,
Can someone tell me how to display language key (0LANGU) in the query? I want to display which language (English or French) is used for material description in BW report. Thx.hi,
check if the infoobject is kept as lang dependent or not for material text, else you need to create a masterdata attribute with text and lang keys and do corresponding mapping, so then it can be displayed in your report
regards
laksh -
How to display my country flag on the task bar in osx mavericks?
How to display my country flag on the task bar in osx mavericks?
System Preferences > Keyboard > Input Sources
Checkmark the box beside "Show Input menu in menu bar". -
How to create Oracle Alert without metioning the email address in To Field
Hi,
I just wanna know that how to create Oracle Alert without metioning the email address in To Field.
Please help thanks.If you don't enter anything in the email field, the alert email won't go out.
If you just want to test or if you plan to use the history, you can put a non-existant email there.
The alert will fire anyway.
Hope this helps,
Sandeep Gandhi -
How to get a week number for the year using oracle sql query?
hi everyone,
i have the requirement to find the week number for the calender..
so that week number should start with 01 when the year starts and it should end with week end date(that is first saturday of the january month).. so next week number starts with sunday and ends with saturday ,continously.. in the end date of the year it should not be 'saturday' but week number should end with last date of the year.. again in the next year it should start with '01'.
for example:
01-JAN-13 tuesday 01
02-JAN-13 wednesday 01
03-JAN-13 thursday 01
04-JAN-13 friday 01
05-JAN-13 saturday 01
06-JAN-13 sunday 02
07-JAN-13 monday 02
26-DEC-13 thursday 52
27-DEC-13 friday 52
28-DEC-13 saturday 52
29-DEC-13 sunday 53
30-DEC-13 monday 53
31-DEC-13 tuesday 53
01-JAN-14 wednesday 01
02-JAN-14 thursday 01
how can i achieve this, can anyone please help me out on this..
i have a query that starts with 01 when year starts but it gives problem in the end of the year .. described below with a query..
select mydate,
to_char(mydate,'day') as weekday,
to_char(next_day(mydate,'sunday'),'iw') as week_num
FROM ( SELECT TRUNC (SYSDATE, 'yy') - 1 + LEVEL AS mydate
FROM dual
CONNECT BY LEVEL <= (SELECT TRUNC (ADD_MONTHS (SYSDATE, 24), 'yy')
- TRUNC (SYSDATE, 'yy')
FROM DUAL))
this query gives date, weekday and week_num for 2 years 2013 and 2014,
when i run this query ,at the end of the 2013 it gives the result as,
26-DEC-13 thursday 52
27-DEC-13 friday 52
28-DEC-13 saturday 52
29-DEC-13 sunday 01
30-DEC-13 monday 01
31-DEC-13 tuesday 01
01-JAN-14 wednesday 01
02-JAN-14 thursday 01
for dates 29 ,30,31st it should give 53 .. how can i achieve that using this this query .. can any one help me out on this please...
thanks,
pradeepI tried with the IW ...
it is giving week_id for the year.
select
mydate,
to_char(mydate,'day'),
case when mydate between trunc(mydate,'yyyy') and next_day(trunc(mydate,'yyyy'),'saturday')
then to_number(to_char(mydate,'yyyy')||to_char(trunc(mydate,'yyyy'),'iw'))
when mydate between next_day(trunc(mydate,'yyyy'),'saturday') and trunc(add_months(trunc(mydate,'yyyy'),12)-1,'d')-1
then to_number(to_char(mydate,'yyyy')||to_char(next_day(mydate,'sunday'),'iw'))
when mydate between trunc(add_months(trunc(mydate,'yyyy'),12)-1,'d') and add_months(trunc(mydate,'yyyy'),12)-1
then to_number(to_char(mydate,'yyyy')||to_char(trunc(add_months(trunc(mydate,'yyyy'),12)-1,'d')-1,'iw')+1) end as WEEK_ID
FROM ( SELECT TRUNC (SYSDATE, 'yy') - 1 + LEVEL AS mydate
FROM dual
CONNECT BY LEVEL <= (SELECT TRUNC (ADD_MONTHS (SYSDATE, 24), 'yy')
- TRUNC (SYSDATE, 'yy')
FROM DUAL
))
Maybe you are looking for
-
How to put values in a HashMap dynamically using a ArrayList as 'value'
i have to generate different maps dynamically by passing arraylist (which is also dinamically increasing) in the value. i want to use : List myList=new ArrayList(); for(..........){ Map mymap=new HashMap(); myMap.put(key, myList.add(objectBean)); ===
-
Sometimes my iMac starts up with white lettering acrossthe screen on a black background - when it's switched off for a few seconds it starts up ok. Can anyone tell me why this happens ?
-
Nokia 5800 [ Screen and phone problems]
I got a problem with my nokia 5800 screen, sometimes when my brightness is bellow 80% 2-3 flikering lines apear wherever i am ( home screen, watching a video, browser,call someone etc.) when brightness is at 80% its normal always( maybe of the high
-
I bought a Muvo TX SE GB yesterday and everything seems to be fine, except some kind of strange beeping and whirring noise (that a cd player sometimes makes). I have read other threads with this problem, but no one has actually told how they got rid
-
Where do I take my Ipod to get fixed?