Error when accessing Tuxedo Services from Weblogic
Hi,
I have a stateless session bean deployed on Weblogic 10.3.5 . I have a WTC Server configured to connect to my Tuxedo server.I have all the local and remote AP's set on this server also.
Now I am trying to access Tuxedo server from a method in my deployed EJB. Method looks like this
========================================================================================
Context ctx;
TuxedoConnectionFactory tcf;
TuxedoConnection myTux; // For now we get it via NEW until the Factory works
TypedString myData;
Reply myRtn;
int status;
System.out.println("getData called, converting " + toConvert);
try {
ctx = new InitialContext();
tcf =
(TuxedoConnectionFactory) ctx.lookup("TuxedoConnectionFactory");
} catch (NamingException ne) {
// Could not get the tuxedo object, throw TPENOENT
throw new TPException(TPException.TPENOENT,
"Could not get TuxedoConnectionFactory : " + ne);
myTux = tcf.getTuxedoConnection();
myData = new TypedString(toConvert);
System.out.println("About to call tpcall");
try {
myRtn = myTux.tpcall("TOUPPER", myData, 0);
} catch (TPReplyException tre) {
System.out.println("tpcall threw TPReplyExcption " + tre);
throw tre;
} catch (TPException te) {
System.out.println("tpcall threw TPException " + te);
throw te;
} catch (Exception ee) {
System.out.println("tpcall threw exception: " + ee);
throw new TPException(TPException.TPESYSTEM, "Exception: " + ee);
System.out.println("tpcall successfull!");
myData = (TypedString) myRtn.getReplyBuffer();
myTux.tpterm(); // Closing the association with Tuxedo
========================================================================================
I get following error when i call the above method from my client for EJB.
========================================================================================
TPENOENT(6):0:0:TPED_MINVAL(0):QMNONE(0):0:Could not get TuxedoConnectionFactory : javax.naming.NameNotFoundException: Unable to resolve 'TuxedoConnectionFactory'. Resolved ''; remaining name 'TuxedoConnectionFactory'
at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:234)
at weblogic.rmi.internal.BasicRemoteRef.invoke(BasicRemoteRef.java:223)
at sfsb3.ReplicableSFSB_6ri454_ReplicableSFSRemoteIntfImpl_1035_WLStub.getData(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at weblogic.ejb.container.internal.RemoteBusinessIntfProxy.invoke(RemoteBusinessIntfProxy.java:85)
at $Proxy0.getData(Unknown Source)
at test.TestDemoClient.main(TestDemoClient.java:37)
========================================================================================
I need to resolve this quickly please.
Thanks for any help
Regards,
Awais
I'm not very familiar with Tuxedo unfortunately.
I recommend that you post here:
Could not get TuxedoConnectionFactory, setting up AP's incorrectly?
You could also start with the code here:
Where to Download weblogic.wtc.jatmi Library/Package
And follow the instructions here:
http://download.oracle.com/docs/cd/E21764_01/web.1111/e13756.pdf
Similar Messages
-
TPESYSTEM error when calling tuxedo service
Hello,
I have a problem when running my own EJB as a TUXEDO service using WTC.
Im using TUXEDO 8.1 and WL 8.1.
My TUXEDO and WTC configuration seems OK, because TOLOWER example is running OK.
When im trying to run my own EJB as a TUXEDO service on TUXEDO side TPESYSTEM
error appears.
JDNI name and configuration of the EJB is correct, because when I put wrong JNDI
then on TUXEDO side TPENOENTRY error appears. Additionally - my EJB's bussines
logic is pretty the same as TOLOWER example.
I think that is EJB issue because in server logs there is an information that
domains are connected but ejbCreate method isn't called. My EJB was developed
using JBuilder 9 WebLOgic Edition and WL Workshop 8.1.
Thanks,
PatrickHi Hemant,
I'm not sure, but my guess is it was a setup problem. Perhaps not implementing the right interface in the EJB, not having the correct home specified, etc.
Usually the best way to find these errors the first time is to turn on some debugging information in WLS. More information can be found at: http://edocs.bea.com/wls/docs91/wtc_admin/Install.html
For this sort of problem, it probably makes sense to enable -Dweblogic.debug.DebugWTCGwtEx=true and/or -Dweblogic.debug.DebugWTCJatmiEx=true
The above examples are for WLS 9.1 and later. For earlier releases of WLS, check edocs for the settings of weblogic.wtc.TraceLevel
Best Regards,
Todd Little
BEA Tuxedo Chief Architect -
Error when calling Web Service from Adobe Form
Hi all,
I need to invoke a Web Service from my Adobe Interactive Form. I have merged the WSDL files, following the steps in this document:
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/148ec26e-0c01-0010-e488-decaafae3b26
But when I press the corresponding button in order to call the web service, I get the following error:
"Error trying to read file.
http://<my_host>:51000/<my_WS>/Config1?style=document"
It seems to be an error in my configuration, because I'm sure that I have followed all steps in the previous PDF.
Any idea?
Thanks.Well, I think so... I've followed all the steps, and my merged WSDL file seems like the one in page 12...
Any suggestion, please?
Thank you, -
Hi guys.
Typically webservices are invoked across domains. Flash has defined certain policies which prevent crossdomain access. The only way to bypass this security feature is to put a crossdomain.xml file within the server root of the webservice provider i.e. in our case at http://abc.com. A sample example of crossdomain.xml is as below:
<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy>
<site-control permitted-cross-domain-policies="all" />
<allow-access-from domain="*" secure="false"/>
<allow-http-request-headers-from domain="*" headers="*" secure="false" />
</cross-domain-policy>
If the crossdomain.xml is not added the developer will get “Security Error accessing URL” type of messages.
The above mentioned information should be enough for you to get your flex based WebService client up and running.
We are using axis2 to build webservices. We deployed the webservices under axis2 container under repository/srvices folder . But in Flex when we try to call the webservices we were getting the exception saying security error in accessing url. The solution is we need to put the crossdomain.xml o that it is loaded at runtime and allow us to access. In tomcat if we put the file under ROOT directory we could accss the file and we were able to access the webservices deployed under Tomcat. But I googled for Axis2 container and couldnt find any solution.
Please post the reply if anyone knows the solution to it.
Thanks
RajaHi. So, I did take a quick look at the Axis2 standalone server and didn't see any way to server up a file such as crossdomain.xml. It seems like it might be a useful enhancement to have the ability to serve up files even if this functionality was very simple/limited and nothing like a full blown http server.
I'd log an enhancement request against axis2 if this is something you'd like to have.
http://issues.apache.org/jira/browse/AXIS2
-Alex -
(401) unauthorized error when accessing web service....
Hello people! Can someone could possibly help me out. I'm try to consume a web service in .net technology. This was supposedly working already but lately I'm already given a (401) unauthorized error when consuming the web services. Here the code that was working couple of days ago....
package samples;
import org.apache.axis.client.Call;
import org.apache.axis.client.Service;
import org.apache.axis.encoding.XMLType;
import javax.xml.namespace.QName;
public class LogIn
private String url = "http://www-cebu/apps/webservices/fscservice.asmx?wsdl";
private String action="FSC Services/LogIn";
private String result="";
private String username="";
private String password="";
private String domain="";
public LogIn(String username, String password,String domain)
this.username = username;
this.password = password;
this.domain = domain;
try
Service service = new Service();
Call call = (Call)service.createCall();
call.setTargetEndpointAddress(new java.net.URL(url));
call.setOperationName(new QName("FSC Services/LogIn","LogIn"));
call.addParameter("username",org.apache.axis.encoding.XMLType.XSD_STRING,javax.xml.rpc.ParameterMode.IN);
call.addParameter("password",org.apache.axis.encoding.XMLType.XSD_STRING,javax.xml.rpc.ParameterMode.IN);
call.addParameter("domain",org.apache.axis.encoding.XMLType.XSD_STRING,javax.xml.rpc.ParameterMode.IN);
call.setReturnType(org.apache.axis.encoding.XMLType.XSD_STRING);
call.setUseSOAPAction(true);
call.setSOAPActionURI(action);
result = (String)call.invoke(new Object[] {username,password,domain});
catch (Exception e)
System.err.println(e.toString());
public String getResult()
return result;
public static void main(String [] args)
LogIn test = new LogIn("username","password","domain");
System.out.println(test.getResult());
}1. Use iFrame to show you report from Resporting Services in your Web App.
Or :
2. Use Report Viewer in your Web App if you use .NET, and use this code to pass your parameters :
ReportViewer1.ServerReport.Credential = new System.Network.NetworkCredential(“your name”, “your password”, “your domain”); -
Axis error when calling deployed service on weblogic
Hi,
I am trying to deploy the simple HelloWorld service using an .ear file on the weblogic8.1 server. But when I am trying to call the service, its giving me the error:
**Fault - ; nested exception is:**
** org.apache.axis.ConfigurationException: Could not find class for the service named: com.tutorial.Hello**
**Hint: you may need to copy your class files/tree into the right location (which depends on the servlet system you are using).; nested exception is:**
** java.lang.ClassNotFoundException: Class bytes found but defineClass()failed for: 'com.tutorial.Hello'**
**AxisFault**
**faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.generalException**
**faultSubcode:**
**faultString: Could not find class for the service named: com.tutorial.Hello**
**Hint: you may need to copy your class files/tree into the right location (which depends on the servlet system you are using).; nested exception is:**
** java.lang.ClassNotFoundException: Class bytes found but defineClass()failed for: 'com.tutorial.Hello'**
From what I read, the problem seems to be associated with the deploy.wsdd file. Hence I am giving the description of that file below:**
**<?xml version="1.0" encoding="UTF-8"?><!-- Use this file to deploy some handlers/chains and services --><!-- Two ways to do this: --><!-- java org.apache.axis.client.AdminClient deploy.wsdd --><!-- after the axis server is running --><!-- or --><!-- java org.apache.axis.utils.Admin client|server deploy.wsdd --><!-- from the same directory that the Axis engine runs --><deployment xmlns="http://xml.apache.org/axis/wsdd/" xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">**
**<!-- Services from HelloService WSDL service -->**
**<service name="Hello" provider="java:RPC" style="rpc" use="encoded">**
**<parameter name="wsdlTargetNamespace" value="http://tutorial.com"/>**
**<parameter name="wsdlServiceElement" value="HelloService"/>**
**<parameter name="wsdlServicePort" value="Hello"/>**
**<parameter name="className" value="com.tutorial.Hello"/>**
**<parameter name="wsdlPortType" value="Hello"/>**
**<parameter name="typeMappingVersion" value="1.2"/>**
**<operation xmlns:operNS="http://tutorial.com" xmlns:rtns="http://www.w3.org/2001/XMLSchema" name="sayHello" qname="operNS:sayHello" returnQName="sayHelloReturn" returnType="rtns:string" soapAction="">**
**<parameter xmlns:tns="http://www.w3.org/2001/XMLSchema" qname="name" type="tns:string"/>**
**</operation>**
**<parameter name="allowedMethods" value="sayHello"/>**
**</service>**
**</deployment>**
Please let me know where do I need to make the changes or give some hint towards this error.
-SourikHi Alex,
This link would give u the reason of the error
http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html
Also have a look at this note
SAP Note 857596 - Message server: Status code for redirect requests
Regards,
Prateek
Message was edited by:
Prateek Srivastava -
Hi Team,
As of IDM 7.2 SP8 patch2, when we use Enterprise role or Privilege in the access control definition of a task, accessing this task from UI5 i.e REST API is giving unauthorized error even though user is already having the required role or privilege.
But the task is working fine if we use fixed user ID or keeping blank value in allowed users field.
Attached the current access control definition of the task we configured & the error message info for reference
Regards,
Venkata BavirisettyHi Ralitsa,
Thanks for your response and sorry for late reply.
The XXXX in role is not used as a wild card. the name itself is in that format. I have searched the role and then selected from search list.
Let me know if you need any clarifications?
Refards,
Venkata Bavirisetty -
Error calling a Tuxedo service from WLS
We have WLS 6.1 connecting to Tuxedo 8. We try to run the example application simpapp.
We connect thru the toupper EJB to Tuxedo. It connects succesfully, but when we
execute the tpcall we get this error:
* Tuxedo side:
123313.localhost.localdomain!GWTDOMAIN.8794.1024.0: LIBGWT_CAT:1128: INFO: Connection
accepted from domain (domainid=<WTCSIFO01>)
123313.localhost.localdomain!GWTDOMAIN.8794.1024.0: LIBGWT_CAT:1070: ERROR: Unable
to obtain local service information from shared memory
123313.localhost.localdomain!GWTDOMAIN.8794.1024.0: LIBGWT_CAT:1043: ERROR: Unrecoverable
error occurred on receipt of data - sending failure reply over network
* WLS side:
setSessionContext called
ejbCreate called
toupper called, converting ola
About to call tpcall
<04-ene-01 12:33:13 GMT+01:00> <Info> <WTC> <Established Connection to remote
do
main SIFOWTC01>
tpcall threw TPException TPMINVAL(0):0:0:TPED_MINVAL(0):QMNONE(0):0
I've checked my domain configuration in Tuxedo side, but everithing seems to be
OK.
Thanks
Yol.
This is my Tuxedo domains configuration (took from dmunloadcf)
# DMCONFIG FILE
*DM_RESOURCES
*DM_LOCAL
SIFOSGC GWGRP=PASARELA
ACCESSPOINTID="SIFOSGC01"
AUDITLOG="/home/sifo/tuxedo/entorno/dominio/AUDITLOG"
BLOCKTIME=6
DMTLOGDEV="/home/sifo/tuxedo/entorno/DMTLOGDEV"
DMTLOGNAME="SIFOSGC001_DMTLOG"
MAXTRAN=50
BLOB_SHM_SIZE=1000000
SIFOWTC GWGRP=WTC
ACCESSPOINTID="SIFOWTC01"
AUDITLOG="/home/sifo/tuxedo/entorno/dominio/AUDITLOG_WTC"
BLOCKTIME=6
DMTLOGDEV="/home/sifo/tuxedo/entorno/DMTLOGDEV_WTC"
DMTLOGNAME="SIFOWTC001_DMTLOG"
MAXTRAN=50
BLOB_SHM_SIZE=1000000
*DM_REMOTE
SGCSIFO ACCESSPOINTID="SGCSIFO01"
CREDENTIAL_POLICY="LOCAL"
WTCSIFO ACCESSPOINTID="WTCSIFO01"
CREDENTIAL_POLICY="LOCAL"
*DM_TDOMAIN
SIFOSGC NWADDR="//172.16.160.173:6506"
NWDEVICE="/dev/inet/tcp"
SGCSIFO NWADDR="//172.16.160.173:6507"
NWDEVICE="/dev/inet/tcp"
SIFOWTC NWADDR="//172.16.160.173:6510"
NWDEVICE="/dev/inet/tcp"
WTCSIFO NWADDR="//172.16.160.173:6511"
NWDEVICE="/dev/inet/tcp"
*DM_ACCESS_CONTROL
ACL_SGC ACLIST=SGCSIFO
*DM_EXPORT
QPK_CEN ACL=ACL_SGC
LACCESSPOINT=SIFOSGC
COUPLING=LOOSE
QPK_CUR ACL=ACL_SGC
LACCESSPOINT=SIFOSGC
COUPLING=LOOSE
QPK_ESP ACL=ACL_SGC
LACCESSPOINT=SIFOSGC
COUPLING=LOOSE
CUR01147 ACL=ACL_SGC
LACCESSPOINT=SIFOSGC
COUPLING=LOOSE
simpserv LACCESSPOINT=SIFOWTC
COUPLING=LOOSE
*DM_IMPORT
SEL_TABLAS LACCESSPOINT=SIFOSGC
LOAD=50
PRIO=50
RACCESSPOINT=SGCSIFO
TRANTIME=30
AUTOPREPARE=N
SEL_POSTAL LACCESSPOINT=SIFOSGC
LOAD=50
PRIO=50
RACCESSPOINT=SGCSIFO
TRANTIME=30
AUTOPREPARE=N
SEL_MUNICIPIO LACCESSPOINT=SIFOSGC
LOAD=50
PRIO=50
RACCESSPOINT=SGCSIFO
TRANTIME=30
AUTOPREPARE=N
SEL_PROVINCIA LACCESSPOINT=SIFOSGC
LOAD=50
PRIO=50
RACCESSPOINT=SGCSIFO
TRANTIME=30
AUTOPREPARE=N
SEL_DAT_PER LACCESSPOINT=SIFOSGC
LOAD=50
PRIO=50
RACCESSPOINT=SGCSIFO
TRANTIME=30
AUTOPREPARE=N
SEL_DIN_REPET LACCESSPOINT=SIFOSGC
LOAD=50
PRIO=50
RACCESSPOINT=SGCSIFO
TRANTIME=30
AUTOPREPARE=N
SEL_NOM_PER LACCESSPOINT=SIFOSGC
LOAD=50
PRIO=50
RACCESSPOINT=SGCSIFO
TRANTIME=30
AUTOPREPARE=N
SEL_CENTRO_SGC LACCESSPOINT=SIFOSGC
LOAD=50
PRIO=50
RACCESSPOINT=SGCSIFO
TRANTIME=30
AUTOPREPARE=N
ACT_FORMACION LACCESSPOINT=SIFOSGC
LOAD=50
PRIO=50
RACCESSPOINT=SGCSIFO
TRANTIME=30
AUTOPREPARE=N
and this is my WLS configuration (bdmconfig.xml):
<?xml version="1.0"?>
<!DOCTYPE WTC_CONFIG SYSTEM "http://www.bea.com/servers/wls610/dtd/wtc_config.dtd">
<!--Java and XML-->
<WTC_CONFIG>
<BDMCONFIG>
<T_DM_LOCAL_TDOMAIN AccessPoint="WTCSIFO01">
<AccessPointId>WTCSIFO01</AccessPointId>
<Type>TDOMAIN</Type>
<Security>NONE</Security>
<ConnectionPolicy>ON_DEMAND</ConnectionPolicy>
<BlockTime>30</BlockTime>
<NWAddr>//172.16.160.173:6511</NWAddr>
</T_DM_LOCAL_TDOMAIN>
<T_DM_REMOTE_TDOMAIN AccessPoint="SIFOWTC01">
<LocalAccessPoint>WTCSIFO01</LocalAccessPoint>
<AccessPointId>SIFOWTC01</AccessPointId>
<Type>TDOMAIN</Type>
<NWAddr>//172.16.160.173:6510</NWAddr>
</T_DM_REMOTE_TDOMAIN>
<T_DM_IMPORT
ResourceName="TOUPPER"
LocalAccessPoint="WTCSIFO01"
RemoteAccessPointList="SIFOWTC01">
<TranTime>600</TranTime>
</T_DM_IMPORT>
</BDMCONFIG>
</WTC_CONFIG>Bob, you were right!!
I didn't realize of that. Now the problem is fixed, and the communication with
my domain is ok!
Thank you very much.
Yol.
Bob Finan <[email protected]> wrote:
Yolanda,
You have TOUPPER listed as the service that your trying to
import into the WLS side but you don't have it listed on the
Tuxedo side as an exported service. On the Tuxedo side you
have simpserv listed as an exported service when it is the server
that contains TOUPPER. Change simpserv to TOUPPER in
the dmconfig file and try that.
Bob Finan
Yolanda Arroyo wrote:
This is my Tuxedo domains configuration (took from dmunloadcf)
# DMCONFIG FILE
*DM_EXPORT
simpserv LACCESSPOINT=SIFOWTC
COUPLING=LOOSE
and this is my WLS configuration (bdmconfig.xml):
<?xml version="1.0"?>
<!DOCTYPE WTC_CONFIG SYSTEM "http://www.bea.com/servers/wls610/dtd/wtc_config.dtd">
<!--Java and XML-->
<WTC_CONFIG>
<BDMCONFIG>
<T_DM_IMPORT
ResourceName="TOUPPER"
LocalAccessPoint="WTCSIFO01"
RemoteAccessPointList="SIFOWTC01">
<TranTime>600</TranTime>
</T_DM_IMPORT>
</BDMCONFIG>
</WTC_CONFIG> -
Error when calling bpm service from custom component
Hi all,
I have built a custom component in order to fetch task related data by calling a bpm service inside the method of my custom service.
This is the error trace i got in audit info.
"not loading page MSG_PAGE because it is up to date with timestamp 1324331008000
Script stack dump (user: abc, request: IdcService=CUSTOM_SERVICE&dDocName=ABC018005)
No resource include or function stack for error. "
What does this error signify?
In the service definition of my custom service, I am using MSG_PAGE as my template. Is it related to this why i am facing the error? how do i get to know for a particular functionality i should use a particular template?
Please provide your inputs asap.
Thanks in advance.HI jiri,
Please have a look at the stacktrace and provide me a solution as in how to overcome the error.
I had included Report.trace in order to check the flow of the program and found that the problem arises when i establish the connection.
Caused by: java.lang.IllegalArgumentException: interface bpmpackage.TaskQueryService is not visible from class loader
at java.lang.reflect.Proxy.getProxyClass(Proxy.java:353)
at java.lang.reflect.Proxy.newProxyInstance(Proxy.java:581)
at weblogic.wsee.jaxws.spi.ClientInstance.createProxyInstance(ClientInstance.java:143)
at weblogic.wsee.jaxws.spi.WLSProvider$ServiceDelegate.getPort(WLSProvider.java:855)
at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:344)
at weblogic.wsee.jaxws.spi.WLSProvider$ServiceDelegate.getPort(WLSProvider.java:792)
at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:326)
at javax.xml.ws.Service.getPort(Service.java:92)
at bpmpackage.TaskQueryService_Service.getTaskQueryServicePort(TaskQueryService_Service.java:97)
at package.BPMConnection.getService(BPMConnection.java:58)
at package.classname.fetchTasks(classname.java:239)
at package.classname.InboundServiceMethod(classname.java:311)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at intradoc.common.IdcMethodHolder.invokeMethod(IdcMethodHolder.java:86)
at intradoc.common.ClassHelperUtils.executeMethodReportStatus(ClassHelperUtils.java:324)
at intradoc.server.ServiceHandler.executeAction(ServiceHandler.java:79)
Thanks in advance. -
Get an error when accessing the entry from the Backing Map directly
We are using some sample code from Oracle to access Objects associated via KeyAssociation directly from the Backing Map.
Occasionally we get the error posted below. Can someone shed light on what this error means ?
I'm doing a Get on the Backing Map directly.
Thanks,
J
An entry was inserted into the backing map for the partitioned cache "Customerl" that is not owned by this member; the entry will be removed.
ReadWriteBackingMap$5{ReadWriteBackingMap inserted: key=Binary(length=75, value=0x---binary key data removed ----), value=Binary(length=691, value=0x---binary value data removed---)), synthetic}
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.DistributedCache$Storage.onBackingMapEvent(DistributedCache.CDB:152)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.DistributedCache$Storage$PrimaryListener.entryInserted(DistributedCache.CDB:1)
at com.tangosol.util.MapEvent.dispatch(MapEvent.java:191)
at com.tangosol.util.MapEvent.dispatch(MapEvent.java:164)
at com.tangosol.util.MapListenerSupport.fireEvent(MapListenerSupport.java:556)
at com.tangosol.net.cache.ReadWriteBackingMap$InternalMapListener.dispatch(ReadWriteBackingMap.java:2064)
at com.tangosol.net.cache.ReadWriteBackingMap$InternalMapListener.entryInserted(ReadWriteBackingMap.java:1903)
at com.tangosol.util.MapEvent.dispatch(MapEvent.java:191)
at com.tangosol.util.MapEvent.dispatch(MapEvent.java:164)
at com.tangosol.util.MapListenerSupport.fireEvent(MapListenerSupport.java:556)
at com.tangosol.net.cache.OldCache.dispatchEvent(OldCache.java:1718)
at com.tangosol.net.cache.OldCache$Entry.onAdd(OldCache.java:1786)
at com.tangosol.util.SafeHashMap.put(SafeHashMap.java:244)
at com.tangosol.net.cache.OldCache.put(OldCache.java:253)
at com.tangosol.net.cache.OldCache.put(OldCache.java:221)
at com.tangosol.net.cache.ReadWriteBackingMap.get(ReadWriteBackingMap.java:721)
atHere is the sample we adapted. We have adapted the code below to our specific Cache. I have highlighted the line that throws the exception, this exception doesnt occur all the time, saw it about 10 times yesterday and 2 times today.
import com.tangosol.net.BackingMapManagerContext;
import com.tangosol.net.CacheFactory;
import com.tangosol.net.CacheService;
import com.tangosol.net.DefaultConfigurableCacheFactory;
import com.tangosol.net.NamedCache;
import com.tangosol.util.Binary;
import com.tangosol.util.ClassHelper;
import com.tangosol.util.InvocableMap;
import com.tangosol.util.processor.AbstractProcessor;
import java.io.Serializable;
import java.util.Map;
* dimitri
public class Main extends AbstractProcessor
public static class Foo implements Serializable
String m_sFoo;
public String getFoo()
return m_sFoo;
public void setFoo(String sFoo)
m_sFoo = sFoo;
public String toString()
return "Foo[foo=" + m_sFoo + "]";
public static class Bar implements Serializable
String m_sBar;
public String getBar()
return m_sBar;
public void setBar(String sBar)
m_sBar = sBar;
public String toString()
return "Bar[bar=" + m_sBar + "]";
public Object process(InvocableMap.Entry entry)
try
// We are invoked on foo - update it.
Foo foo = (Foo) entry.getValue();
foo.setFoo(foo.getFoo() + " updated");
entry.setValue(foo);
// Now update Bar
Object oStorage = ClassHelper.invoke(entry, "getStorage", null);
CacheService service = (CacheService) ClassHelper.invoke(oStorage, "getService", null);
DefaultConfigurableCacheFactory.Manager bmm =
(DefaultConfigurableCacheFactory.Manager) service.getBackingMapManager();
BackingMapManagerContext ctx = bmm.getContext();
Map mapBack = bmm.getBackingMap("bar");
// Assume that the key is still the same - "test"
Binary binKey = (Binary) ctx.getKeyToInternalConverter().convert(entry.getKey());
Binary binValue = (Binary) mapBack.get(binKey);
// convert value from internal and update
Bar bar = (Bar) ctx.getValueFromInternalConverter().convert(binValue);
bar.setBar(bar.getBar() + " updated");
// update backing map
binValue = (Binary) ctx.getValueToInternalConverter().convert(bar);
mapBack.put(binKey, binValue);
catch (Throwable oops)
throw ensureRuntimeException(oops);
return null;
public static void main(String[] asArg)
try
NamedCache cacheFoo = CacheFactory.getCache("foo");
NamedCache cacheBar = CacheFactory.getCache("bar");
Foo foo = new Foo();
foo.setFoo("initial foo");
cacheFoo.put("test", foo);
Bar bar = new Bar();
bar.setBar("initial bar");
cacheBar.put("test", bar);
System.out.println(cacheFoo.get("test"));
System.out.println(cacheBar.get("test"));
cacheFoo.invoke("test", new Main());
System.out.println(cacheFoo.get("test"));
System.out.println(cacheBar.get("test"));
catch (Throwable oops)
err(oops);
finally
CacheFactory.shutdown();
} -
Get 400 error when accessing the Source from MySite sharepoint 2013
we retrieving the recent news feed from my site .Sometimes we are getting 400 bad request error.we have used rest json method toretrieve the item from my site?any idea to resolve this issue?
I'm not very familiar with Tuxedo unfortunately.
I recommend that you post here:
Could not get TuxedoConnectionFactory, setting up AP's incorrectly?
You could also start with the code here:
Where to Download weblogic.wtc.jatmi Library/Package
And follow the instructions here:
http://download.oracle.com/docs/cd/E21764_01/web.1111/e13756.pdf -
"end-of-body reached" Error when consuming web service from 10GR1
Hi all,
Im consuming a number of web services, all of which work fine apart from one which returns the error:
29266. 00000 - "end-of-body reached"
*Cause: The end of the HTTP response body was reached.
*Action: If the end of the HTTP response is reached prematurely, check if
the HTTP response terminates prematurely. Otherwise, end the
HTTP response.
I don't understand why this is happening and would really appreciate some help. I have checked the invoke procedure and there is a ' utl_http.end_response(http_resp);' call which online searching suggests can be a cause of the problem (if not used). The procedure which calls the service is:
function Events_Insert(id varchar2, pwd varchar2) return clob as
req opf_portal.pkg_call_web_services.request;
resp opf_portal.pkg_call_web_services.response;
aEventRecord varchar2(4000);
begin
req := opf_portal.pkg_call_web_services.new_request('Events_Insert', 'xmlns="<removed>');
aEventRecord:='<Options>
<EventOptionRecord>
<Comments>None</Comments>
<Quantity>1</Quantity>
<OptionID>53</OptionID>
</EventOptionRecord>
<EventOptionRecord>
<Comments>None</Comments>
<Quantity>1</Quantity>
<OptionID>53</OptionID>
</EventOptionRecord>
</Options>
<Badges>
<EventBadgeRecord>
<Company>Oracle</Company>
<JobTitle>Consultant</JobTitle>
<Name>GregCox</Name>
<EventBadgeRecord>
</Badges>
<SpecialRequirements>
<EventSpecialRequirementRecord>
<Notes>bob</Notes>
<Pvkey>110606</Pvkey>
<RequirementCode>VEG</RequirementCode>
</EventSpecialRequirementRecord>
</SpecialRequirements>
<Pvkey>110606</Pvkey>
<DelegateType>DELEGATE</DelegateType>
<EventID>524938</EventID>';
opf_portal.pkg_call_web_services.add_parameter(req, 'userid', 'xsd:string', id);
opf_portal.pkg_call_web_services.add_parameter(req, 'password', 'xsd:string', pwd);
opf_portal.pkg_call_web_services.add_parameter(req, 'aEventRecord', 'xsd:complexType', aEventRecord);
resp := opf_portal.pkg_call_web_services.invoke(req, '<removed>', '<removed>');
return resp.doc.getstringval();
end;Incase anybody else encounters this problem, it was my XML that was invalid:
<EventBadgeRecord>
<Company>Oracle</Company>
<JobTitle>Consultant</JobTitle>
<Name>GregCox</Name>
<EventBadgeRecord>
was missing '/' in closing tag -
Geting Error when accessing Web IDE from Hana Trial.
Unhandled Error: An unexpected error in the Orion backend connection has occurred. We apologize for the inconvenience.
Unhandled Error: Request failed: Service Unavailable URI: /orion/prefs/user/watt/sap.watt.common.plugin.welcomescreen.service.Version
The Url : https://webide-p1940079822trial.dispatcher.hanatrial.ondemand.com/I was seeing the same error few hours back and then it worked. there were some updates going on.
Now i am able to access it in chrome browser. You can try it again.
Regards,
JK -
Category ABAP Programming Error
Runtime Errors CONVT_NO_NUMBER
Except. CX_SY_CONVERSION_NO_NUMBER
ABAP Program ZMM_MIGO_GOODS_ISSUE
Application Component Not assigned
Date and Time 26.05.2014 14:28:30
Short Text
"C:\Users\SAP\Desktop\MIGO\MIGO.xlsx" cannot be interpreted as a number
What happened?
Error in the ABAP Application Program
The current ABAP program "ZMM_MIGO_GOODS_ISSUE" had to be terminated because
it has
come across a statement that unfortunately cannot be executed.
Error analysis
An exception has occurred which is explained in more detail below. The
exception is assigned to class 'CX_SY_CONVERSION_NO_NUMBER' and was not caught
in procedure
"%_SEL_SCREEN_P_FNAME_V" "(FORM)", nor was it propagated by a RAISING clause.
Since the caller of the procedure could not have anticipated thisHI CHIRUI,
I have changed and tried but still i a getting the same thing..
otherwise please check this i am using some class method i am not getting short dump,but excel file is not getting uploaded.
REPORT ZMM_MIGO_GOODS_ISSUE NO STANDARD PAGE HEADING.
DATA : BEGIN OF IT_DATA OCCURS 0,
ID(10),
BLDAT(10), " Document Date
BUDAT(10), " Posting Date
REF_DOC_NO(16), " Material Slip No
DEL_NOTE(16), " delivery note
MATNR TYPE MSEG-MATNR, " Material Number
ERFMG(13) TYPE C, " Quantity
BWART TYPE RM07M-BWARTWA, " Movement Type
SOBKZ(1), " Special Stock
WERKS TYPE RM07M-WERKS, " Plant
LGORT TYPE RM07M-LGORT, " Storage Location
PS_POSID TYPE PS_POSID, " WBS Element
COST_CENTER TYPE KOSTL, " cost center
ORDER TYPE AUFNR, " order number
SERNR TYPE RIPW0-SERNR, " Serial Number
END OF IT_DATA,
BEGIN OF IT_HEAD OCCURS 0,
ID(10),
BLDAT(10), " Document Date
BUDAT(10), " Posting Date
REF_DOC_NO(16), " Reference document number
"HEADER_TXT(25), " Header Text
BWART TYPE RM07M-BWARTWA, " Movement Type
END OF IT_HEAD,
BEGIN OF IT_ITEM OCCURS 0,
ID(10),
"ID1(10),
WERKS TYPE RM07M-WERKS, " Plant
LGORT TYPE RM07M-LGORT, " Storage Location
VAL_TYPE TYPE BWTAR_D,
MATNR TYPE MSEG-MATNR, " Material Number
ERFMG(13) TYPE C, " Quantity
CHARG TYPE MSEG-CHARG, " Batch
BWTAR TYPE BWTAR_D,
PS_POSID TYPE PS_POSID, " WBS Element
ERFME TYPE MSEG-ERFME, " Unit
COST_CENTER TYPE KOSTL, " cost center
ORDER TYPE AUFNR, " order number
CUSTOMER TYPE EKUNN, " Account Number of Customer
SERNR TYPE RIPW0-SERNR, " Serial Number
AMOUNT_LC TYPE BAPI_EXBWR,
SOBKZ(1),
END OF IT_ITEM,
HEADER LIKE BAPI2017_GM_HEAD_01,
CODE LIKE BAPI2017_GM_CODE,
ITEMS LIKE BAPI2017_GM_ITEM_CREATE OCCURS 0 WITH HEADER LINE,
SERIAL LIKE BAPI2017_GM_SERIALNUMBER OCCURS 0 WITH HEADER LINE,
RETURN LIKE BAPI2017_GM_HEAD_RET,
RET LIKE BAPIRET2 OCCURS 0 WITH HEADER LINE,
TESTRUN LIKE BAPI2017_GM_GEN-TESTRUN,
IT_TAB TYPE FILETABLE,
GD_SUBRC TYPE I,
L_FILE TYPE RLGRAP-FILENAME,
IT_RAW TYPE TRUXS_T_TEXT_DATA,
COUNT(2) TYPE N,
TEXT_C(30).
DATA: DATA LIKE TABLE OF IT_ITEM WITH HEADER LINE.
DATA: IT_TEMP LIKE TABLE OF IT_ITEM WITH HEADER LINE.
DATA: IT_TEMP1 LIKE TABLE OF IT_ITEM WITH HEADER LINE.
DATA: IT_ITEM1 LIKE TABLE OF IT_ITEM WITH HEADER LINE.
SELECTION-SCREEN: BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
PARAMETERS : P_FILE TYPE RLGRAP-FILENAME.
* p_test AS CHECKBOX.
SELECTION-SCREEN: END OF BLOCK B1.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FILE.
CALL METHOD CL_GUI_FRONTEND_SERVICES=>FILE_OPEN_DIALOG
EXPORTING
WINDOW_TITLE = 'SELECT FILE'
CHANGING
FILE_TABLE = IT_TAB
RC = GD_SUBRC.
READ TABLE IT_TAB INTO P_FILE INDEX 1.
START-OF-SELECTION.
PERFORM GET_EXCEL_DATA.
PERFORM GET_HEADER_ITEM.
PERFORM UPDATE_DATA.
*& Form GET_EXCEL_DATA
* text
* --> p1 text
* <-- p2 text
FORM GET_EXCEL_DATA .
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
INPUT = P_FILE
IMPORTING
OUTPUT = L_FILE.
CALL FUNCTION 'TEXT_CONVERT_XLS_TO_SAP'
EXPORTING
I_LINE_HEADER = 'X'
I_TAB_RAW_DATA = IT_RAW
I_FILENAME = L_FILE
TABLES
I_TAB_CONVERTED_DATA = IT_DATA
EXCEPTIONS
CONVERSION_FAILED = 1
OTHERS = 2.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDFORM. " GET_EXCEL_DATA
*& Form GET_HEADER_ITEM
* text
* --> p1 text
* <-- p2 text
FORM GET_HEADER_ITEM .
DATA : FLAG(1).
LOOP AT IT_DATA.
CLEAR FLAG.
IF IT_DATA-ID IS NOT INITIAL.
AT NEW ID.
FLAG = 'X'.
ENDAT.
ENDIF.
IF FLAG = 'X'.
MOVE-CORRESPONDING IT_DATA TO IT_HEAD.
APPEND IT_HEAD.
ENDIF.
MOVE-CORRESPONDING IT_DATA TO IT_ITEM.
APPEND IT_ITEM.
ENDLOOP.
DATA[] = IT_ITEM[].
IT_TEMP[] = IT_ITEM[].
IT_TEMP1[] = IT_ITEM[].
ENDFORM. " GET_HEADER_ITEM
*& Form UPDATE_DATA
* text
* --> p1 text
* <-- p2 text
FORM UPDATE_DATA .
DATA : COUNT1(10),
L_QTY TYPE I,
DAT(10).
CONCATENATE SY-DATUM+6(2) '.' SY-DATUM+4(2) '.' SY-DATUM(4) INTO DAT.
LOOP AT IT_HEAD.
ON CHANGE OF IT_HEAD-ID.
CALL FUNCTION 'CONVERT_DATE_TO_INTERNAL'
EXPORTING
DATE_EXTERNAL = IT_HEAD-BUDAT
ACCEPT_INITIAL_DATE = 'X'
IMPORTING
DATE_INTERNAL = HEADER-PSTNG_DATE.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL FUNCTION 'CONVERT_DATE_TO_INTERNAL'
EXPORTING
DATE_EXTERNAL = IT_HEAD-BLDAT
ACCEPT_INITIAL_DATE = 'X'
IMPORTING
DATE_INTERNAL = HEADER-DOC_DATE.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
MOVE : '2' TO HEADER-VER_GR_GI_SLIP,
'X' TO HEADER-VER_GR_GI_SLIPX.
* IF r1 EQ 'X'.
MOVE '05' TO CODE-GM_CODE.
HEADER-REF_DOC_NO = IT_HEAD-REF_DOC_NO.
"HEADER-HEADER_TXT = IT_HEAD-HEADER_TXT.
* ELSEIF r2 EQ 'X'.
* MOVE '04' TO code-gm_code.
* ELSEIF r3 EQ 'X'.
* MOVE '04' TO code-gm_code.
* ENDIF.
* IF p_test = 'X'.
* MOVE 'X' TO testrun.
* ENDIF.
ENDON.
IT_ITEM1[] = IT_ITEM[].
*delete it_item[] where werks = '' and id = it_head-id.
DELETE ADJACENT DUPLICATES FROM IT_ITEM COMPARING ID MATNR.
LOOP AT IT_ITEM WHERE ID = IT_HEAD-ID.
* ON CHANGE OF it_item-id1.
COUNT1 = COUNT1 + 1.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
INPUT = IT_ITEM-MATNR
IMPORTING
OUTPUT = ITEMS-MATERIAL.
MOVE : IT_ITEM-WERKS TO ITEMS-PLANT,
IT_ITEM-LGORT TO ITEMS-STGE_LOC,
* it_item-lgort1 TO items-move_stloc,
IT_ITEM-CHARG TO ITEMS-BATCH,
* IT_ITEM-VAL_TYPE TO ITEMS-VAL_TYPE,
'FRESH' TO ITEMS-VAL_TYPE,
IT_HEAD-BWART TO ITEMS-MOVE_TYPE,
IT_ITEM-SOBKZ TO ITEMS-SPEC_STOCK,
IT_ITEM-ERFMG TO ITEMS-ENTRY_QNT,
IT_ITEM-ERFMG TO ITEMS-ENTRY_QNT,
* it_item-erfme TO items-entry_uom,
* it_item-sgtxt TO items-item_text,
* it_item-exbwr TO items-amount_lc,
IT_ITEM-PS_POSID TO ITEMS-WBS_ELEM,
IT_ITEM-PS_POSID TO ITEMS-VAL_WBS_ELEM,
"IT_ITEM-CUSTOMER TO ITEMS-CUSTOMER,
IT_ITEM-ERFMG TO L_QTY,
IT_ITEM-AMOUNT_LC TO ITEMS-AMOUNT_LC,
IT_ITEM-COST_CENTER TO ITEMS-COSTCENTER,
IT_ITEM-ORDER TO ITEMS-ORDERID.
* items-SPEC_MVMT = 'R'.
CALL FUNCTION 'CONVERSION_EXIT_ABPSN_INPUT'
EXPORTING
INPUT = ITEMS-WBS_ELEM
IMPORTING
OUTPUT = ITEMS-WBS_ELEM.
CALL FUNCTION 'CONVERSION_EXIT_ABPSN_INPUT'
EXPORTING
INPUT = ITEMS-VAL_WBS_ELEM
IMPORTING
OUTPUT = ITEMS-VAL_WBS_ELEM.
* CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
* EXPORTING
* input = it_item-lifnr
* IMPORTING
* output = items-vendor.
APPEND ITEMS.
* ENDON.
ENDLOOP.
DELETE ADJACENT DUPLICATES FROM IT_TEMP COMPARING ID MATNR.
DELETE IT_TEMP1 WHERE ID <> IT_HEAD-ID.
DELETE IT_TEMP WHERE ID <> IT_HEAD-ID.
DATA: MAT_ITM TYPE MBLPO,
SERNP TYPE SERAIL.
MAT_ITM = '0001'.
LOOP AT IT_TEMP.
SELECT SINGLE SERNP FROM MARC INTO SERNP WHERE MATNR = IT_TEMP-MATNR.
IF SERNP IS NOT INITIAL.
LOOP AT IT_TEMP1 WHERE ID = IT_TEMP-ID AND MATNR = IT_TEMP-MATNR.
* MOVE : it_item1-id TO serial-matdoc_itm,
* MOVE : mat_itm TO serial-matdoc_itm,
SERIAL-MATDOC_ITM = MAT_ITM .
SERIAL-SERIALNO = IT_TEMP1-SERNR.
APPEND SERIAL.
CLEAR IT_ITEM1.
ENDLOOP.
MAT_ITM = MAT_ITM + 1.
ENDIF.
CLEAR IT_TEMP.
ENDLOOP.
CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
EXPORTING
GOODSMVT_HEADER = HEADER
GOODSMVT_CODE = CODE
TESTRUN = TESTRUN
* GOODSMVT_REF_EWM =
IMPORTING
GOODSMVT_HEADRET = RETURN
* MATERIALDOCUMENT =
* MATDOCUMENTYEAR =
TABLES
GOODSMVT_ITEM = ITEMS
GOODSMVT_SERIALNUMBER = SERIAL
RETURN = RET
* GOODSMVT_SERV_PART_DATA =
* EXTENSIONIN =
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT = 'X'
* IMPORTING
* RETURN =
IF NOT RETURN IS INITIAL.
WRITE :/ 'Material Document Number Generated: ' ,RETURN-MAT_DOC,RETURN-DOC_YEAR.
ELSE.
LOOP AT RET.
WRITE : RET-TYPE, RET-MESSAGE.
* log-index = sy-index.
* log-matnr = header-material.
* log-message = ret1-message.
* APPEND log.
ENDLOOP.
ENDIF.
REFRESH : ITEMS,RET.
CLEAR : HEADER,RETURN.
CLEAR: TESTRUN ,
RETURN,
ITEMS[],
SERIAL[],
RET[],
HEADER,
IT_TEMP[] ,
IT_TEMP1[].
IT_TEMP[] = DATA[].
IT_TEMP1[] = DATA[].
ENDLOOP.
ENDFORM. " UPDATE_DATA
Regards,
Suresh bheema -
ORA-28868 error when calling Web service over HTTPS from PL/SQL utl_http
I am getting error message ORA-28868 error when calling Web service over HTTPS from PL/SQL utl_http PL/SQL package,
when browsed through some of the messages they point to setting Oracle Wallet Manager.
I am trying to connect
Any idea on how to resolve this issue ?
your input is appreciated.
Thanks
RaviDuplicate post ... please ignore.
Maybe you are looking for
-
Why won't the newest version of iTunes download on my PC?
I tried downloading the newest version of iTunes today and there were some issues so it suggested that I reinstall. I tried doing that, but now I am getting an error message that says "Service 'Apple Mobile Device' failed to start. Verify that you ha
-
How can I upload an Itunes library from my Iphone to my laptop w windows 8? I cannot sync the music libraries on my Iphone with my PC because they are not the same. The sync would overwrit what is on the Iphone. Thank.
-
Compressor 2: now she works, now she don't!
glad to find you guys, but it looks like there really aren't many answers here as we're all having the same problem(s). i got FCP Studio 5 HD last year and have loved it. Compressor worked with no problems...then i started hearing about everyone else
-
I can't get my movie track button to change 'states'. It works fine on a computer. On a DVD deck it's impossible to know when a track has been selected. You can't tell when to push 'Enter' on the remote. Of course on a Mac, it's just point the mouse
-
Disconnected/Hung RDS Client Sessions
We have a Windows 2012 (not R2) RDS environment as follows: We have one domain, one licensing and one connection broker server. Three rd gateway servers, two web access servers, and 5 session host servers. All servers are virtualized. In our peak t