R Kaja Mohideen

Java

Dedicated to the discussion of the Java programming language a...
Apr 1, 2016 13:04
I understand that this room is for Java. I have a Maven related question which I need to discuss. I don't find a room for Maven. Since Maven is widely used for Java projects, May I post the question here? Mods ?
Jan 23, 2016 14:57
and so my class loading failed .
Jan 23, 2016 14:57
@CrazyNinja I found out the solution. It's due to a conflicting transitive dependency, a third-party class load failed
Jan 23, 2016 14:57
@Cra
Jan 23, 2016 14:00
Anyone - experienced this error before? Please help.
Jan 23, 2016 14:00
After trying myself with lots & lots of Google, etc,... I'm confused & afraid that my search is not in right direction.
Jan 23, 2016 13:59
I have maven project (imported in Eclipse). JUnit Tests are running fine in my Eclipse. But, when I try "mvn clean install" - Tests are always failing with NoClassDefFound - and I'm confused as the class that are reported with these exceptions are from the very same Maven project. :-(
Sep 1, 2015 18:16
Thanks for your time, bro.
Sep 1, 2015 18:16
Ok.
Sep 1, 2015 18:15
But, will it act against ElementCollection property ?
Sep 1, 2015 18:15
yes
Sep 1, 2015 18:10
I'm not sure which one works best for my case.. so, will try both and pick one.
Sep 1, 2015 18:10
If possible, can you also give Criteria variant..
Sep 1, 2015 18:09
*have to
Sep 1, 2015 18:09
I have use HQL basically, Am i right ?
Sep 1, 2015 18:09
Yeah
Sep 1, 2015 18:08
Yes, I'm using Hibernate.
Sep 1, 2015 18:07
No. I don't. But, for this problem of querying entities based on a value in collection member inside entity, examples are using String and like operation. So, I'm searching what operation to use for querying when the collection is Long (not String).
Sep 1, 2015 18:06
So, not sure how to fetch list of entities where an entity has a given Long number in its lisst of Long
Sep 1, 2015 18:06
Yes. But, like won't work with Long
Sep 1, 2015 18:00
I find many many examples on how to query a ElementCollection from DB using JPA which are using List<String> and "like" operation. I am trying to store List<Long> in my Entity. Any pointers to how to tackle Long with ElementCollection will be highly appreciated.
Aug 22, 2015 06:34
Hi all... I'm trying to have a Map<String, Object> in my JPA / Hibernate Entity class. But, the value of Map (Object) can be any Boxed Primitive (Integer, Long, String) or another Customer Object. I know that we can use TypeConvertor or HibernateType to map custom java-types to SQL types. But, not sure how I can achieve this case. What would be the type of column in my join table (resulting from my Map) ?
Jul 8, 2015 04:32
Does Spring support hot deployment; like installing / starting new bundles in OSGi ?
May 30, 2015 07:07
ANy help on how to approach this issue is much appreciated.
May 30, 2015 07:07
Hi room. I'm trying implement a SOAP client using Apache CXF deployed in Felix (OSGi). I'm getting, ClassNotFound org.apache.cxf.jaxws.spi.ProviderImpl though the bundle with that class is ACTIVE.
Mar 23, 2015 14:16
Hi room... I'm using Hibernate Query::list method to get some rows as Java beans. I'm wondering whether removing an object from this list will delete the object from DB or not. Hibernate Javadoc doesn't specify anything like HashMap::keySet() where it is explicitly mentioned remove will impact the collection... Any idea ?
Feb 27, 2015 16:06
Hi room. Is this right place to ask clarification on Jersey/Spring ?
Feb 11, 2015 16:29
@fge Ok. Will use and post link soon.
Feb 11, 2015 16:23
And, my java classes have Jaxb annotations on fields
Feb 11, 2015 16:22
is the exception I'm getting
Feb 11, 2015 16:22
com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "propertyName"
Feb 11, 2015 16:21
this is how the objectMapper is configured
Feb 11, 2015 16:21
objectMapper
.disable(DeserializationFeature.ACCEPT_EMPTY_STRING_AS_NULL_OBJECT);
AnnotationIntrospector jackson = new JacksonAnnotationIntrospector();
AnnotationIntrospector jaxb = new JaxbAnnotationIntrospector(objectMapper.getTypeFactory());
AnnotationIntrospector pair = new AnnotationIntrospectorPair(jaxb, jackson);
objectMapper.getSerializationConfig().with(pair);
objectMapper.getDeserializationConfig().with(pair);
Feb 11, 2015 16:20
Hi room.. I have few Java classess which are already have JaxB annotations. I'm trying to use the same classes with Jackson using JaxbAnnotationInspector. But, I'm getting UnknownPropertyException. Any idea what I'm missing here?
Feb 6, 2015 13:20
I'll make my REST api accessible by a particular role, so other application uses a particular username/passwd in http basic auth to reach my rest resource. I want to use the details the REST api gets from the other applications to create new session so, when those applications interact with each other, can validate the session using my auth application.
Feb 6, 2015 13:17
Hi room... I have a Spring application using JAAS to authenticate & authorize. Now, I'm trying to add some REST API to that application, so others applications in my solutions uses REST to use my appl'n for auth purpose. Any idea, how to do this?
Jan 24, 2015 14:21
@Vogel612 Ok, sure. Thanks.
Jan 24, 2015 14:19
@Vogel612 Hmmm.. Yes, it seems so... What is the best interface/channel to get some suggestion/advise for my problem? Some other IRC channel or a question in SO?
Jan 24, 2015 14:17
Just to clarify.. I tried and found that xmlbean is not considering my maven dependency & requires the base-schema for operation. My question now - How to retain the xmlbean-generated files for specific set of schemas alone and delete all files generated due to base-schemas? So, my sub-project can contain only specific code & compile smoothly as it is depending on base-schema project.
Jan 24, 2015 14:07
@Vogel612 Yes. Even when I add the base-schema as dependency in my sub-project. Any idea, on how to retain files generated for set of specific files?
Jan 24, 2015 14:04
Since the base schema will be made available to all applications in my JBoss. I want my sub-projects to have only specific schema generated code in their jar and resolve the base schema types in runtime. Is this possible ?
Jan 24, 2015 14:04
In my team, we're trying to develop XML based application, where a base-schema defines abstract types and other projects extend and produce more schemas. The base-schema is contained in a project which has xmlbean plugin and generates a JAR. But, the sub projects also have to the base-schema for xmlbean to generate code for sub-project specific schema.
Jan 24, 2015 13:59
This is channel right place to discuss Maven xmlbean plugin ?
Jan 20, 2015 08:13
Is this room right place to discuss about netty-tcnative ?
Jan 19, 2015 16:38
Someone please help me understand this and resolve it ?
Jan 19, 2015 16:37
Hi all. I'm trying to use netty with OpenSSL for tls server implementation. I'm getting the following exception when I run my application. java.lang.UnsatisfiedLinkError: unsupported JNI version 0xFFFFFFFF
Jan 17, 2015 13:28
@Vogel612 Yes. I'm trying my best in "Googling" to find how to configure the maven mojo or Sonar to get my rule working. It is working when I run it using my Eclipse PMD Plugin :-(
Jan 17, 2015 13:26
What ?
 

Java, Spring,JPA, PHP, jQuery & Javas

This room is for Java, ,Spring Framework, JPA, Javascript, jQu...
Jul 8, 2015 04:31
Does Spring support hot deployment; like installing / starting new bundles in OSGi ?