Win a copy of Beginning Java 17 Fundamentals: Object-Oriented Programming in Java 17 this week in the Java in General forum!

Vladimir Koba

+ Follow
since May 29, 2012
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Vladimir Koba

Hi folks!
I've a class User:

And enum with user privileges:

I need a HQL query, which return all users, who has all priviligies by set.

My query:

And execute:

I've an error:

I have'nt idea, why "No value specified for parameter 1"..
thanks in advance!
Hi all! I had a problem with unmarshalling xml. More details:

I've a XML file:

Also, I've Contractor pojo.

So, I use Castor for unmarshall xml.

Castor mapping file:

Spring configuration:

Finally, I get list of contractor:

After run, I've follow error:
Caused by: org.xml.sax.SAXException: unable to find FieldDescriptor for 'contractor' in ClassDescriptor of contractors
at org.exolab.castor.xml.UnmarshalHandler.startElement(
at org.exolab.castor.xml.UnmarshalHandler.startElement(
at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at org.exolab.castor.xml.Unmarshaller.unmarshal(
... 9 more

Can I get list of Contractor without wrapper object? Please, help!
9 years ago
Hi all! I want to log every invoke public method in my class. So, i create LoggingAspect class for logging, and configure Spring on xml.
When i start my application, all methods logging three times, for example:

Entering method selectAllCompanies...
Entering method selectAllCompanies...
Entering method selectAllCompanies...

Really, methods invokes one times. I think, that problem in a pointcut, but i'm not sure.

9 years ago