Quantcast
Channel: SCN : Popular Discussions - Java Development
Viewing all 518 articles
Browse latest View live

convert .txt file to .pdf using java code

0
0

Hi,

 

My requirement is to read the .txt file and convert it into .pdf file after changing certain text.

Searched the net got a document on iText ..is it the only way for conversion or any other method....please help.

 

Thanks in advance.

 

Pooja


sapjco3.dll (32bit VS 64bit)

0
0

Hi All,

 

I using sapjco3.dll on 64bit Windows 2008 system for JCO Connector.

i am getting the below error

java.lang.UnsatisfiedLinkError: C:\Windows\System32\sapjco3.dll: Can't load IA 32-bit .dll on a AMD 64-bit platform

 

Could any once please suggest how can i fix this issue with 64bit system.

If need to download sapjco3.dll compatible to 64bit system where can download?

 

Regards,

Narayana.

SAP NetWeaver Compostion Environment 7.3 trial version download

0
0

Hi

When I try to download the SAP NetWeaver Composition Environment 7.3 trial version download

 

located at SAP_NW_CE_7.3_TRIAL_VERSION_abstract

 

I get an error stating that the web page is not available.

 

Is this download still supposed to be available?

 

Thanks,

Daniel

SAP Netweaver CE 7.3 Installation Database not available

0
0

Hi,

I've installed the SAP Netweaver CE 7.3 and replaced the SYBASE_ASE_DE.lic in /sybase/CES/SYSAM-2_0/licenses, but I still got error by starting the system.

Here are the error infos in CES.log. Any help would be appreciated,

 

Thanks in advance

 

 

CES.log

00:0000:00000:00000:2014/01/20 01:50:22.62 kernel  SySAM: Using licenses from: /sybase/CES/SYSAM-2_0/licenses/SYBASE.lic:/sybase/CES/SYSAM-2_0/licenses/SYBASE_ASE_DE.lic:/sybase/CES/SYSAM-2_0/licenses/SYBASE_ASE_XE.lic

00:0000:00000:00000:2014/01/20 01:50:22.86 kernel  SySAM: Checked out license for 1 ASE_CORE (2014.1031/31-oct-2014/1B3E C649 D2A9 852A) will expire Sat 01 Nov 2014 12:00:00 AM CET.

00:0000:00000:00000:2014/01/20 01:50:22.86 kernel  Error: 131274, Severity: 17, State: 1

00:0000:00000:00000:2014/01/20 01:50:22.86 kernel  SySAM: WARNING: ASE will shutdown on Sat 01 Nov 2014 12:00:00 AM CET, unless a suitable ASE_CORE license is obtained before that date.

00:0000:00000:00000:2014/01/20 01:50:22.86 kernel  This product is licensed to: SAP, for use with SAP Business Applications.

00:0000:00000:00000:2014/01/20 01:50:22.86 kernel  Checked out license ASE_CORE

00:0000:00000:00000:2014/01/20 01:50:22.86 kernel  Adaptive Server Enterprise (Enterprise Edition)

00:0000:00000:00000:2014/01/20 01:50:23.33 kernel  Using config area from primary master device.

00:0000:00000:00000:2014/01/20 01:50:23.34 kernel  The value of 'max online engines' has been modified from '16' to the default value '1' since the original value is illegal. The legal values are between '1' and '2'.

00:0000:00000:00000:2014/01/20 01:50:23.34 kernel  The value of 'number of user connections' has been modified from '200' to the default value '25' since the original value is illegal. The legal values are between '5' and '50'.

00:0000:00000:00000:2014/01/20 01:50:23.35 kernel  SySAM: Checked out license for 1 ASE_PARTITIONS (2014.1031/31-oct-2014/1B3E C649 D2A9 852A) will expire Sat 01 Nov 2014 12:00:00 AM CET.

00:0000:00000:00000:2014/01/20 01:50:23.35 kernel  Error: 131275, Severity: 17, State: 1

00:0000:00000:00000:2014/01/20 01:50:23.35 kernel  SySAM: WARNING: ASE functionality that requires the ASE_PARTITIONS license will be disabled on Sat 01 Nov 2014 12:00:00 AM CET, unless a suitable ASE_PARTITIONS license is obtained before that date.

