Commons DBCP and ArrayDescriptor
I've create that pass an array of java objects to oracle stored procedure using ArrayDescriptor etc... It's working fine. I've used the normal way of java connection (DriverManager.registerDriver ....) also i've used OracleCallableStatement.
Now when i use the same code in struts application, except for connection - i'm using struts and DBCP etc. I'm receiving the following error:
fail to construct descriptor : invalid arguments
Any Help?
I've create that pass an array of java objects to oracle stored procedure using ArrayDescriptor etc... It's working fine. I've used the normal way of java connection (DriverManager.registerDriver ....) also i've used OracleCallableStatement.
Now when i use the same code in struts application, except for connection - i'm using struts and DBCP etc. I'm receiving the following error:
fail to construct descriptor : invalid arguments
Any Help?
Similar Messages
-
Using commons dbcp in SOA 8 for connection pool?
Hi there,
It is possible to use commons dbcp in SOA 8 for connection pool ing?
At far I tried SOA 8 does not work either Mckoi and AS400 databases jdbc drivers in a connection pool.
So having the experience with Tomcat and commons-dbcp with successfull connection pools, I am trying to use a alternative database connection pool, or use SOA8 connection pool using commons-dbcp and it with our AS400 db.
Do you think it is possible?
Thanks for your input!
Lorenzo JimenezI am really lost.
All I know i that I used this jtopen driver on tomcat with and without connection pool.
I used the same parameters, but SOA implementation or program is different. Maybe is the 1.4 api, maybe is the jdbc expected.
Really don't know.
What I know I as400 and mckoi drivers don't work where in Tomcat work ok.
Please check this thread with the error that SOA gave to me
http://forum.java.sun.com/thread.jsp?forum=136&thread=524472&tstart=0&trange=15
Thanks,
Lorenzo -
Using DBCP and Retrieving LastInsertID From An auto_incremented key
I am using Apache Tomcat 4.1.24 with Connector/J 3.0.7 and Mysql 4.0.12. I am trying to use DBCP but need to be able to get the LastInsertID From An auto_incremented key. I have read many examples that say to use "select LAST_INSERT_ID()" with a javax.sql.PreparedStatement but have concerns about this due to the following comment in com.mysql.jdbc.Statement http://www.mysql.com/downloads/api-jdbc-stable.html
* getLastInsertID returns the value of the auto_incremented key
* after an executeQuery() or excute() call.
* <p>
* This gets around the un-threadsafe behavior of
* "select LAST_INSERT_ID()" which is tied to the Connection
* that created this Statement, and therefore could have had
* many INSERTS performed before one gets a chance to call
* "select LAST_INSERT_ID()".
* @return the last update ID.
public long getLastInsertID() {
if (Driver.TRACE) {
Object[] args = new Object[0];
Debug.methodCall(this, "getLastInsertID", args);
return lastInsertId;
I have posted a detailed description of my problems with using com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource which will provide the com.mysql.jdbc.PreparedStatement.getLastInsertID() method shown above, in the following thread http://forum.java.sun.com/thread.jsp?forum=48&thread=396427&tstart=15&trange=15. The connections not being reused with com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource is my reason for wanting to use DBCP.
Thanks For Your Help
JamesI have solved the problem that I had by implementing the Jakarta Commons DBCP and the following code to get last insert ids:
PreparedStatement ps = con.prepareStatement("INSERT INTO table1 (description) VALUES(?)", 1);
//The 1 makes it get auto_keys
ps.setString(1, "2222222");
ps.executeUpdate();
ResultSet rs = ps.getGeneratedKeys();
long insertID = -1;
if(rs.next()){
insertID = rs.getLong(1);
I only have one auto increment column in the table so I have just used this simple con.prepareStatement. If you have more than one auto increment column than you can use one of the other con.prepareStatement methods to create your prepared statement.
Using the Jakarta Commons DBCP to pool the connections, I was able to get more than twice the performance of using com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource. I even pounded my implementation using Jakarta Commons DBCP with thousands of requests(10 simultaneous threads) using Apache JMeter and it scaled very well. The pool grew up to about 10 Database connections that were reused for the duration of over 15,000 requests.
I am very confident due to this performance difference and the experiment that I will insert below that com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource is not reusing database connections.
The following is the result of using com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource to pool connections and refreshing a page a bunch of times. The connection are not reused in the pool.
-------------------------------------------------------------------------------------+
| Id | User | Host | db | Command | Time | State | Info |
-------------------------------------------------------------------------------------+
| 554 | test | localhost:35261 | ebayListings | Sleep | 1475 | | |
| 940 | ebayRW | localhost:35949 | ebayListings | Sleep | 18 | | |
| 941 | ebayRW | localhost:35950 | ebayListings | Sleep | 18 | | |
| 942 | ebayRW | localhost:35951 | ebayListings | Sleep | 18 | | |
| 943 | ebayRW | localhost:35952 | ebayListings | Sleep | 18 | | |
| 956 | ebayRW | localhost:35965 | ebayListings | Sleep | 17 | | |
| 957 | ebayRW | localhost:35966 | ebayListings | Sleep | 17 | | |
| 958 | ebayRW | localhost:35967 | ebayListings | Sleep | 17 | | |
| 959 | ebayRW | localhost:35968 | ebayListings | Sleep | 17 | | |
| 960 | ebayRW | localhost:35969 | ebayListings | Sleep | 17 | | |
| 961 | ebayRW | localhost:35970 | ebayListings | Sleep | 17 | | |
| 962 | ebayRW | localhost:35971 | ebayListings | Sleep | 17 | | |
| 963 | ebayRW | localhost:35972 | ebayListings | Sleep | 17 | | |
| 964 | ebayRW | localhost:35973 | ebayListings | Sleep | 17 | | |
| 965 | ebayRW | localhost:35974 | ebayListings | Sleep | 17 | | |
| 966 | ebayRW | localhost:35975 | ebayListings | Sleep | 16 | | |
| 967 | ebayRW | localhost:35976 | ebayListings | Sleep | 16 | | |
| 968 | ebayRW | localhost:35977 | ebayListings | Sleep | 16 | | |
| 969 | ebayRW | localhost:35978 | ebayListings | Sleep | 16 | | |
| 983 | ebayRW | localhost:35993 | ebayListings | Sleep | 6 | | |
| 984 | ebayRW | localhost:35994 | ebayListings | Sleep | 6 | | |
| 985 | ebayRW | localhost:35995 | ebayListings | Sleep | 6 | | |
| 986 | ebayRW | localhost:35996 | ebayListings | Sleep | 6 | | |
| 987 | ebayRW | localhost:35997 | ebayListings | Sleep | 6 | | |
| 988 | ebayRW | localhost:35998 | ebayListings | Sleep | 6 | | |
| 989 | ebayRW | localhost:35999 | ebayListings | Sleep | 6 | | |
| 990 | ebayRW | localhost:36000 | ebayListings | Sleep | 6 | | |
| 991 | ebayRW | localhost:36001 | ebayListings | Sleep | 6 | | |
| 992 | ebayRW | localhost:36002 | ebayListings | Sleep | 6 | | |
| 993 | ebayRW | localhost:36003 | ebayListings | Sleep | 5 | | |
| 994 | ebayRW | localhost:36004 | ebayListings | Sleep | 5 | | |
| 995 | ebayRW | localhost:36005 | ebayListings | Sleep | 5 | | |
| 996 | ebayRW | localhost:36006 | ebayListings | Sleep | 5 | | |
| 1003 | ebayRW | localhost:36014 | ebayListings | Sleep | 5 | | |
| 1009 | ebayRW | localhost:36020 | ebayListings | Sleep | 4 | | |
| 1010 | ebayRW | localhost:36021 | ebayListings | Sleep | 4 | | |
| 1011 | ebayRW | localhost:36022 | ebayListings | Sleep | 4 | | |
| 1012 | ebayRW | localhost:36023 | ebayListings | Sleep | 4 | | |
| 1013 | ebayRW | localhost:36024 | ebayListings | Sleep | 4 | | |
| 1014 | ebayRW | localhost:36025 | ebayListings | Sleep | 4 | | |
| 1015 | ebayRW | localhost:36026 | ebayListings | Sleep | 4 | | |
| 1016 | ebayRW | localhost:36027 | ebayListings | Sleep | 4 | | |
| 1017 | ebayRW | localhost:36028 | ebayListings | Sleep | 4 | | |
| 1018 | ebayRW | localhost:36029 | ebayListings | Sleep | 4 | | |
| 1019 | root | localhost | | Query | 0 | | show processlist |
-------------------------------------------------------------------------------------+
After a while it will just terminates all connections and start piling them up again. Notice the higher ID numbers.
-------------------------------------------------------------------------------------+
| Id | User | Host | db | Command | Time | State | Info |
-------------------------------------------------------------------------------------+
| 554 | test | localhost:35261 | ebayListings | Sleep | 1523 | | |
| 1042 | ebayRW | localhost:36061 | ebayListings | Sleep | 7 | | |
| 1043 | ebayRW | localhost:36062 | ebayListings | Sleep | 7 | | |
| 1046 | ebayRW | localhost:36067 | ebayListings | Sleep | 6 | | |
| 1047 | ebayRW | localhost:36068 | ebayListings | Sleep | 6 | | |
| 1048 | ebayRW | localhost:36069 | ebayListings | Sleep | 6 | | |
| 1049 | ebayRW | localhost:36070 | ebayListings | Sleep | 6 | | |
| 1050 | ebayRW | localhost:36071 | ebayListings | Sleep | 6 | | |
| 1051 | ebayRW | localhost:36072 | ebayListings | Sleep | 6 | | |
| 1052 | ebayRW | localhost:36073 | ebayListings | Sleep | 6 | | |
| 1053 | ebayRW | localhost:36074 | ebayListings | Sleep | 6 | | |
| 1054 | root | localhost | | Query | 0 | | show processlist |
-------------------------------------------------------------------------------------+
I have switched all of my existing Web Applications over to Jakarta Commons DBCP which only involved changing 3 lines of code per file and will allow me the totally change the underlying database without modifying my individual JSPs and Servlets. Jakarta Commons DBCP is a great solution to the Connection Pool Problem and has worked for my needs.
James Fredley -
Hi friends,
I am implementing the Commons DBCP package in one of my JSP pages.
This is the scenario :
In my CATALINA_HOME/common/lib I have the files :
commons-dbcp-1.1.jar
commons-pool-1.1.jar
commons-collections.jar
I have set the CLASSPATHS in my Environment variables to the appropriate JARs.
I have added a Context to my server.xml file as :
<!-- Context for Connection Pooling -->
<Context path="/CPool" docBase="CPool" debug="5" reloadable="true" crossContext="true">
<Logger className="org.apache.catalina.logger.FileLogger" prefix="localhost_CPool_Log." suffix=".txt" timestamp="true"/>
<Resource name="jdbc/test_dsn" auth="Container" type="javax.sql.DataSource"/>
<ResourceParams name="jdbc/test_dsn">
<parameter>
<name>factory</name>
<value>org.apache.commons.dbcp.BasicDataSourceFactory</value>
</parameter>
<parameter>
<name>maxActive</name> <!-- To set maximum number of active users -->
<value>0</value> <!-- 0 is for no limit -->
</parameter>
<parameter>
<name>maxIdle</name> <!-- Set maximum number of idle connections retained in the pool -->
<value>0</value> <!-- 0 is for no limit -->
</parameter>
<parameter>
<name>maxWait</name> <!-- Maximum time(ms) to wait for a dB connection to become available -->
<value>10000</value> <!-- Set -1 to wait indefinitely : here 10 seconds. -->
</parameter>
<!-- MySQL dB username and passwords -->
<parameter>
<name>username</name>
<value></value>
<name>password</name>
<value></value>
</parameter>
<!-- Class name for mm.mysql JDBC driver -->
<parameter>
<name>driverClassName</name>
<value>org.gjt.mm.mysql.Driver</value>
</parameter>
<!-- JDBC connection url for the MySQL Database -->
<parameter>
<name>url</name>
<value>jdbc:mysql://localhost:8080/omamconsultants_com?autoreconnect=true</value>
</parameter>
</ResourceParams>
</Context>
and I have made a new web.xml file in my CPool/WEB-INF directory as :
<web-app>
<description> MySQL Test Application for Connection Pooling.</description>
<!-- Resource reference added by Sherbir to implement Connection Pooling -->
<resource-ref>
<description>Connection Pooling</description>
<res-ref-name>jdbc/test_dsn</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
</web-app>
Finally, I have made a JSP to access the database table as :
<%
int i=0;
try
Context ctx = new InitialContext();
if (ctx == null)
throw new Exception("No Context available");
DataSource ds = (DataSource)ctx.lookup("java:comp/env/jdbc/test_dsn");
if (ds != null)
Connection con = ds.getConnection();
if (con != null)
System.out.println("Connection " + con.toString() + " established.");
Statement stmt = con.createStatement();
ResultSet rs = stmt.executeQuery("SELECT * FROM t_sherbir");
while (rs.next())
System.out.println("Fetching record " + (i+1) + " from table...");
con.close();
catch(Exception e) {}
%>
But when I run the program, I am getting this error :
org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: 18 in the jsp file: /CPool/pool2.jsp
Generated servlet error:
[javac] Compiling 1 source file
C:\jakarta-tomcat-4.1.29\work\Standalone\localhost\examples\CPool\pool2_jsp.java:76: cannot resolve symbol
symbol : class DataSource
location: class org.apache.jsp.pool2_jsp
DataSource ds = (DataSource)ctx.lookup("java:comp/env/jdbc/test_dsn");
^
An error occurred at line: 18 in the jsp file: /CPool/pool2.jsp
Generated servlet error:
C:\jakarta-tomcat-4.1.29\work\Standalone\localhost\examples\CPool\pool2_jsp.java:76: cannot resolve symbol
symbol : class DataSource
location: class org.apache.jsp.pool2_jsp
DataSource ds = (DataSource)ctx.lookup("java:comp/env/jdbc/test_dsn");
^
2 errors
at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:130)
at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:293)
at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:353)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:370)
at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:473)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:190)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
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:191)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:494)
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.StandardContext.invoke(StandardContext.java:2417)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
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:172)
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:174)
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.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:193)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:781)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:549)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:589)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:666)
at java.lang.Thread.run(Thread.java:536)
So any1 has an idea where I'm going wrong ?
Please help immediately.It seems to be a simple issue :). You need to import the relevant classes in your JSP file. To access the data source the following classes need to be imported.
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.sql.DataSource;
You also need to import JDBC related classes - ResultSet, Statement etc. -
Where to store DBCP and what to do next?
Dear All,
I would like to use the DBCP(Apache DB pool). I have download (commons-dbcp-1.4-bin.tar.gz) from http://commons.apache.org/dbcp/download_dbcp.cgi. I am using fedora linux and have unzip it too. What should be my next step is where I am stuck because I dont know where to store and how make it applicable for my application? Thank you.newbie14 wrote:
Dear Masijade,
I dont quite get you. You mean run the command -cp followed by my folder path is it? Then this will be permantently set or I must still go n change somethings inside the .bash profile ? I am not running the java file as project but just as a single java file so any settings for it? Thank you sorry I am very new to all this.Then you should skip DBCP. You should skip JDBC as well. You need to learn the basics of java before you learn JDBC.
And after you learn both of those then you can look at DBCP. -
Hello,
I would like to use DBCP to manage the pool connection.
1. If I execute the web application using DBCP, an exception occur:
java.lang.NoClassDefFoundError: org/apache/struts/legacy/GenericDataSource
2. So I put the struts-legacy.jar in the WEB-INF/lib of the application, another error occur when I am starting tomcat:
java.sql.SQLException: No suitable driver
at java.sql.DriverManager.getDriver(DriverManager.java:243)
at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:743)
Any idea?
Thanks.
The oracle JDBC driver classes12.jar, the common-pool/dbcp/collection are in the tomcat/common/lib directory
The configuration in the struts-config.xml:
<data-source key="ORACLE_EXP"
type="org.apache.commons.dbcp.BasicDataSource">
<set-property property="driverClass" value="oracle.jdbc.driver.OracleDriver"/>
<set-property property="url" value="jdbc:oracle:thin:@XXX.XXX.XXX.XXXX:port:****"/>
<set-property property="removeAbandoned" value="true"/>
<set-property property="maxIdle" value="1"/>
<set-property property="maxActive" value="1"/>
<set-property property="maxWait" value="5000" />
<set-property property="username" value="****"/>Just make sure all the JARS are in the classpath. Configure the Struts-config file for the datasource by adding the below tag text.
<data-sources>
<data-source type="org.apache.commons.dbcp.BasicDataSource" key="DBSTR">
<set-property property="description" value="OracleXE Data Source" />
<set-property property="driverClassName" value="oracle.jdbc.driver.OracleDriver" />
<set-property property="url" value="jdbc:oracle:thin:@155.136.118.169:1521:DBSID" />
<set-property property="minCount" value="2" />
<set-property property="maxCount" value="10" />
<set-property property="maxWait" value="10000" />
<set-property property="username" value="USER" />
<set-property property="password" value="PASSWORD" />
<set-property property="autoCommit" value="false" />
<set-property property="readOnly" value="false" />
</data-source>
and then access from your action or servlet by executing the below java code.
dataSource = getDataSource(request,"DBSTR");
conn = dataSource.getConnection();
stmt = conn.createStatement();
rs = stmt.executeQuery("select object_name from user_objects");
while ( rs.next() ) {
tmp = tmp + ": " + rs.getString("object_name");
Piece of cake.
Message was edited by:
Ajsbaby -
Tomcat 4.1 Oracle Blob problem using apache commons DBCP
Hi all,
We are using Tomcat 4.1.12, Java 1.4.x and trying to take advantage of the connection pooling that comes with Tomcat(the apache commons DBCP).
We are connecting to a oracle database.
Works fine for everything EXCEPT Blobs. We have a servlet that serves images from Oracle, that works fine when it doesn't use the connection pooling, but throws an exception when we call the
ERROR: Class:DisplayGraphic Method:processRequest(HttpServletRequest request, Ht
tpServletResponse response)
Exception: org.apache.commons.dbcp.DelegatingResultSet
DataSource ds = (DataSource)ctx.lookup("jdbc/db_connection");
Connection conn = ds.getConnection();
PreparedStatement pstmt = null;
ResultSet rs = null;
pstmt = conn.prepareStatement("SELECT graphic FROM graphics WHERE graphic_id = 1");
rs = pstmt.executeQuery();
if(rs.next())
oracle.sql.BLOB oBlob = ((OracleResultSet) oRS).getBLOB("GRAPHIC");
InputStream oIS = oBlob.getBinaryStream();
... etc etc...
}Any ideas?
Cheers,
Alex.solved the problem.. i was using getBLOB instead of
getBlob
doh..Hi Alex,
your problem is very interesting for me because I have a similar problem and your identical configuration...
the instruction
oracle.slq.BLOB aBlob = ((OracleResultSet)super.mRs).getBLOB("BLOBBONE")
causes this:
java.lang.ClassCastException: org.apache.commons.dbcp.DelegatingResultSet
To resolve this, I changed, in server.xml , the factory
<parameter>
<name>factory</name>
<value>org.apache.commons.dbcp.BasicDataSourceFactory</value>
</parameter>
with:
<parameter>
<name>factory</name>
<value>oracle.jdbc.pool.OracleDataSourceFactory</value>
</parameter>
and magically all works fine...
But the question is... Why doesn't it work with the standard factory???
There is a problem in the CLASSPATH that I don't see?
Any suggestions is welcome!
Thanks in advance!
Giselda -
Hi,
I am using commons-dbcp.1.2.jar file in my web application. but whenever I start the soa suite, I get the following exception.
java.lang.NoSuchMethodError: org.apache.commons.dbcp.BasicDataSource.setInitialSize(I)V
After researching some, I saw two different versions of dbcp jar files in soa suite installation and orabpel.jar also contains all the classes from commons dbcp.
Can some body tell me which version of dbcp it uses because it does not contain the above method.
I tried changing the shared libraries in the server.xml and include the new jar file but I guess it is loading the orabpel.jar before any thing else.
How do I use newer version of dbcp?
ThanksI would strictly isolate your web appplication classes from other classes. Put your commons-dbcp.1.2.jar into WEB-INF/lib and set prefer-web-inf-classes element to true in weblogic.xml. prefer-web-inf-classes will ensure that your application libraries precede system libraries (orabpel.jar in this case) while SOA Suite should not see your commons-dbcp.1.2.jar and should start properly.
http://download-llnw.oracle.com/docs/cd/E13222_01/wls/docs100/webapp/weblogic_xml.html#wp1059286 -
When I enable imatch on my iPhone 4s it takes approximately 30 minutes before other data fills 13.2gb of usable data on the phone. This problem does not occur when I manually sync music to my phone only when I access imatch. Is this a common bug, and if so; is there a fix?
yes it is. you can sign out of itunes account then sign back in. use http://support.apple.com/kb/ht1311 to sign out.
-
Common headers and footers in web applications
I want to include common headers and footers in all web applications. I do not want to include the header/footer in each application WAR file. I've tried to follow Orion's tutorial for building a response filter, and I get it working to the point that the header and footer show up on the page, but no other content shows up.
Has anyone used filters to include static headers and footers in web applications?
And is there an easier way to do this, that I'm not seeing??Hi Anu,
I have already gone through the document. In that i dint find anything related to headers and footers.Only thing that is available is sorting the dimension headers.
Please let me know if you have any other info regarding this.
Thanks & Regards
Ambica Atluri -
Being new to the iphone I am having trouble listening to imported cds. The tracks keep sticking a bit like buffering. Is this a common problem and can it be solved just by addressing a general buffering problem which I already have on youtube but have not rectified as yet.
Thanks Kaz TIf <alanfromnewtownards> fix fails to address the issue - turn off iMessage and Facetime in Settings. Settings\iMessage, and Settings\facetime.
Sync by cable to iTunes.
Leave cable connected, open Settings\iCloud and ensure at least Mail is on and dsplays your Apple iD email - then turn iMessage and Facetime back on. Ensure that in the ISettings...\iMessage...\Facetime page that the Receive at field and Receive video calls at email address is the same address as your Apple I.D.
Resync when finished.
If still having problems with Facetime then check that the required port is open - allowing traffic in your router.
http://support.apple.com/kb/TS1629
In some cases you may need to turn on Port forwarding and open the port manually to allow traffic through. See your router documentation for details.
If having problems verifying, open iTunes store App on your pad. at bottom of page, click on your ID and sign in. Go to your Account details (re-veryfying and answering security questions may be required to do this) - check all details are correct.
Finally right click your device icon in iTunes and select Reset warnings. resync when finished.
Ct -
Sharing common libraries and ejbs between multiple ears
Hi
I have been going through various articles at O'Reilly and discussions at serverside
(some outdated) on the packaging options in J2EE.
http://www.onjava.com/pub/a/onjava/2001/06/26/ejb.html?page=2
http://www.onjava.com/pub/a/onjava/2001/07/25/ejb.html
http://www2.theserverside.com/home/thread.jsp?thread_id=7530
I am still undecided as to what is the best way to package and deploy
- a set of EJBs (Stateless Session beans) and
- utility libraries
that need to be shared by multiple ears.
We have a set of components - 4 session ejbs and 15 utility classes like log4java,
xerces, custom utilities etc... which need to be shared by all applications running
on the server (in a clustered environment).
There are over 22 applications and these will be packaged in individual ear files.
If we choose to put the common EJBs and utilities in each of the application's
ear, then for every change to this common library all the applications will need
to be repackaged and redeployed, which obviously is not desirable.
If we choose to use the 'Class-Path' option in manifest file, from what I understand
the path to be specified is a relative path within the ear i.e. the path cannot
point to archives outside the .ear file, which does not serve our purpose. Am
I right in this understanding?
What is the best way to package and deploy these common components under these
circumstances?
Has anybody tried something like this before?
Would appreciate your comments on this.
Thank you."Kumar" <[email protected]> wrote in message
news:[email protected]...
In My opinion,
I would be packaging the all utilities into a single jar file and be using
in the application server class path directly. whenever I want to change
this jar file I can change at one shot and package this jar file and keepit
in the classpath again. This works very well, if and only if each EAR file
is not using its own version of a libary of utility jar file. All earfiles
should be using a single and common library.In this case when you update the .jar file, you would have to restart the
server. I am not aware of any good solution which alleviates this.
>
If I include this utility jar file into all ear files, the following arethe
difficulties we need to handle in the future.
- What if utility library has been changed frequently, it leads to
re-package all .ears and re-deployment
- Unnecessarily adding a copy of a single jar file to all ear files,
increases complexity
- Any new application needed to be deployed, again which uses utility, we
need add the utility jar file to ear file
- There is no logical separation and simplicity
Thanks
Kumar
"Kiran P" <[email protected]> wrote in message
news:[email protected]...
Hi
I have been going through various articles at O'Reilly and discussions
at
serverside
(some outdated) on the packaging options in J2EE.
http://www.onjava.com/pub/a/onjava/2001/06/26/ejb.html?page=2
http://www.onjava.com/pub/a/onjava/2001/07/25/ejb.html
http://www2.theserverside.com/home/thread.jsp?thread_id=7530
I am still undecided as to what is the best way to package and deploy
- a set of EJBs (Stateless Session beans) and
- utility libraries
that need to be shared by multiple ears.
We have a set of components - 4 session ejbs and 15 utility classes likelog4java,
xerces, custom utilities etc... which need to be shared by allapplications running
on the server (in a clustered environment).
There are over 22 applications and these will be packaged in individualear files.
If we choose to put the common EJBs and utilities in each of theapplication's
ear, then for every change to this common library all the applicationswill need
to be repackaged and redeployed, which obviously is not desirable.
If we choose to use the 'Class-Path' option in manifest file, from what
I
understand
the path to be specified is a relative path within the ear i.e. the pathcannot
point to archives outside the .ear file, which does not serve our
purpose.
Am
I right in this understanding?
What is the best way to package and deploy these common components underthese
circumstances?
Has anybody tried something like this before?
Would appreciate your comments on this.
Thank you. -
Common diemsions and more then one fact table join problem
Hi,
I have 5 common dimension and 3 fact table which in the same subject area. When I want to display results from more then one fact table sending database then query more then one and I think BI server join this two different result on OBI server. But I think if obi server sending database query for exp. WITH SAWITH0 .... the results get effective.
+++002002:2ea0000:2ea000f:----2009/03/14 10:12:59
-------------------- SQL Request:
SET VARIABLE QUERY_SRC_CD='Report';SELECT "- Common Dimensions"."Year Month" saw_0, "- Subs. Tariff"."Subscriber Current Tariff Type" saw_1, "- Common Measures".Arpu saw_2, "- Common Measures"."Gross Margin" saw_3, "- Call Out"."Callout Dur" saw_4, "- Case".Case_Info_Num saw_5 FROM "CUSTOMER PROFILING" WHERE ("- Common Dimensions"."Year Month" = 200901) AND ("- Subs. Tariff"."Subscriber Current Tariff Type" = 'PREPAID') ORDER BY saw_0, saw_1
+++002002:2ea0000:2ea000f:----2009/03/14 10:12:59
-------------------- General Query Info:
Repository: Star, Subject Area: CUSTOMER PROFILING REV, Presentation: CUSTOMER PROFILING
+++002002:2ea0000:2ea000f:----2009/03/14 10:13:00
-------------------- Sending query to database named CENTRAVEA (id: <<471777>>):
select T223282.DIM_TIME_MONTH_ID as c1,
T221204.DIM_SUBS_CURRENT_TARIFF_TYPE as c2,
avg(T223490.FACT_CP_ARPU) as c3,
sum(T223490.FACT_CP_GROSS_MARGIN) as c4,
sum(T223490.FACT_CP_CO_DUR) as c5
from
DM.DIM_SUBSCRIBER T221204 /* A_DIM_SUBSCRIBER */ ,
DM.DIM_TIME_MONTH T223282 /* A_DIM_TIME_MONTH */ ,
DM.FACT_CUST_PROFILING_PART3 T223490 /* A_FACT_CUST_PROFILING_PART3 */
where ( T221204.DIM_SUBS_ID = T223490.DIM_SUBS_ID and T221204.DIM_SUBS_CURRENT_TARIFF_TYPE = 'PREPAID' and T223282.DIM_TIME_MONTH_ID = T223490.DIM_TIME_MONTH_ID and T223282.DIM_TIME_MONTH_ID = 200901 and T223490.DIM_TIME_MONTH_ID = 200901 )
group by T221204.DIM_SUBS_CURRENT_TARIFF_TYPE, T223282.DIM_TIME_MONTH_ID
order by c1, c2
+++002002:2ea0000:2ea000f:----2009/03/14 10:13:00
-------------------- Sending query to database named CENTRAVEA (id: <<471881>>):
select T223282.DIM_TIME_MONTH_ID as c1,
T221204.DIM_SUBS_CURRENT_TARIFF_TYPE as c2,
sum(T223294.FACT_CP_CASE_INFO_NO) as c3
from
DM.DIM_SUBSCRIBER T221204 /* A_DIM_SUBSCRIBER */ ,
DM.DIM_TIME_MONTH T223282 /* A_DIM_TIME_MONTH */ ,
DM.FACT_CUST_PROFILING_PART1 T223294 /* A_FACT_CUST_PROFILING_PART1 */
where ( T221204.DIM_SUBS_ID = T223294.DIM_SUBS_ID and T221204.DIM_SUBS_CURRENT_TARIFF_TYPE = 'PREPAID' and T223282.DIM_TIME_MONTH_ID = T223294.DIM_TIME_MONTH_ID and T223282.DIM_TIME_MONTH_ID = 200901 and T223294.DIM_TIME_MONTH_ID = 200901 )
group by T221204.DIM_SUBS_CURRENT_TARIFF_TYPE, T223282.DIM_TIME_MONTH_ID
order by c1, c2
I have another subject area and which defined like this subject area contain two dimension and 5 fact table. If I want to display results on this subject area I can see best sql for my database
My problem is why this two different subject areas create different queries. I think following query is the best for database.
Thanks for your help
+++002002:2ea0000:2ea0015:----2009/03/14 10:30:06
-------------------- SQL Request:
SET VARIABLE QUERY_SRC_CD='Report';SELECT "Dim - Segments"."Marketing Segment" saw_0, "Fact - Campaign Response"."Fact Campaign Award Amount" saw_1, "Fact - Customer Interaction"."Issue Response Cost" saw_2 FROM "AVEA ALL" ORDER BY saw_0
+++002002:2ea0000:2ea0015:----2009/03/14 10:30:06
-------------------- General Query Info:
Repository: Star, Subject Area: AVEA ALL, Presentation: AVEA ALL
+++002002:2ea0000:2ea0015:----2009/03/14 10:30:06
-------------------- Sending query to database named AVEA ALL (id: <<474694>>):
WITH
SAWITH0 AS (select sum(T51461.FACT_CMPGN_AWARD_AMOUNT) as c1,
T49384.DIM_MARKETING_SGMNT_DESC as c2
from
DM.DIM_MARKETING_SEGMENT T49384 /* DIM_BI_MARKETING_SEGMENT */ ,
DM.FACT_CMPGN_RESPONSE T51461 /* FACT_BI_CMPGN_RESPONSE */
where ( T49384.DIM_MARKETING_SGMNT_ID = T51461.DIM_MARKETING_SGMNT_ID )
group by T49384.DIM_MARKETING_SGMNT_DESC),
SAWITH1 AS (select sum(T51503.FACT_CUST_INT_ISSUE_RES_COST) as c1,
T49384.DIM_MARKETING_SGMNT_DESC as c2
from
DM.DIM_MARKETING_SEGMENT T49384 /* DIM_BI_MARKETING_SEGMENT */ ,
DM.FACT_CUST_INTERACTN T51503 /* FACT_BI_CUST_INTERACTN */
where ( T49384.DIM_MARKETING_SGMNT_ID = T51503.DIM_MARKETING_SGMNT_ID )
group by T49384.DIM_MARKETING_SGMNT_DESC)
select distinct case when SAWITH0.c2 is not null then SAWITH0.c2 when SAWITH1.c2 is not null then SAWITH1.c2 end as c1,
SAWITH0.c1 as c2,
SAWITH1.c1 as c3
from
SAWITH0 full outer join SAWITH1 On SAWITH0.c2 = SAWITH1.c2
order by c1I find solution on Oracle® Business Intelligence Suite Enterprise Edition Release Notes.
If you use a version of Oracle Database 10g Release 2 prior to 10.2.0.3, then you might encounter an issue with a Full Outer Join that causes severe database performance issues and appears to hang the database when the Oracle BI Server sends to the database SQL queries that include WITH clauses.
To work around this issue when using Oracle Database 10g Release 1 or 2, upgrade to Oracle Database 10g Release 2 Patch Set 2 (for 10.2.0.3). For performance reasons, this is the preferred workaround.
To work around this issue without installing Patch Set 2, modify the Database Features table using the Administration Tool. This configuration prevents the Oracle BI Server from sending SQL constructs that expose the issue in an unpatched Oracle Database 10g.
To modify the Database Features table:
In the Administration Tool, open the properties of the Physical Database metadata object.
Navigate to the Features tab.
Ensure the values for the PERF_PREFER_MINIMAL_WITH_USAGE and PERF_PREFER_INTERNAL_STITCH_JOIN entries are selected, that is, set to True. -
Common URL and not to use the hostname.domain to connect
Hi All
We are interested in geeting information regarding the iAS vs. load balancer our question is : we have one common URL but we need to configure iAS10g to use this common URL and not to use the hostname.domain to connect
Can you please share some solutions ?
ThanksWell, let me step back. I am not sure if I understand your question completely. Can you give me an example of what do you mean by "common url"?
Also when you say you want to use a common url vs. hostname.domain to connect, what is this connection you are talking about? Is this the connection to EM (AS Control)? Your application? Or something else?
Knowing this will help me suggest you the right/appropriate solution.
Thanks
Shail -
Satellite A210 - Can't install common module and display driver
Just downgraded to XP, downloaded drivers from toshiba and the installation ended with an error message saying no driver found for my hardware. Happened with Common Module and ATI Display Driver.
I mean, I need em both!
Help!Hi
I checked the Toshiba European driver page and it seems that the XP drivers have not been released for this A210 series!
I think you have simply tired to install not compatible Common Modules on this notebook.
Thats a reason why you cannot install it.
Regarding the display driver;
Try to install the drivers for notebook models:
Equium A210 PSAEJE
Equium A300D PSAK2E
Equium L350D PSLE2E
Satellite P200 PSPBLE
Satellite L350D PSLE0E
Satrellite L300D PSLC0E
I think one of the drivers released for these series shoudl run.
Maybe you are looking for
-
What roles are required to use Guided Procedures?
Hi , What roles are required to use Guided Procedures? Thanks Srinivas.K
-
this is my program it s giveing lot of problems for me it seem that it s ok please tell me where i am going wrong import java.awt.*; import java.awt.event.*; public class CheckBoxDemo extends Frame implements ItemListener Checkbox cb1,cb2,cb3,cb4; La
-
How do I roll back Acrobat DC to previous version?
All of my Acrobat plugins stopped working when I updated to Acrobat DC and I cannot find a way to roll back to a previous version. Most other apps can be rolled back, but I cannot see where Acrobat can. How can I do this? Thank you, DE
-
Indesign CC has started crashing on startup
Hello, InDesign CC has suddenly started crashing every time I try to start it up. I have tried turning off all fonts (in FontExplorer X), deleted the preferences, uninstalled and then reinstalled InDesign. Nothing works. Last week it worked, now it d
-
Sound distortion, sound breaking up
I need help. my itunes seems to crash. i'll be playing songs, and then the sound starts to break up, and sounds like blown speakers. i have to restart the computer to get it to work again. it started a couple months ago and would only happen when i w