Java api use
i'm having a problem: i display an image(jpg) from url whereby getImage(of applet) method. the first use is correct, the image is ok, but when i modify it(the image) and try to display changed, nothing changes on the screen, as if it was displayed what had been downloaded from the url at first use of getImage method.
do you know what to do to overcome this strange behaviour of api?
a. if it's in cache why re-running the applet yeld expected result?
b. i did. i'm obstinate and reiterate the test to be sure what's really up.
the applet i run from:
- browser
- visual age
in both cases the behaviour was the same.
maybe it's a cache related to the instance of applet, and invoking an appropriate applet's method would help this problem.
BR
Similar Messages
-
Why does the Java API use int instead of short or byte?
Why does the Java API use int if short or even byte would be sufficient?
Example: The DAY_OF_WEEK field in Calendar uses int.One of the point is, on the benchmark tests on Java performance, int does far better than short and byte data types.
Please follow the below blog talks about the same.
Java Primative Speed
-K -
Call a Java API using Unix Script
Hi SDNers,
I want to call a Java API using Unix Script. Please suggest what will be the commands in Unix.
Please help!!
Thanks,
Priti
Edited by: Priti Rani Patnaik on Jul 7, 2010 4:17 PMHi
Try this
String[] cmd = {"/bin/sh", "-c", "ls > hello"};
Runtime.getRuntime().exec(cmd);
[Other Help|/thread/5425832 [original link is broken];
BR
Satish Kumar -
There are some common error tables storing error IDs information ( IDs like error type, project id, interface id, message id etc.) in Operational Database (is not on source or target system) which we have to update using java API. We need to call java API (java code) whenever error occurs. We have to provide all the IDs to this function and then API will take care of DB updating. We can call java API in mapping program by creating user-defined java function, this will trap all the errors which are in source file as well as in mapping and mapping lookup. Query is:
A- A- Do we have any other place after the mapping to call this java API and trap the errors through it?
B- Can we call Java API using BPM and pass error IDs to it.Hi Anand,
You Have to write Module For that(if you wanna call Java API after Mapping)at the receiver.
To write Module Here is a link which will help you in.....
==>http://help.sap.com/saphelp_nw04s/helpdata/en/84/2e3842cd38f83ae10000000a1550b0/frameset.htm
==>http://help.sap.com/saphelp_nw04s/helpdata/en/e4/6019419efeef6fe10000000a1550b0/frameset.htm
==>http://help.sap.com/saphelp_nw04s/helpdata/en/f4/0a1640a991c742e10000000a1550b0/frameset.htm
Enjoy Coding....:)
Regards,
Sundararamaprasad. -
Is there any Documentation about MDM4J (Java API) ?
Hello to all,
I was wondering... Is there any possibility to get documentation about the classes in the MDM4J.jar ?
We can not use the other Java Api, and we need to understand this one.
Thanks in advance,
Mariano.-Dee Bishnu wrote:
You're looking for documentation in addition to the javadoc included with MDM4J, right?.-
Exactly, but, I don't have the javadoc that are included with MDM4J. Are the javadocs always shipped with the MDM4J.jar?
RDNPrasad wrote:
Hi Mariano,
all the documentation is available via the MDM documentation center on SAP Service Marketplace:
http://service.sap.com/installMDM
Yes, but in that adress you only see the last documentation, and I want an old documentation that isn't found there.
Nico Razlow wrote:
hier is the link to the Java API SP3 (mdm4j):
https://websmp209.sap-ag.de/~form/sapnet?_FRAME=CONTAINER&_OBJECT=011000358700007403222005E
Thanks !! That PDF was really helpful !!!
Sudheendra Puth wrote:
To work on java api using MDM4J use the below link on javadoc
http://help.sap.com/javadocs/MDM/SP06P2/index.html
Kindly award points if it was helpful
That adress is the documentation for the "New Java API", not the MDM4J.
I'm going to put the question as answered because the PDF that Nico provided is like a javadoc. If anyone has any more information, please contact me privately.
Thanks to all for the Answers !!!
Mariano.- -
Exception when connecting to Reporting and Analysis services from Java API
Hello,
I'm trying to connect to Hyperion Reporting and Analysis services from Java API using [Developer's guide|http://www.bidw.in/docs/hs_developer.pdf] .
I get this error:
com.sqribe.rm.ReportMartException: com/hyperion/css/CSSException
at com.sqribe.rm.SessionImpl.convertError(Unknown Source)
at com.sqribe.rm.AASessionImpl.open(Unknown Source)
at com.sqribe.rm.AASessionImpl.internalInit(Unknown Source)
at com.sqribe.rm.AASessionImpl.<init>(Unknown Source)
at com.sqribe.rm.SessionFactory.getInstance(Unknown Source)
...My code:
String user = "user";
String pwd = "password";
String host = "my.hyperion.server";
int port = 6800;
try {
Session theSession = SessionFactory.getInstance(user, pwd, host, port);
Repository theRepository = theSession.getRepository();
} catch (UserValidationException e) {
e.printStackTrace();
} catch (UnknownReportMartException e) {
e.printStackTrace();
} catch (ReportMartException e) {
e.printStackTrace();
}I have tried to look at my services running, and it all looks OK. I've checked user/passowrd/port for GSM. What can be wrong?
I also tried to run samples from \BIPlus\SDK\samples\java, e.g. Login.java:
#> java Login user password my.hyperion.server 6800with this effect
com.sqribe.rm.ReportMartException: SystemExceptionError
at com.sqribe.rm.SessionImpl.convertError(Unknown Source)
at com.sqribe.rm.AASessionImpl.open(Unknown Source)
at com.sqribe.rm.AASessionImpl.internalInit(Unknown Source)
at com.sqribe.rm.AASessionImpl.<init>(Unknown Source)
at com.sqribe.rm.SessionFactory.getInstance(Unknown Source)
at Login.<init>(Login.java:36)
at Login.main(Login.java:69)I'm sure that I'm connecting to the server because when put wrong passowrd or user as input to Login class I get this:
com.sqribe.rm.ReportMartException: AUTHEN_CSSLoginFailed
at com.sqribe.rm.SessionImpl.convertError(Unknown Source)
at com.sqribe.rm.AASessionImpl.open(Unknown Source)
at com.sqribe.rm.AASessionImpl.internalInit(Unknown Source)
at com.sqribe.rm.AASessionImpl.<init>(Unknown Source)
at com.sqribe.rm.SessionFactory.getInstance(Unknown Source)
at Login.<init>(Login.java:36)
at Login.main(Login.java:69)so it is there but something is wrong later. Any idea what?
Please help.
regards,
Pawel
Edited by: Paoro on 2010-09-27 02:02HI,
I am getting the same error while running the Login file, Did any one resolve this issue?
Please share the solution.
Thanks. -
Developing Application for third-party Java API (jar) libraries
I need some of your inputs on architecting a web based solution to invoke Vantive java API using SAP Netweaver Technology. The API provides methods to connect, insert, update, fetch data from Vantive system using java classes. Pl. let me know which would be best way (webdynpro/ j2ee/java) to create & run web based forms to connect, insert and update data in Vantive using these Java APIs.
I think there is your choice only that based on your experience with web technologies (in case of integration with portal as I understood) but the nominee with the best integration capabilities is Dynpro. Of course you can simply use standard JEE techniques (see the official JSR for official technology and release notes of official restrictions by SAP implementation). Third party integrations are available in both choices: Dynpro or not. In general your choice is better to be with an appropriate estimation, isn't it? Or try to define concretely criteria of such integration.
-
11G: Error invoking adf-binding service in composite with JAVA API
Hello,
i'm trying to invoke a asyncrhonous composite via JAVA API. My composite has two services: WS and ADF-BC SERVICE both of two are wired with a MEDIATOR that connects with two BPEL Process depending on two rules.
I need to invoke a process depending of the input: if the input is A i invoke the process 1 and if the input is B I invoke the process 2. I use the Mediator instead of switch because it's an example in order to build a complex decission system then.
R1 and R2 are two static rules in the Mediator.
R1 = $in.payload/client:process/client:tiposiniestro = 'A'
R2 = $in.payload/client:process/client:tiposiniestro = 'B'
And my XSD is:
<schema attributeFormDefault="unqualified"
elementFormDefault="qualified"
targetNamespace="http://xmlns.oracle.com/POC_jws/ProcesoApertura/ProcesoApertura"
xmlns="http://www.w3.org/2001/XMLSchema">
<element name="process">
<complexType>
<sequence>
<element name="tiposiniestro" type="string"/>
</sequence>
</complexType>
</element>
<element name="processResponse">
<complexType>
<sequence>
<element name="result" type="string"/>
</sequence>
</complexType>
</element>
</schema>
If i invoke with SOAP, sending the message:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body xmlns:ns1="http://xmlns.oracle.com/POC_jws/ProcesoApertura/ProcesoApertura">
<ns1:process>
<ns1:tiposiniestro>A</ns1:tiposiniestro>
</ns1:process>
</soap:Body>
</soap:Envelope>
the composite works. But if i try to invoke with JAVA, with the code:
String payload5 = "<process xmlns=\"http://xmlns.oracle.com/POC_jws/ProcesoApertura/ProcesoApertura\">" +
" <tiposiniestro>A</tiposiniestro>" +
"</process>";
String conversationId = UUID.randomUUID().toString();
NormalizedMessage nm = new NormalizedMessageImpl();
nm.addProperty(NormalizedMessage.PROPERTY_CONVERSATION_ID, conversationId);
Map<String,Object> payload = nm.getPayload();
payload.put("payload", pPayLoad);
nm.setPayload(payload);
service.post(pOperation, nm);
i get the following error:
Caused by: java.lang.ClassCastException: java.lang.String cannot be cast to org.w3c.dom.Element
How can I send the message via JAVA API using the mediator in my composite?
Is there any important difference in the format between send a request with SOAP or JAVA?
Thanks in advance.
Edited by: user7239022 on 05-ene-2010 7:38
Edited by: user7239022 on 05-ene-2010 7:40
Edited by: user7239022 on 05-ene-2010 7:49
Edited by: user7239022 on 05-ene-2010 8:41Talking about the dynamic rules in the Mediator, Oracle documentation says:
"As of now, only SOAP bindings are supported. There is a dummy SOAP binding in the composite.xml file. This endpoint is overridden by Mediator in runtime through NM property. So, outbound services can be called only over SOAP."
Is it valid for static rules as well? I means, how can i use Java API to invoke a Composite with a Mediator as first element? I always get the message:
+"java.lang.ClassCastException: java.lang.String cannot be cast to org.w3c.dom.Element"+
Thanks again -
Can i generate java API from class files
I have only class files. Is it possible to generate the java API using the javadoc.If yes, pls tell me how can i do??
Also, Javadoc 1.4.2 will contain an unsupported option -Xclasses
that should allow you to do this. You must pass in class names
and use -classpath to find them. For com.package.MyClass
at /home/classes/com/package/MyClass.class,
you would run:
javadoc -Xclasses -classpath /home/classes com.package.MyClass
For mroe info, see:
http://developer.java.sun.com/developer/bugParade/bugs/4720100.html-
Doug Kramer
Javadoc team -
I have installed Hyperion Essbase 6.1.4, so i can use VB or C to access OLAP databases. However, i would like to use Java.How can i install Java API?thanks in advance
You will have to download/install the Essbase Enterprise Services 6.1. The Java API is contained within this product and all interaction with Essbase via the Java API uses EES on the middle tier. The good news is that the Java API portion of EES is available for free. If, however, you want to/need to leverage the scalability options of EES, such as server clustering, you will need to add the 'High Concurrency Option' to your Hyperion license agreement.Tim TowApplied OLAP, Inc
-
[License Terms] Porting Java API to PHP5
Hey folks,
I hope someone can help me out here, because I could not find a better place to ask that question (if you know a better place, please tell me and do not start a flamewar).
I am porting parts of the core JAVA Api (1.4.2) to PHP5 which makes sense to me (strict API, migrating from Java to PHP easier, porting frameworks from Java to PHP is easier and so on), but I am not sure about the proprietary license the Java API uses.
So my question is:
Is it legal to use method names, class names and even parts of source code (converted to PHP-syntax, of course) in another language?
Kind regards
ThorstenHey folks,
I hope someone can help me out here, because I could
not find a better place to ask that question (if you
know a better place, please tell me and do not start
a flamewar).
I am porting parts of the core JAVA Api (1.4.2) to
PHP5 which makes sense to me (strict API, migrating
from Java to PHP easier, porting frameworks from Java
to PHP is easier and so on), but I am not sure about
the proprietary license the Java API uses.
So my question is:
Is it legal to use method names, class names and even
parts of source code (converted to PHP-syntax, of
course) in another language?
Kind regards
ThorstenNot being an Intellectual Property Rights lawyer, I don't know. However, a good start would be reading the license you agreed to when you downloaded the JDK. I don't know if they save it on your hard drive ... you can always go back to the download site and just cancel the download after you read the license.
RD-R
� {� -
Problem while deploying WD +MDM7.1 thr java API
Hi All,
We are working with MDM 5.5 java API and building WD UI, everything was fine, but when we upgraded to MDM 7.1 we get this error: note when i tried to test the new Java API using java i dont see any problem,
The initial exception that caused the request to fail, was:
java.lang.ClassNotFoundException: com.sapportals.connector.connection.ConnectionFailedException -
Loader Info -
ClassLoader name: [com.flex.mdm.map/map_global_mfr_supp_cust] Living status: alive Direct parent loaders: [system:Frame] [service:servlet_jsp] [service:ejb] [service:sld] [library:tccmi] [sap.com/tcwdapi] [service:tcjesecurityapi] [library:tcjewebserviceslib] Resources: /usr/sap/CED/J00/j2ee/cluster/apps/com.flex.mdm.map/map_global_mfr_supp_cust/servlet_jsp/webdynpro/resources/com.flex.mdm.map/map_global_mfr_supp_cust/root/WEB-INF/lib/com.flex.gbl.mdm.apidm_mdm_apiDM_API.jar /usr/sap/CED/J00/j2ee/cluster/apps/com.flex.mdm.map/map_global_mfr_supp_cust/servlet_jsp/webdynpro/resources/com.flex.mdm.map/map_global_mfr_supp_cust/root/WEB-INF/lib/com.flex.mdm.mapmap_global_mfr_supp_cust.jar /usr/sap/CED/J00/j2ee/cluster/apps/com.flex.mdm.map/map_global_mfr_supp_cust/servlet_jsp/webdynpro/resources/com.flex.mdm.map/map_global_mfr_supp_cust/root/WEB-INF/lib/mdm-admin.jar /usr/sap/CED/J00/j2ee/cluster/apps/com.flex.mdm.map/map_global_mfr_supp_cust/servlet_jsp/webdynpro/resources/com.flex.mdm.map/map_global_mfr_supp_cust/root/WEB-INF/lib/mdm-common.jar /usr/sap/CED/J00/j2ee/cluster/apps/com.flex.mdm.map/map_global_mfr_supp_cust/servlet_jsp/webdynpro/resources/com.flex.mdm.map/map_global_mfr_supp_cust/root/WEB-INF/lib/mdm-core.jar /usr/sap/CED/J00/j2ee/cluster/apps/com.flex.mdm.map/map_global_mfr_supp_cust/servlet_jsp/webdynpro/resources/com.flex.mdm.map/map_global_mfr_supp_cust/root/WEB-INF/lib/mdm-data.jar /usr/sap/CED/J00/j2ee/cluster/apps/com.flex.mdm.map/map_global_mfr_supp_cust/servlet_jsp/webdynpro/resources/com.flex.mdm.map/map_global_mfr_supp_cust/root/WEB-INF/lib/mdm-extension.jar /usr/sap/CED/J00/j2ee/cluster/apps/com.flex.mdm.map/map_global_mfr_supp_cust/servlet_jsp/webdynpro/resources/com.flex.mdm.map/map_global_mfr_supp_cust/root/WEB-INF/lib/mdm-protocol.jar /usr/sap/CED/J00/j2ee/cluster/apps/com.flex.mdm.map/map_global_mfr_supp_cust/servlet_jsp/webdynpro/resources/com.flex.mdm.map/map_global_mfr_supp_cust/root/WEB-INF/lib/mdm-publishing.jar -
at com.sap.engine.boot.loader.MultiParentClassLoader.loadClass(MultiParentClassLoader.java:259)
at com.sap.engine.boot.loader.MultiParentClassLoader.loadClass(MultiParentClassLoader.java:228)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:353)
at com.sap.mdm.internal.session.JcaConnectionAccessor.reserveConnection(JcaConnectionAccessor.java:76)
at com.sap.mdm.internal.session.JcaConnectionAccessor.reserveConnection(JcaConnectionAccessor.java:63)
... 116 more
See full exception chain for details.Try restarting the portal if possible, otherwise restart the MDM Connector from Portal Visual Admin tool.
Reason your log contains - " com.sap.mdm.internal.session.JcaConnectionAccessor.reserveConnection(JcaConnectionAccessor.java:76" which looks like connector issue. -
OIM Java API silently ignores accounts operations such as enable/disable/revoke
Hi
I am facing a strange situation here.
My Java app (standalone) was able to set provisioned accounts to "enabled" and then disabled these enabled ones.
Now, provisioned accounts can't be enabled anymore.
Commands issued from Java API using ProvisioningService such as "enable", "disable" and "revoke" are being simply ignored. No exception raised, no changes.
Am I missing some step? Do I need to run any scheduled job in order to "commit" these changes performed from the OIM Java API?
How do I debug this?
TIASorry for my ignorance, but where's this "resource history" thing in OIM?
Here's what I am doing.
First, I use the Self Service UI to provision an account. This account belongs to an application instance backed by the OIM Webservice connector.
I suppose it works because after requesting the account, the connector creates it and returns back a unique ID (which is assigned to the account uid) and the account shows up in "my accounts" tab as "provisioned".
So far, so good.
THEN
I run my standalone java app from outside OIM, which uses OIM Java API. This app connects to OIM as xelsysadm, and I search for the account and do something like this
public void enableAccount(String uid) throws AccessDeniedException, NumberFormatException, AccountNotFoundException, ImproperAccountStateException,
GenericProvisioningException, InvalidUidException {
Account a = findAccountIdByUID(uid);
if (a != null) {
System.out.println("enabling "+a.getAccountID()+":"+a.getAccountStatus()+":"+a.getAccountData().getData().get("UD_AVNC_USR_LOGIN")); <<< here I confirm I am changing the right account, it is
ProvisioningService provService = oimClient.getService(oracle.iam.provisioning.api.ProvisioningService.class);
provService.enable(Long.parseLong(a.getAccountID()));
}else {
throw new InvalidUidException(uid);
then I expect to refresh "my accounts" tab and see my account status changed from "Provisioned" to "Enabled".
I don't know if these screenshots may help, but anyway
These are the tasks for the provisioning process. I believe the one we're interested here is the #22
these are the status definitions for the process. They're also created by default during the OIM webservice connector module import process I guess
these are the task to object status mapping for the task #22 below, also created automatically I guess.
I am a little bit confused because the OIM manual -- http://docs.oracle.com/cd/E27559_01/user.1112/e27151/myaccess.htm#OMUSG3166 -- says the user can just perform the operations on the accounts, but says nothing about any kind of restriction. I mean, what are exactly the state transition for accounts (the default one)?
TIA -
Unable to raise password expiry warning exception in OID using JAVA API
Hi,
We are maintaing the user information for our application in OID(9.2). During logon, it is required that a warning is given to the user according to the value set in "Password Expiration Warning" parameter.
A pl/sql program (using DBMS_LDAP/DBMS_LDAP_UTL packages) written to test password expiry raises the PWD_EXPIRE_WARN exception as expected. However we are unable to simulate the same using the JAVA APIs.
We did try some thing like the following:
public class SampleExpire {
public static void main(String argv[])
throws NamingException {
// Create InitialDirContext
InitialDirContext ctx = ConnectionUtil.getDefaultDirCtx( "TCS-UUODC4",
"4032",
"cn=orcladmin",
"welc0me" );
System.out.println("Hello");
// Create User Objects
User myuser = null,
try {
// Create User using a subscriber DN and the User DN
myuser = new User ( ctx,
Util.IDTYPE_DN,
"uid=C100013, ou=People, o=UUSD",
Util.IDTYPE_DN,
"ou=People, o=UUSD",
false );
catch ( UtilException e ) {
* Exception encountered in User object constructor
System.out.println("User creation failed");
// Authenticate User
try {
myuser.authenticateUser(ctx,User.CREDTYPE_PASSWD,"Z100013");
catch ( UtilException e ) {
* Authenticate fails
System.out.println("Authentication failed");
} // End of SampleExpire.java
The authenticate user does not raise any exception.
Am I missing something ?
Regards -
AdhirajHi,
did you manage to solve this problem? Please let me know -
Get All group from LCES using Livecycle java API
Hello ,
Can anyone told me how i can retrieve all the groups that exist in my livecyle using JAVA API.
Some method who return all groups ??
Thanks!First Thank you for your answer
I tried this part
//Set connection properties required to invoke LiveCycle ES
Properties connectionProps = new Properties();
connectionProps.setProperty(ServiceClientFactoryProperties.DSC_DEFAULT_EJB_ENDPOINT, "jnp://test:1099");
connectionProps.setProperty(ServiceClientFactoryProperties.DSC_TRANSPORT_PROTOCOL,Service ClientFactoryProperties.DSC_EJB_PROTOCOL);
connectionProps.setProperty(ServiceClientFactoryProperties.DSC_SERVER_TYPE, "JBoss");
connectionProps.setProperty(ServiceClientFactoryProperties.DSC_CREDENTIAL_USERNAME, "administrator");
connectionProps.setProperty(ServiceClientFactoryProperties.DSC_CREDENTIAL_PASSWORD, "password");
ServiceClientFactory scf = ServiceClientFactory.createInstance(connectionProps);
DirectoryManager directoryManager = new DirectoryManagerServiceClient(scf);
PrincipalSearchFilter psf = new PrincipalSearchFilter();
psf.setPrincipalType(Principal.PRINCIPALTYPE_GROUP); //Recommended - refines the search to a User or Group
psf.setRetrieveOnlyActive(); // Recommended - returns only ative users/groups and not obsolete/deleted users/groups
List<Principal> resultList = directoryManager.findPrincipals(psf);
System.out.println("Done");
and when I check the result of my list I find incomprehensible informations.
So when I debug the code , my list contains little information.
NB : my LDAP contains hundreds of groups.
Any suggestion
Any code Source.
Maybe you are looking for
-
I currently have Premiere CS5 and one of my biggest pet peeves is dropping and modifying audio transitions. From my Final Cut Pro days I could easily link multiple audio tracks, and when adding or modifying a transition to one it did it to the rest o
-
hi, could you please help me with this problem: i use tomcat 5.5, here're my folders and files in the root folder cns(cns in tomcat\webapps\): cns\registration.jsp cns\WEB-INF\classes\servlet\RegistrationServlet.java (and .class) here is the form in
-
I NEED TO KNOW HOW TO RESET OR RETIRVE MY PASSWORD. LOST PASSWORD FOR MY MI FI CARD?
-
WIFI GRIGIO CHIARO NON ACCESSIBILE
la rete wifi non è accessibile in quanto l icona resta in grigio chiaro , come posso attivarla? grazie
-
when making changes to the I/O buffer size( motu-pci 424) it takes an abnormal length of time for the changes to take affect any ideas?