00:0000:00000:00000:2014/01/20 01:50:23.35 kernel  Checked out license ASE_PARTITIONS

00:0000:00000:00000:2014/01/20 01:50:23.36 kernel  SySAM: Checked out license for 1 ASE_COMPRESSION (2014.1031/31-oct-2014/1B3E C649 D2A9 852A) will expire Sat 01 Nov 2014 12:00:00 AM CET.

00:0000:00000:00000:2014/01/20 01:50:23.36 kernel  Error: 131275, Severity: 17, State: 1

00:0000:00000:00000:2014/01/20 01:50:23.36 kernel  SySAM: WARNING: ASE functionality that requires the ASE_COMPRESSION license will be disabled on Sat 01 Nov 2014 12:00:00 AM CET, unless a suitable ASE_COMPRESSION license is obtained before that date.

00:0000:00000:00000:2014/01/20 01:50:23.36 kernel  Checked out license ASE_COMPRESSION

00:0000:00000:00000:2014/01/20 01:50:23.37 kernel  SySAM: Checked out license for 1 ASE_ASM (2014.1031/31-oct-2014/1B3E C649 D2A9 852A) will expire Sat 01 Nov 2014 12:00:00 AM CET.

00:0000:00000:00000:2014/01/20 01:50:23.37 kernel  Error: 131275, Severity: 17, State: 1

00:0000:00000:00000:2014/01/20 01:50:23.37 kernel  SySAM: WARNING: ASE functionality that requires the ASE_ASM license will be disabled on Sat 01 Nov 2014 12:00:00 AM CET, unless a suitable ASE_ASM license is obtained before that date.

00:0000:00000:00000:2014/01/20 01:50:23.37 kernel  Checked out license ASE_ASM

00:0000:00000:00000:2014/01/20 01:50:23.42 kernel  Could not allocate memory using Huge Pages. Allocated using regular pages. For better performance, reboot the server after configuring enough Huge Pages.

00:0000:00000:00000:2014/01/20 01:50:23.42 kernel  Internal run-time model set for Linux  - Native

00:0000:00000:00000:2014/01/20 01:50:23.42 kernel  Adaptive Server is using the threaded kernel mode.

00:0000:00000:00000:2014/01/20 01:50:23.42 kernel  Using 32800 file descriptors.

00:0000:00000:00000:2014/01/20 01:50:23.42 kernel  Adaptive Server Enterprise/15.7.0/EBF 19674 SMP Refresh #3/P/x86_64/Enterprise Linux/aseasapga/2823/64-bit/FBO/Fri Dec  9 03:29:19 2011

00:0000:00000:00000:2014/01/20 01:50:23.42 kernel  Confidential property of Sybase, Inc.

00:0000:00000:00000:2014/01/20 01:50:23.43 kernel  Copyright 1987, 2011

00:0000:00000:00000:2014/01/20 01:50:23.43 kernel  Sybase, Inc.  All rights reserved.

00:0000:00000:00000:2014/01/20 01:50:23.43 kernel  Unpublished rights reserved under U.S. copyright laws.

00:0000:00000:00000:2014/01/20 01:50:23.43 kernel 

00:0000:00000:00000:2014/01/20 01:50:23.43 kernel  This software contains confidential and trade secret information of Sybase,

00:0000:00000:00000:2014/01/20 01:50:23.43 kernel  Inc.   Use,  duplication or disclosure of the software and documentation by

00:0000:00000:00000:2014/01/20 01:50:23.43 kernel  the  U.S.  Government  is  subject  to  restrictions set forth in a license

00:0000:00000:00000:2014/01/20 01:50:23.43 kernel  agreement  between  the  Government  and  Sybase,  Inc.  or  other  written

00:0000:00000:00000:2014/01/20 01:50:23.43 kernel  agreement  specifying  the  Government's rights to use the software and any

00:0000:00000:00000:2014/01/20 01:50:23.43 kernel  applicable FAR provisions, for example, FAR 52.227-19.

00:0000:00000:00000:2014/01/20 01:50:23.43 kernel  Sybase, Inc. One Sybase Drive, Dublin, CA 94568, USA

