• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: SerializerFactory and Leopard 10.5 (eclipse and xcode)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: SerializerFactory and Leopard 10.5 (eclipse and xcode)


  • Subject: Re: SerializerFactory and Leopard 10.5 (eclipse and xcode)
  • From: Chuck Hill <email@hidden>
  • Date: Sat, 23 May 2009 14:03:24 -0700


On May 23, 2009, at 12:56 PM, Carlos Maldonado wrote:

More on this issue... I created a different app to try to discard errors related to my particular classpath or any other user-created library or framework but I got the same error, could this error is more related to the mix between MacOS10.5+WOLips?

No, that works fine.

I am 98.37% sure that you have jars in /Library/Java/Extensions or / Library/WebObjects/Extensions that should not be there / are an older version.

Chuck


. The code below is a dummy just to prove myself that the error is not related to anything else on the project I'm converting from 10.4(WO5.3) to 10.5 (WO5.4). I created this dummy project --which btw, it successfully compiles-- with just the offending code new BeanSerializerFactory which fails with the error following the code.

package your.app.components;

import org.apache.axis.encoding.ser.BeanDeserializerFactory;
import org.apache.axis.encoding.ser.BeanSerializerFactory;

import com.webobjects.appserver.WOContext;
import com.webobjects.appserver.WOWebServiceRegistrar;

import er.extensions.components.ERXComponent;

public class Main extends ERXComponent {
class xyz {
public xyz() {}
}
public Main(WOContext context) {
super(context);
javax.xml.namespace.QName ldUserAccountQName = new javax.xml.namespace.QName("Foo-UAccount", "MooUAcct");
WOWebServiceRegistrar.registerFactoriesForClassWithQName(new BeanSerializerFactory(xyz.class, ldUserAccountQName), new BeanDeserializerFactory(xyz.class, ldUserAccountQName), xyz.class, ldUserAccountQName);

}
}


Application: HolaSoap
Error: java.lang.reflect.InvocationTargetException
Reason: javax/xml/rpc/encoding/SerializerFactory
Stack trace:
File Line# Method Package
ClassLoader.java NA defineClass1 java.lang
ClassLoader.java 675 defineClass java.lang
SecureClassLoader.java 124 defineClass java.security
URLClassLoader.java 260 defineClass java.net
URLClassLoader.java 56 access$100 java.net
URLClassLoader.java 195 run java.net
AccessController.java NA doPrivileged java.security
URLClassLoader.java 188 findClass java.net
ClassLoader.java 316 loadClass java.lang
ClassLoader.java 251 loadClass java.lang
ClassLoader.java 374 loadClassInternal java.lang
ClassLoader.java NA defineClass1 java.lang
ClassLoader.java 675 defineClass java.lang
SecureClassLoader.java 124 defineClass java.security
URLClassLoader.java 260 defineClass java.net
URLClassLoader.java 56 access$100 java.net
URLClassLoader.java 195 run java.net
AccessController.java NA doPrivileged java.security
URLClassLoader.java 188 findClass java.net
ClassLoader.java 316 loadClass java.lang
ClassLoader.java 251 loadClass java.lang
ClassLoader.java 374 loadClassInternal java.lang
ClassLoader.java NA defineClass1 java.lang
ClassLoader.java 675 defineClass java.lang
SecureClassLoader.java 124 defineClass java.security
URLClassLoader.java 260 defineClass java.net
URLClassLoader.java 56 access$100 java.net
URLClassLoader.java 195 run java.net
AccessController.java NA doPrivileged java.security
URLClassLoader.java 188 findClass java.net
ClassLoader.java 316 loadClass java.lang
ClassLoader.java 306 loadClass java.lang
Launcher.java 280 loadClass sun.misc
ClassLoader.java 251 loadClass java.lang
ClassLoader.java 374 loadClassInternal java.lang
Main.java 18 <init> your.app.components
NativeConstructorAccessorImpl.java NA newInstance0 sun.reflect
NativeConstructorAccessorImpl.java 39 newInstance sun.reflect
DelegatingConstructorAccessorImpl.java 27 newInstance sun.reflect
Constructor.java 494 newInstance java.lang.reflect
_NSUtilities.java 614 instantiateObject com.webobjects.foundation
WOComponentDefinition.java 544 _componentInstanceInContext com.webobjects.appserver._private
WOComponentDefinition.java 642 componentInstanceInContext com.webobjects.appserver._private
WOApplication.java 2332 pageWithName com.webobjects.appserver
WOComponentRequestHandler.java 284 _dispatchWithPreparedSession com.webobjects.appserver._private
WOComponentRequestHandler.java 332 _dispatchWithPreparedApplication com.webobjects.appserver._private
WOComponentRequestHandler.java 369 _handleRequest com.webobjects.appserver._private
WOComponentRequestHandler.java 442 handleRequest com.webobjects.appserver._private
WOApplication.java 1687 dispatchRequest com.webobjects.appserver
ERXApplication.java 1737 dispatchRequestImmediately er.extensions.appserver
ERXApplication.java 1702 dispatchRequest er.extensions.appserver
WOWorkerThread.java 144 runOnce com.webobjects.appserver._private
WOWorkerThread.java 226 run com.webobjects.appserver._private
Thread.java 613 run java.lang
NA : Non applicable, JIT activated


Any insights or suggested workarounds?

-Carlos
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden

-- Chuck Hill Senior Consultant / VP Development

Come to WOWODC'09 in San Fran this June!
http://www.wocommunity.org/wowodc09/

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: SerializerFactory and Leopard 10.5 (eclipse and xcode)
      • From: Carlos Maldonado <email@hidden>
References: 
 >SerializerFactory and Leopard 10.5 (eclipse and xcode) (From: Carlos Maldonado <email@hidden>)

  • Prev by Date: SerializerFactory and Leopard 10.5 (eclipse and xcode)
  • Next by Date: Re: SerializerFactory and Leopard 10.5 (eclipse and xcode)
  • Previous by thread: SerializerFactory and Leopard 10.5 (eclipse and xcode)
  • Next by thread: Re: SerializerFactory and Leopard 10.5 (eclipse and xcode)
  • Index(es):
    • Date
    • Thread