Reg connection to java
hi guys i am trying to use the offline config tool- i am getting the following error
help appreciated
thanks
ERROR: Error while connecting to DB.
com.sap.engine.frame.core.configuration.ConfigurationException: Error while conn
ecting to DB.
at com.sap.engine.core.configuration.impl.persistence.rdbms.DBConnection
Pool.createConnection(DBConnectionPool.java:364)
at com.sap.engine.core.configuration.impl.persistence.rdbms.DBConnection
Pool.<init>(DBConnectionPool.java:129)
at com.sap.engine.core.configuration.impl.persistence.rdbms.PersistenceH
andler.<init>(PersistenceHandler.java:38)
at com.sap.engine.core.configuration.impl.cache.ConfigurationCache.<init
>(ConfigurationCache.java:149)
at com.sap.engine.core.configuration.bootstrap.ConfigurationManagerBoots
trapImpl.init(ConfigurationManagerBootstrapImpl.java:236)
at com.sap.engine.core.configuration.bootstrap.ConfigurationManagerBoots
trapImpl.<init>(ConfigurationManagerBootstrapImpl.java:49)
at com.sap.engine.services.configuration.gui.ToolLauncher.main(ToolLaunc
her.java:39)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.sap.engine.offline.OfflineToolStart.main(OfflineToolStart.java:81
Caused by: com.sap.sql.log.OpenSQLException: Could not load class com.microsoft.
sqlserver.jdbc.SQLServerDriver.
at com.sap.sql.log.Syslog.createAndLogOpenSQLException(Syslog.java:106)
at com.sap.sql.jdbc.NativeConnectionFactory.createNativeConnection(Nativ
eConnectionFactory.java:143)
at com.sap.sql.connect.OpenSQLDataSourceImpl.createPooledConnection(Open
SQLDataSourceImpl.java:608)
at com.sap.sql.connect.OpenSQLDataSourceImpl.getPooledConnection(OpenSQL
DataSourceImpl.java:285)
at com.sap.engine.core.configuration.impl.persistence.rdbms.DBConnection
Pool.createConnection(DBConnectionPool.java:306)
... 11 more
Caused by: java.lang.ClassNotFoundException: com.microsoft.sqlserver.jdbc.SQLSer
verDriver
at com.sap.engine.offline.FileClassLoader.findClass(FileClassLoader.java
:691)
at com.sap.engine.offline.FileClassLoader.loadClass(FileClassLoader.java
:600)
at com.sap.engine.offline.FileClassLoader.loadClass(FileClassLoader.java
:578)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:141)
at com.sap.sql.jdbc.NativeConnectionFactory.createNativeConnection(Nativ
eConnectionFactory.java:134)
Hi Ibrahim,
The described problem seems to be a general topic, it's not VAR specific.
If you wish, I could forward it the [SAP Solution Manager Forum|SAP Solution Manager;, which is accessible for all users.
Best regards,
Ruediger
Similar Messages
-
Error while connecting for Java to SAP
Hi All,
I am encountering the following error while connecting from Java to SAP through JCO:
RFC_ERROR_LOGON_FAILURE: You are not authorized to logon to the target system
I have checked the connection string and everything appears to be fine.
Please let me know what the problem is.
Regards,
Rupesh.Hi rupesh,
See this thread:
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/f3f93ee7-0c01-0010-2593-d7c28b5377c2
Regards, Suresh KB -
Crystal Reports data connection using Java beans
Hi
My name is Bach Ong, i'm currently perform re-configuring Crystal reports 2008 to connect via
Java bean to Jboss server, this uses look up service on JBoss server. The connection is using Connect
look up using the properties:
java.naming.provider.url=jnp://emgsydapp121:10499
java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
for file CRConfig.xml i put as follows:
<JDBCURL></JDBCURL>
<JDBCClassName></JDBCClassName>
<JDBCUserName></JDBCUserName>
<JNDIURL>jnp://emgsydapp121:10499</JNDIURL>
<JNDIConnectionFactory>org.jnp.interfaces.NamingContextFactor
y</JNDIConnectionFactory>
<JNDIInitContext>/</JNDIInitContext>
<JNDIUserName></JNDIUserName>
Can you advise us if this step is correct, and is there any
documentation that can guide us to right direction.
for Java testing in Eclipse using remote call class it is working suing the following code:
Properties p = new Properties();
p.put(Context.INITIAL_CONTEXT_FACTORY,
"org.jnp.interfaces.NamingContextFactory");
p.put(Context.URL_PKG_PREFIXES, "jboss.naming:org.jnp.interfaces");
p.put(Context.PROVIDER_URL, "jnp://emgsydapp121:10499");
InitialContext ctx = new InitialContext(p);
Date asAtDate = CrystalUtils.convertToDate("2014-01-01", CrystalUtils.relativeToToday(0), false);
String asxCode = "BHP";
ClosingPricesReportRequest criteria = new ClosingPricesReportRequest(asAtDate, asxCode);
InitialContext context = new InitialContext(p);
ClosingPricesReportService ejb = (ClosingPricesReportService) context.lookup(ClosingPricesReportService.REMOTE_JNDI);
ClosingPricesReport report = ejb.createMTMClosingPriceReport(criteria);
System.out.println(report.getClosingPrices()[0].getClosingPrice());
testval = report.getClosingPrices()[0].getClosingPrice().toString();
System.out.println(testval);
when i run the tes code the results as follow:
10:49:45,244 DEBUG [SecurityAssociation ] Using ThreadLocal: false
10:49:45,338 DEBUG [MicroSocketClientInvoker ] SocketClientInvoker[709446e4, socket://emgsydapp121:10473] constructed
10:49:45,338 DEBUG [MicroRemoteClientInvoker ] SocketClientInvoker[709446e4, socket://emgsydapp121:10473] connecting
10:49:45,338 DEBUG [MicroSocketClientInvoker ] Creating semaphore with size 50
10:49:45,338 DEBUG [MicroRemoteClientInvoker ] SocketClientInvoker[709446e4, socket://emgsydapp121:10473] connected
10:49:45,369 DEBUG [ClientSocketWrapper ] reset timeout: 0
10:49:45,650 DEBUG [InvokerRegistry ] removed SocketClientInvoker[709446e4, socket://emgsydapp121:10473] from registry
10:49:45,650 DEBUG [MicroSocketClientInvoker ] SocketClientInvoker[709446e4, socket://emgsydapp121:10473] disconnecting ...
10:49:45,650 DEBUG [SocketWrapper ] ClientSocketWrapper[Socket[addr=/10.137.2.40,port=10473,localport=64150].2cba5bdb] closing
37.99000000000000198951966012828052043914794921875
37.99000000000000198951966012828052043914794921875
Can anyone assist me in convert the above settings to get access by Crystal reports.
My attemp current are below:
public class CFDClosingPricesRpt extends CrystalReport {
//Constructor
public CFDClosingPricesRpt(){
super(ClosingPriceBean.INSTANCE);
* Returns the ResultSet for this report to Crystal.
* @param asxCode
* @param asAtDateString
* @return
public ResultSet getNewReport(String asxCode, String asAtDateString) {
try {
Properties p = new Properties();
p.put(Context.INITIAL_CONTEXT_FACTORY,
"org.jnp.interfaces.NamingContextFactory");
p.put(Context.URL_PKG_PREFIXES, "jboss.naming:org.jnp.interfaces");
p.put(Context.PROVIDER_URL, "jnp://emgsydapp121:10499");
//InitialContext ctx = new InitialContext(p);
clearCachedReportBeans();
Date asAtDate = CrystalUtils.convertToDate("2013-01-01", CrystalUtils.relativeToToday(0), false);
asxCode = "BHP";
ClosingPricesReportRequest criteria = new ClosingPricesReportRequest(asAtDate, asxCode);
//ClosingPricesReportService ejb = (ClosingPricesReportService) ctx.lookup(ClosingPricesReportService.REMOTE_JNDI);
ClosingPricesReportService ejb = (ClosingPricesReportService) ServiceLocator.getInstance().getService(ClosingPricesReportService.REMOTE_JNDI);
ClosingPricesReport report = ejb.createClosingPriceReport(criteria);
// assemble Crystal-friendly DTO
Collection closingPrices = Arrays.asList(report.getClosingPrices());
for (Iterator iter = closingPrices.iterator(); iter.hasNext();) {
MBLXClosingPrice cp = (MBLXClosingPrice) iter.next();
if (cp==null) continue;
addReportBean(new ClosingPriceBean( report.getSuppliedDate(),
cp.getClosingPrice(),
cp.getAsxCode()));
} catch (Throwable x) {
saveErrorMessage(x);
return getAsResultSet();
Thanks
Bach OngHi Don Thanks for the reply.
I've was able to connect via Java beans and JNDI. But this one is going the JNDI of JBoss sever, which the JNDI already configure and working for Crystal reports v10.
Bach -
Error while creating connection between Java and ABAP
Experts
I am getting the following error message when I am trying to test the connection between JAVA and ABAP systems.
1. The system ID is valid
2. The system was retrieved.
3. The system object represents an SAP system
4. The following parameters are valid: Web AS Protocol (http) Web AS Host Name (s09f71v06.svr.bankone.net:8100)
5. The host name s09f71v06.svr.bankone.net was resolved successfully.
6. The server s09f71v06.svr.bankone.net *could not be pinged* successfully.
I have JAVA and ABAP on the same system. I am trying to establish a connection. I have checked all the settings and they looks fine. I have also pinged from other system to this server and the Ping works fine.
Please do let m eknow where do I need to check for the errros or logs for the above error message.
Appreciate your quick help.
MaheshCheck the relevant services are test are active on the Backend system through SICF trransaction.
Also make sure that default icm services are running.See note 517484.
More important the connector test in the portal system should work properly,recheck the WAS path etc are correct.
Regards
Ajay -
How i can make my own connection in java source of a jsp page
How i can make my own connection in java source of a jsp page (How to get connection from JNDI datasource address) ?
imagine that i have a rowset in a web page , now i want to do some operation using
plain JDBC , so i will need a connection object.
I tried to get one of my rowsets connection but it return null ?
what is best way to retrive a connection from JNDI datasource that we define for our project?
for example if i have
myRowSet.setDataSourceName("java:comp/env/jdbc/be");
in web page constructor
now i want a pure connection from the same datasource ? JNDI
Thank youIt is not hard to get your own connection from datasource.
in your case you need to do like the the following code.
i provide sample to show you how to catch the exception and create an statement .
Connection con =null;
try{
InitialContext ctx = new InitialContext();
DataSource ds = (DataSource)ctx.lookup("java:comp/env/jdbc/be");
con = ds.getConnection();
java.sql.Statement st =con.createStatement();
}catch(SQLException sqlex){
sqlex.printStackTrace();
sqlex.getNextException().printStackTrace();
catch(NamingException nex){
nex.printStackTrace();
hth
Masoud kalali -
Socket connection between Java and C
I want to establish socket connection between Java client and C server (on Unix). Can anybody tell how to do it? Will the socket created in client be available in server. I tried out but there was no response from the server.
We too can't connect the daemon server written by "c". The phenomena is below.
<< Execution of this Question1.class >> ---------------------------------------
[kazuyuki@CryptOne tmp]$ java Question1 E 1.2.3.4 MFrame.java 195.211.1.1 15021
<< Output message >> ----------------------------------------------------------
Quetion1 : flg_ = E
Quetion1 : key_ = 1.2.3.4
Quetion1 : fn_ = MFrame.java
Quetion1 : adr_ = CryptOne.localhost/195.211.1.1
Quetion1 : port_ = 15021
java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:350)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:137)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:124)
at java.net.Socket.<init>(Socket.java:268)
at java.net.Socket.<init>(Socket.java:122)
at Question1.UPLOAD(Question1.java:65)
at Question1.main(Question1.java:155)
<< Question >> ----------------------------------------------------------------
Why the event "java.net.ConnectException: Connection refused" has occured ?
The server to connect from Question1 can accept the connection request from
the client program coded by "c" program. We have written down the daemon server
program by "c" code tcp/ip socket functions (socket, bind, listen, accept).
Security manager admits the access from this Question1.class, we have checked.
Would you like please answer this Connction refuse occurrence ?
2002.05.18 11:50:00.0(JST)
K.Masuda
<< Java client code>> -------------------------------------------------
(c)Copyright All rights reserved.
K.Masuda 2002.05.18
<< Question1.java >>
import java.lang.String;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.FileNotFoundException;
import java.net.Socket;
import java.net.InetAddress;
import java.net.UnknownHostException;
import java.net.ConnectException;
import java.net.NoRouteToHostException;
class Question1 {
char flg_;
String key_;
String fn_;
InetAddress adr_;
int port_;
Socket sock_;
Question1(
char flg,
String key,
String fn,
String adr,
int port
flg_ = flg;
key_ = key;
fn_ = fn;
try{
adr_ = InetAddress.getByName( adr );
catch( UnknownHostException e ){
e.printStackTrace();
port_ = port;
System.out.println( "Quetion1 : flg_ = " + flg_ );
System.out.println( "Quetion1 : key_ = " + key_ );
System.out.println( "Quetion1 : fn_ = " + fn_ );
System.out.println( "Quetion1 : adr_ = " + adr_ );
System.out.println( "Quetion1 : port_ = " + port_ );
public void UPLOAD(
try{
sock_ = new Socket( adr_, port_ );
UpLoad();
DnLoad();
sock_.close();
catch( UnknownHostException e ){
e.printStackTrace();
catch( ConnectException e ){
e.printStackTrace();
catch( NoRouteToHostException e ){
e.printStackTrace();
catch( IOException e ){
e.printStackTrace();
public void UpLoad(
byte[] buf = new byte[ 512 ];
int rlen;
int wlen;
try {
OutputStream sos = sock_.getOutputStream();
FileInputStream fis = new FileInputStream( fn_ );
DataInputStream dis = new DataInputStream( fis );
DataOutputStream dos = new DataOutputStream( sos );
while( ( rlen = dis.read( buf, 0, buf.length ) ) >= 0 ){
dos.write( buf, 0, rlen );
dis.close();
dos.close();
fis.close();
sos.close();
catch( IOException e ){
e.printStackTrace();
public void DnLoad(
byte[] buf = new byte[ 512 ];
int rlen;
int wlen;
try {
InputStream sis = sock_.getInputStream();
FileOutputStream fos = new FileOutputStream( fn_ + ".cry" );
DataInputStream dis = new DataInputStream( sis );
DataOutputStream dos = new DataOutputStream( fos );
while( ( rlen = dis.read( buf, 0, buf.length ) ) >= 0 ){
dos.write( buf, 0, rlen );
dis.close();
dos.close();
fos.close();
sis.close();
catch( IOException e ){
e.printStackTrace();
public static void main(
String[] args
char[] chrs = ( new String( args[ 0 ] ) ).toCharArray();
Question1 clnt = new Question1(
// E or D
chrs[ 0 ],
args[ 1 ], // key string
args[ 2 ], // file to be processed
args[ 3 ], // IP address
// port
Integer.parseInt( args[ 4 ] )
clnt.UPLOAD();
} -
Hi All,
I need to upload a file through ftp connection uisng java calss. any one know please reply me
Thanks
K.KalikumarHi Kali,
I have worked on similar issues sending you the code.. hope it should work. I had written a TelnetInterface class where I did all operation inside the constructor.
import javax.servlet.http.HttpSession;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.InputStream;
import java.io.PrintStream;
import org.apache.commons.net.telnet.TelnetClient;
public class TelnetInterface {
private TelnetClient telnet = new TelnetClient();
private InputStream in;
private PrintStream out;
private String prompt = ">";
private boolean isConnected ;
public TelnetInterface(){
public TelnetInterface(HttpServletRequest request) {
HttpSession session = request.getSession();
PropertyReader propReader = (PropertyReader)session.getAttribute("propReader");
String host=null,user=null,password=null,port=null;
int unixPort= 0;
// Get Unix credentials
if(propReader != null){
host=(String)propReader.getProperty("UNIX_HOST");
user=(String)propReader.getProperty("UNIX_UNAME");
password=(String)propReader.getProperty("UNIX_PWD");
port=(String)propReader.getProperty("UNIX_PORT");
unixPort = Integer.parseInt(port) ;
// Connect to the specified server
System.out.println("Inside telnet Interface");
try{
telnet.connect(host, unixPort);
isConnected = true;
in = telnet.getInputStream();
out = new PrintStream(telnet.getOutputStream());
// Log the user on
readUntil("login: ");
write(user);
System.out.println("user:"+ user);
readUntil("Password: ");
write(password);
System.out.println("password:"+ password);
sendCommand("su - loginuser");
su(" password");
}catch (IOException e) {
e.printStackTrace();
isConnected = false;
}catch (Exception e){
e.printStackTrace();
} -
Database connection problem java.lang.ArrayIndexOutOfBoundsException
Hi,
I am using Interstage server 7 and Oracle 11g for upgradation of project, application compilation is fine, but when I run the application its giving database connection exception.
Full stack trace like below. JDK version is 1.3. can anybody tell me what may be the problem?
2010-11-22 15:16:42 - ConnectionPool()
java.lang.ArrayIndexOutOfBoundsException
at oracle.security.o3logon.C1.r(C1)
at oracle.security.o3logon.C1.l(C1)
at oracle.security.o3logon.C0.c(C0)
at oracle.security.o3logon.O3LoginClientHelper.getEPasswd(O3LoginClientHelper)
at oracle.jdbc.ttc7.O3log.<init>(O3log.java:291)
at oracle.jdbc.ttc7.TTC7Protocol.logon(TTC7Protocol.java:257)
at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:307)
at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:442)
at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:321)
at java.sql.DriverManager.getConnection(DriverManager.java:512)
at java.sql.DriverManager.getConnection(DriverManager.java:172)
at jp.tt.framework.db.DBConnection.getConnection(DBConnection.java:65)
at jp.tt.framework.db.DBConnection.getConnection(DBConnection.java:88)
at jp.tt.framework.db.ConnectionPool.<init>(ConnectionPool.java:38)
at jp.tt.framework.BaseCommon.<clinit>(BaseCommon.java:217)
at jp.tt.framework.core.Crypt.getInstance(Crypt.java:79)
at org.apache.jsp.menu_jsp._jspService(menu_jsp.java:53)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:309)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:239)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:362)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:246)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:511)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:270)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:412)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:301)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2515)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:249)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:184)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:180)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.valves.RequestFilterValve.process(RequestFilterValve.java:370)
at org.apache.catalina.valves.RemoteAddrValve.invoke(RemoteAddrValve.java:137)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:232)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:646)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:436)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:806)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
at java.lang.Thread.run(Thread.java:479)
Thanks in advance
Manjunath
Edited by: 814259 on 2010/11/21 23:47
Edited by: 814259 on 2010/11/21 23:49Thank you for the replies
The problem got solved. Problem was older version of Oracle driver was placed in WEB-INF/lib and a directory called lbrary(we created it) above WEB-INF, we were placed newer version of driver in oracle's jdbc/lib directory and specified that path in classpath. But by default the older version was prioritized and used by application so we were getting the exception mentioned. When we deleted older version of driver everything got working. This explation may help for those who have similar type of problems.
Thanks -
Which databases like oracle are available to connect to java in eclipseide
which databases like oracle are available to connect to java in eclipse ide
ANY DATABASE WHICH HAS A JDBC DRIVER CAN BE CONNECTED THROUGH YOUR CODE. ECLIPSE HAS NOTHING TO DO WITH CONNECTING DATABASES.
-
Connectivity of Java and SAP using JCO
Hi,
Using the example5 given along with the JCO package I was able to connect to Java from SAP. Can I use the same server for bi directional data transfer . That is I want to use the same server to recieve data from SAP and also I should be able to Send data to SAP from Java using the same server.
Regards ,
Nagaraju Donikena.Hi,
You can use the same server for data sending and receiving.
You can also go through the following link for knowing more about JCO.
http://www.persistent.co.in/resource_center/
white_papers/Java_SAP_Integration.pdf
Thanks
Ritushree -
hi,
how to connect to java data/services ?
I had this error :
Invalid root. The WEB-INF/flex folder must contain either flex-config.xml or services-config.xml.
my project java is in : D:\SVN\VAZII\trunk\VaziiAdminService
my project flex tha must use the service is in : D:\SVN\ICOSNET_WALLET\trunk\ConfortPayAdmin
My server tomcat is in : C:\apache-tomcat-7.0.32
what i must write in this input dialog box ?
Root Folder, Root URl, and Context root
thanksis there someone that knows flash builder here ?
-
Finalizing JDBCConnectionWrapper on unclosed connection! - java.lang.Except
Hello Guru's,
on our SAP NetWeaver AS, Java with Enterprise Portal, we have the follow error message very often in our default trace.
what can we do to solve this problem?
finalizing JDBCConnectionWrapper on unclosed connection! - java.lang.Exception
at com.sapportals.wcm.util.jdbc.connectionpool.JDBCConnectionWrapper.<init>(JDBCConnectionWrapper.java:68)
at com.sapportals.wcm.repository.manager.cm.persistence.ConnectionHandler.getANewConnection(ConnectionHandler.java:66)
at com.sapportals.wcm.repository.manager.cm.persistence.BasicPersistenceDB.getANewConnection(BasicPersistenceDB.java:136)
at com.sapportals.wcm.repository.manager.cm.persistence.DBContentInputStream.getInternalStream(DBContentInputStream.java:278)
at com.sapportals.wcm.repository.manager.cm.persistence.DBContentInputStream.<init>(DBContentInputStream.java:50)
at com.sapportals.wcm.repository.manager.cm.persistence.BasicPersistenceDB.selectDocumentContent(BasicPersistenceDB.java:1627)
at com.sapportals.wcm.repository.manager.cm.persistence.commonjdbc.DBContent.getInputStream(DBContent.java:114)
at com.sapportals.wcm.repository.manager.cm.persistence.commonjdbc.DBContent.getInputStream(DBContent.java:95)
at com.sapportals.wcm.repository.ContentImpl$ContentWithPrefetchedInputStream.<init>(ContentImpl.java:402)
at com.sapportals.wcm.repository.ContentImpl.initContent(ContentImpl.java:360)
at com.sapportals.wcm.repository.ContentImpl.getInputStream(ContentImpl.java:111)
at com.sapportals.wcm.repository.ContentImpl.getInputStream(ContentImpl.java:132)
at com.sap.nw.wpc.core.utils.Utils.getContentAsString(Utils.java:197)
at com.sap.nw.wpc.core.utils.Utils.getContentAsString(Utils.java:133)
at com.sap.nw.wpc.runtime.component.HtmlContainerComponent.doContent(HtmlContainerComponent.java:49)
at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)
at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)
at com.sap.nw.wpc.runtime.AbstractDisplayComponent.service(AbstractDisplayComponent.java:110)
at com.sapportals.portal.prt.component.CachablePortalComponent.service(CachablePortalComponent.java:273)
at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
at com.sapportals.portal.prt.core.async.AsyncPortalComponentResponse.include(AsyncPortalComponentResponse.java:355)
at com.sapportals.portal.prt.core.async.AsyncPortalComponentResponse.include(AsyncPortalComponentResponse.java:310)
at com.sap.nw.wpc.runtime.AbstractContainerComponent.doContent(AbstractContainerComponent.java:88)
at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)
at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)
at com.sap.nw.wpc.runtime.AbstractDisplayComponent.service(AbstractDisplayComponent.java:110)
at com.sapportals.portal.prt.component.CachablePortalComponent.service(CachablePortalComponent.java:273)
at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
at com.sapportals.portal.prt.core.async.AsyncIncludeRunnable$1$DoDispatchRequest.run(AsyncIncludeRunnable.java:375)
at java.security.AccessController.doPrivileged(AccessController.java:242)
at com.sapportals.portal.prt.core.async.AsyncIncludeRunnable.run(AsyncIncludeRunnable.java:388)
at com.sapportals.portal.prt.core.async.ThreadContextRunnable.run(ThreadContextRunnable.java:164)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:729)
at java.lang.Thread.run(Thread.java:761)
Category :
Application :
Thread : Thread[Finalizer thread,5,system]
Message ID : 001125C5799C002800000074000810EA000469663D842363
Source Name : com.sapportals.wcm.util.jdbc.connectionpool.JDBCConnectionWrapper
Argument Objs :
Arguments :
Dsr Component : n/a
Dsr Transaction : 1288b8603b8611dea7f7001125c5799c
Dsr User :
Indent : 0
Level : 0
Message Code :
Message Type : 0
Relatives :
Resource Bundlename :
Session : 0
Source : com.sapportals.wcm.util.jdbc.connectionpool.JDBCConnectionWrapper
ThreadObject : Thread[Finalizer thread,5,system]
Transaction :
User : Guest
regards
chrisHi Christian,
The background is a small bug in com.sap.nw.wpc.core.utils.Utils.getContentAsString where getInputStream is called on a KM resource (the correct forum for this question would have been portal-km), without closing the InputStream afterwards. Behind the scenes, getInputStream opens a JDBC connection which won't be closed afterwards.
So, if this still happens, it would be the best to open an OSS message to report this bug to SAP so that this can be fixed in the web page composer implementation. But on the other hand, this is now more than one year old - maybe this is already fixed. I cannot check, as I don't use WPC at the moment.
Best regards
Detlev -
Hello my heros.
I have enough knowllege of java programming skills that I can use to write real programs and also enough Oracle9i knowllege to talk to the server.
My problem is how to connect from java application to an Oracle9i server. I found examples in all of these example there is the import line: import oracle.jdbc.*
where is this oracle package please, do I need to create it, is it somewhere within Oracle directory or is it part of java library.
please help me and I will never gorget this great favorI'm not sure that the import you have is correct, but I do know that you need to download the JDBC driver JAR from Oracle:
http://otn.oracle.com/software/tech/java/sqlj_jdbc/index.html
Download the ojdbc14.jar and put it in your CLASSPATH.
You might have done Java and Oracle, but I'd recommend that you go though the JDBC tutorial (click on "Tutorials" to the left) before you try to do anything with JDBC. It'll save you some headaches later on. - MOD -
Hi,
I have a piece of code to connect to SAS data set i have taken the drivers provided by SAS and the below code is giving error saying server not accepting userid/password but with that userid and password i can connect to SAS in other applications can any body suggest what's wrong with this.
Driver driver=(Driver) Class.forName("com.sas.net.sharenet.ShareNetDriver").newInstance(); System.out.println("Driver loaded"); System.out.println("JDBC:"+driver.jdbcCompliant()); String url="jdbc:sharenet://164.56.174.116:8591"; Properties credentials=new Properties(); credentials.put("user","userName"); credentials.put("password","Password"); Connection connection=driver.connect(url,credentials); System.out.println("Connection made"); connection.close(); System.out.println("Connection closed");
i am getting this error
Exception in thread "main" java.sql.SQLException: Sharenet.S58.ex.txt: Sharenet.S279.ex.txt: Sharenet.S06.ex.txt: Userid/Password not accepted by server... at com.sas.net.sharenet.ShareNetConnection.<init>(ShareNetConnection.java:219) at com.sas.net.sharenet.ShareNetDriver.connect(ShareNetDriver.java:165)Once you get past actually getting a driver the configuration of it is entirely driver dependent.
There are at least four ways that I can't think of to do use validation. There could be others. They way you have choosen, if supported at all, might be dependent on the exact name used. For example (not necessarily a solution) it could be that instead of 'user' you need 'usr' or 'User'.
Often this involves looking at the driver documentation and just guesssing until something works. -
How to connect from java without using oracle client installation
hi ,
Please tell me how to connect from java without using oracle client
Thanks & Regarshttp://www.orafaq.com/wiki/JDBC#Thin_driver
Maybe you are looking for
-
I am desperately reaching out to anybody that may be able to help me with this situation. I don't want to give up hope, but I feel that it may be a battle that I cannot win. This is my story... A few years ago, my iPhone 3G was stolen. At that time,
-
Disk Utility: Java VM Permission errors keep coming back
Hello everyone, I have a problem with my permissions. When I run Disk Utility I always get the same errors, I repair them and DU says they are repaired. Yet, if I run Disk Utility again (even right after a repair), there they are again. It's a never-
-
Reg:ESS Apprisal document iview in career and job
hi all when i am working with Appraisal document i view which is designed in wdabap application,this is a standard application.the problem here is previously i got an portal run time error,but i resolved this error by changing the system name in prop
-
Macbook not waking up from 'sleep'
Hi there, I got an really annoying Problem with my 4-Month old Macbook Pro and I hope you guys here can help. My Macbook Pro does not wake up from sleep, the sleep indicator is solid and not pulsating at all. The strange thing is, when I initiate Sta
-
OK....so, I went to the upgrade, punched in the serial numbers and upgraded to the "free" FCP 4.5. Now I have new troubles. SO...first all all, making a new tape did not work for fixing the timecode error. Then, when trying to capture from the FIREWI