Chris Riffle

Greenhorn
+ Follow
since Dec 30, 2005
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 Chris Riffle

I'm wanting to leverage MTOM in writing a service with 'java code first' jaxb annotations to deploy to jaxws jbosswsnative on jboss. I understand putting annotations on a 'Single' DataHandler parameter or member variabe as in




I'm hoping to have other operations that use ArrayList as input and output but haven't found examples online for recommendations on how to use jaxb annotations wtih DataHandler(s?) to accomplish this. Would it be advised to put a DataHandler inside an ArrayList as in:




To annotate a pojo to be used as a return type for a service operation -- could I use an ArrayList to store an ArrayList of images:

Thank you
10 years ago
I've implemented a service and deployed it to axis2.

When I receive the message with an XMLStreamReader and then write it to a file with an XMLStreamWriter, the entire message is wrapped with an <extraElement> tag.

Any ideas on what is causing this?

I get the incoming message with an XmlStreamReader like this:

XMLStreamReader xmlStreamReader = notify.getPullParser(new QName(
"namespace", "prefix"));

I have different values in the QName parameters for the namespace, but I'm still learning about qnames so I need to learn the significance of what I should specify in the qname when getting the pullParser -- if it's supposed to correspond to a root namespace in my expected incoming message?
Thanks!
11 years ago
Hi - I have a primary front wsdl that imports another wsdl. They both reference 2 xsd's. They are all local in the same directory.

I'm able to generate skeleton/stubs from them with Axis2 wsdl2java, but not with the jdk's wsimport - which I need to use.

wsimport fails with:

[ERROR] SCD "wsa:EndpointReference" didnt match any schema component
line 8 of http://dummy.pseudo-schema#schema2


My schema1.xsd file contains the somewhat relevant element:

<xs:element minOccurs="0" maxOccurs="1" name="MyElementName" xmlns:q1="http://www.w3.org/2005/08/addressing" type="q1:EndpointReferenceType" />

My schema2.xsd file contains

<xs:complexType name="EndpointReferenceType">
<xs:sequence>
<xs:element minOccurs="0" maxOccurs="1" name="MyElement1" type="tns:AttributedURIType" />
<xs:element minOccurs="0" maxOccurs="1" name="MyElement2" type="tns:ReferenceParametersType" />
<xs:any minOccurs="0" maxOccurs="unbounded" />
</xs:sequence>
<xs:anyAttribute />
</xs:complexType>



My 2 wsdls don't mention this EndpointReferenceType

I'm using the jdk: 1.7.0_09-b05 on Windows 7

Any chance a genius could provide a tip to resolve it? Or I might can provide more info.

I'm not sure what the error message is indicating. I think it is saying a standard must be followed that requires a wsa:EndpointReference element to be specified,... so I'm wondering why it is fine with axis2.

I unfortunately cannot include the complete files.

Thank you



11 years ago

Hi everyone,

Does isInfoEnabled() return true for debug level loggers?

Thanks!
12 years ago
I think I found the problem -- Android has bugs in it with Reflection prior to version 2.3

http://code.google.com/p/android/issues/detail?id=6636

I ported my QpidDroid project to Android 2.3 and it looks like JNDI is successfully creating the InitialContext now with the QPID connection params
12 years ago
Hi Android folks,

I'm trying to port: Apache Qpid Client, JMS and JNDI -- to Android. I'm able to get a successful compile/build of my QpidDroid project when running the ant debug install targets after passing Dalvik the --core-library parameter to allow javax packages for JMS/JNDI.

I think this is legally legit because I'm using the old/first seperate JNDI jar currently provided by Oracle's website. I'm using the JMS jar that comes with Apache Geronimo in Qpid,.. but I think it's also available from Oracle as a seperate download. My dev environment uses Android platform 2.1 and jdk 1.6.

The problem is, it seems it currently cannot instantiate my custom jndi connection factory: PropertiesFileInitialContextFactory. This is a .java source file in my QpidDroid project(not a .class in a libs jar) (I extracted the class out of the qpidClient jar). Would someone have any idea as to why it cannot be instantiated here? I was wondering if proguard might be breaking reflection,... but I'm building it with the debug ant task,.. so I'm thinking proguard shouldn't be running at all.

The exception occurs when I run the installed app on the emulator.


