Error while passing non built in java type as parameter to webservice
Hi,
I am using Weblogic8.1 to deploy my webservice. I have designed Dynamic Proxy client to invoke my webservice. While calling webservice, i am passing array of my POJO class as an input parameter to my webservice and getting below error -
[java] java.lang.reflect.UndeclaredThrowableException
[java] at $Proxy0.lookup(Unknown Source)
[java] at cititru.scan.transScan.createGiService(transScan.java:64)
[java] at cititru.scan.transScan.main(transScan.java:26)
[java] Caused by: java.rmi.RemoteException: Failed to invoke; nested exception is:
[java] javax.xml.rpc.JAXRPCException: web service invoke failed: javax.xml.soap.SOAPException: failed to serialize class [Lcititru.api.interdict.gi.ScannedTextData;weblogic.xml.schema.binding.SerializationException: mapping lookup failure. class=class [Lcititru.api.interdict.gi.ScannedTextData; class context=TypedClassContext{schemaType=['java:cititru.api.interdict.gi']:ArrayOfScannedTextData}
[java] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
[java] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
[java] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
[java] at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
[java] at weblogic.webservice.core.rpc.StubImpl.throwRemoteException(StubImpl.java:266)
[java] at weblogic.webservice.core.rpc.StubImpl.invoke(StubImpl.java:251)
[java] ... 3 more
In above error message ScannedTextData is my POJO class which i am passing as an array to my webservice.I am using servicegen and clientgen ant task to generate my service. Also i am setting generateTypes=True to generate Serialization class automatically. Please anyone can tell me what's need to be done to resolve the above error.
I am also pasting code snippet of my Dynamic Proxy client.
import javax.xml.namespace.QName;
import javax.xml.rpc.Service;
import javax.xml.rpc.ServiceFactory;
import javax.xml.rpc.encoding.TypeMappingRegistry;
import javax.xml.rpc.encoding.TypeMapping;
import java.net.URL;
import java.util.StringTokenizer;
import java.util.ArrayList;
import cititru.api.interdict.gi.*;*
*import cititru.interdict.gi.*;
String wsdlURL = "http://localhost:7001/ws_gi_server/GiService?WSDL";
String namespace = "http://www.bea.com/ws_gi_server";
String serviceName = "GiService";
String portName = "GiServicePort";
ServiceFactory serviceFactory = ServiceFactory.newInstance();
QName service_Name = new QName(namespace, serviceName);
Service sampleService = serviceFactory.createService(new URL(wsdlURL), service_Name);
TypeMappingRegistry tmr = sampleService.getTypeMappingRegistry();
TypeMapping tm = (TypeMapping)tmr.createTypeMapping();
tm.register(ScannedTextData.class, service_Name, new ScannedTextDataCodec(), new ScannedTextDataCodec());
/* Service access */*
*GiServerInterface gi = (GiServerInterface) sampleService.getPort(new QName(namespace, portName),*
*GiServerInterface.class);*
*/* Service invocation */
bluReplyData = gi.lookup("MUMBAI",ruleSet,"EXECUTOR1",std);-----
Regards,
Ankit
Hi,
I am using Weblogic8.1 to deploy my webservice. I have designed Dynamic Proxy client to invoke my webservice. While calling webservice, i am passing array of my POJO class as an input parameter to my webservice and getting below error -
[java] java.lang.reflect.UndeclaredThrowableException
[java] at $Proxy0.lookup(Unknown Source)
[java] at cititru.scan.transScan.createGiService(transScan.java:64)
[java] at cititru.scan.transScan.main(transScan.java:26)
[java] Caused by: java.rmi.RemoteException: Failed to invoke; nested exception is:
[java] javax.xml.rpc.JAXRPCException: web service invoke failed: javax.xml.soap.SOAPException: failed to serialize class [Lcititru.api.interdict.gi.ScannedTextData;weblogic.xml.schema.binding.SerializationException: mapping lookup failure. class=class [Lcititru.api.interdict.gi.ScannedTextData; class context=TypedClassContext{schemaType=['java:cititru.api.interdict.gi']:ArrayOfScannedTextData}
[java] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
[java] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
[java] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
[java] at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
[java] at weblogic.webservice.core.rpc.StubImpl.throwRemoteException(StubImpl.java:266)
[java] at weblogic.webservice.core.rpc.StubImpl.invoke(StubImpl.java:251)
[java] ... 3 more
In above error message ScannedTextData is my POJO class which i am passing as an array to my webservice.I am using servicegen and clientgen ant task to generate my service. Also i am setting generateTypes=True to generate Serialization class automatically. Please anyone can tell me what's need to be done to resolve the above error.
I am also pasting code snippet of my Dynamic Proxy client.
import javax.xml.namespace.QName;
import javax.xml.rpc.Service;
import javax.xml.rpc.ServiceFactory;
import javax.xml.rpc.encoding.TypeMappingRegistry;
import javax.xml.rpc.encoding.TypeMapping;
import java.net.URL;
import java.util.StringTokenizer;
import java.util.ArrayList;
import cititru.api.interdict.gi.*;*
*import cititru.interdict.gi.*;
String wsdlURL = "http://localhost:7001/ws_gi_server/GiService?WSDL";
String namespace = "http://www.bea.com/ws_gi_server";
String serviceName = "GiService";
String portName = "GiServicePort";
ServiceFactory serviceFactory = ServiceFactory.newInstance();
QName service_Name = new QName(namespace, serviceName);
Service sampleService = serviceFactory.createService(new URL(wsdlURL), service_Name);
TypeMappingRegistry tmr = sampleService.getTypeMappingRegistry();
TypeMapping tm = (TypeMapping)tmr.createTypeMapping();
tm.register(ScannedTextData.class, service_Name, new ScannedTextDataCodec(), new ScannedTextDataCodec());
/* Service access */*
*GiServerInterface gi = (GiServerInterface) sampleService.getPort(new QName(namespace, portName),*
*GiServerInterface.class);*
*/* Service invocation */
bluReplyData = gi.lookup("MUMBAI",ruleSet,"EXECUTOR1",std);-----
Regards,
Ankit
Similar Messages
-
Error serializing non-built in data type
hi
I am getting the following exception while accessing a webservice which uses non-built-in
data types as parameter to the service method
Its called ProcessingOrderTO.
The ProcessingOrderTO has three sub-types.. one of which is a Collection
Does anybody encountred this before
I have also attch the WSDL generated .
I am using wls81 SP1
thanks
jas
java.rmi.RemoteException: web service invoke failed: javax.xml.soap.SOAPException:
failed to serialize class mypackage.orderprocessing.processing.to.ProcessingOrderTOweblogic.xml.schema.binding.SerializationException:
mapping lookup failure. class=interface java.util.Collection class context=TypedClassContext{schemaType=['java:language_builtins.util']:Collection};
nested exception is:
javax.xml.soap.SOAPException: failed to serialize class mypackage.orderprocessing.processing.to.ProcessingOrderTOweblogic.xml.schema.binding.SerializationException:
mapping lookup failure. class=interface java.util.Collection class context=TypedClassContext{schemaType=['java:language_builtins.util']:Collection}
javax.xml.soap.SOAPException: failed to serialize class mypackage.orderprocessing.processing.to.ProcessingOrderTOweblogic.xml.schema.binding.SerializationException:
mapping lookup failure. class=interface java.util.Collection class context=TypedClassContext{schemaType=['java:language_builtins.util']:Collection}
at weblogic.webservice.core.DefaultPart.invokeSerializer(DefaultPart.java:328)
at weblogic.webservice.core.DefaultPart.toXML(DefaultPart.java:297)
at weblogic.webservice.core.DefaultMessage.toXML(DefaultMessage.java:619)
at weblogic.webservice.core.ClientDispatcher.send(ClientDispatcher.java:206)
at weblogic.webservice.core.ClientDispatcher.dispatch(ClientDispatcher.java:143)
at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:444)
at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:430)
at weblogic.webservice.core.rpc.StubImpl._invoke(StubImpl.java:270)
at mypackage.orderprocessing.processing.client.OrderProcessingAssemblerXDBeanPort_Stub.processOrder(OrderProcessingAssemblerXDBeanPort_Stub.java:45)
at mypackage.orderprocessing.processing.client.Client.main(Client.java:69)
[OrderProcessingAssemblerXDBean.wsdl]Hi Mik
Thanks for these suggestions.I have now completely moved to specific types, instead
of the Collections and ArrayList.
Things seem to be working fine ....thanks for all your help
thanks
jas
"Michael Wooten" <[email protected]> wrote:
>
Hi Jas,
My mistake. I copied the code from a DII client and you are using a Stub
one :-)
The correct code is:
TypeMappingRegistry registry = service.getTypeMappingRegistry();
Where the service variable is what was returned from your XXX_Impl()
call.
You don't have to cast anything, because the object returned from that
method
already extends javax.xml.rpc.Service.
w.r.t. you "moreover" text:
As long as the definition of the non-built-in types is the same as the
WSDL you
sent earlier, you shouldn't have a problem. The question I have is why
are you
a using java.util.Collection object on a web service operation's method
signature,
in the first place? When you do this, you do to things:
1. Producing WSDL that has xsd:anyType for element types. xsd:anyTypes
are fine
for defining XML grammars (i.e. WSDL, SOAP, etc.), but they add too much
mystery
to a business service. They basically tell the WSDL consumer, "the content
of
this element can be anything, so you'll have to figure out what it is
when you
get it. Hee, hee, hee!"
2. Introducing Java-specific classes into your web service. If the extrasList
element always contains the same type of elements, the type for it should
be an
array of whatever that object is. If you used an ArrayList because you
don't know
how many elements this will be, you can still use it in the implementation,
and
call the toArray() method to return a typed array.
To me, it just seems wrong to use Java container objects (i.e. ArrayList,
Collection,
HashMap, Set, etc.) in a web service operation's method signature, because
it
goes against the "programming language agnostic" idea of web services
:-) Just
my two cents.
Regards,
Mike Wooten
"jas" <[email protected]> wrote:
hi Michael
thanks for the reply ..
I tried using the smippet below .. but instead got a ClassCast Exception
at
TypeMappingRegistry registry = ((Service) port).getTypeMappingRegistry();
Moreover
1. When i generate client-jars using the clientgen task, the definition
of my
non-built-in types is different ...
2.
thanks
jas
"Michael Wooten" <[email protected]> wrote:
Hi Jas,
From the stack trace, it looks like you are using a JAX-RPC stub client.
Our java.util.Collection
serializer/deserializer is assigned to the "java:language_builtins.util"
namespace,
so you'll need to register the ArrayList and Collection in the TypeMappingRegistry.
Here's a code snippet:
import java.util.ArrayList;
import java.util.Collection;
import javax.xml.soap.SOAPConstants;
import javax.xml.namespace.QName;
import javax.xml.rpc.Service;
import javax.xml.rpc.encoding.TypeMapping;
import javax.xml.rpc.encoding.TypeMappingRegistry;
import weblogic.xml.schema.binding.internal.builtin.JavaUtilArrayListCodec;
import weblogic.xml.schema.binding.internal.builtin.JavaUtilCollectionCodec;
TypeMappingRegistry registry = ((Service)port).getTypeMappingRegistry();
TypeMapping mapping = registry.getTypeMapping(SOAPConstants.URI_NS_SOAP_ENCODING
mapping.register(
ArrayList.class,
new QName("java:language_builtins.util", "ArrayList"),
new JavaUtilArrayListCodec(),
new JavaUtilArrayListCodec()
mapping.register(
Collection.class,
new QName("java:language_builtins.util", "Collection"),
new JavaUtilCollectionCodec(),
new JavaUtilCollectionCodec()
//invoke the web service operation that uses the ArrayList and Collection
There use to be a problem were the type mapping information in the
MyServiceClient.jar
(the one that the clientgen Ant task produces), was incorrect, butI
think this
was fixed well before WLS 8.1 :-)
I haven't tested the above with WLS 8.1 SP 1, but I think it may fix
the problem
you are having.
BTW:
JavaUtilArrayListCodec and JavaUtilCollectionCodec are in ${WL_HOME}/server/lib/webserviceclient.jar.
Regards,
Mike Wooten
"jas" <[email protected]> wrote:
hi
I am getting the following exception while accessing a webservice
which
uses non-built-in
data types as parameter to the service method
Its called ProcessingOrderTO.
The ProcessingOrderTO has three sub-types.. one of which is a Collection
Does anybody encountred this before
I have also attch the WSDL generated .
I am using wls81 SP1
thanks
jas
java.rmi.RemoteException: web service invoke failed: javax.xml.soap.SOAPException:
failed to serialize class mypackage.orderprocessing.processing.to.ProcessingOrderTOweblogic.xml.schema.binding.SerializationException:
mapping lookup failure. class=interface java.util.Collection classcontext=TypedClassContext{schemaType=['java:language_builtins.util']:Collection};
nested exception is:
javax.xml.soap.SOAPException: failed to serialize class mypackage.orderprocessing.processing.to.ProcessingOrderTOweblogic.xml.schema.binding.SerializationException:
mapping lookup failure. class=interface java.util.Collection classcontext=TypedClassContext{schemaType=['java:language_builtins.util']:Collection}
javax.xml.soap.SOAPException: failed to serialize class mypackage.orderprocessing.processing.to.ProcessingOrderTOweblogic.xml.schema.binding.SerializationException:
mapping lookup failure. class=interface java.util.Collection classcontext=TypedClassContext{schemaType=['java:language_builtins.util']:Collection}
at weblogic.webservice.core.DefaultPart.invokeSerializer(DefaultPart.java:328)
at weblogic.webservice.core.DefaultPart.toXML(DefaultPart.java:297)
at weblogic.webservice.core.DefaultMessage.toXML(DefaultMessage.java:619)
at weblogic.webservice.core.ClientDispatcher.send(ClientDispatcher.java:206)
at weblogic.webservice.core.ClientDispatcher.dispatch(ClientDispatcher.java:143)
at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:444)
at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:430)
at weblogic.webservice.core.rpc.StubImpl._invoke(StubImpl.java:270)
at mypackage.orderprocessing.processing.client.OrderProcessingAssemblerXDBeanPort_Stub.processOrder(OrderProcessingAssemblerXDBeanPort_Stub.java:45)
at mypackage.orderprocessing.processing.client.Client.main(Client.java:69) -
Accessing Non-Built-In Data Types webservice??
While trying to inoke a webservice, which takes in non-built-in data types, the
following EXCEPTION is thrown.
[java] javax.xml.soap.SOAPException: failed to serialize interface javax.xml.soap.SOAPElementweblogic.xml.schema.binding.SerializationException:
mapping lookup failure. class=interface javax.xml.soap.SOAPElement class context=TypedClassContext{schemaType=['http://www.jay.com/com/jay/obsoon/orderstatus']:DoOBSStat
usWebService}
While trying to inoke a webservice, which takes in non-built-in data types,
ERROR is thrown.
[java] Calling Web Service at: ServiceImpl[
[java] WebService[
[java] name=DoOBSStatusWebService,
[java] javax.xml.rpc.JAXRPCException: failed to invoke operation 'checkJavaObjects'
due to an error in the soap layer (SAAJ); nested exception is: Message[ failed
to serialize interface javax.xml.soap.SOAPElementweblogic.xml.schema.binding.SerializationException:
mapping lookup failure. class=interface javax.xml.soap.SOAPElement class context=TypedClassContext{schemaType=['http://www.jay.com/com/jay/obsoon/orderstatus']:DoOBSStatusWebService}]StackTrace[
[java] targetNamespace=http://www.jay.com/com/jay/obsoon/orderstatus,
[java] protocol=http,
[java] ]
[java] ]
[java] javax.xml.soap.SOAPException: failed to serialize interface javax.xml.soap.SOAPElementweblogic.xml.schema.binding.SerializationException:
mapping lookup failure. class=interface javax.xml.soap.SOAPElement class context=TypedClassContext{schemaType=['http://www.jay.com/com/jay/obsoon/orderstatus']:DoOBSStat
usWebService}
[java] at weblogic.webservice.core.DefaultPart.invokeSerializer(DefaultPart.java:328)
[java] at weblogic.webservice.core.DefaultPart.toXML(DefaultPart.java:297)
[java] at weblogic.webservice.core.DefaultMessage.toXML(DefaultMessage.java:645)
[java] at weblogic.webservice.core.ClientDispatcher.send(ClientDispatcher.java:206)
[java] at weblogic.webservice.core.ClientDispatcher.dispatch(ClientDispatcher.java:143)
[java] at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:457)
[java] at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:443)
[java] at weblogic.webservice.core.rpc.CallImpl.invoke(CallImpl.java:558)
[java] at weblogic.webservice.core.rpc.CallImpl.invoke(CallImpl.java:411)
[java] at com.jay.obsoon.orderstatus.Client.example(Client.java:87)
[java] at com.jay.obsoon.orderstatus.Client.main(Client.java:40)
[java] Caused by: weblogic.xml.schema.binding.SerializationException: mapping
lookup failure. class=interface javax.xml.soap.SOAPElement class context=TypedClassContext{schemaType=['http://www.jay.com/com/jay/obsoon/orderstatus']:DoOBS
StatusWebService}
[java] at weblogic.xml.schema.binding.RuntimeUtils.lookup_serializer(RuntimeUtils.java:151)
[java] at weblogic.xml.schema.binding.RuntimeUtils.invoke_serializer(RuntimeUtils.java:187)
[java] at weblogic.xml.schema.binding.RuntimeUtils.invoke_serializer(RuntimeUtils.java:174)
[java] at weblogic.webservice.core.DefaultPart.invokeSerializer(DefaultPart.java:324)
[java] ... 10 more
[java] ]
[java] at weblogic.webservice.core.rpc.CallImpl.invoke(CallImpl.java:578)
[java] at weblogic.webservice.core.rpc.CallImpl.invoke(CallImpl.java:411)
[java] at com.jay.obsoon.orderstatus.Client.example(Client.java:87)
[java] at com.jay.obsoon.orderstatus.Client.main(Client.java:40)
[java] Exception in thread "main"
[java] Java Result: 1
CLIENT CODE:
package com.jay.obsoon.orderstatus;
import javax.xml.rpc.Call;
import javax.xml.rpc.ParameterMode;
import javax.xml.rpc.ServiceFactory;
import javax.xml.rpc.Service;
import javax.xml.namespace.QName;
import javax.xml.rpc.encoding.*;
import java.io.*;
public class Client
private static String TARGET_NAMESPACE = "http://www.jay.com/com/jay/obsoon/orderstatus";
private static QName xsdString = new QName("http://www.w3.org/2001/XMLSchema",
"string");
public static void main(String[] args) throws Exception
System.setProperty("javax.xml.soap.MessageFactory", "weblogic.webservice.core.soap.MessageFactoryImpl");
System.setProperty( "javax.xml.rpc.ServiceFactory", "weblogic.webservice.core.rpc.ServiceFactoryImpl");
Client client = new Client();
String wsdl = (args.length > 0? args[0] : null);
client.example(wsdl);
public void example(String wsdlURI) throws Exception
ServiceFactory factory = ServiceFactory.newInstance();
QName serviceName = new QName(TARGET_NAMESPACE, "DoOBSStatusWebService");
QName portName = new QName(TARGET_NAMESPACE, "DoOBSStatusWebServicePort");
QName operationName = new QName("checkJavaObjects");
Service service = factory.createService(serviceName); System.out.println("Calling
Web Service at: "+ service);
TypeMappingRegistry tmr = service.getTypeMappingRegistry();
TypeMapping tm = (TypeMapping)tmr.createTypeMapping();
tm.register(Order.class, serviceName, new com.jay.obsoon.orderstatus.OrderCodec(),
new com.jay.obsoon.orderstatus.OrderCodec());
Call call = service.createCall();
call.setPortTypeName(portName);
call.setOperationName(operationName);
call.setTargetEndpointAddress(wsdlURI);
call.addParameter( "order", serviceName, ParameterMode.INOUT );
call.setReturnType( XMLType.XSD_STRING );
Order order = new Order();
order.setOrderID("ABC");
order.setOrderDate("05182004");
log("Hope:" + call.invoke( new Object[] { order } ));
private static void log(String s)
System.out.println(s);
Please let me know what wrong am i doing while accessing the webservice.
Thanks
JayHi Naichen,
You're going to need to register some type mappings in your client code :-)
To know which ones, you should examine the <your-service-name>.xml file, in the
client proxy .JAR, which is produced by the clientgen Ant task. It should contain
XML that looks something like this:
<wsdd:type-mapping-entry xmlns:lcl0="http://www.openuri.org/"
class-name="org.openuri.www.invoke"
type="lcl0:invoke"
serializer="org.openuri.www.invokeCodec"
deserializer="org.openuri.www.invokeCodec">
</wsdd:type-mapping-entry>
<wsdd:type-mapping-entry xmlns:lcl0="http://www.openuri.org/"
class-name="org.openuri.www.invokeResponse"
type="lcl0:invokeResponse"
serializer="org.openuri.www.invokeResponseCodec"
deserializer="org.openuri.www.invokeResponseCodec">
</wsdd:type-mapping-entry>
You'll need to create type mapping calls in you client code that looks like this:
import javax.xml.rpc.encoding.TypeMapping;
import javax.xml.rpc.encoding.TypeMappingRegistry;
import weblogic.webservice.core.encoding.stream.SOAPElementCodec;
import weblogic.xml.xmlnode.XMLNode;
import com.bea.xml.XmlObject;
TypeMappingRegistry registry = service.getTypeMappingRegistry();
TypeMapping typemapping = registry.getTypeMapping(SOAPConstants.URI_NS_SOAP_ENCODING
typemapping.register(
javax.xml.soap.SOAPElement.class,
new QName("http://www.w3.org/2001/XMLSchema", "anyType"),
new SOAPElementCodec(),
new SOAPElementCodec()
typemapping.register(
javax.xml.soap.SOAPElement.class,
new QName("http://www.openuri.org/", "YourXMLBeanClassDocument"),
new SOAPElementCodec(),
new SOAPElementCodec()
YourRequestXMLBeanClassDocument request = null;
YourResponseXMLBeanClassDocument response = null;
// invoke operation
try
XMLNode xmlNodeResponse = (XMLNode)call.invoke(new Object[]{ asXMLNode(request)
response = YourResponseXMLBeanClassDocument.Factory.parse(xmlNodeResponse.toString());
log("inStock(String,Call)", "response.xmlText()=\n" + response.xmlText());
catch (Exception e)
e.printStackTrace();
private static XMLNode asXMLNode(XmlObject xmlObject) throws Exception
XMLNode xmlNode = new XMLNode();
xmlNode.read(xmlObject.newInputStream());
return xmlNode;
You may not have to do the type mapping for the invoke and invokeResponse types
(or any type relating to an operation/operationResponse element), but I'm pretty
sure you'll need to do it for the XMLBean types, used as input arguments (or return
values) to the web service operations. Send me the WSDL, and .xml files from the
client proxy .jar, if you can't figure things out from the info I've provided
here. I'll send you back what the client code needs to look like, based on the
contents of these two files :-)
Regards,
Mike Wooten
"Naichen" <[email protected]> wrote:
>
I created one document style webservice by weblogic 81 sp2 workshop,
both input
and output to webservice are XML beans.
When I tried call it with proxy jar file generated by weblogic, it works
fine,
When I tried to call it with javax.xml.rpc.Call.
then I got the similar Exceptions, like
javax.xml.soap.SOAPException: failed to serialize interface javax.xml.soap.SOAPElementweblogic.xml.schema.binding.SerializationException:
mapping lookup failure. class=interface javax.xml.soap.SOAPElement class
context=TypedClassContext{schemaType=['http://www.openuri.org/']:invoke}
at weblogic.webservice.core.DefaultPart.invokeSerializer(DefaultPart.java:328)
at weblogic.webservice.core.DefaultPart.toXML(DefaultPart.java:297)
at weblogic.webservice.core.DefaultMessage.toXML(DefaultMessage.java:645)
at weblogic.webservice.core.ClientDispatcher.send(ClientDispatcher.java:206)
at weblogic.webservice.core.ClientDispatcher.dispatch(ClientDispatcher.java:143)
at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:457)
at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:443)
at weblogic.webservice.core.rpc.CallImpl.invoke(CallImpl.java:558)
at weblogic.webservice.core.rpc.CallImpl.invoke(CallImpl.java:411)
at com.ual.rcc.wsclient.CommonClt.run(CommonClt.java:58)
at com.ual.rcc.wsclient.CommonClt.main(CommonClt.java:65)
Caused by: weblogic.xml.schema.binding.SerializationException: mapping
lookup
failure. class=interface javax.xml.soap.SOAPElement class context=TypedClassContext{schemaType=['http://www.openuri.org/']:invoke}
at weblogic.xml.schema.binding.RuntimeUtils.lookup_serializer(RuntimeUtils.java:151)
at weblogic.xml.schema.binding.RuntimeUtils.invoke_serializer(RuntimeUtils.java:187)
at weblogic.xml.schema.binding.RuntimeUtils.invoke_serializer(RuntimeUtils.java:174)
at weblogic.webservice.core.DefaultPart.invokeSerializer(DefaultPart.java:324)
... 10 more -
JAX-RPC - dynamic wsdl - non-built-in data types
I thought my recent exp with developing a JAX-RPC client using a dynamic wsdl to communicate to a non-weblogic Web Service might help somebody out there. :-)
JAX-RPC Mechanism in Weblogic for dynamic_wsdl seems to work only with built-in data types. Weblogic also supports non-built-in data types, but you need to do some extra work! For the user-defined objects, you need to generate their types and register them.
Note: The samples given in Weblogic 8.1 do not use non-built-in data types!
Make sure you use the ant task "autotype" in your build.xml to generate the appropriate types (objects to support java-xml and xml-java converstion), types.xml from the wsdl. Register the types.xml file in your calling client code.
If you do not use register the types for the user-defined classes used in the web services method signatures, then you are likely to get the foll. exception.
javax.xml.soap.SOAPException: failed to serialize interface javax.xml.soap.SOAPElementw
eblogic.xml.schema.binding.SerializationException: mapping lookup failure. class=interface javax.xml
.soap.SOAPElement class context=TypedClassContext{schemaType=['http://svcVodafonePooled.wsdlgen.jipi
lot.vodafone.com']:getStock}
C:\Tutorial\WS\dynamic_wsdl>ant run
Buildfile: build.xml
run:
[java] Creating the service...
[java] Creating the call...
[java] invoking the call....
[java] javax.xml.rpc.JAXRPCException: failed to invoke operation 'getStock' due to an error in
the soap layer (SAAJ); nested exception is: Message[ failed to serialize interface javax.xml.soap.SO
APElementweblogic.xml.schema.binding.SerializationException: mapping lookup failure. class=interface
javax.xml.soap.SOAPElement class context=TypedClassContext{schemaType=['http://svcVodafonePooled.ws
dlgen.jipilot.vodafone.com']:getStock}]StackTrace[
[java] javax.xml.soap.SOAPException: failed to serialize interface javax.xml.soap.SOAPElementw
eblogic.xml.schema.binding.SerializationException: mapping lookup failure. class=interface javax.xml
.soap.SOAPElement class context=TypedClassContext{schemaType=['http://svcVodafonePooled.wsdlgen.jipi
lot.vodafone.com']:getStock}
[java] at weblogic.webservice.core.DefaultPart.invokeSerializer(DefaultPart.java:328)
[java] at weblogic.webservice.core.DefaultPart.toXML(DefaultPart.java:297)
[java] at weblogic.webservice.core.DefaultMessage.toXML(DefaultMessage.java:645)
[java] at weblogic.webservice.core.ClientDispatcher.send(ClientDispatcher.java:206)
[java] at weblogic.webservice.core.ClientDispatcher.dispatch(ClientDispatcher.java:143)
[java] at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:457)
[java] at weblogic.webservice.core.DefaultOperation.invoke(DefaultOperation.java:443)
[java] at weblogic.webservice.core.rpc.CallImpl.invoke(CallImpl.java:558)
[java] at weblogic.webservice.core.rpc.CallImpl.invoke(CallImpl.java:411)
[java] at Main.main(Main.java:61)
[java] Caused by: weblogic.xml.schema.binding.SerializationException: mapping lookup failure. c
lass=interface javax.xml.soap.SOAPElement class context=TypedClassContext{schemaType=['http://svcVod
afonePooled.wsdlgen.jipilot.vodafone.com']:getStock}
[java] at weblogic.xml.schema.binding.RuntimeUtils.lookup_serializer(RuntimeUtils.java:151)
[java] at weblogic.xml.schema.binding.RuntimeUtils.invoke_serializer(RuntimeUtils.java:187)
[java] at weblogic.xml.schema.binding.RuntimeUtils.invoke_serializer(RuntimeUtils.java:174)
[java] at weblogic.webservice.core.DefaultPart.invokeSerializer(DefaultPart.java:324)
[java] ... 9 more
[java] ]
[java] at weblogic.webservice.core.rpc.CallImpl.invoke(CallImpl.java:578)
[java] at weblogic.webservice.core.rpc.CallImpl.invoke(CallImpl.java:411)
[java] at Main.main(Main.java:61)
[java] Exception in thread "main"
[java] Java Result: 1The foll. code worked fine for me in Weblogic 8.1 SP3, on Windows 2000.
Note: the 2 important lines of code:
TypeMappingRegistry registry service.getTypeMappingRegistry();
registry.registerDefault(new DefaultTypeMapping("types.xml"));
package auth;
import java.net.URL;
import javax.xml.rpc.ServiceFactory;
import javax.xml.rpc.Service;
import javax.xml.rpc.Call;
import javax.xml.rpc.ParameterMode;
import javax.xml.namespace.QName;
import javax.xml.rpc.encoding.TypeMapping;
import javax.xml.rpc.encoding.TypeMappingRegistry;
import weblogic.webservice.core.encoding.stream.SOAPElementCodec;
import javax.xml.rpc.encoding.*;
import weblogic.webservice.encoding.DefaultTypeMapping;
public class DClient1 {
static private void print(String msg) {
System.out.println("DClient1: " + msg);
public static void main(String[] argv) throws Exception {
System.setProperty("javax.xml.soap.MessageFactory", "weblogic.webservice.core.soap.MessageFactoryImpl");
System.setProperty( "javax.xml.rpc.ServiceFactory", "weblogic.webservice.core.rpc.ServiceFactoryImpl");
ServiceFactory factory = ServiceFactory.newInstance();
String targetNamespace = "http://www.vishwa.com/amazingworld";
QName serviceName = new QName(targetNamespace, "GeminiPasswordService");
QName portName = new QName(targetNamespace, "GeminiPasswordServicePort");
QName operationName = new QName("", "checkPassword");
URL wsdlLocation = new URL("http://localhost:7001/GeminiPasswordService/GeminiPasswordService?WSDL");
print("Creating the service...");
Service service = factory.createService(wsdlLocation, serviceName);
print("Creating the call...");
Call call = service.createCall(portName, operationName);
TypeMappingRegistry registry = service.getTypeMappingRegistry();
registry.registerDefault(new DefaultTypeMapping("types.xml"));
print("invoking the call....");
Object[] inParams = new Object[2];
inParams[0] = "clark1";
inParams[1] = "kent1";
Object result = call.invoke(inParams);
print("Client return value: = " + result.toString());
QName operationName1 = new QName("", "getBook");
print("Creating the call...");
Call call1 = service.createCall(portName, operationName1);
print("invoking the call....");
Name n = new Name();
n.setFirstname("Walker");
n.setAge(50);
Object[] inParams1 = new Object[1];
inParams1[0] = n;
Book b = (Book) call1.invoke(inParams1);
print("author: " + b.getAuthor());
print("money: " + b.getMoney());
} -
Sapinst stops with error while installing ess component for Java AS
Dear experts,
I really hope you can help me with this one,
We are installing a ABAP/Java AS development system and sapinst has gone through 75% of all execution tasks nicely,
but then stopped with error while deploying components for the Java AS:
ERROR 2009-03-30 13:01:27
CJS-30156 SDM deployment failed for at least one of the components to deploy.<br> SOLUTION: Check 'C:\Program Files/sapinst_instdir/ERP/SYSTEM/ORA/DISTRIBUTED/AS/CI/callSdmViaSapinst.log' for more information.
ERROR 2009-03-30 13:01:28
FCO-00011 The step enableUsageTypes with step key |NW_Doublestack_CI|ind|ind|ind|ind|0|0|SAP_Software_Features_Enablement|ind|ind|ind|ind|15|0|enableUsageTypes was executed with status ERROR .
Any help would be really appreciated as I am stuck with this and dont seem to be able to find any information on this one.
Thanks a lot for your help in advance.
Here is the crucial part of callSdmViaSapinst.log:
Mar 30, 2009 12:55:18... Info: Starting: Initial deployment: Selected development component 'ess/bp_ess'/'sap.com'/'MAIN_ERP05VAL_C'/'788220'/'0' will be deployed.
Mar 30, 2009 12:55:18... Info: SDA to be deployed: D:\usr\sap\DE1\DVEBMGS00\SDM\root\origin\sap.com\ess\bp_ess\MAIN_ERP05VAL_C\0\788220\sap.com_ess~bp_ess.sda
Mar 30, 2009 12:55:18... Info: Software type of SDA: J2EE
*Mar 30, 2009 12:55:18... Info: ***** Begin of SAP J2EE Engine Deployment (J2EE Application) ******
Mar 30, 2009 1:00:21 PM Info: Begin of log messages of the target system:
*09/03/30 12:55:19 - ************************************************************
09/03/30 12:58:07 - Start updating EAR file...
09/03/30 12:58:07 - start-up mode is lazy
09/03/30 12:58:08 - EAR file updated successfully for 578ms.
09/03/30 12:58:08 - Start deploying ...
09/03/30 12:58:42 - EAR file uploaded to server for 30641ms.
09/03/30 13:00:20 - ERROR: Not deployed. Deploy Service returned ERROR:
java.rmi.RemoteException: Cannot deploy application sap.com/ess~bp_ess..
Reason: <--Localization failed: ResourceBundle='com.sap.engine.services.deploy.DeployResourceBundle', ID='Exception during deploy: Failed to deploy archive D:\usr\sap\DE1\DVEBMGS00\j2ee\cluster\server0\.\temp\deploy\work\deploying\reader1238414327258\sap.comessbp_ess.epa
The following objects could not be locked: [pcd:portal_content/com.sap.pct/every_user/com.sap.pct.erp.ess.bp_folder/com.sap.pct.erp.ess**.iviews/com.sap.pct.erp.ess.personal_information/com.sap.pct.erp.ess.mx/com.sap.pct.erp.ess.addr/com.sap.pct.erp.ess.addr|pcd_service], [pcd:portal_content/com.sap.pct/every_user/com.sap.pct.erp.ess.bp_folder/com.sap.pct.erp.ess.iviews/com.sap.pct.erp.ess.personal_information/com.sap.pct.erp.ess.de/com.sap.pct.erp.ess.addr|pcd_service], [pcd:portal_content/com.sap.pct/every_user/com.sap.pct.erp.ess.bp_folder/com.sap.pct.erp.ess.iviews/com.sap.pct.erp.ess.personal_information/com.sap.pct.erp.ess.id/com.sap.pct.erp.ess.addr/com.sap.pct.erp.ess.addr|pcd_service], [pcd:portal_content/com.sap.pct/every_user/com.sap.pct.erp.ess.bp_folder/com.sap.pct.erp.ess.pages/com.sap.pct.erp.ess.personal_information/com.sap.pct.erp.ess.jp/com.sap.pct.erp.ess.addr/com.sap.pct.erp.ess.addr|pcd_service], [pcd:portal_content/com.sap.pct/every_user/com.sap.pct.erp.ess.bp_folder/com.sap.pct.erp.ess.pages/com.sap.pct.erp.ess.personal_information/com.sap.pct.erp.ess.de/com.sap.pct.erp.esThanks Désirée for your answer and apologies for the late update on this one.
This issue is resolved now, the reason for the error was a lack of memory which probably triggered a timeout in sapinst. After upgrading the memory to 7GB and re-starting the ABAP+Java AS and resuming sapinst everything went through fine. However, this was hard to spot because the logs wouldn't tell you about the lack of memory but about everything else!
regards,
Manfred -
Getting error while passing implicit request object from JSP to JavaBean
Hi,
I am getting error while passing implicit object ie( request object)
from within JSP to JavaBean.
Following is source for JSP, JavaBean and Error message I am getting.
vaLookup.jsp Source
<jsp:useBean id="db" class="advisorinsight.javabeans.DisplayPages"
scope="request">
<jsp:setProperty name="db" property="request" value="<%= request %>"
/>
</jsp:useBean>
<jsp:getProperty name="db" property="totalrecords" />
JAVABEAN DisplayPages.java source
package javabeans;
import java.io.Serializable;
import javax.servlet.http.HttpServletRequest;
public final class DisplayPages implements Serializable {
private String totalrecords;
private HttpServletRequest request;
public void setRequest(HttpServletRequest req){
this.request = req;
public java.lang.String getTotalrecords()
this.totalrecords =
this.request.getParameter("totalrecords");
return this.totalrecords;
public DisplayPages(){
totalrecords = "";
request = null;
error after executing vaLookup.jsp
[30/Nov/2001 11:56:04:5] info: EXTMGR-006: GXExtensionManager: Extension
service JavaExtData successfully loaded
[30/Nov/2001 11:56:04:5] info: EXTMGR-006: GXExtensionManager: Extension
service LockManager successfully loaded
[30/Nov/2001 11:56:04:5] info: EXTMGR-006: GXExtensionManager: Extension
service RLOPManager successfully loaded
[30/Nov/2001 11:56:04:5] info: REQ-012: thread add
[30/Nov/2001 11:56:04:5] info: REQ-012: thread add
[30/Nov/2001 11:56:04:5] info: REQ-012: thread add
[30/Nov/2001 11:56:04:5] info: REQ-012: thread add
[30/Nov/2001 11:56:04:5] info: REQ-012: thread add
[30/Nov/2001 11:56:04:5] info: REQ-012: thread add
[30/Nov/2001 11:56:04:5] info: REQ-012: thread add
[30/Nov/2001 11:56:04:5] info: REQ-012: thread add
[30/Nov/2001 11:56:04:7] info: ENGINE-ready: ready: 10819
[30/Nov/2001 11:56:46:0] info: --------------------------------------
[30/Nov/2001 11:56:46:0] info: JSPRunnerSticky: init
[30/Nov/2001 11:56:46:0] info: --------------------------------------
[30/Nov/2001 11:56:51:7] error: Exception: SERVLET-compile_failed:
Failed in compiling template: /va/valookup.jsp, javac error:
c:\iplanet\ias6\ias\APPS\variabl
S\va\valookup.java:76: Undefined variable: JSP_8
db.setRequest(_JSP__8);
^
1 error
Exception Stack Trace:
java.lang.Exception: javac error:
c:\iplanet\ias6\ias\APPS\variableannuity\va\WEB-INF\compiled_jsp\jsp\APPS\va\valookup.java:76:
Undefined variable: JSP_8
db.setRequest(_JSP__8);
^
1 error
at
com.netscape.server.servlet.jsp.JSPCompiler.compileJSP(Unknown Source)
at
com.netscape.server.servlet.jsp.JSPCompiler.compileOrLoadJSP(Unknown
Source)
at
com.netscape.server.servlet.jsp.JSPCompiler.compileInstance(Unknown
Source)
at
com.netscape.server.servlet.jsp.JSPCompiler.compileInstance(Unknown
Source)
at
com.netscape.server.servlet.platformhttp.PlatformHttpServletResponse.callJspCompiler(Unknown
Source)
at
com.netscape.server.servlet.platformhttp.PlatformHttpServletResponse.callUri(Unknown
Source)
at
com.netscape.server.servlet.platformhttp.PlatformHttpServletResponse.callUriRestrictOutput(Unknown
Source)
at
com.netscape.server.servlet.platformhttp.PlatformRequestDispatcher.forward(Unknown
Source)
at com.netscape.server.servlet.jsp.JSPRunner.service(Unknown
Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)
at
com.netscape.server.servlet.servletrunner.ServletInfo.service(Unknown
Source)
at
com.netscape.server.servlet.servletrunner.ServletRunner.execute(Unknown
Source)
at com.kivasoft.applogic.AppLogic.execute(Unknown Source)
at com.kivasoft.applogic.AppLogic.execute(Unknown Source)
at com.kivasoft.thread.ThreadBasic.run(Native Method)
at java.lang.Thread.run(Thread.java:479)The only thing that I see that looks funny to me is when you pass the request object into the method using <%=request%>, Im not sure whats going to happen here because that is suppose to print the results. Have you tried simply using <%request%>?
-
Error while passing date parameters in procedure and commit issue
Hi
1) I am doing a archiveing records and pls find my code below and i have couple of issue,pls find my code and want to ensure the commit is happening every 100000 rows inserted but i am archeiving a huge table but when i checks the table frequently it shows 0 records and after it shows count the actual rows around 20 million records.How can i ensure it commiting on every 100000 records. pls find my code my db version is 10g on windows
CREATE OR REPLACE PROCEDURE doins as
cnt number:=0;
FOR x IN (select * from Call_log
where trunc(c_date) = to_date('11-Aug-2008','DD-MON-YYYY'))
LOOP
INSERT INTO call_arch
select * from Call_log
where trunc(c_date) = to_date('11-Aug-2008','DD-MON-YYYY');
cnt := cnt + 1;
IF( cnt = 10000 )
THEN
cnt := 0;
commit;
END IF;
commit;
END LOOP;
2) Error while passing date as parameter i am getting following errors while passing date parameter pls find my code and errors
CREATE OR REPLACE PROCEDURE doins(p_date date) as
cnt number:=0;
begin
FOR x IN (select * from Call_log
where trunc(c_date) = to_char(p_date,'DD-MON-YYYY'))
LOOP
INSERT INTO call_arch
select * from Call_log
where trunc(c_date) = to_char(p_date,'DD-MON-YYYY');
cnt := cnt + 1;
IF( cnt = 10000 )
THEN
cnt := 0;
commit;
END IF;
commit;
END LOOP;
end;
exec doins(11-Aug-2008) then gives
SQL> exec doins(11-Aug-2008);
BEGIN doins(11-Aug-2008); END;
ERROR at line 1:
ORA-06550: line 1, column 16:
PLS-00201: identifier 'AUG' must be declared
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
if i gave exec doins(11-08-2008) it gaves
ERROR at line 1:
ORA-06550: line 1, column 7:
PLS-00306: wrong number or types of arguments in call to 'DOINS'
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
rgds
roshCREATE OR REPLACE PROCEDURE doins(p_date varchar2) as
cnt number:=0;
begin
FOR x IN (select A.rowid,A.* from Call_log A
where trunc(c_date) = to_date(p_date,'DD-MON-YYYY'))
--hope that's c_date columne is DATE datatype
LOOP
INSERT INTO call_arch
select * from Call_log
where rowid=x.rowid;
cnt := cnt + 1;
IF( cnt = 10000 )
THEN
cnt := 0;
commit;
END IF;
commit;
END LOOP;
end;
thats your correct procedure - but NOT CORRECT ISSUE.
You should use bulk collect with limit clause and forall clause to do it faster!!! Or Merge clause. -
Getting error , while passing parameters from one page to another page
Hello friends,
i am getting error, while passing parameters from one page to another page, below code i wrote.
public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
super.processFormRequest(pageContext, webBean);
ArrayList arl=new ArrayList();
EresFrameworkAMImpl am=(EresFrameworkAMImpl)pageContext.getApplicationModule(webBean);
ERecordImpl ERecordObj=new ERecordImpl();
HashMap hMap = new HashMap();
hMap.put("1",ERecordObj.getTransactionName());
hMap.put("2",ERecordObj.getTransactionKey());
hMap.put("3",ERecordObj.getDeferredMode());
hMap.put("4",ERecordObj.getUserKeyLabel());
hMap.put("5",ERecordObj.getUserKeyValue());
hMap.put("6",ERecordObj.getTransactionAuditId());
hMap.put("7",ERecordObj.getRequester());
hMap.put("8",ERecordObj.getSourceApplication());
hMap.put("9",ERecordObj.getPostOpAPI());
hMap.put("10",ERecordObj.getPayload());
// hMap.put(EresConstants.ERES_PROCESS_ID,
if(pageContext.getParameter("item1")!=null)
pageContext.forwardImmediately(EresConstants.EINITIALS_FUNCTION,
OAWebBeanConstants.KEEP_MENU_CONTEXT,
null,
hMap,
true,
OAWebBeanConstants.ADD_BREAD_CRUMB_YES
Error(71,2): method forwardImmediately(java.lang.String, byte, null, java.util.HashMap, boolean, java.lang.String) not found in interface oracle.apps.fnd.framework.webui.OAPageContext
Thanks
krishna.Hi,
You have imported the wrong class for HashMap.
Import
com.sun.java.util.collections.HashMap; instead of java.util.HashMap
Thanks,
Gaurav -
Getting Error while integrating Crystal reports with Java
Hi All,
I am getting below error while integrating crystal report with java
[java] os.arch = x86
[java] java.lang.NoSuchMethodError: com.crystaldecisions.Utilities.d.<init>
(Ljava/awt/Image;I)V
[java] at com.crystaldecisions.Utilities.af.try(Unknown Source)
[java] at com.crystaldecisions.Utilities.af.a(Unknown Source)
[java] at com.crystaldecisions.Utilities.af.<init>(Unknown Source)
[java] at com.businessobjects.crystalreports.viewer.applet.g.a(Unknown
Source)
[java] at com.crystaldecisions.ReportViewer.ReportViewer.start(Unknown
Source)
[java] at ReportViewerFrame.<init>(ReportViewerFrame.java:51)
[java] at JRCViewReport.launchApplication(JRCViewReport.java:29)
[java] at JRCViewReport$1.run(JRCViewReport.java:50)
[java] at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:
178)
[java] at java.awt.EventQueue.dispatchEvent(EventQueue.java:443)
[java] at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDi
spatchThread.java:190)
[java] at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDisp
atchThread.java:144)
[java] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.j
ava:138)
[java] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.j
ava:130)
[java] at java.awt.EventDispatchThread.run(EventDispatchThread.java:98)
Any help can be appreciated
KalyanHi All,
For got to mention i am using crystal reports XI release 2 with JDK1.4.
Kalyan -
Error while determ. loc. crcy: exchange rate type M
Hi ALL,
after posting goods issue using VL02N i am getting popop
with 'update termination'
In log it is showing error as 'M2 815: Error while determ. loc. crcy: exchange rate type M'
can any one solve my problem
thanks
vinodHello Vinod,
Plz check in the table TCURR if an entry is maintained for exchange rate type M. (TCURR-KURST = 'M' & TCURR-TCURR = 'loc. crcy.')
I think the error is b'coz system cannot find an entry in this table & hence cannot carry out the locl. crcy. conversion.
BR,
Suhas -
Hi,
There is an issue like after order is created,while creating invoice(third party order) after saving there is message as its saved.
But when trying to go with either vf02 or vf03 there is an update termination as 'Error while determ. loc. crcy: exchange rate type M date 01/26/2011 from SGD to'...so any suggestions on this?HI Srilatha,
Go to T.code OB08 there position the exange rate Ex: M in you case and valid from 01.01.2011 then give currency if it is INR give 1INR X 1 INR = 1 give according to you document currecy.
Thanks
Vinayak -
Error while pass parameter to procedure....
We have developed procedure with parameter ORG_ID (Number) then create executable and define program. When we execute this executable and pass ORG parameter, we get following error, pl help in this regard:
Data type of parameter and column is same
Cause: FDPSTP failed due to ORA-06550: line 1, column 7:
PLS-00306: wrong number or types of arguments in call to 'COST_ELEMENT_UPDATION_CUST'
ORA-06550: line 1, column 7:
PL/SQL: Statement ignoredprocedure works in pl/sql developer but when we define as "PL/SQL Stored Procedure" in application it prompt error.
CREATE OR REPLACE PROCEDURE Cost_Element_Updation_Cust(P_ORG IN number) IS
--P_ORG NUMBER(10) := 91;
BEGIN
--FOR 1PP ORG, for average costing header line
INSERT INTO CST_ITEM_COSTS
SELECT M.INVENTORY_ITEM_ID,
M.ORGANIZATION_ID,
C.COST_TYPE_ID,
SYSDATE,
C.LAST_UPDATED_BY,
SYSDATE,
C.CREATED_BY,
C.LAST_UPDATE_LOGIN,
C.INVENTORY_ASSET_FLAG,
C.LOT_SIZE,
C.BASED_ON_ROLLUP_FLAG,
C.SHRINKAGE_RATE,
C.DEFAULTED_FLAG,
C.COST_UPDATE_ID,
C.PL_MATERIAL,
C.PL_MATERIAL_OVERHEAD,
C.PL_RESOURCE,
C.PL_OUTSIDE_PROCESSING,
C.PL_OVERHEAD,
C.TL_MATERIAL,
C.TL_MATERIAL_OVERHEAD,
C.TL_RESOURCE,
C.TL_OUTSIDE_PROCESSING,
C.TL_OVERHEAD,
C.MATERIAL_COST,
C.MATERIAL_OVERHEAD_COST,
C.RESOURCE_COST,
C.OUTSIDE_PROCESSING_COST,
C.OVERHEAD_COST,
C.PL_ITEM_COST,
C.TL_ITEM_COST,
C.ITEM_COST,
C.UNBURDENED_COST,
C.BURDEN_COST,
C.ATTRIBUTE_CATEGORY,
C.ATTRIBUTE1,
C.ATTRIBUTE2,
C.ATTRIBUTE3,
C.ATTRIBUTE4,
C.ATTRIBUTE5,
C.ATTRIBUTE6,
C.ATTRIBUTE7,
C.ATTRIBUTE8,
C.ATTRIBUTE9,
C.ATTRIBUTE10,
C.ATTRIBUTE11,
C.ATTRIBUTE12,
C.ATTRIBUTE13,
C.ATTRIBUTE14,
C.ATTRIBUTE15,
C.REQUEST_ID,
C.PROGRAM_APPLICATION_ID,
C.PROGRAM_ID,
C.PROGRAM_UPDATE_DATE,
C.ROLLUP_ID,
C.ASSIGNMENT_SET_ID
FROM APPS.CST_ITEM_COSTS C, APPS.MTL_SYSTEM_ITEMS_B M
WHERE C.INVENTORY_ITEM_ID =
(SELECT ITEM_ID FROM IFL.COST_ELEMENT_CUST WHERE ORG_ID = P_ORG) AND
C.ORGANIZATION_ID = P_ORG AND C.COST_TYPE_ID = 1002 AND
M.SEGMENT3 = 'IMPORTED' AND
M.SEGMENT1 IN ('F ASSET', 'SPARES', 'TOOLS', 'STORES') AND
M.ORGANIZATION_ID = P_ORG
--AND M.INVENTORY_ITEM_ID=154540
--Get item from cost which are pending for costing
AND M.INVENTORY_ITEM_ID NOT IN
(SELECT DISTINCT INVENTORY_ITEM_ID
FROM apps.CST_ITEM_COST_DETAILS_V
WHERE COST_TYPE_ID = 1002 AND ORGANIZATION_ID = P_ORG);
COMMIT;
END Cost_Element_Updation_Cust; -
Loadjava Error while opening file: –resolve Exception java.io.FileNotFound
Dears,
I'm having Oracle 11gr2 on Windows 2008r2. I have very strange issue while trying to load ordinary Java source. I get error that loadjava can't open file. I'm using the following command in loading:
%ORACLE_HOME%\dbhome_1\BIN\loadjava -thin -user ORAMQ/***@localhost:1521:DEVAR -verbose -fileout %C:\temp\loadjava-9-MQReasonCodeResolver.java.log C:\src\MQReasonCodeResolver.java –resolve-----
I got the following error in the verbose file out:
arguments: '-user' 'ORAMQ/***@localhost:1521:DEVAR' '-thin' '-verbose' '-fileout' 'C:\temp\loadjava-9-MQReasonCodeResolver.java.log' 'C:\src\MQReasonCodeResolver.java' '–resolve'
creating : source MQReasonCodeResolver
loading : source MQReasonCodeResolver
Error while opening file: –resolve
Exception java.io.FileNotFoundException: –resolve (The system cannot find the file specified)
creating : –resolve
The following operations failed
–resolve: opening file-----
The code is very simple and doesn't have any issue:
import java.lang.reflect.Field;
public class MQReasonCodeResolver
public MQReasonCodeResolver()
public static final String MQ_EXCEPTION_CLASS = "com.ibm.mq.MQException";
public static final String RC_FIELD_PREFIX = "MQRC_";
public static final String RC_VALUE_FIELD = "reasonCode";
public static String resolve( Exception mqex )
if ( !canResolve( mqex ) )
return mqex.getClass().toString() + mqex.getMessage();
Class class1 = mqex.getClass();
try
Field field = class1.getField( RC_VALUE_FIELD );
Object key = field.get( mqex );
Field[] fields = class1.getFields();
for ( int i = 0; i < fields.length; i++ )
Field ff = fields;
String name = ff.getName();
if ( name.startsWith( RC_FIELD_PREFIX ) && ff.get( null ).equals( key ) )
return mqex.getMessage() + " " + name;
catch ( Exception ex )
return "unknown";
public static boolean canResolve( Exception exx )
Class class1 = exx.getClass();
while ( Exception.class.isAssignableFrom( class1 ) )
if ( MQ_EXCEPTION_CLASS.equals( class1.getName() ) )
return true;
class1 = class1.getSuperclass();
return false;
I load other classes and no issue, even jar files, I don't know what is the problem with this file? Also, it is strange is creating class and loading it has no issue, but the issue comes when resolve.
Can anyone help?Hi:
Put your -resolve flag at the beginning of the list of arguments.
Latest arguments should be files to be uploaded by loadjava.
Best regards, Marcelo. -
Hi,
I am facing issues like Type Mismatch while passing Array of interfaces from .NET to VBA and vice versa using VSTO technology.
My requirement is that ComInterfaceType needs to be InterfaceIsIDispatch.
My Interface definition is somewhat like this
[ComVisible(true)]
[InterfaceType(ComInterfaceType.InterfaceIsIDispatch)]
[Guid("AAF48FBC-52B6-4179-A8D2-944D7FBF264E")]
public interface IInterface1
[DispId(0)]
IInterface2[] GetObj();
[DispId(1)]
void SetObj(ref IInterface2[] obj);
[ComVisible(true)]
[InterfaceType(ComInterfaceType.InterfaceIsIDispatch)]
[Guid("CDC06E1D-FE8C-477E-97F1-604B73EF868F")]
public interface IInterface2
IF i am passing array of above interface (created in C#.Net) to VBA using GetObj API,i am getting type mismatch error in VBA while assigning the value to variable in VBA.Even assigning to variant type variable gives TypeMismatch.
Also while passing Array of interfaces from VBA using SetObj API,excel crashes and sometimes it says method doesn't exists.
Kindly provide some assistance regarding the same.
ThanksHi,
I am facing issues like Type Mismatch while passing Array of interfaces from .NET to VBA and vice versa using VSTO technology.
My requirement is that ComInterfaceType needs to be InterfaceIsIDispatch.
My Interface definition is somewhat like this
[ComVisible(true)]
[InterfaceType(ComInterfaceType.InterfaceIsIDispatch)]
[Guid("AAF48FBC-52B6-4179-A8D2-944D7FBF264E")]
public interface IInterface1
[DispId(0)]
IInterface2[] GetObj();
[DispId(1)]
void SetObj(ref IInterface2[] obj);
[ComVisible(true)]
[InterfaceType(ComInterfaceType.InterfaceIsIDispatch)]
[Guid("CDC06E1D-FE8C-477E-97F1-604B73EF868F")]
public interface IInterface2
IF i am passing array of above interface (created in C#.Net) to VBA using GetObj API,i am getting type mismatch error in VBA while assigning the value to variable in VBA.Even assigning to variant type variable gives TypeMismatch.
Also while passing Array of interfaces from VBA using SetObj API,excel crashes and sometimes it says method doesn't exists.
Kindly provide some assistance regarding the same.
Thanks -
Error while saving date value in Java dictionary
Hello Everybody,
I got following error while saving date value in one of the fields of the Java table.
Internal error occured in submit request: Error in method updateRequestContact : The object of type java.sql.Date with the value '2005-12-04 08:00:00.0' assigned to host variable 9 is not normalized. It must not contain time components in the time zone running the virtual machine.
I can't find why it is taking time value in the date object.
This value is coming from the RFC as a date value, and I am saving this value in Java dictionary table.
Same code for this was working fine earlier. But, now suddenly it gives error like this.
Even if I provide date on the screen from webdynpro application, this date value can't save in the Java dictionary and gives same error.
What should be the problem behind this?
Regards,
BhavikHi Satyajit,
I am getting date value from the screen of the webdynpro application from date picker control and passing this value in Java dictionary.
More Information:
I have dat value in the Date object: <b>target_date</b>
But Now I have made new Date object as following:
Date target_Date1 = new Date(target_date.getYear(),target_date.getMonth(),target_date.getDate());
Then I am passing this object to Java dictionary. Still it gives same error.
Then I have changed code as following:
int l_year;
int l_month;
int l_days;
l_year = target_Date.getYear();
l_month = target_Date.getMonth();
l_days = target_Date.getDate();
Date target_Date1 = new Date(l_year,l_month,l_days);
Now it works for me.
But I guess this is not the perment solution. It looks very strange. I have used so many date objects at various palces. So, this solution is not the final for me.
I want to findout the main cause of it.
One more thing: This code was working for a mornth or two. But, now suddenly it is giving this error.
Please help me if anybody knows.
Regards,
Bhavik
Maybe you are looking for
-
How to configure multiple domains in Active directory
HI, How can I configure multiple domains on Active Directory. When I installed AD it asked for a domain name, there I gave ravigupta.com as domain name. But now I find no way of creating another domain. I am a java developer and my task is to write a
-
How can i see my mesages in my micro sim for my i pad 3
im inserted already the micro sim and the signal is ok but where can i see any mesages for my simcard?
-
IOS 5.0.1 (from ios 3.2.2) isn't updating thru ipsw file
I have an Ipad 1 (ios 3.2.2) & tried it to update to ios 5.0.1. But everytime i do so it shows error 3194 & 3002 . I resorted to Apple's Troubleshooting tips but that too didn't helped me out`. Plz help !!!
-
How to get "Services for Object".
Hi, We are on SAP R/3 4.6C with SAP GUI 6.40. I don't know much about "Services for Object". In fact, I just noticed the feature. Some of our user do not see the feature even though they are on SAP R/3 4.6C with SAP GUI 6.40. While others see the fea
-
Help needed : Spry Blogspot RSS Reader
I am trying to build a RSS feed reader that pulls the content from blogspot. If I pull the feed via http://??????.blogspot.com/feeds/posts/default?alt=rss (rss 2.0) I can see the schema. I can also see all the columns when i go to the Spry table gene