Win a copy of Spark in Action this week in the Open Source Projects forum!

Pat Peg

Ranch Hand
+ Follow
since Feb 04, 2005
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 Pat Peg

First, I have to say that I am not impressed with liferay but it is what the client wanted. With that being said, we did a simple upgrade from 6.1 to 6.2 and suddenly I am getting errors such as "AUI is undefined" and "one is undefined". This is in a popup and the parent page appears to work with AUI. I have tried "window.parent" and "window.parents" with minimal improvements. I am not even sure what else to be looking for at this point. I've updated and included the tld/aui. What could be going wrong.

Looks like the problem was that when the data was being read in there was an extra "/" being added...why I don't know but I was able to correct it.
6 years ago
"I'm a bit confused because I don't understand a lot of things in your post. First of all, all Java characters are Unicode. They all come from the Unicode character set, which includes ASCII as the first 128 code points. Probably you meant that you have some non-ASCII characters. "

Yes-I am trying to use non ASCII characters such as degree and some other special math characters.

"And I don't understand what it means to "display as unicode". I don't even have a guess for that, so perhaps you could provide an example."

What I mean is that the first line displays as the actual string with escape character "/u00e5" and the second line displays as the interpreted symbol of what that unicode stands for.

"And this console: is it the Windows console, or the Eclipse console, or a Unix shell? They all have different behaviour."

Eclipse console.

In the application as well, the data is not showing up correctly-in otherwords it has the escape character and not the actual degree symbol. I tried just trying to output the symbol as "°" but the formatting gets lost and so "°F" is rendered int he RCP application as "0F"
6 years ago
Recently I switched a RCP/swing app from using hypersonic to mysql. The problem is that there are some unicode characters in the data. The data now displays with the unicode characters as unicode in the app. I tried printing out the data from the bean and it comes out the same way on the console. If I cut/paste the string from the console and place another print statement inside the bean I get output with unicode from the field and formatted output from the other print statment. Why???
6 years ago
Anything else I should try? I've followed the advice in the other post to no avail.
6 years ago
I changed setenv.bat to include -djava.library.path to go the bin directory of my tomcat install. I then copied the dll file to this location (and also ojdbc14.jar) but I get the same issue. Could the upgrade to 11 be a part of the probelm? When they upgraded they installed the client in a custom location which is where the -djava.library.path now points to.
6 years ago
I've been given a servlet that I suppose previously ran on oracle 10.2 but my environment was upgraded to the 11g client. When I fire up tomcat I don't get any errors but when I try and run the servlet I get "unsatisfiedlinkerror no ocijdbc10 in java.library.path"

I am honestly not sure what to do-very new to this. I am building it in eclipse and I am not sure if there is something in a configuration file or what. I need to make the servlet run on 11g.

Thanks
6 years ago
I know this is a huge and vague question...

We have an app- a large app, that is eating memory. We think the context variables in the manager class are persisting even after they shouldn't. So the general question is-why would this be?
James,

First of all; thank you.

I am getting a COMMIT is not allowed in a subordinate session so I suppose I am in a transaction but I am not sure what to do to correct this. This is what I have done.



I am getting this error


javax.persistence.PersistenceException: org.hibernate.exception.SQLGrammarException: could not execute native bulk manipulation query
at org.hibernate.ejb.AbstractEntityManagerImpl.throwPersistenceException(AbstractEntityManagerImpl.java:614)
at org.hibernate.ejb.QueryImpl.executeUpdate(QueryImpl.java:60)
at com.bah.englink.ejb.pm.UserProfileManager$$M$d57c1113.switchUserStatus(UserProfileManager.java:2204)
at com.bah.englink.ejb.pm.UserProfileManager$$A$d57c1113.switchUserStatus(<generated>)
at com.bah.englink.ejb.pm.UserProfileManager.switchUserStatus(UserProfileManager.java:2222)
at com.bah.englink.ejb.pm.UserProfileManager_n071r6_Impl.switchUserStatus(UserProfileManager_n071r6_Impl.java:50001)
What I need to do is execute 'ALTER USER username ACCOUNT LOCK' but all I find under entityManager is executeQueries or NativeQueries...I tried executeNativeQuery and while it did not throw any exceptions (after I granted the right permissions to the account) it also did not lock the user...I suspect because I am not really doing a query. Is there a way to execute a statement or how should I do this?
I found the problem, the user that the entityManager was logged in as lacked permissions to even see the table. Of course, now there is a new issue but I will post a separate topic.

Thanks
I need to query some of the system tables of an oracle database from my application but when I try to execute a nativequery I keep getting a null pointer exception.

I even tried the simplest of queries such as

select count(*) from dba_users;

I am guessing this might have something to do with the rights that the entitymanager has but I don't know.

How could I query on system tables using entityManager?

Thanks
classes12 in the jar file? Yes. It is about 1500kb in size and is there.

Tried running it from jdeveloper-I haven't used jdeveloper in years so it could be that there is something to set up that I don't know about. I am trying to research that now.
CLASSPATH=.;C:\jars\classes12.jar;C:\Program Files\Java\jre1.6.0_07\lib\ext\QTJava.zip;C:\Program Files\Java\jre6\lib\ext\QTJava.zip