01-18 18:05:16.966: W/System.err(296): [Root exception is java.lang.ClassNotFoundException: org.apache.qpid.jndi.PropertiesFileInitialContextFactory]javax.naming.NoInitialContextException: Cannot instantiate class: org.apache.qpid.jndi.PropertiesFileInitialContextFactory
01-18 18:05:17.006: W/System.err(296): at javax.naming.spi.NamingManager.getDefaultInitialContextFactory(NamingManager.java:720)
01-18 18:05:17.006: W/System.err(296): at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:768)
01-18 18:05:17.016: W/System.err(296): at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:169)
01-18 18:05:17.016: W/System.err(296): at javax.naming.InitialContext.<init>(InitialContext.java:146)
01-18 18:05:17.016: W/System.err(296): at org.rif.QpidDroid.Hello.runTest(Hello.java:56
)


Thanks for any tips!
12 years ago


There used to be a commercial android jms broker available "iBus//Mobile" from the company "Softwired" a couple years ago,.. but it seems there are no longer any traces of that company or their product to be found.

Apache QPID cannot currently be used as is on the Android platform, because QPID extends jms classes.

JMS classes, along with JNDI are not provided by the Android platform out of the box because these classes are in the javax.* package -- which is large and poses versioning issues that Android releases avoid.

QPID has stated plans of supporting Android in a future QPID release.

To put QPID on Android by oneself, it would require finding out what the needed packages are by JMS,.. and extracting/re-bundling these packages, and putting them on Android.
12 years ago
hi everybody good afternoon,

I can't get my ant javac task to find the org.eclipse.jdt.core.JDTCompilerAdapter class inside of the jdtCompilerAdapter.jar I looked inside the jar -- the class is definitely their. I'm definitely specifying the correct package and class name.

I would like to have the javac task use the Eclipse compiler instead of the Sun Microsystems one that I have set in my JAVA_HOME environment variable

I've tried setting <property name="build.compiler" value="org.eclipse.jdt.core.JDTCompilerAdapter"/>

I've tried setting the javac compiler attribute

I am NOT calling the javac fork attribute

I've tried pasting the jdtCompilerAdapter.jar into my ant/lib folder and my SunMic/jdk/lib and bin folders

I tried putting the jar file as the first entry in my %PATH% windows env variable

I'm using eclipse Ganymede, ant 1.7.1, jdk 5 update 16 and Windows xp

A guy on my team wrote some <g> generics code that won't compile with the Sun compiler because of a Sun bug, -- but the code does compile with the eclipse compiler.

Could anybody save the day!?
Thanks take care
15 years ago
Thanks Rene,

I like the 3rd situation you mentioned where the example.properties file is located in a folder that's included in the class path(not in a .jar)

I did it this way:



where the example.properties file is located in a folder that's included in the classpath


[ September 12, 2008: Message edited by: Chris Riffle ]
15 years ago
Hi everyone,

Is it possible to dynamically load a resource, like a java .properties file, when that file is just sitting by itself in a folder that's in the class path(such as a lib folder)? I'd like to get to it without stuffing it into a .jar and without hard-coding a disk path to it.
Thanks!

+Application
+src
-lib
here.properties
ArchivedResources.jar
+bin
[ September 12, 2008: Message edited by: Chris Riffle ]
15 years ago
Hi Cameron good morning,

The deployable version(with bundled jvm) of my desktop app is 40 megabytes. I consider this a reasonable size for users to download from the web. The app uses an internal, standalone hsqldb database with jdbc for manipulation.

I'm interested in integrating hibernate instead of my nasty-looking jdbc sql strings... but concerned that including hibernate library files will make the download file of my app significantly larger. Does your book talk about file size foot prints and choices of minimal installation for basic lib use only?

Also, I read that when initializing/loading a hibernate factory object, it is a somewhat heavyweight process that should be done only once upon app load. Does your book talk about that or provide any workarounds? ... like maybe a background thread.. I don't know. How "heavyweight" is that process?

Congratulations on writing your book! If I don't win I'm going to buy a copy. Have a good day,
Chris




I've been pretty impressed with the GUI designer offered by the NetBeans ide.

Are there any tools and aspects of IntelliJ in the area of GUI design that are significantly better than that of NetBeans?

Thanks!
I studied * and *.com practice tests.
[ February 01, 2007: Message edited by: Barry Gaunt ]
17 years ago
95 that's amazing
17 years ago