Bugs in DRDT tutorial
Section 6.2.1 of the tutorial says:
18 if (!pflag)
19 continue;
20 if (v % i == 0) {
21 pflag[v] = 0;
22 return 0;
23 }
The Data-Race Detection Tool reports that there is a data-race between the Write to pflag[] on line 21 and the Read of pflag[] on line 18. However, this data-race is benign as it does not affect the correctness of the final result. At line 18, a thread checks whether pflag[i], for a given value of i is equal to 0. If pflag[i] is equal to 0, then the thread continues on to the next value of i. If pflag[] is not equal to 0 and v is divisible by i, then the thread writes the value 0 to pflag[i]. It does not matter if, from a correctness point of view, multiple threads check the same pflag[i] and write to it concurrently, since the only value that is written to pflag[i] is 0.
Looking closely at the text, the reference to pflag[] should be pflag[i], and the last three references to pflag[i] should really be to pflag[v]. No, wait, that's not right, either. pflag[i] is not both checked and written. pflag[i] is checked, and pflag[v] is written. The paragraph itself needs to be re-written (perhaps it was edited concurrently by multiple authors? :-) ).
Also, Section 6.2 says there are two examples below, when in fact there are three.
Also, Section 6.2.2 says:
20 volatile int is_bad = 0;
106 int i;
107 for (i=my_start(thread_id); i<my_start(thread_id); i++) {
108 if (is_bad)
109 return;
110 else {
111 if (is_bad_element(data_array[i])) {
112 is_bad = 1;
113 return;
114 }
115 }
116 }
There is a data-race between the Read of is_bad on line 108 and the Write of is_bad on line 112. However, the data-race does not affect the correctness of the final result.
But no, that's not really why there's no bad data race. The real reason is because the loop condition will never cause the body of the loop to be executed, if (as one would expect) mystart() always returns the same result given the same parameter. Also, once that is fixed, shouldn't you be mentioning that the apparent benign character of this race depends on the difference between the two values (0 and 1) being only one bit, and therefore one need not worry about the atomicity of the write? That is, if you had a 32-bit integer, and the initial value had the low bit set and the final value had the high bit set (with the value test correspondingly adjusted), and if the machine architecture allowed a 32-bit integer to be written at the hardware level in two 16-bit chunks, you'd still have to worry about a race condition potentially making invalid values appear in the shared is_bad variable.
Also, I find it rather astounding that the third example is of double-checked locking, especially without any mention of the history of and problems with this idea (http://en.wikipedia.org/wiki/Double-checked_locking and http://www.aristeia.com/Papers/DDJ_Jul_Aug_2004_revised.pdf).
Finally, in the usage flow diagram in Section 5.4, under "L1: Perform a data-race detection experiment:" you should mention the use of processor sets: http://developers.sun.com/solaris/articles/solaris_processor.html
Herteg,
Thank you very much for your detail review and good suggestions.
The upper bound of the loop in section 6.2.2 should be my_end(thread_id).
We will update the document.
Thanks!
-- Yuan
Similar Messages
-
BookDBAO bug in JavaEE tutorial bookstore1
In the JavaEE tutorial example bookstore1, BookDBAO is a java bean stored in context scope and used by all threads. In BookDBAO, the not thread-safe EntityManager em is used by all threads to db actions. I think this is a bug since EntityManager is not thread-safe.
Regards,
Riceinvalid target release: 1.6seems like the version of Java you have installed is too old. Install the latest Java 6 JDK and make sure that its bin directory is the one added to the PATH system variable, plus is the one set in the JAVA_HOME variable.
That is basic Java stuff by the way: I hope you are familiar with Java (not only the language, but also the tools!) itself before you try to dive into Java EE development. If not, you'll probably end up being very confused and frustrated. -
BUG: JDeveloper BC4J Tutorial is incorrect
I have searched everywhere, but cannot find a correct working solution for this problem.
Description:
In a fresh install of JDeveloper 9i RUP7, I have tried to run the tutorial found under:
Help Menu -> Help Topics -> Tutorial
In the BC4J Tutorial titled "Business Components Programmatic Client Tutorial",
I have run all the steps and the compiler gives me the error:
oracle.jbo.JboException: JBO-33001: Cannot find the configuration file /OnlineOrders/common/bc4j.xcfg in the classpath
There is no information regarding how to correctly configure the classpath or fix this problem.
I downloaded JDeveloper 9i RUP7 at the Oracle Support site Knowledgebase 416708.1 for Release 11i:
https://updates.oracle.com/ARULink/PatchDetails/process_form?patch_num=8751878
How can this this be resolved, so that I can successfully create a BC4J client in JDeveloper?
Thanks in advance for any helpTry asking on the OA Framework Forum
-
Just started investigating new E71, and seems there is a bug in the Tutorial app. (Menu>Help>Tutorial) : Several topics cause the app. to end (crash) without showing info. e.g. Keys>Power key. Perhaps there are missing topics, because I also notice that where one of these "crash" topics appears in the middle of a list, lower topics actually launch the topic above them in the list e.g. anything below Calling>Dialled numbers.
Am I the only one suffering this? Seems relatively trivial, but then does not inspire confidence : if a simple app. like Tutorial is bad, what chance complex stuff being good?I noticed that too. On my E63 tough, it works fine. These tuts are a bit silly. The manual is better documented and even then there are settings I can't find. The connections and buttons on the side are not described in the Dutch version.
‡Thank you for hitting the Blue/Green Star button‡
N8-00 RM 596 V:111.030.0609; E71-1(05) RM 346 V: 500.21.009 -
Couldn't complete tutorial 'Integrating EJB 3.0 into Web Dynpro ...'
Hi All,
I am trying to complete the Integrating EJB 3.0 into Web Dynpro Using the EJB Model Importer tutorial that goes with SAP NetWeaver Composition Environment 7.1 SP3 Developer Studio.
Does anyone ever completed this tutorial because I have problems completing it. The result is very important for me because I need to use this technology for my essay.
In this tutorial you create a button that calls the method StudsBean.getStudent(String). In this method the object student is created and it will be returned. In several labels the information of the returned student should be displayed. But that doesnt happen, when I push the button no error occurs but the labels are still empty. When I try to debug the Enterprise Bean and Web Dynpro application I see that the method StudsBean.getStudent(String) is called and the propertys are set and the student object is returned, but still it isnt displayed.
After discussing this with a colleague I tried to search for a solution on the SDN and of course Google. First I thought I would be a bug but I only found 2 people with the same problem. I found it remarkable because its one of the key subjects of Java EE 5 and its a tutorial displayed in the welcome page of the Developer Studio.
So do you people think its a bug in WebDynpro? Because I am sure that I followed all the steps mentioned (a colleague checked it even).
Regards,
SanderHi Sander,
I guess, it's not a bug in Web Dynpro, maybe it's a bug in the tutorial
I tried something similar, but not following the tutorial and it works. I wasn't able to call the model from the view controller and I guess that's the problem. Take the code from the init-method of the view controller and put it to the component controller's init -method and the code inside the onActionGetStudent and put it into a method you create in the component controller, too. From onActionGetStudent just call this method in the component controller with some code like this:
wdThis.wdGet<your component controller's name>.<your method's name>;
Hope this helps
Kind regards
Stefanie -
OIM11G: OOTB ResourceAdministratorApproval Working?
All,
Has anyone tried the OOTB ResourceAdministratorApproval with 11G? I am trying the same but it does not seem to work. My requirement is to send the request for approval to the resource administrator group on self requested modification for provisioned resource. AD User is the resource.
Configurations I did:
1. Created new Request level approval policy for 'Self Request Modify Provisioned Resource' -> Auto approved -> Rule: Request.Resource Type.Equals.Self Modify Provisioned Resource.
2. Created new Operation level approval policy for 'Self Request Modify Provisioned Resource' -> Approval Process : default/ResourceAdministratorApproval! 1.0 -> Scope: AD User
3. Created and imported appropriate request dataset for the request.
4. Created a Dummy Group in OIM named 'AD Administrator'. Added few users to it.
5. Assigned 'AD Administrator' group to be the administrator of 'AD User' RO from design console.
Test Results:
1. End user logs in and raises the request for modification to the AD user for self.
2. The request gets created successfully and the Request Level Approval gets Auto approved.
3. The Operation Level approval reads the status as: 'Obtaining Operation Approval' and the Task Details show: 'Resource administrator approval for Request Id: xxx'.
Now here is the issue, the approval gets assigned to 'xelsysadm' user or to the 'system administrators' group and never gets assigned to the 'AD Administrator' group. 'System Administrator' group is there for 'AD User' as administrator and I don't want to remove that and it would be fine if the approval gets assigned to the 'AD Administrator' group as well.
Will appreciate if anyone can throw in pointers if I am missing something.
Thanks,
BB
http://download.oracle.com/docs/cd/E14571_01/doc.1111/e14309/soa.htm#BABIHHBEExtracted the default ResourceAdministratorApproval workflow in jDeveloper and I feel that there's bug into that as well,
the task assignment details in the approval task are as follows:
<stage name="Stage1">
<participant name="Assignee1">
<resource type="XPATH" identityType="group">/task:task/task:payload/ns1:ObjectDetails/ns1:administrator</resource>
</participant>
</stage>
And if I look for the ObjectDetails in the copy attributes in the ApprovalTask_Assign Attributes section it shows that the ObjectDetails is nothing but the Request Details
<ObjectDetails xmlns="http://xmlns.oracle.com/request/RequestDetails"/>
Now I wonder if the RequestDetails can contain the administrative group for the resource or not. Looking for more details about RequestDetails ....
And yes this sure calls for a SR, just wanted to verify if someone has done that already and hey what's the bug in the tutorial?? I haven't tried that actually! ;-)
Thanks,
BB -
Runtime exception for other than programming error.
In a conversation the question arose whether it could be a case of throwing a runtime exception for anything other than a bug. The tutorial on oracle site says "These Usually Indicate programming bugs" leading to think that can be used in situations in which there is no bug.
Anyone have a practical example of a runtime exception when there is no bug?
Thanks.937643 wrote:
Ok. But. Do you think that in these cases the use of a runtime exception could be considered a bad practice?That's actually a matter of some debate.
On the one hand, Java has defined two major kinds of exceptions since the very beginning (unchecked exceptions, which are RuntimeException, Error, and their descendants; and checked exceptions which are everything else). The intended use of those was that checked exceptions should be for things that can normally go wrong in the execution of a program, even without a bug or without a major internal JVM error, such as a failed attempt to persist something or a network connection dropping--stuff that a programmer might normally be expected to deal with; while unchecked exceptions were created for things that a programmer would not normally handle in his code (except possibly at major architectural boundaries), like buggy code or an internal JVM failure.
With the rule about having to catch or declare checked exceptions, but not unchecked ones, that makes it easy for programmers so say, "Okay, I know exactly what can go wrong here that I might be expected to handle and I can therefore choose what to do with it; there will be no surprises. But I don't have to deal with problems that are outside my normal responsibility, like somebody passing me a null when they shouldn't have." It gives a programmer a nice bit of control, and the ability to know he hasn't missed something, kind of like the type safety provided by a strongly typed language.
At least that's the theory.
In practice, most checked exceptions either just get bubbled up to the next layer (via a throws clause), or caught wrapped in a fairly generic layer-appropriate exception and rethrown. There's not a whole lot of use made of what checked exceptions provide, and there's a lot of ugly boilerplate code that doesn't do anything useful for the app but is just there to satisfy the compiler.
So, some people think that checked exceptions are useless, or mostly useless, and favor unchecked exceptions in most or all cases. I believe that's part of the philosophy of Spring, but I'm not totally sure.
The idea is that since most of the time you can't do anything about exceptions that might be thrown to you, it's wasteful and pointless to have all that code to catch and rethrow. In this viewpoint, it would be better if, for example, not providing a throws clause at all meant that you could throw any exception. Any given code can still catch specific exceptions that it knows it can handle, but we don't have to write a bunch of code notating something that we're not really doing anything about.
Personally, I used to be totally in the checked exception camp. However, all the pointless boilerplate is wearing me down. I'm still not completely convinced though, and here's why: If I'm calling a method, I'd like to at least be able to see what might go wrong, so that I can decide how to deal with it. If all exceptions were unchecked, and the throws clause were optional, a conscientious developer could still provide it, and list the unchecked exceptions his method might throw to me, and/or he could document them in the javadoc comments. But a lot of developers won't do that, or even if they start to, as their method evolves, without the compiler to enforce it, they won't keep it up to date.
So there are advantages to both approaches. I personally would to know that the information will always be available to me, but for the small percentage of the time where I actually use it (like handle one specific exception one way and some other exception differently), I'm not sure if it's worth the overhead. -
Hello ,
I have two dropdowns on my selection screen
value selected by user in first drop down will determine the content of list second dropdown.
Can you please help how to implement this .......
thank you
Moderator Message: Please search before posting your question.
Edited by: Suhas Saha on Jan 2, 2012 12:04 PMHi, I have exactly the same problem. I even have just one object ( not an array) I want to transfer that way to another page. I doesn't work. I even got a java.lang.ClassCastException as I try to convert an Object back to the specific object I use.
I believe this is a bug or the tutorial is just wrong stating, that you can wrap any object. I even tried using Objects for everything and then casting them back. But it just gives me the java.lang.ClassCastException.
Can anyone from the Creator Team address this? -
ADF 11 - Oracle Developer Day 28.05.2009 Online Tutorial Problem/Bug
Hello
I've downloaded the tutorial [http://events.unisfair.com/index.jsp?eid=394&seid=28] for the Developer Day scheduled for the 28.05.2009. [http://events.unisfair.com/index.jsp?eid=394&seid=28]
I've completed the tutorial and discovered what would seem to be a bug.
I've reproduced the problem in a new simpler application.
Its a bit long but here we go.
The situation is :
Two panel splitters one inside the other, one vertical split and one horizontal split dividing the screen into a 3 parts, a left column and a right column split into a top and a bottom.
ADF BC have been created using the Departmetns and Employees tables from the HR schema.
In the left column there is an adf read only form bound to Departments with navigation controls.
On the right at the top there is a read only table (with row selection) bound to the Employees view in the Departments view (master-detail)
On the right at the bottom there is a form bound to the Employees view in the Departments view (master-detail)
Using the left column read only form I navigate to Department 50 which has employees 120 to 199.
The Employees af:Table shows employees 120 to 191 without scrolling.
Using the scroll bar on the employee table I scroll to the bottom of the employees table (now employees 128 to 199 are showing)
I then select on employee 198
The form at the bottom right correctly positions on employee 198 however the employee table re-positions on employee 190 !
Using the scroll bar I scroll to the bottom of the employees table (now employees 128 to 199 are showing)
Employee 198 is selected.
I select employee 199
The form at the bottom right correctly positions on employee 199 however the employee table re-positions on employee 191 !
I repeat the same process but selection employee 193
The form at the bottom right correctly positions on employee 193 however the employee table re-positions on employee 185 !
It would seem that the employee table scrolls up the exact number of rows that need to be scrolled down in order to show the last table row.
Added to that when the tabel re-positions it would seem to be re-fetching its data...
Can anybody explain what's going on or confirm the above observations?
Regards
PaulHi,
there is an attribute "displayRow" on the table to set what should be shown after refreshing the table. Set this to "selected"
Frank -
I found a few bugs in the Workshop tutorial. I wonder if this is the right place
to report them.
Step 7: Add Support for Cancellation and Exception Handling
* The timer is started using creditCardReportTimer.start(). But it is never stopped.
* context_onException() calls callback.onCreditReportDone(). One problem is the
Java client do not accept call back. So the onCreditReportDone() call result in
another exception. context_onException() is invoke again. This causes an infinite
loop and eventual crashed the WLS.
Step 8: Client Application
* The Java statement
if(context.getCallbackLocation() != "")
is not a correct way to test for empty string. Use String.length().
Wai Yip TungWai,
Thanks for contacting us with your feedback.
You had mentioned that the timer was started but never stopped, the
following is a snippet from the Investigate.jws available in the
applications/samples/tutorial folder.
private void creditCardReportControl_creditCardDataResult(CreditCard[]
cards)
* Now that the web service has returned its results, stop the timer
started
* in the requestCreditReportAsynch method.
creditCardReportTimer.stop();
The timer also has a timeout value of 5 minutes after which it will stop.
Regarding the other issues, I will make sure that the information is sent to
the samples team.
We appreciate your feedback.
Thanks
Raj Alagumalai
WebLogic Workshop Support
"Wai Yip Tung" <[email protected]> wrote in message
news:[email protected]..
>
I found a few bugs in the Workshop tutorial. I wonder if this is the rightplace
to report them.
Step 7: Add Support for Cancellation and Exception Handling
* The timer is started using creditCardReportTimer.start(). But it isnever stopped.
>
* context_onException() calls callback.onCreditReportDone(). One problemis the
Java client do not accept call back. So the onCreditReportDone() callresult in
another exception. context_onException() is invoke again. This causes aninfinite
loop and eventual crashed the WLS.
Step 8: Client Application
* The Java statement
if(context.getCallbackLocation() != "")
is not a correct way to test for empty string. Use String.length().
Wai Yip Tung -
JasperReports Tutorial: Missing Record Bug
A few customers have pointed out a bug in the Generating Reports and PDFs From a Web Application tutorial at http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/2/reports.html. I have to admit that I am somewhat embarrased that I never noticed that the first record is missing from the reports.
I am trying to get the fix pushed out this week. In the meantime, for those who are using code from the tutorial, you should know that you need to either call beforeFirst() or execute() on the rowset before passing the rowset to the JRResultSetDataSource constructor.Thanks
-
Hi,
can you approve that this is a bug:
http://java.sun.com/docs/books/tutorial/java/javaOO/innerclasses.html
public Iterator<Object> iterator() {
private class StackIterator implements Iterator<Object> {...Local classes cannot have access modifiers thus this example is wrong.
Is it a known bug?
-PuceThe compiler treats
those access modifiers
correctly though, so my guess is (as Kaj already
indicated) that one of
these tutorial authors got a bit slopppy ;-)Hmm, I tried it in NetBeans and I get a compiler error. After removing the access modifier it compiled successfully.
Test local class:
private class Test implements Comparator{
public int compare(Object o1, Object o2) {
return 42;
}Or what did you mean with "the compiler treats those access modifiers correctly though"?
-Puce -
Bridge tutorial, FAQ and bug list
Partially because the same questions are asked again and agian and partially because there seems to be a need for a tutorial on the bridge I have built a small site dedicated to the ActiveX Bridge.
The site has a full working tutorial that shows step by step how to compile, package and deploy a JavaBean inside a Word macro. The
site also has a simple FAQ list and a list of bugs that I know about
relating to the Bridge. If, the Bridge comes back and Sun wants to
support it I will send in the bugs I have plus any others if you
care to submit them.
Anyway you visit my site here http://www.reallyusefulcomputing.com/java/index.phpDoes one still have to extend from JFrame? I'd like
not to do this since part of my app is going to run on
a server with an X server running. Can you point me
to the bug report for this? Is there some non-gui
class I can extend from instead?
you can try other components but I think you need something that extends component or the memory model seems to be really quirky. the best answer i can give you is try and see different things yourself. you may find something works for you.
there is no bug report for this as everything about this went into the bug report that the bridge was taken out of 1.4 originally. it is my understanding that when the next version is released 1.4.2 scheduled for "spring 2003" whatever that means it will have the bridge not just back but new and hopefully improved and i can only hope this bug will be one of the ones fixed or at least some documentation will be provided as to how and why some things work in the quirky way they do. -
Is there a bug in the WebService tutorial for JDeveloper 9i?
In reading through the JDeveloper 9i tutorial for building a web service, the final step generates the DateTimeServiceStub.java, but the testing that follows does not use this class, it uses the DateTimeService class.
I built a Web Service based on the this tutorial and when I test with "MyClass.java" it works fine, but when I try to use "MyClassStub.java" it throws the ClassNotFound Exception below:
java.lang.NoClassDefFoundError: HTTPClient/ModuleException
at mypackage.RandomQuoteStub.<init>(RandomQuoteStub.java:21)
at mypackage.RandomQuoteServlet.doGet(RandomQuoteServlet.java:27)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:195)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:309)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
If we are supposed to use the Stub methods, any thought as to why it fails?
If we are NOT supposed to use the Stub methods, any thought as to why they are generated.
(Yes, I am a bit new to Web Service development).
Thanks in advance for any answers,
RBHi Richard,
I ran into another problem when I tried to create a web service and call this web service following the tutorial from Oracle9i JDeveloper Release 2.
The following error message occured after I ran DateTimeClient class:
[SOAPException: faultCode=SOAP-ENV:Protocol; msg=Unsupported response content type "text/html", must be: "text/xml". Response was:
<DIV class=Section1>
<P class=MsoNormal
style="mso-list: none; mso-list-ins: '' 19991102T2025">&nbsp;
</P>
<TABLE border=1 cellPadding=0
style="BORDER-BOTTOM: 4.5pt outset; BORDER-LEFT: 4.5pt outset; BORDER-RIGHT:
4.5pt outset; BORDER-TOP: 4.5pt outset; WIDTH: 100%; mso-cellspacing: 1.5pt"
width="100%">
<TBODY>
<TR>
<TD
style="PADDING-BOTTOM: 0.75pt; PADDING-LEFT: 0.75pt; PADDING-RIGHT: 0.75pt;
PADDING-TOP: 0.75pt" width="22%" valign="top">
<P class=MsoNormal><B>Problem Report</B></P>
</TD>
<TD
style="PADDING-BOTTOM: 0.75pt; PADDING-LEFT: 0.75pt; PADDING-RIGHT: 0.75pt;
PADDING-TOP: 0.75pt" width="78%" valign="top">
<P class=MsoNormal>The Web proxy was not able to authenticate you through
the authentication server because:&#32&#32<b>General authentication failure due to bad user ID or authentication token.</b>
You will not be able to browse the Web through this proxy until your
credentials can be retrieved and verified.</P>
</TD>
</TR>
<tr>
<td
style="PADDING-BOTTOM: 0.75pt; PADDING-LEFT: 0.75pt; PADDING-RIGHT: 0.75pt;
PADDING-TOP: 0.75pt" width="22%" valign="top">
<p class=MsoNormal><b>Message ID</b></p>
</td>
<td
style="PADDING-BOTTOM: 0.75pt; PADDING-LEFT: 0.75pt; PADDING-RIGHT: 0.75pt;
PADDING-TOP: 0.75pt" width="22%" valign="top">
<p class=MsoNormal>PROXY_AUTH_FAIL_OTHER
<p></p>
</td>
</tr>
<TR>
<TD
style="PADDING-BOTTOM: 0.75pt; PADDING-LEFT: 0.75pt; PADDING-RIGHT: 0.75pt;
PADDING-TOP: 0.75pt" width="22%" valign="top">
<P class=MsoNormal><B>Problem Description</B></P>
</TD>
<TD
style="PADDING-BOTTOM: 0.75pt; PADDING-LEFT: 0.75pt; PADDING-RIGHT: 0.75pt;
PADDING-TOP: 0.75pt" width="78%" valign="top">
<P class=MsoNormal>The user verification was not successful.</P>
</TD>
</TR>
<TR>
<TD
style="PADDING-BOTTOM: 0.75pt; PADDING-LEFT: 0.75pt; PADDING-RIGHT: 0.75pt;
ADDING-TOP: 0.75pt" width="22%" valign="top">
<P class=MsoNormal><B>Problem Cause</B></P>
</TD>
<TD
style="PADDING-BOTTOM: 0.75pt; PADDING-LEFT: 0.75pt; PADDING-RIGHT: 0.75pt;
PADDING-TOP: 0.75pt" width="78%" valign="top">
<P class=MsoNormal>This might be due to transient network problems or due to the
user's not being authorized to use this Web proxy.</P>
</TD>
</TR>
<TR>
<TD
style="PADDING-BOTTOM: 0.75pt; PADDING-LEFT: 0.75pt; PADDING-RIGHT: 0.75pt;
PADDING-TOP: 0.75pt" width="22%" valign="top">
<P class=MsoNormal><B>Possible Solution</B></P>
</TD>
<TD
style="PADDING-BOTTOM: 0.75pt; PADDING-LEFT: 0.75pt; PADDING-RIGHT: 0.75pt;
PADDING-TOP: 0.75pt" width="78%" valign="top">
<P class=MsoNormal>Contact your network support team
if this problem persists, and provide the team your
account information.</P>
</TD>
</T
java.lang.String org.apache.soap.rpc.Call.getEnvelopeString(org.apache.soap.transport.SOAPTransport)
org.apache.soap.rpc.Response org.apache.soap.rpc.Call.invoke(java.net.URL, java.lang.String)
java.lang.String datetimeclientpackage.DateTimeClientStub.getDate()
void datetimeclientpackage.DateTimeClient.main(java.lang.String[])
Exception in thread main
Process exited with exit code 1.
By the way, I got the correct information when I tried to load:
(1) http://159.249.94.139:8888
(2) http://159.249.94.139:8888/soap/servlet/soaprouter
which means that oc4j and SOAP server are running properly.
Do you have any idea what went wrong?
Thank you in advance.
- Hao -
BUG!: JDeveloper 11g Tutorial code is incomplete.
I am attempting the complete the JDeveloper 11g Tutorial from the Fusion Developer's Guide for Oracle Application Development Framework
After adding all the latest jars available from the ADF Installer to the StoreFrontModule I am left with 10 errors all of with seem to be the result of missing methods (especially findByAltKey) from both Oracle packages and the tutorials code itself. The errors and the .java files affected are listed below. Please let me know if you need more information or if you have a solution to these compilation errors.
Project: C:\J2EE_Apps\FOD\StoreFrontModule\StoreFrontService\StoreFrontService.jpr
C:\J2EE_Apps\FOD\StoreFrontModule\StoreFrontService\src\oracle\fodemo\storefront\account\queries\CustomerPaymentOptionVORowImpl.java
Error(9,8): class oracle.jbo.server.ViewAccessorDef not found
Error(468,22): does not override any method in its superclass
Error(475,22): method createViewAccessorRS(java.lang.String) does not override any method in its superclass
Error(476,27): method createViewAccessorRS(java.lang.String) not found in class oracle.jbo.server.ViewRowImpl
C:\J2EE_Apps\FOD\StoreFrontModule\StoreFrontService\src\oracle\fodemo\storefront\store\queries\PersonsVOImpl.java
Error(25,39): method findByAltKey(java.lang.String, oracle.jbo.Key, int, boolean) not found in class oracle.fodemo.storefront.store.queries.PersonsVOImpl
C:\J2EE_Apps\FOD\StoreFrontModule\StoreFrontService\src\oracle\fodemo\storefront\store\service\StoreServiceAMImpl.java
Error(422,28): method findByAltKey(java.lang.String, oracle.jbo.Key, int, boolean) not found in class oracle.fodemo.storefront.store.queries.OrderItemsVOImpl
Error(471,48): method findByAltKey(java.lang.String, oracle.jbo.Key, int, boolean) not found in class oracle.jbo.server.ViewObjectImpl
Error(526,44): method findByAltKey(java.lang.String, oracle.jbo.Key, int, boolean) not found in class oracle.fodemo.storefront.store.queries.PersonsVOImpl
C:\J2EE_Apps\FOD\StoreFrontModule\StoreFrontService\src\oracle\fodemo\storefront\store\queries\ShoppingCartTransientVOImpl.java
Error(52,33): method add(oracle.jbo.domain.Number) not found in class oracle.jbo.domain.Number
C:\J2EE_Apps\FOD\StoreFrontModule\StoreFrontService\src\oracle\fodemo\storefront\store\queries\OrdersVOImpl.java
Error(39,33): method findByAltKey(java.lang.String, oracle.jbo.Key, int, boolean) not found in class oracle.fodemo.storefront.store.queries.OrdersVOImpl
Thanks,
Shawn Pressley
Edited by: user575216 on Dec 16, 2008 5:18 PMGo into project properties - technology scope and add ADF BC.
Maybe you are looking for
-
HT4095 why is it taking so long to download tv series
why is it taking so long to download tv series
-
Oracle 9i and 10g Agents on one server
Hello, What are the conflicts if I installed 10g agent on the server that 9i agent already occupy. I want to use 9i and 10g OEM. Thank you in advance.
-
How to set/change ip-address on ethernet interface
I have an IP address set on my wireless interface (with Internet access - no problem here), but I want to use my Ethernet interface to connect to a NAS device, on a "private/hidden" network - different network (10.0.1.xx) What is the best way to do t
-
Quicktime file import failure in CS5 After Effects and PPro
Running a Dell PC with a fresh install of Win 7 Pro, Intel Quad Core 2 with 4GB. Ram.When I try to import quicktime files into AE or PPro, I get a file import failure or corrupted file message. I am using quicktime version 7.6.6. I have tried unin
-
Updating gallery causes gallery to disappear?!?
I have a few galleries in iPhoto (7.1.1), if I try to update one of them by either adding a photo or even changing to sort by date (currently set to manual sort), the status icon by the gallery spins for a few seconds and then I find myself viewing m