00:0000:00000:00000:2014/01/20 01:50:23.43 kernel  Using /sybase/CES as the 'SYBASE' environment variable, found during startup.

00:0000:00000:00000:2014/01/20 01:50:23.43 kernel  Using OCS-15_0 as the 'SYBASE_OCS' environment variable, found during startup.

00:0000:00000:00000:2014/01/20 01:50:23.43 kernel  Using ASE-15_0 as the 'SYBASE_ASE' environment variable, found during startup.

00:0000:00000:00000:2014/01/20 01:50:23.43 kernel  ASE booted on host 'sapnwce73' running Linux release 2.6.32.43-0.4-default version #1 SMP 2011-07-14 14:47:44 +0200.

00:0000:00000:00000:2014/01/20 01:50:23.43 kernel  Using '/sybase/CES/ASE-15_0/CES.cfg' for configuration information.

00:0000:00000:00000:2014/01/20 01:50:23.43 kernel  Logging ASE messages in file '/sybase/CES/ASE-15_0/install/CES.log'.

00:0000:00000:00000:2014/01/20 01:50:23.43 kernel  Disk Controller Manager is online.

00:0000:00000:00000:2014/01/20 01:50:23.43 kernel  Network Controller Manager is online.

00:0000:00000:00000:2014/01/20 01:50:23.43 kernel  Ct-Lib Controller Manager is online.

00:0000:00000:00000:2014/01/20 01:50:23.46 kernel  Platform TCP network support seems IPv6-aware, IPv4/IPv6 are both enabled.

00:0000:00000:00000:2014/01/20 01:50:23.46 kernel  ASE booted with TCP_NODELAY enabled.

00:0000:00000:00000:2014/01/20 01:50:23.47 kernel  Network and device connection limit is 32785.

00:0000:00000:00000:2014/01/20 01:50:23.47 kernel  ASE - Dynamic Pluggable Component Interface is disabled

00:0000:00000:00000:2014/01/20 01:50:23.48 kernel  Adaptive Server is running as process id 7773.

00:0000:00000:00000:2014/01/20 01:50:33.69 server  Number of blocks left for proc headers: 313248.

00:0000:00000:00000:2014/01/20 01:50:33.69 server  Proc header memory allocated 62649 pages for each per engine cache

00:0000:00000:00000:2014/01/20 01:50:36.70 kernel  Create Thread Pool 2, "syb_system_pool", type="Run To Completion", with 1 threads

00:0000:00000:00000:2014/01/20 01:50:36.70 kernel  Create Thread Pool 3, "syb_blocking_pool", type="Run To Completion", with 4 threads

00:0000:00000:00000:2014/01/20 01:50:36.70 kernel  Create Thread Pool 1, "syb_default_pool", type="Engine (Multiplexed)", with 1 threads

00:0000:00000:00000:2014/01/20 01:50:36.80 kernel  kscsinit: connectivity library error. Operation: cs_ctx_alloc().

00:0000:00000:00000:2014/01/20 01:50:36.80 kernel  Failed to initialize cslib

00:0000:00000:00000:2014/01/20 01:50:36.80 kernel  Attempt to resize 'Ct-Lib Controller Manager' failed because a new controller could not be created.

LDAP acces via SSL - javax.net.ssl.SSLHandshakeException

0
0

Hello All

 

I'm trying to fing reason for non-working SSL connection from java app (EJB) to LDAP server.

 

Code is:

 

env.put(Context.INITIAL_CONTEXT_FACTORY,"com.sun.jndi.ldap.LdapCtxFactory");
System.setProperty("ssl.ServerSocketFactory.provider","oracle.security.ssl.OracleSSLServerSocketFactoryimpl");
env.put(Context.PROVIDER_URL, urlLdapServer + baseDN);
env.put(Context.SECURITY_AUTHENTICATION, "simple");
env.put(Context.SECURITY_PRINCIPAL, "user");
env.put(Context.SECURITY_CREDENTIALS, "password");

 

And while trying to connect exception is thrown:

 

Exception while getting data from LDAP:

