liliya woland

Ranch Hand
+ Follow
since Apr 11, 2006
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
1
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by liliya woland

Got it, thanks a lot!
6 years ago
Ok, now I'm seeing more of the issue. This convertion of 09/30/2012 -->January 30, 2012 is happening regardless of having or not having another date. Hm...
6 years ago
Hi all, I have this simple method converting String dates to Dates to Strings of another format. For some reason the final result is one date for both Strings. I want to understand what's happening in the method that causes such behavior. Much appreciated.
Output:
start: 01/30/2012 -->January 30, 2012
end: 09/30/2012 -->January 30, 2012

Method:
6 years ago
Yes, I'm confident it's a Maven project, it has the structure of Maven project. It worked fine for a very long time. This morning it is acting out again - same error, can't get it to compile.
6 years ago
Hi Peter, I've tried building as you suggested. The second step takes out my Maven Dependencies and doesn't add them back, so I have to add them back manually. "Clean Project" doesn't get rid of the old target dir entirely - target and m2e-wtp dirs are there, but empty. One thing that's also happening, and equally annoying, in this build precess - now I need to do a maven build, then I need to refresh the project to bring in the fresh target files, then I do tc server build. In the past, I did only the server build and that by it self took care of everything, no cleaning or refreshing of the project.
6 years ago
Hi Peter, STS is Spring + Eclipse IDE (SpringSourse Tool Suite).
I was able to finally build the project, without doing anything different from what I was already doing. I'm not sure what happened to my IDE - it was finding dependencies fine, then it stopped. Now, I can build fine, but I need to physically delete target folder, where freshly compiled files stored for my edits to the files to take place... From what I found on the web STS and Maven are finicky together and some things are not compatible between the two. So I don't know, I don't want to go through the process of re-installing everything if I don't have to.
6 years ago
Hi everyone, I have a Maven project which I have been working with since June in STS IDE with no issues. But on Monday morning, few days ago now, I opened my workspace and was not able to get it compiled again. The error I'm getting apparently is related to STS not seeing Maven Dependency in WEB-INF/lib. This error is:
SEVERE: Error configuring application listener of class org.springframework.web.context.ContextLoaderListener
java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
So the cure for that is to add Maven Dependencies. When I do that (project -> Properties -> Deployment Assembly -> Add -> Java Build Path -> Maven Dependencies) and click Apply And OK, I attempt to "Start the Server"/build again. But this time I get a different build error which is a lot more verbose, the error:

---------------------------------------------------
2012-11-27 13:29:13,670 [pool-2-thread-1] ERROR org.springframework.web.context.ContextLoader - Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.security.authentication.ProviderManager#0': Cannot create inner bean '(inner bean)' of type [org.springframework.security.config.authentication.AuthenticationManagerFactoryBean] while setting bean property 'parent'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)': FactoryBean threw exception on object creation; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.security.authenticationManager': Cannot resolve reference to bean 'proscmAuthenticationProvider' while setting bean property 'providers' with key [0]; nested exception is org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [com.proscm.resources.ProscmAuthenticationProvider] for bean with name 'proscmAuthenticationProvider' defined in file [C:\Users\liliyaw\Desktop\springsource\vfabric-tc-server-developer-2.7.0.RELEASE\spring-insight-instance\wtpwebapps\proscm\WEB-INF\classes\META-INF\spring\applicationContext-security.xml]; nested exception is java.lang.ClassNotFoundException: com.proscm.resources.ProscmAuthenticationProvider
-------------------------------------------------------
So the file applicationContext-security.xml did not change. File resources.ProscmAuthenticationProvider does exist and was not updated. Am I missing something? I should mention - this Maven Project is my first one, my experience setting up Maven projects is minimal.

6 years ago
I ended up drawing a triangle instead of attempting to rotate the ark - used GeneralPath api.
6 years ago
I'm not sure why, but when I use the code posted (Campbell Ritchie), or when I use AffineTransform.setToRotation - in both cases I have the same result: I have no arks drawn with these calls and there are no errors at all. Maybe they get so misplaced, that become not visible, I'm not sure.
6 years ago
Yes, I realized I need the shape separate from the plain. At this point I'm straggling with AffineTransform API. I see AffineTransform has a type FLIP, but I have not yet figured out how to use it. If anyone has some experience with AffineTransform, please post... Here is what I have now:

6 years ago
Hi everyone,
I have a shape, representing an hour hand of a clock. I draw it this way:



The trouble is that the pointy part of the shape is at the center of my clock. I have been attempting to flip it with Graphics2D.translate and Graphics2D.rotate, but no success. Seems like a simple task, but maybe I'm underestimating it. Any ideas?
6 years ago
I cant tell you how thankful I am! Thanks so much!
6 years ago
Hi all, I want to get the hour of day in 24hour cycle. I know that date.getHours() is depreciated. But I'm tempted to use it since I can not get the same result out of calendar.hour call.
It seems call calendar.setTime(now) does not pick up the current date value. Anybody knows what's going on here? I have the following:

6 years ago
Oh, that's right! Didn't even think of that! Thank you!
6 years ago
Hi all,
I want to get the code below to run, but at this point Collections.sort(c) throws java.lang.ClassCastException.
Basically, I want to get a max or max by index from a 2d array. I have it working when I do manual 2d array traversal, but I'm hoping to make something faster. Any relevant input is much appreciated.
Here is what I have:

6 years ago