Tomasz Romanowski

Ranch Hand
+ Follow
since May 06, 2009
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Tomasz Romanowski

Well since there doesnt seem to be a dedicated forum that specifically includes JNI I thought I'd try this one. Basically I got a C++ server application and a JNI bridge. Inside of java code I make a few calls to Class.forName(<classname>)
The program seems to work when I run a request trough my server the first time. When I run another request however the program crashes and the callstack shows it's crashing within the JNI JVM as below. What could it possibly be? Is my C++ code thrashing memory and stomping over JVM? Any ideas would be appreciated, thanks Thomas


[Switching to Thread 0x43002940 (LWP 29233)]
0x00002aaaab26a8f1 in resource_allocate_bytes(unsigned long) ()
from /opt/ThirdParty/8.2/lib/libjvm.so
(gdb) where
#0 0x00002aaaab26a8f1 in resource_allocate_bytes(unsigned long) ()
from /opt/ThirdParty/8.2/lib/libjvm.so
#1 0x00002aaaab33411b in UNICODE::as_utf8(unsigned short*, int) ()
from /opt/ThirdParty/8.2/lib/libjvm.so
#2 0x00002aaaaafebf3c in java_lang_String::as_utf8_string(oopDesc*, int, int) ()
from /opt/ThirdParty/8.2/lib/libjvm.so
#3 0x00002aaaab021c90 in jni_GetStringUTFRegion () from /opt/ThirdParty/8.2/lib/libjvm.so
#4 0x00002aaaaaac226c in Java_java_lang_Class_forName0 () from /opt/ThirdParty/8.2/lib/libjava.so
12 years ago

Rajiv Shr wrote:
Are you saying, we should not do this? We should not modify the domain model even one bit, even if it is to improve the design? (Note that I am not changing the relationships. Instead of several parts linked to a 'Request', I am having the superclass Part linked to the Request. Just that the different parts are replaced by 2 generic classes - PartCategory and PartType)




This is just too funny. That's exactly what I did! I guess great minds think alike... Well, like I said, don't do that!
Thanks folks. Correct, you don't resubmit Part 3 (essay). There is relatively not much to gain from it since it's worth only 24 points.
Like I said earlier, what I did was nothing extraordinary, apparently it's a very common sin that mostly affects the class diagram. Basically I "improved" the domain model and threw away some of the classes replacing them with two generic ones. It affected the scores on my class diagram as well as assumptions/risks/mitigations list. Wen resubmitting I dutifully replicated all domain classes.
Basically for SCEA domain model is not to be f..d with. You just need to assume it's perfect.
What exactly Sun found wrong remains to be seen but most likely it was my attempt to "improve" the data model and dismissing some of the classes as unnecessary replacing them with one generic class.
I'm going to resubmit based on that assumption.
I did preserve the relationships but I did not read the book. Why is this supposed to be like a sure-fire pattern to follow?
I got my score which shows I was short just by 1.6 points. I see I lost most of the points in the class diagram but the assessor did not say what was wrong.
I'm looking at my class diagram and I'm not quite sure what the problem is. I'm listing the controllers and the entities. I'm listing all the methods shown in the sequence diagram. I'm listing the major attributes. I'm showing the relationships amongst the entities. For the controllers most of the relationships are "uses".
I'm also showing how the controllers are used by JSPs.
Overall got about 9 entity classes and 8 controllers.
Any ideas why I lost so many marks?
Also, I've searched the forum for the resubmission process and from what I've read I'm resubmitting only part 2 right? Part 3 stays the same, with same amount of points? How much time to resubmit?
I would not take Part 3 until I'm 100% done with Part 2 and ready to submit.
In my model I have an object with a List type attribute called parts and a few primitive ones. In my JSP I want to display this list and and allow the user to add/delete to/from this list. The problem is when the form gets submitted only the primitive attributes get bound. The List attribute remains null.
To illustrate what I'm looking for, in JSF they have a "datatable" tag that automatically binds the item table to the "parts" attribute:

<%@taglib uri="http://java.sun.com/jsf/html" prefix="h" %>

<h:dataTable id="parts value="#{theObject.parts}" var="item" >
.........
</h:dataTable>

In spring I don't see any equivalent of "datatable". Of course, I can easily display the table using the JSTL foreach but the items are not bound when the form is submitted:

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<c:forEach var="part" items="${theObject.parts}" varStatus="status">
-----
</c:forEach>
13 years ago
And I'm not sure what others' perception on that is but I have a feeling that Oracle is treating Sun's SCEA legacy certification as the necessary evil, competing with their existing certification map. Poor communication, ubiquitous misspellings may not be a sign of proactively trying to discourage people from taking SCEA but it looks to me like supporting SCEA is a very low priority for Oracle.

Yaaa, I need I mention that I got the wrong e-mail from the response I got from Oracle? These guys can't even get a simple signature right.

That's how the e-mail was signed:

<person's name>

Sun Certification Support

Oracle Education

ww_suncert@oracle.com
Honestly, I'd rather not receive from them any responses at all than those completely bogus, erratic e-mails telling me that I should e-mail my assignment to the very same address I did in the first place. Makes me feel like something did go wrong.
Now I'm getting a little desperate not to mention the frustration. It's been three weeks since I submitted my Part 2 and 3 and I have not received anything that would make me believe that my assignment went through. I sent them like 4 support requests and only received two completely bogus e-mails explaining to me how the new process works, a process that I followed.
I sent my submission to architect-submit_US@oracle.com. The signature in the bogus auto-response e-mail is ww_suncert@oracle.com. I tried to respond to this address but it comes back with delivery failure notification.
What are my options? Are there any other addresses, contact numbers?