javax.naming.CommunicationException: simple bind failed: server_address:636 [Root exception is javax.net.ssl.SSLHandshakeException:

sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException:

unable to find valid certification path to requested target]

 

In portal's configuration there is key storage named TrustedCAs containing valid certificate for this LDAP server.

 

I'm bit stuck, so any help would be highly appreciated.

 

Thanks in advance

Best Regards

Maciej Gottfried

DYNPRO_SEND_IN_BACKGROUND

0
0

Hi All,

 

I am executing a JCO Program which triggers a RFC using JCO's <b>execute(String functionName)</b> method.

 

RFC inturn calls an SAP interface which process the goods issue files.

 

After processing few files i get a connection closed error.

 

In seeing in Transaction ST22 the error was DYNPRO_SEND_IN_BACKGROUND

 

When executed in SAP GUI the error never comes and also when the abapDebug is set to true

 

and its strange that its coming after processing some few files.

 

Any Idea

 

Thomas

convert .txt file to .pdf using java code

0
0

Hi,

 

My requirement is to read the .txt file and convert it into .pdf file after changing certain text.

Searched the net got a document on iText ..is it the only way for conversion or any other method....please help.

 

Thanks in advance.

 

Pooja

How to call a (selfmade) Java REST Webservice in Netweaver? What's the URL?

0
0

Dear experts,

 

currently I'm trying out REST webservices in the Netweaver environment. I tried some how-to-start-manuals and built my first REST Webservice as an EJB with EAR project.

 

For testing the webservice I used a simple Client class with console output. Unfortunately it always says

"GET http://...~lib~ws~rest/rest/testMessage returned a response status of 404 Not Found".

 

I wanted to call the REST URL in the Browser as well, but I also got the 404 error.

For the URL "http://...~lib~ws~rest/" I get a 403 "Forbidden" error. For me this means the URL for my EAR ist correct, but forbidden to show. But if it is correct, why don't the REST-URLs work?

 

Here is the code for my Webservice (project name "lib/ws/rest", resp. "lib/ws/rest/ear"):

 

package testWebservice;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
@Path("/testMessage")
public class TestWebserviceRest {    @GET    @Produces(MediaType.TEXT_PLAIN)    public String messageText() {        return "Yea! It's working!";    }    @GET    @Produces(MediaType.TEXT_HTML)    public String messageHtml() {        return "<html> " + "<title>" + "testMessage" + "</title>"             + "<body><h1>" + "Yea! It's working!"            + "</body></h1>" + "</html> ";    }
}

 

 

Here is the code for my testclass to run locally:

 

