Maybe someone happened this error? 09 Jun 2016 15:49:50,419[SEVERE][JAS]JDBCProxy.jdbcProxy(): JDBj database operation failed | UserName : JPARRA, Environment : JPD910, User Role : COMPRAS com.jdedwards.database.base.JDBException: [INCORRECT_CONVERSION_TO_DBFORMAT] Formatting error on converting AN8 of Everest type 9 from OneWorld to database format. 09 Jun 2016 15:50:00,247[WARN][RUNTIME]VTForm.lookupProductCodeByFormId(): called with bad arguments: null, com.jdedwards.jas.net.NetManager#355719f8 09 Jun 2016 15:52:59,683[WARN][RUNTIME]VTForm.lookupProductCodeByFormId(): called with bad arguments: null, com.jdedwards.jas.net.NetManager#355719f8 09 Jun 2016 15:53:09,527[WARN][RUNTIME]VTForm.lookupProductCodeByFormId(): called with bad arguments: null, com.jdedwards.jas.net.NetManager#355719f8 09 Jun 2016 15:53:20,824[WARN][RUNTIME]VTForm.lookupProductCodeByFormId(): called with bad arguments: null, com.jdedwards.jas.net.NetManager#355719f8 09 Jun 2016 15:53:29,902[WARN][RUNTIME]VTForm.lookupProductCodeByFormId(): called with bad arguments: null, com.jdedwards.jas.net.NetManager#6b854c75 09 Jun 2016 16:01:17,992[SEVERE][RUNTIME]*** INFINITE LOOP DETECTION WITHIN APPLICATION ER:**** Form Name :P0413M_W0413MB_SSBA0001 On Event: Button clicked, at ER Line = 2 While Statement: VA[163] != LI[String] = 2 On Control-ID: 13 ***********
Hey guys , hope you always are ok , well i just written a program and the output of it is not what i wan it to show up thus , here is the exercise i am tryin to solve :
(Conversion from kilograms to pounds) Write a program that displays the following table (note that 1 kilogram is 2.2 pounds):
Kilograms Pounds
1 2.2
3 6.6
...
197 433.4
199 437.8
.......
i used loop here for sure , here is my output :
kilo pound
1 2.2
3 6.6000000000000005
5 11.0
7 15.400000000000002
9 19.8
11 24.200000000000003
13 28.6
15 33.0
17 37.400000000000006
19 41.800000000000004
21 46.2
23 50.6
25 55.00000000000001
27 59.400000000000006
29 63.800000000000004
31 68.2
33 72.60000000000001
35 77.0
37 81.4
39 85.80000000000001
41 90.2
43 94.60000000000001
45 99.00000000000001
47 103.4
49 107.80000000000001
51 112.2
53 116.60000000000001
55 121.00000000000001
57 125.4
59 129.8
61 134.20000000000002
63 138.60000000000002
65 143.0
67 147.4
69 151.8
71 156.20000000000002
73 160.60000000000002
75 165.0
77 169.4
79 173.8
81 178.20000000000002
83 182.60000000000002
85 187.00000000000003
87 191.4
89 195.8
91 200.20000000000002
93 204.60000000000002
95 209.00000000000003
97 213.4
99 217.8
101 222.20000000000002
103 226.60000000000002
105 231.00000000000003
107 235.4
109 239.8
111 244.20000000000002
113 248.60000000000002
115 253.00000000000003
117 257.40000000000003
119 261.8
121 266.20000000000005
123 270.6
125 275.0
127 279.40000000000003
129 283.8
131 288.20000000000005
133 292.6
135 297.0
137 301.40000000000003
139 305.8
141 310.20000000000005
143 314.6
145 319.0
147 323.40000000000003
149 327.8
151 332.20000000000005
153 336.6
155 341.0
157 345.40000000000003
159 349.8
161 354.20000000000005
163 358.6
165 363.00000000000006
167 367.40000000000003
169 371.8
171 376.20000000000005
173 380.6
175 385.00000000000006
177 389.40000000000003
179 393.8
181 398.20000000000005
183 402.6
185 407.00000000000006
187 411.40000000000003
189 415.8
191 420.20000000000005
193 424.6
195 429.00000000000006
197 433.40000000000003
199 437.8my question is how to control number of digits after decimal point
thanks in advance
alaaraulo wrote:
my question is how to control number of digits after decimal point[http://java.sun.com/javase/6/docs/api/]
See the DecimalFormat class. Using that is one way. Also google for "java formatting numeric values" for more ways.
Use a DecimalFormat or one of the methods that use java.util.Formatter: like the String method [format()|http://java.sun.com/javase/6/docs/api/java/lang/String.html#format(java.lang.String,%20java.lang.Object...)] or the PrintStream method [printf()|http://java.sun.com/javase/6/docs/api/java/io/PrintStream.html#printf(java.lang.String,%20java.lang.Object...)] which can be used for example with System.out.
Edited by: pbrockway2 on Nov 24, 2009 3:57 PM
There is a discussion of this in the [Formatting Numeric Output|http://java.sun.com/docs/books/tutorial/java/data/numberformat.html] lesson of Sun's Tutorial.
for loop
printf("%d %.2f %n", kilo_var, pound_var)
Edited by: RandellK on Nov 24, 2009 3:26 AM
In the (truncated) table below, there are several columns. This was generated by adding the flags -Xverbosegc:heap_post and -Xverbosegc to the command line during execution.
What does the "Cum%" column display?
Also, is there another flag that will display where the GC did most of its work?
<GC: Garbage Collection #4 with 2048.00 MB Heap>
<GC: Time since last collection : 90.45 seconds>
<GC: Time spent collecting : 9.00 seconds>
<GC: Data live before collection : 1341.17 MB>
<GC: Data live after collection : 750.81 MB>
<GC: Data pinned during collection : 3.22 MB>
--- Post-GC Profile ---
Bytes Objects Sizeof Space% Cum% Type
118749952 3710936 32 15.15% 58.57% java/lang/String
63081552 3273499 8-64 8.05% 80.22% [C
8674856 1 2M-16M 1.11% 94.75% [B
5867144 22951 64-512 0.75% 95.50% [Ljava/util/Hashtable$Entry;
4328960 108224 40 0.55% 96.78% java/util/Hashtable$Entry
4000016 1 2M-16M 0.51% 97.29% [Z
2323728 26406 88 0.30% 97.59% jxl/write/Number
2004640 125290 16 0.26% 97.85% java/lang/Integer
1470560 36764 40 0.19% 98.51% java/util/HashMap$Entry
1287720 22995 56 0.16% 98.68% java/util/Hashtable(post preview edit - it appears that ***% is being censored out. The censored abbreviation is, I'm guessing, for cumulative.)
こんにちは。
JDeveloper11gでWebアプリケーションを開発しています。
JSPXファイル上に配置したADF BC表を直接マウス操作せず、ソースコードから選択行を設定する方法を探しています。
開発している機能の詳細を申し上げますと、
a) JSPXファイル上に、ADF Table及びADF Tableに表示されている内容をグラフ化した図(htmlファイル)を配置しています。
b) グラフの内容はADF Tableのレコード単位で部品になっており、グラフ上の部品をクリックすることで選択状態を表す矩形が部品を囲みます。
c) グラフ上の部品をクリックして選択状態にしたとき、対応するADF Tableのレコードも連動して選択状態にする。(ここを実現したい)
方針としては、グラフ上の部品(htmlファイル)をクリック操作したときに、html上のJavaScriptでイベントを拾い、JSPX上のJavaScriptに処理を委譲してADF表に対して選択状態の変更処理を記述できればと考えておりますが、RichTableクラスに適当なメソッドが無く、他の実現方法も不明な状況です。
もし心当たりのある方がいらっしゃれば御教授下さい。よろしくお願いします。
Edited by: user13236813 on Apr 6, 2011 9:19 AM
I'm sending a POST request to the /syncs endpoint in order to request the status of an export job. I'm including the "syncedInstanceUri" field in the request JSON as specified in the docs, but I'm getting back a 400 response saying that the "syncedInstanceUri" field is required, implying that I did not include it. Please help. Thanks!
Jan 26, 2016 8:28:07 AM org.glassfish.jersey.filter.LoggingFilter log
INFO: 2 * Sending client request on thread main
2 > POST https://secure.p02.eloqua.com/api/bulk/2.0/syncs
2 > Content-Type: application/json
{
"syncedInstanceUri" : "/contacts/exports/16"
}
Jan 26, 2016 8:28:07 AM org.glassfish.jersey.filter.LoggingFilter log
INFO: 2 * Client response received on thread main
2 < 400
2 < Cache-Control: private
2 < Content-Length: 76
2 < Content-Type: application/json; charset=utf-8
2 < Date: Tue, 26 Jan 2016 13:28:06 GMT
2 < P3P: CP="IDC DSP COR DEVa TAIa OUR BUS PHY ONL UNI COM NAV CNT STA",
2 < X-Request-Id: e048d12186744ccbafa08ecc67b663a9/49677006
{
"failures":[{"field":"syncedInstanceUri","constraint":"Is required."}]}
Here's another example of the issue with a different endpoint (/contacts/exports):
Jan 26, 2016 4:22:44 PM org.glassfish.jersey.filter.LoggingFilter log
INFO: 1 * Sending client request on thread main
1 > POST https://secure.p02.eloqua.com/api/bulk/2.0/contacts/exports
1 > Accept: application/json
1 > Content-Type: application/json
{"name":"Contacts Export","fields":{"id":"{{Contact.Id}}"}}
Jan 26, 2016 4:22:44 PM org.glassfish.jersey.filter.LoggingFilter log
INFO: 1 * Client response received on thread main
1 < 400
1 < Cache-Control: private
1 < Content-Length: 175
1 < Content-Type: application/json; charset=utf-8
1 < Date: Tue, 26 Jan 2016 21:22:44 GMT
1 < P3P: CP="IDC DSP COR DEVa TAIa OUR BUS PHY ONL UNI COM NAV CNT STA",
1 < X-Request-Id: 49af0b10bca84912bc7a0693484afb5d/49850445
{
"failures":[{"field":"name","constraint":"Must be a string value, at least 1 character and at most 100 characters long."},{"field":"fields","constraint":"Is required."}]}
Hi, It appears your POST data is not being received by the Eloqua API.Can you review whether the library you're using sends data correctly?
Please confirm: POST https://secure.p02.eloqua.com/api/bulk/2.0/syncs Request Header:Content-Type: application/json Request Body:{ "syncedInstanceUri" : "/contacts/exports/16" }
Yes, that's the basic format of the requests I've been trying to send. I am fairly certain the bodies I'm sending are not empty. I'm using the Jersey 2.22.1 client, which I am successfully using for other stuff, including the Eloqua REST 1.0 API. Here's another example from just now (note, the output is from Jersey's LoggingFilter, which logs requests and responses for debugging purposes):
Jan 27, 2016 2:01:41 PM org.glassfish.jersey.filter.LoggingFilter log
INFO: 1 * Sending client request on thread main
1 > POST https://secure.p02.eloqua.com/api/bulk/2.0/contacts/exports
1 > Accept: application/json
1 > Content-Type: application/json
{
"name" : "Contacts Export - 1",
"fields" : {
"id" : "{{Contact.Id}}",
"emailAddress" : "{{Contact.Field(C_EmailAddress)}}"
}
}
Jan 27, 2016 2:01:41 PM org.glassfish.jersey.filter.LoggingFilter log
INFO: 1 * Client response received on thread main
1 < 201
1 < Cache-Control: private
1 < Content-Length: 313
1 < Content-Type: application/json; charset=utf-8
1 < Date: Wed, 27 Jan 2016 19:01:41 GMT
1 < P3P: CP="IDC DSP COR DEVa TAIa OUR BUS PHY ONL UNI COM NAV CNT STA",
1 < X-Request-Id: 2afe9496b2484cd087492014d84d0f14/50718908
{"name":"Contacts Export - 1","fields":{"id":"{{Contact.Id}}","emailAddress":"{{Contact.Field(C_EmailAddress)}}"},"dataRetentionDuration":"P7D","uri":"/contacts/exports/25","createdBy":"Ian.Springer","createdAt":"2016-01-27T19:01:41.1620474Z","updatedBy":"Ian.Springer","updatedAt":"2016-01-27T19:01:41.1620474Z"}
Jan 27, 2016 2:01:41 PM org.glassfish.jersey.filter.LoggingFilter log
INFO: 2 * Sending client request on thread main
2 > POST https://secure.p02.eloqua.com/api/bulk/2.0/syncs
2 > Accept: application/json
2 > Content-Type: application/json
{
"syncedInstanceUri" : "/contacts/exports/25"
}
Jan 27, 2016 2:01:41 PM org.glassfish.jersey.filter.LoggingFilter log
INFO: 2 * Client response received on thread main
2 < 400
2 < Cache-Control: private
2 < Content-Length: 76
2 < Content-Type: application/json; charset=utf-8
2 < Date: Wed, 27 Jan 2016 19:01:41 GMT
2 < P3P: CP="IDC DSP COR DEVa TAIa OUR BUS PHY ONL UNI COM NAV CNT STA",
2 < X-Request-Id: ecb469d4cb8e41d0ae59ea2e6c3fefd9/50718910
{
"failures":[{"field":"syncedInstanceUri","constraint":"Is required."}]}
I turned on debug logging at a lower level (Apache HttpClient) and noticed the HTTP requests were chunked transfer coded. On a hunch, I tried disabling chunking, and sure enough, everything worked. So it looks like the underlying HTTP server for the Bulk 2.0 API does not correctly handle chunked requests. For the benefit of other Java/Jersey users, here's how to disable chunking in Jersey 2.x:
ClientConfig clientConfig = new ClientConfig();
clientConfig.property(ClientProperties.REQUEST_ENTITY_PROCESSING, RequestEntityProcessing.BUFFERED);
Client client = ClientBuilder.newClient(clientConfig);
What are you doing to get to the sync? Do you have code of how you are creating the export definition?