package testWebservice.rest.client; 
import java.net.URI;  
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.UriBuilder;
import com.sun.jersey.api.client.Client;
import com.sun.jersey.api.client.ClientResponse;
import com.sun.jersey.api.client.WebResource;
import com.sun.jersey.api.client.config.ClientConfig;
import com.sun.jersey.api.client.config.DefaultClientConfig;
public class RestTestClient {           public static void main(String[] args) {                  ClientConfig config = new DefaultClientConfig();        Client client = Client.create(config);        WebResource service = client.resource(getBaseURI());                // Fluent interfaces        System.out.println(service.path("rest").path("testMessage").accept(MediaType.TEXT_PLAIN).get(ClientResponse.class).toString());        // Get plain text        System.out.println(service.path("rest").path("testMessage").accept(MediaType.TEXT_PLAIN).get(String.class));        // The HTML        System.out.println(service.path("rest").path("testMessage").accept(MediaType.TEXT_HTML).get(String.class));      }      private static URI getBaseURI() {        return UriBuilder.fromUri("http://...lib~ws~rest").build();      }   
}

 

Is the URL wrong?

How to "build" the right URl for a REST webservice in Netweaver?

Or is there another problem I didn't find?

 

I appreciate every hint and hope your your support.

 

Thank you

Jana


LDAP acces via SSL - javax.net.ssl.SSLHandshakeException

0
0

Hello All

 

I'm trying to fing reason for non-working SSL connection from java app (EJB) to LDAP server.

 

Code is:

 

env.put(Context.INITIAL_CONTEXT_FACTORY,"com.sun.jndi.ldap.LdapCtxFactory");
System.setProperty("ssl.ServerSocketFactory.provider","oracle.security.ssl.OracleSSLServerSocketFactoryimpl");
env.put(Context.PROVIDER_URL, urlLdapServer + baseDN);
env.put(Context.SECURITY_AUTHENTICATION, "simple");
env.put(Context.SECURITY_PRINCIPAL, "user");
env.put(Context.SECURITY_CREDENTIALS, "password");

 

And while trying to connect exception is thrown:

 

Exception while getting data from LDAP:

javax.naming.CommunicationException: simple bind failed: server_address:636 [Root exception is javax.net.ssl.SSLHandshakeException:

sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException:

unable to find valid certification path to requested target]

 

In portal's configuration there is key storage named TrustedCAs containing valid certificate for this LDAP server.

 

I'm bit stuck, so any help would be highly appreciated.

 

Thanks in advance

Best Regards

Maciej Gottfried

convert .txt file to .pdf using java code

0
0

Hi,

 

My requirement is to read the .txt file and convert it into .pdf file after changing certain text.

Searched the net got a document on iText ..is it the only way for conversion or any other method....please help.

 

Thanks in advance.

 

Pooja

sapjco3.dll (32bit VS 64bit)

0
0

Hi All,

 

I using sapjco3.dll on 64bit Windows 2008 system for JCO Connector.

i am getting the below error

java.lang.UnsatisfiedLinkError: C:\Windows\System32\sapjco3.dll: Can't load IA 32-bit .dll on a AMD 64-bit platform

 

Could any once please suggest how can i fix this issue with 64bit system.

If need to download sapjco3.dll compatible to 64bit system where can download?

 

Regards,

Narayana.

When will SAP Java AS for EE 6 see the light?

0
0

Hi all,

As far as I know, SAP's bleeding edge AS (NW73 AS) is based on EE5.

As several java AS vendors are releasing EE6 compliant products, I would like to know whether any deadline has been set for SAP's EE6 app server release.

 

Thanks in advance

regards

 

Vincenzo

How to parse html to well-formed and to pdf

0
0

Dear friends,   I have reqruiment to convert xml to pdf, to do that i tried many ways, flying sourcer, itext, apache fop and etc. but the generated xml and xslt  is coming with errors, therefore i coulnt convert it to the pdf.  To do that, i first convert xml and xsl to html and now try to convert the genereted html to pdf.  Generated html is not well formed, and the i coulnt convert the html to pdf. I found a solution called tiddy, using fallowing page    http://infohound.net/tidy/tidy.pl  when i convert my html to well formed html then it works fine, but when i convert my html to well-formed html with the jar that tiddy served, it is not work and i get the fallowing error,

 

Exception in thread "main" com.itextpdf.tool.xml.exceptions.RuntimeWorkerException: Invalid nested tag head found, expected closing tag link.     at com.itextpdf.tool.xml.XMLWorker.endElement(XMLWorker.java:134)     at com.itextpdf.tool.xml.parser.XMLParser.endElement(XMLParser.java:395)     at com.itextpdf.tool.xml.parser.state.ClosingTagState.process(ClosingTagState.java:70)     at com.itextpdf.tool.xml.parser.XMLParser.parseWithReader(XMLParser.java:235)     at com.itextpdf.tool.xml.parser.XMLParser.parse(XMLParser.java:213)     at com.itextpdf.tool.xml.parser.XMLParser.parse(XMLParser.java:174)     at com.itextpdf.tool.xml.XMLWorkerHelper.parseXHtml(XMLWorkerHelper.java:223)     at com.itextpdf.tool.xml.XMLWorkerHelper.parseXHtml(XMLWorkerHelper.java:185)     at html_to_pdf_xml_worker.html_to_pdf.main(html_to_pdf.java:22)

 

My code that converting the html is like,

 

 

import org.w3c.tidy.Tidy;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import org.w3c.dom.Document;
import org.w3c.tidy.Tidy;
public class set_html {              public static void main(String[] args){                try{                   FileInputStream FIS=new FileInputStream("sample.html");                   FileOutputStream FOS=new FileOutputStream("my_xml.xhtml");                      Tidy T=new Tidy();                   Document D=T.parseDOM(FIS,FOS);                   }                catch (java.io.FileNotFoundException e)                   {System.out.println(e.getMessage());}                   }             }

 

and my html to pdf converter code is,

 

import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import com.itextpdf.text.Document;
import com.itextpdf.text.DocumentException;
import com.itextpdf.text.pdf.PdfWriter;
import com.itextpdf.tool.xml.XMLWorkerHelper;
public class html_to_pdf {             public static void main( String[] args ) throws DocumentException, IOException              {                // step 1                  Document document = new Document();                  // step 2                  PdfWriter writer = PdfWriter.getInstance(document, new FileOutputStream("pdf.pdf"));                  // step 3                  document.open();                  // step 4                  XMLWorkerHelper.getInstance().parseXHtml(writer, document,                          new FileInputStream("my_xml.xhtml"));                   //step 5                   document.close();                             System.out.println( "PDF Created!" );              }
}

LDAP acces via SSL - javax.net.ssl.SSLHandshakeException

0
0

Hello All

 

I'm trying to fing reason for non-working SSL connection from java app (EJB) to LDAP server.

 

Code is:

 

env.put(Context.INITIAL_CONTEXT_FACTORY,"com.sun.jndi.ldap.LdapCtxFactory");
System.setProperty("ssl.ServerSocketFactory.provider","oracle.security.ssl.OracleSSLServerSocketFactoryimpl");
env.put(Context.PROVIDER_URL, urlLdapServer + baseDN);
env.put(Context.SECURITY_AUTHENTICATION, "simple");
env.put(Context.SECURITY_PRINCIPAL, "user");
env.put(Context.SECURITY_CREDENTIALS, "password");

 

And while trying to connect exception is thrown:

 

Exception while getting data from LDAP:

javax.naming.CommunicationException: simple bind failed: server_address:636 [Root exception is javax.net.ssl.SSLHandshakeException:

sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException:

unable to find valid certification path to requested target]

 

In portal's configuration there is key storage named TrustedCAs containing valid certificate for this LDAP server.

 

I'm bit stuck, so any help would be highly appreciated.

 

Thanks in advance

Best Regards

Maciej Gottfried

Security Problem Accessing J2EE-Keystore

0
0

Hi!

 

I' m trying to access a keystore-view out of a xi-module (ejb), but get the following exception:

 

SMime.process() - Error while trying to verify signature: com.sap.engine.services.keystore.exceptions.BaseRemoteException: Remote call errored at com.sap.engine.services.keystore.impl.KeystoreManagerImpl.checkPermission(KeystoreManagerImpl.java:48) at com.sap.engine.services.keystore.interfaces.KeystoreManagerWrapper_Stub.checkPermission(KeystoreManagerWrapper_Stub.java:707) at com.sap.engine.services.keystore.interfaces.KeystoreManagerWrapper_Stub.getKeystore(KeystoreManagerWrapper_Stub.java:201) at com.snapconsult.spardat.smime.SMime.process(SMime.java:174) at com.sap.aii.af.mp.module.ModuleLocalLocalObjectImpl0.process(ModuleLocalLocalObjectImpl0.java:133) at com.sap.aii.af.mp.ejb.ModuleProcessorBean.process(ModuleProcessorBean.java:252) at com.sap.aii.af.mp.processor.ModuleProcessorLocalLocalObjectImpl0.process(ModuleProcessorLocalLocalObjectImpl0.java:103) at com.sap.aii.adapter.mail.service.MPCallerApplication.perform(MPCallerApplication.java:142) at com.sap.aii.messaging.srt.ApplicationBubble.onMessage(ApplicationBubble.java:29) at com.sap.aii.messaging.srt.InitiatorBubble.onMessage(InitiatorBubble.java:37) at com.sap.aii.messaging.srt.xmb.XMBIMAPInitiatorServiceImpl$MailClientTask.invoke(XMBIMAPInitiatorServiceImpl.java:628) at com.sap.aii.af.service.scheduler.JobBroker$Worker.run(JobBroker.java:450) at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37) at java.security.AccessController.doPrivileged(Native Method) at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100) at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170) Caused by: com.sap.engine.services.keystore.exceptions.BaseKeystoreException: Application is not authorized to execute keystore operation [] at com.sap.engine.services.keystore.impl.security.CodeBasedSecurityConnector.checkPermissions_getView(CodeBasedSecurityConnector.java:712) at com.sap.engine.services.keystore.impl.security.SecurityRestrictionsChecker.checkPermission(SecurityRestrictionsChecker.java:230) at com.sap.engine.services.keystore.impl.ParameterChecker.checkPermission(ParameterChecker.java:35) at com.sap.engine.services.keystore.impl.KeystoreManagerImpl.checkPermission(KeystoreManagerImpl.java:46) ... 15 more Caused by: java.security.AccessControlException: access denied at java.security.AccessControlContext.checkPermission(AccessControlContext.java:269) at java.security.AccessController.checkPermission(AccessController.java:401) at com.sap.engine.services.keystore.impl.security.CodeBasedSecurityConnector.checkPermissions_getView(CodeBasedSecurityConnector.java:705) ... 18 more

 

In the Security Provider - under "Protection Domains" I already added XISecurityRuntimePermission to my jar and further - under "Security Roles" - defined a Security Role named and mapped it to "J2EE_ADMIN", just to be sure.

 

Unfortunatly, I still get this exception. Has anybody got any hint on this?

 

Thanks a lot in advance!

 

Regards, Thomas


When will SAP Java AS for EE 6 see the light?

0
0

Hi all,

As far as I know, SAP's bleeding edge AS (NW73 AS) is based on EE5.

As several java AS vendors are releasing EE6 compliant products, I would like to know whether any deadline has been set for SAP's EE6 app server release.

 

Thanks in advance

regards

 

Vincenzo

Options in RFC_READ_TABLE

0
0

Hi all,

 

In RFC_TABLE_READ as I can put in an option like? when the field type like * XXXX *.

 

It's more if someone could tell which are the operators that exist in the where clause.

 

Thank you very much

sapjco3.dll (32bit VS 64bit)

0
0

Hi All,

 

I using sapjco3.dll on 64bit Windows 2008 system for JCO Connector.

i am getting the below error

java.lang.UnsatisfiedLinkError: C:\Windows\System32\sapjco3.dll: Can't load IA 32-bit .dll on a AMD 64-bit platform

 

Could any once please suggest how can i fix this issue with 64bit system.

If need to download sapjco3.dll compatible to 64bit system where can download?

 

Regards,

Narayana.

How to use JCo on PI in an deployable archive SDA

0
0

Hi.

I'm developing an Axis Handler which should call a BABI on ABAP Stack.

I try to use JCo 3 in my own written Axis Handler in order to call a BAPI in ABAP Stack. When I include sapjco3.jar in my SDA I get an error message saying:

"Exception caught by adapter framework: nested exception is: java.lang.RuntimeException: java.lang.ExceptionInInitializerError: JCo: Unsupported runtime environment
JCo standalone is detected inside of SAP AS Java.
This environment already comes with its own integrated JCo version.
There is no need to install or deploy the JCo standalone in this environment.
Please remove the 'sapjco3.jar' archive from the Java class path, from the Java extension path ('java.ext.dirs') and from all custom software deployment archives.
Wherever needed, add an application reference to the library 'com.sap.conn.jco'to your application or to its deployment descriptor instead."

 

I then removed the jar again and tried to reference the library in provider.xml:

<reference type="library" strength="weak" provider-name="sap.com">com.sap.conn.jco</reference>

 

In the later case my sda is deployed, but it cannot be started.

"Application sap.com/com.sap.aii.axis.app cannot be started. Reason: it has hard reference to library:com.sap.aii.af.axis.lib, which is not active on the server because  library is deployed but cannot be loaded. Contact component owners for assistance."


So my primary question is how to use JCo-lib within my SDA?


Thanks & Regards

Heinz

convert .txt file to .pdf using java code

0
0

Hi,

 

My requirement is to read the .txt file and convert it into .pdf file after changing certain text.

Searched the net got a document on iText ..is it the only way for conversion or any other method....please help.

 

Thanks in advance.

 

Pooja

Viewing all 518 articles
Browse latest View live




Latest Images