EXCEPTION_ACCESS_VIOLATION encountered !!! Help Needed
Hi,
I have a java code thru which i try to call one simple C program.
I am passing 6 int arrays to it and some calculations happen in C code and i get back the data in one single array.(float)
Strange thing is,it works fine if the array size is less...(say array length 150) But if i try to send more than tht i am getting the following error.
# An unexpected error has been detected by HotSpot Virtual Machine:
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x7c910de3, pid=1480, tid=3948
# Java VM: Java HotSpot(TM) Client VM (1.5.0_06-b05 mixed mode)
# Problematic frame:
# C [ntdll.dll+0x10de3]
# An error report file with more information is saved as hs_err_pid1480.log
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
Can any one please tell me how to handle this exception.
C code is generic.. i.e., no lengths are hardcoded. But still if the length is higher i am getting this error.. Please help..
Java Code
//Class which contains Native Method declaration
class NativeConstellation
native public float[] MIMO(int mode, int[] Y_Re, int[] dH_Re, int[] H_Re, int[] Y_Im, int[] dH_Im, int[] H_Im, float[] ConstPoints);
//Loads the file Native.DLL at run-time
static
System.loadLibrary("Constellation");
// Native Function Call
NativeConstellation nativeConstellation = new NativeConstellation();
float[] Points = Points = nativeConstellation.MIMO(mode,nY_Real,ndH_Real,nH_Real,nY_Img,ndH_Img,nH_Img,ConstPoints);
C Code
JNIEXPORT jfloatArray JNICALL Java_dm_utils_NativeConstellation_MIMO(JNIEnv *env, jobject obj, jint mode, jintArray Y_RE, jintArray dH_RE, jintArray H_RE,jintArray Y_IM, jintArray dH_IM, jintArray H_IM,jfloatArray rxdarray)
//Global Declaration
int i = 0, j=0;
// Parameters
int nTxAnt ;
int nRxAnt = 4 ;
int nY=0, nH=0;
int index =0;
int nt, nr, length,Length = 0;
iCOMPLEX ***H, ***dH, **Y;
fCOMPLEX **constel;
int **antenna_idx;
int ArrayIndex = 0;
int Mode = mode;
FILE *fp_out, *fp_y, *fp_H, *fp_dH;
// DL MIMO modes
// mode 1 : DL 1x4 QPSK (NM,BC)
// mode 2 : DL 2x4 QPSK (IC)
// mode 3 : DL 2x4 16QAM (NM)
// mode 4 : DL 4x4 16QAM (NM)
// Get length of all 3 arrays
unsigned int Y_length = (*env)->GetArrayLength(env,Y_RE);
unsigned int dH_length = (*env)->GetArrayLength(env,dH_RE);
unsigned int H_length = (*env)->GetArrayLength(env,H_RE);
//Added for Returning the floatarray
jboolean isCopy1;
jboolean isCopy2;
jfloat* srcArrayElems = (*env) -> GetFloatArrayElements(env,rxdarray, &isCopy1);
jint n = (*env) -> GetArrayLength(env,rxdarray);
jfloatArray result = (*env) -> NewFloatArray(env,n);
jfloat* destArrayElems = (*env) -> GetFloatArrayElements(env,result, &isCopy2);
// Get the elements from the int arrays
//Real Part
jint *Y_Elements_Re = (*env)->GetIntArrayElements(env,Y_RE, 0);
jint *dH_Elements_Re = (*env)->GetIntArrayElements(env,dH_RE, 0);
jint *H_Elements_Re = (*env)->GetIntArrayElements(env,H_RE, 0);
//Imaginary Part
jint *Y_Elements_Im = (*env)->GetIntArrayElements(env,Y_IM, 0);
jint *dH_Elements_Im = (*env)->GetIntArrayElements(env,dH_IM, 0);
jint *H_Elements_Im = (*env)->GetIntArrayElements(env,H_IM, 0);
Length = Y_length/4;
// Memory allocation
Y = (iCOMPLEX **) malloc( Length*sizeof(iCOMPLEX *) ) ;
H = (iCOMPLEX ***) malloc( Length*sizeof(iCOMPLEX **) ) ;
dH = (iCOMPLEX ***) malloc( Length*sizeof(iCOMPLEX **) ) ;
constel = (fCOMPLEX **) malloc( Length*sizeof(fCOMPLEX *) ) ;
antenna_idx = (int **) malloc( Length*sizeof(int *) ) ;
for (length=0; length<Length; length++) {
Y[length] = (iCOMPLEX *) malloc( 4*sizeof(iCOMPLEX) ) ;
H[length] = (iCOMPLEX **) malloc( 4*sizeof(iCOMPLEX *) ) ;
dH[length] = (iCOMPLEX **) malloc( 4*sizeof(iCOMPLEX *) ) ;
constel[length] = (fCOMPLEX *) malloc( 4*sizeof(fCOMPLEX) ) ;
antenna_idx[length] = (int *) malloc( 4*sizeof(int) ) ;
for (nr=0; nr<4; nr++) {
H[length][nr] = (iCOMPLEX *) malloc( 4*sizeof(iCOMPLEX) ) ;
dH[length][nr] = (iCOMPLEX *) malloc( 4*sizeof(iCOMPLEX) ) ;
// Data read
switch(Mode)
case 1: // DL 1x4 QPSK (NM, BC)
nTxAnt = 1;
printf("In native method printing 2-D byte array : %d %d %d %d\n",Mode, Y_length*2, dH_length*2, H_length*2);
//fp_out = fopen("DL_1x4_16QAM_constell.txt","w") ;
break;
case 2: // DL 2x4 QPSK (IC)
nTxAnt = 2;
printf("In native method printing 2-D byte array : %d %d %d %d\n",Mode, Y_length*2, dH_length*2, H_length*2);
//fp_out = fopen("DL_2x4_16QPSK_constell.txt","w") ;
break;
case 3: // DL 2x4 16QAM (NM)
nTxAnt = 2;
printf("In native method printing 2-D byte array : %d %d %d %d\n",Mode,Y_length*2, dH_length*2, H_length*2);
//fp_out = fopen("DL_2x4_16QAM_constell.txt","w") ;
break;
case 4: // DL 4x4 16QAM (NM)
nTxAnt = 4;
//fp_out = fopen("DL_4x4_16QAM_constell.txt","w") ;
printf("In native method printing 2-D byte array : %d %d %d %d\n",Mode,Y_length*2, dH_length*2, H_length*2);
break;
default:
break;
// Copy the Arrays into the actual Arrays here
for ( length=0; length < Length; length++)
for( nr=0 ; nr<nRxAnt ; nr++ )
Y[length][nr].re = Y_Elements_Re[nY];
Y[length][nr].im= Y_Elements_Im[nY++];
for( nt=0 ; nt<nTxAnt ; nt++ )
H[length][nr][nt].re = H_Elements_Re[nH];
H[length][nr][nt].im = H_Elements_Im[nH];
//printf("\nH : Real : %d - Imag : %d",length,H[length][nr][nt].re,H[length][nr][nt].im);
dH[length][nr][nt].re = dH_Elements_Re[nH];
dH[length][nr][nt].im = dH_Elements_Im[nH++];
//printf("\ndH : Real : %d - Imag : %d",dH[length][nr][nt].re,dH[length][nr][nt].im);
//printf("\nY : Real : %d - Imag : %d",Y[length][nr].re,Y[length][nr].im);
length = Length;
// call MIMO_DL_DL()
MIMO_DM_DL(Y, H, dH, Mode, length, constel, antenna_idx ) ;
//MIMO_DM_UL(Y, H, mode, length, constel, antenna_idx ) ;
// Save to file
for (length = 0; length < Length; length++)
for( nt=0; nt<nTxAnt; nt++)
destArrayElems[ArrayIndex++] = (jfloat)antenna_idx[length][nt]; // Antenna ID
destArrayElems[ArrayIndex++] = (jfloat)constel[length][nt].im; // Real - Q
destArrayElems[ArrayIndex++] = (jfloat)constel[length][nt].re; // Imaginary - I
printf("\n %d,%f,%f ", antenna_idx[length][nt], constel[length][nt].im, constel[length][nt].re);
//fprintf(fp_out, "%d,%f,%f\n",antenna_idx[length][nt], constel[length][nt].im, constel[length][nt].re);
// Memory release
for ( length = 0; length < Length; length++)
printf("\nMemory Cleaning Started.. %d Total Length : %d",length,Length);
for(nr = 0 ; nr < nRxAnt ; nr++)
free( H[length][nr] );
free( dH[length][nr] );
free( H[length] ) ;
free( dH[length] ) ;
free( Y[length] ) ;
free( constel[length] ) ;
free( antenna_idx[length] ) ;
printf("\nOutside for Memory Cleaning Started.. %d",length);
free(H);
free(dH);
free(Y);
free(constel) ;
free(antenna_idx);
printf("\nMemory Cleaning Done!!");
if(isCopy1 == JNI_TRUE)
(*env) -> ReleaseFloatArrayElements(env,rxdarray, srcArrayElems, JNI_ABORT);
if(isCopy2 == JNI_TRUE)
(*env) -> ReleaseFloatArrayElements(env,rxdarray, destArrayElems, 0);
return result; // Return the Points Array
}Please Help...
Hi,
I have a java code thru which i try to call one simple C program.
I am passing 6 int arrays to it and some calculations happen in C code and i get back the data in one single array.(float)
Strange thing is,it works fine if the array size is less...(say array length 150) But if i try to send more than tht i am getting the following error.
# An unexpected error has been detected by HotSpot Virtual Machine:
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x7c910de3, pid=1480, tid=3948
# Java VM: Java HotSpot(TM) Client VM (1.5.0_06-b05 mixed mode)
# Problematic frame:
# C [ntdll.dll+0x10de3]
# An error report file with more information is saved as hs_err_pid1480.log
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
Can any one please tell me how to handle this exception.
C code is generic.. i.e., no lengths are hardcoded. But still if the length is higher i am getting this error.. Please help..
Java Code
//Class which contains Native Method declaration
class NativeConstellation
native public float[] MIMO(int mode, int[] Y_Re, int[] dH_Re, int[] H_Re, int[] Y_Im, int[] dH_Im, int[] H_Im, float[] ConstPoints);
//Loads the file Native.DLL at run-time
static
System.loadLibrary("Constellation");
// Native Function Call
NativeConstellation nativeConstellation = new NativeConstellation();
float[] Points = Points = nativeConstellation.MIMO(mode,nY_Real,ndH_Real,nH_Real,nY_Img,ndH_Img,nH_Img,ConstPoints);
C Code
JNIEXPORT jfloatArray JNICALL Java_dm_utils_NativeConstellation_MIMO(JNIEnv *env, jobject obj, jint mode, jintArray Y_RE, jintArray dH_RE, jintArray H_RE,jintArray Y_IM, jintArray dH_IM, jintArray H_IM,jfloatArray rxdarray)
//Global Declaration
int i = 0, j=0;
// Parameters
int nTxAnt ;
int nRxAnt = 4 ;
int nY=0, nH=0;
int index =0;
int nt, nr, length,Length = 0;
iCOMPLEX ***H, ***dH, **Y;
fCOMPLEX **constel;
int **antenna_idx;
int ArrayIndex = 0;
int Mode = mode;
FILE *fp_out, *fp_y, *fp_H, *fp_dH;
// DL MIMO modes
// mode 1 : DL 1x4 QPSK (NM,BC)
// mode 2 : DL 2x4 QPSK (IC)
// mode 3 : DL 2x4 16QAM (NM)
// mode 4 : DL 4x4 16QAM (NM)
// Get length of all 3 arrays
unsigned int Y_length = (*env)->GetArrayLength(env,Y_RE);
unsigned int dH_length = (*env)->GetArrayLength(env,dH_RE);
unsigned int H_length = (*env)->GetArrayLength(env,H_RE);
//Added for Returning the floatarray
jboolean isCopy1;
jboolean isCopy2;
jfloat* srcArrayElems = (*env) -> GetFloatArrayElements(env,rxdarray, &isCopy1);
jint n = (*env) -> GetArrayLength(env,rxdarray);
jfloatArray result = (*env) -> NewFloatArray(env,n);
jfloat* destArrayElems = (*env) -> GetFloatArrayElements(env,result, &isCopy2);
// Get the elements from the int arrays
//Real Part
jint *Y_Elements_Re = (*env)->GetIntArrayElements(env,Y_RE, 0);
jint *dH_Elements_Re = (*env)->GetIntArrayElements(env,dH_RE, 0);
jint *H_Elements_Re = (*env)->GetIntArrayElements(env,H_RE, 0);
//Imaginary Part
jint *Y_Elements_Im = (*env)->GetIntArrayElements(env,Y_IM, 0);
jint *dH_Elements_Im = (*env)->GetIntArrayElements(env,dH_IM, 0);
jint *H_Elements_Im = (*env)->GetIntArrayElements(env,H_IM, 0);
Length = Y_length/4;
// Memory allocation
Y = (iCOMPLEX **) malloc( Length*sizeof(iCOMPLEX *) ) ;
H = (iCOMPLEX ***) malloc( Length*sizeof(iCOMPLEX **) ) ;
dH = (iCOMPLEX ***) malloc( Length*sizeof(iCOMPLEX **) ) ;
constel = (fCOMPLEX **) malloc( Length*sizeof(fCOMPLEX *) ) ;
antenna_idx = (int **) malloc( Length*sizeof(int *) ) ;
for (length=0; length<Length; length++) {
Y[length] = (iCOMPLEX *) malloc( 4*sizeof(iCOMPLEX) ) ;
H[length] = (iCOMPLEX **) malloc( 4*sizeof(iCOMPLEX *) ) ;
dH[length] = (iCOMPLEX **) malloc( 4*sizeof(iCOMPLEX *) ) ;
constel[length] = (fCOMPLEX *) malloc( 4*sizeof(fCOMPLEX) ) ;
antenna_idx[length] = (int *) malloc( 4*sizeof(int) ) ;
for (nr=0; nr<4; nr++) {
H[length][nr] = (iCOMPLEX *) malloc( 4*sizeof(iCOMPLEX) ) ;
dH[length][nr] = (iCOMPLEX *) malloc( 4*sizeof(iCOMPLEX) ) ;
// Data read
switch(Mode)
case 1: // DL 1x4 QPSK (NM, BC)
nTxAnt = 1;
printf("In native method printing 2-D byte array : %d %d %d %d\n",Mode, Y_length*2, dH_length*2, H_length*2);
//fp_out = fopen("DL_1x4_16QAM_constell.txt","w") ;
break;
case 2: // DL 2x4 QPSK (IC)
nTxAnt = 2;
printf("In native method printing 2-D byte array : %d %d %d %d\n",Mode, Y_length*2, dH_length*2, H_length*2);
//fp_out = fopen("DL_2x4_16QPSK_constell.txt","w") ;
break;
case 3: // DL 2x4 16QAM (NM)
nTxAnt = 2;
printf("In native method printing 2-D byte array : %d %d %d %d\n",Mode,Y_length*2, dH_length*2, H_length*2);
//fp_out = fopen("DL_2x4_16QAM_constell.txt","w") ;
break;
case 4: // DL 4x4 16QAM (NM)
nTxAnt = 4;
//fp_out = fopen("DL_4x4_16QAM_constell.txt","w") ;
printf("In native method printing 2-D byte array : %d %d %d %d\n",Mode,Y_length*2, dH_length*2, H_length*2);
break;
default:
break;
// Copy the Arrays into the actual Arrays here
for ( length=0; length < Length; length++)
for( nr=0 ; nr<nRxAnt ; nr++ )
Y[length][nr].re = Y_Elements_Re[nY];
Y[length][nr].im= Y_Elements_Im[nY++];
for( nt=0 ; nt<nTxAnt ; nt++ )
H[length][nr][nt].re = H_Elements_Re[nH];
H[length][nr][nt].im = H_Elements_Im[nH];
//printf("\nH : Real : %d - Imag : %d",length,H[length][nr][nt].re,H[length][nr][nt].im);
dH[length][nr][nt].re = dH_Elements_Re[nH];
dH[length][nr][nt].im = dH_Elements_Im[nH++];
//printf("\ndH : Real : %d - Imag : %d",dH[length][nr][nt].re,dH[length][nr][nt].im);
//printf("\nY : Real : %d - Imag : %d",Y[length][nr].re,Y[length][nr].im);
length = Length;
// call MIMO_DL_DL()
MIMO_DM_DL(Y, H, dH, Mode, length, constel, antenna_idx ) ;
//MIMO_DM_UL(Y, H, mode, length, constel, antenna_idx ) ;
// Save to file
for (length = 0; length < Length; length++)
for( nt=0; nt<nTxAnt; nt++)
destArrayElems[ArrayIndex++] = (jfloat)antenna_idx[length][nt]; // Antenna ID
destArrayElems[ArrayIndex++] = (jfloat)constel[length][nt].im; // Real - Q
destArrayElems[ArrayIndex++] = (jfloat)constel[length][nt].re; // Imaginary - I
printf("\n %d,%f,%f ", antenna_idx[length][nt], constel[length][nt].im, constel[length][nt].re);
//fprintf(fp_out, "%d,%f,%f\n",antenna_idx[length][nt], constel[length][nt].im, constel[length][nt].re);
// Memory release
for ( length = 0; length < Length; length++)
printf("\nMemory Cleaning Started.. %d Total Length : %d",length,Length);
for(nr = 0 ; nr < nRxAnt ; nr++)
free( H[length][nr] );
free( dH[length][nr] );
free( H[length] ) ;
free( dH[length] ) ;
free( Y[length] ) ;
free( constel[length] ) ;
free( antenna_idx[length] ) ;
printf("\nOutside for Memory Cleaning Started.. %d",length);
free(H);
free(dH);
free(Y);
free(constel) ;
free(antenna_idx);
printf("\nMemory Cleaning Done!!");
if(isCopy1 == JNI_TRUE)
(*env) -> ReleaseFloatArrayElements(env,rxdarray, srcArrayElems, JNI_ABORT);
if(isCopy2 == JNI_TRUE)
(*env) -> ReleaseFloatArrayElements(env,rxdarray, destArrayElems, 0);
return result; // Return the Points Array
}Please Help...
Similar Messages
-
Help needed to run JSTL 1.1 in Tomcat 6.0.16
Hi All,Help needed to run JSTL 1.1 in Tomcat 6.0.16. I am trying to run the example given in http://tomcat.apache.org/tomcat-6.0-doc/jndi-datasource-examples-howto.html The example tries to connect to MySQL database from JSP using JSTL and JNDI Datasource.I am running the example using Eclipse 3.4.2 using Sysdeo plugin to start and stop Tomcat server from Eclipse IDE.
My web.xml file has <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">
</web-app>
and test.jsp has proper taglib directives
<%@ taglib prefix="sql" uri="http://java.sun.com/jsp/jstl/sql" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
I have placed the jstl.jar and standard.jarof the jakarta-taglibs-standard-1.1.2.zip under E:\Deepa\workspace\DBTest\WebContent\WEB-INF\lib directory also placedcontext.xml file under E:\Deepa\workspace\DBTest\WebContent\META-INF and the content of context.xml is as below
<Context path="/DBTest" docBase="DBTest"
debug="5" reloadable="true" crossContext="true">
<Resource name="jdbc/TestDB" auth="Container" type="javax.sql.DataSource"
maxActive="100" maxIdle="30" maxWait="10000"
username="deepa" password="mysql" driverClassName="com.mysql.jdbc.Driver"
url="jdbc:mysql://localhost:3306/javatest?autoReconnect=true"/>
</Context>
Now while running the example, Eclipse creates one DBTest.xml file under C:\Program Files\Apache Software Foundation\Tomcat 6.0\conf\Catalina\localhost
which has the following line:
<Context path="/DBTest" reloadable="true" docBase="E:\Deepa\workspace\DBTest" workDir="E:\Deepa\workspace\DBTest\work" />
I am getting the following error when running http://localhost/DBTest/WebContent/test.jsp
in Browser:
<HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: The absolute uri: http://java.sun.com/jsp/jstl/sql cannot be resolved in either web.xml or the jar files deployed with this application
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:51)
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:409)
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:116)
org.apache.jasper.compiler.TagLibraryInfoImpl.generateTLDLocation(TagLibraryInfoImpl.java:315)
org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:148)
org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:431)
org.apache.jasper.compiler.Parser.parseDirective(Parser.java:494)
org.apache.jasper.compiler.Parser.parseElements(Parser.java:1444)
org.apache.jasper.compiler.Parser.parse(Parser.java:138)
org.apache.jasper.compiler.ParserController.doParse(ParserController.java:216)
org.apache.jasper.compiler.ParserController.parse(ParserController.java:103)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:154)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:315)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:295)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:282)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:586)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
In the Tomcat Server console, I am getting the following error:
INFO: Server startup in 7295 ms
May 20, 2009 6:36:48 AM org.apache.jasper.compiler.TldLocationsCache processWebDotXml
WARNING: Internal Error: File /WEB-INF/web.xml not found
May 20, 2009 6:36:48 AM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet jsp threw exception
org.apache.jasper.JasperException: The absolute uri: http://java.sun.com/jsp/jstl/sql cannot be resolved in either web.xml or the jar files deployed with this application
what is the problem with my code?
When running the same example, by creating a local server in Eclipse(creating new Server connection pointing to same Tomcat 6.0 installation) it runs fine without any error.Hi evnafets,
Wow, very helpful information, great insight into working of Eclipse. Thanks a lot.
I have one more question. I have a context.xml file under {color:#0000ff}E:\Deepa\workspace\DBTest\WebContent\META-INF{color} folder and that has the Resource element to connect to MySQL database:
{code{color:#000000}}{color}<Context path="/DBTest" docBase="DBTest" debug="5" reloadable="true" crossContext="true">
<Resource name="jdbc/TestDB" auth="Container" type="javax.sql.DataSource" maxActive="100" maxIdle="30" maxWait="10000" username="deepa" password="mysql" driverClassName="com.mysql.jdbc.Driver"
{color:#0000ff}url="jdbc:mysql://localhost:3306/javatest?autoReconnect=true"/>{color}
{color:#0000ff}</Context>{color}As usual when running application in local Tomcat server of Eclipse, this data source works fine. But when I run the application on Tomcat, by starting Sysdeo plugin from Eclipse, the DBTest.xml file created in C:\Tomcat 6.0\conf\Catalina\localhost has the context entry as<Context path="/DBTest" reloadable="true" docBase="E:\Deepa\workspace\DBTest\WebContent" workDir="E:\Deepa\workspace\DBTest\work">
</Context>The<Resource> element I have specified in the context.xml of \WebContent\META-INF folder is not taken into account by Tomcat and it gives the following error:May 21, 2009 5:20:04 AM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet jsp threw exception
javax.servlet.jsp.JspException: Unable to get connection, DataSource invalid: "org.apache.tomcat.dbcp.dbcp.SQLNestedException_: Cannot create JDBC driver of class '' for connect URL 'null'"
_at org.apache.taglibs.standard.tag.common.sql.QueryTagSupport.getConnection(_QueryTagSupport.java:276_)
at org.apache.taglibs.standard.tag.common.sql.QueryTagSupport.doStartTag(_QueryTagSupport.java:159_)
at org.apache.jsp.test_jsp._jspx_meth_sql_005fquery_005f0(_test_jsp.java:113_)
at org.apache.jsp.test_jsp._jspService(_test_jsp.java:66_)
at org.apache.jasper.runtime.HttpJspBase.service(_HttpJspBase.java:70_)
at javax.servlet.http.HttpServlet.service(_HttpServlet.java:717_)
at org.apache.jasper.servlet.JspServletWrapper.service(_JspServletWrapper.java:374_)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(_JspServlet.java:342_)
at org.apache.jasper.servlet.JspServlet.service(_JspServlet.java:267_)
at javax.servlet.http.HttpServlet.service(_HttpServlet.java:717_)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(_ApplicationFilterChain.java:290_)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(_ApplicationFilterChain.java:206_)
at org.apache.catalina.core.StandardWrapperValve.invoke(_StandardWrapperValve.java:233_)
at org.apache.catalina.core.StandardContextValve.invoke(_StandardContextValve.java:191_)
at org.apache.catalina.core.StandardHostValve.invoke(_StandardHostValve.java:128_)
at org.apache.catalina.valves.ErrorReportValve.invoke(_ErrorReportValve.java:102_)
at org.apache.catalina.core.StandardEngineValve.invoke(_StandardEngineValve.java:109_)
at org.apache.catalina.connector.CoyoteAdapter.service(_CoyoteAdapter.java:286_)
at org.apache.coyote.http11.Http11Processor.process(_Http11Processor.java:845_)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(_Http11Protocol.java:583_)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(_JIoEndpoint.java:447_)
at java.lang.Thread.run(_Thread.java:619_)
{code}
So to overcome this error I had to place the <Resource> element in DBTest.xml under C:\Tomcat 6.0\conf\Catalina\localhost {color:#000000}and then it works fine. {color}{color:#ff0000}*Why is the context.xml file in META-INF not considered by Tomcat server using Sysdeo Plugin?*
*Thanks,*
*Deepa*{color}
{color}
Edited by: Deepa76 on May 26, 2009 9:32 PM -
Help Need ! X-Fi Titanium Championship Fatal1ty Champion Series
Hi guys,
i recently bought?this sound card
i encounter 2 problems which i desperately need help with cause creative isnt giving me a satisfied answer
Firstly,?i cant update to the latest driver.
if i update...everytime i try to press any of the buttons(Game mode, x-fi?CMSS 3D, x-fi crystalizer) on the I/O front panel console.
i seem to lose control of I/O front panel console. i cant control the Main volume,Mic volume or any of my 3 modes using my I/O front panel console,?i can only change them through creative console launcher
secondly,
everytime i try change my recording device to "microphone FP". it keeps jumping back to "microphone" which apparently is the port on the sound card itself.
its kinda stupid to use the mic port on the sound card rather than the I/O front panel port being i paid such a high price for it mainly because of its specs but partially cause it has a I/O front panel.
someone please help me with this problem cause creative technical support hasnt been able to solve my problem
so im trying my luck to see if anyone is out there suffering the same problem as me?would?gladly?share his solution with me?to this problem =)CRe: Help Need ! X-Fi Titanium Championship Fatalty Champion Seriesx <a rel="nofollow" href="http://forums.creative.com/t5/Sound-Blaster/SB-X-Fi-Series-Support-Pack-2-0-05-5-2009/td-p/527485"]http://forums.creative.com/t5/Sound-Blaster/SB-X-Fi-Series-Support-Pack-2-0-05-5-2009/td-p/527485[/url]
download the above package. remove everything you have installed originally from the CD, etc. Turn off your internet connection if you have broadband because it will install its own updates through windows updates. Install the above package. Retest your card and I/O bay.
I have used the above pack with an X-FI Xtreme Music OEM from Dell, an X-FI Fatality Pro PCI, and the Titanium. It works great. Afterwards you can update to the latest drivers without problems. If you start, as you already have, with the newest driver, things just dont work quite right in my opinion. -
Troubleshooting help needed: My iMac keeps crashing and restarting with a notice: "Spinlock application timed out" What can I do?
Launch the Console application in any of the following ways:
☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
☞ Open LaunchPad. Click Utilities, then Console in the page that opens.
Select the most recent panic log under System Diagnostic Reports. Post the contents — the text, please, not a screenshot. In the interest of privacy, I suggest you edit out the “Anonymous UUID,” a long string of letters, numbers, and dashes in the header and body of the report, if it’s present (it may not be.) Please don't post shutdownStall, spin, or hang reports. -
help needed for writing query
i have the following tables(with data) as mentioned below
FK*-foregin key (SUBJECTS)
FK**-foregin key (COMBINATION)
1)SUBJECTS(table name)
SUB_ID(NUMBER) SUB_CODE(VARCHAR2) SUB_NAME (VARCHAR2)
2 02 Computer Science
3 03 Physics
4 04 Chemistry
5 05 Mathematics
7 07 Commerce
8 08 Computer Applications
9 09 Biology
2)COMBINATION
COMB_ID(NUMBER) COMB_NAME(VARCHAR2) SUB_ID1(NUMBER(FK*)) SUB_ID2(NUMBER(FK*)) SUB_ID3(NUMBER(FK*)) SUBJ_ID4(NUMBER(FK*))
383 S1 9 4 2 3
384 S2 4 2 5 3
---------I actually designed the ABOVE table also like this
3) a)COMBINATION
COMB_ID(NUMBER) COMB_NAME(VARCHAR2)
383 S1
384 S2
b)COMBINATION_DET
COMBDET_ID(NUMBER) COMB_ID(FK**) SUB_ID(FK*)
1 383 9
2 383 4
3 383 2
4 383 3
5 384 4
6 384 2
7 384 5
8 384 3
Business rule: a combination consists of a maximum of 4 subjects (must contain)
and the user is less relevant to a COMB_NAME(name of combinations) but user need
the subjects contained in combinations
i need the following output
COMB_ID COMB_NAME SUBJECT1 SUBJECT2 SUBJECT3 SUBJECT4
383 S1 Biology Chemistry Computer Science Physics
384 S2 Chemistry Computer Science Mathematics Physics
or even this is enough(what i actually needed)
COMB_ID subjects
383 Biology,Chemistry,Computer Science,Physics
384 Chemistry,Computer Science,Mathematics,Physics
you can use any of the COMBINATION table(either (2) or (3))
and i want to know
1)which design is good in this case
(i think SUB_ID1,SUB_ID2,SUB_ID3,SUB_ID4 is not a
good method to link with same table but if 4 subjects only(and must) comes
detail table is not neccessary )
now i am achieving the result by program-coding in C# after getting the rows from oracle
i am using oracle 9i (also ODP.NET)
i want to know how can i get the result in the stored procedure itsef.
2)how it could be designed in any other way.
any help/suggestion is welcome
thanks for your time --PradeeshWell I forgot the table-alias, here now with:
SELECT C.COMB_ID
, C.COMB_NAME
, (SELECT SUB_NAME
FROM SUBJECTS
WHERE SUB_ID = C.SUB_ID1) AS SUBJECT_NAME1
, (SELECT SUB_NAME
FROM SUBJECTS
WHERE SUB_ID = C.SUB_ID2) AS SUBJECT_NAME2
, (SELECT SUB_NAME
FROM SUBJECTS
WHERE SUB_ID = C.SUB_ID3) AS SUBJECT_NAME3
, (SELECT SUB_NAME
FROM SUBJECTS
WHERE SUB_ID = C.SUB_ID4) AS SUBJECT_NAME4
FROM COMBINATION C;
As you need exactly 4 subjects, the columns-solution is just fine I would say. -
Hi all help needed I have a canon 40D. I am thinking of buying a canon 6D.
But not sure that my lenses will work.
I have a 170mm/ 500mm APO Sigma.
A 10/20 ex Sigma HSM IF.
And a 180 APO Sigma Macro or do I have to scrap them and buy others.
ALL Help will be greatly received. Yours BRODIEIn short, I love it. I was going to buy the 5DMark III. After playing with it for a while at my local Fry's store where they put 5DMII, 5DMIII and 6D next to each other, using the same 24-105L lens, I decided to get the 6D and pocket the different for lens later.
I'm upgrading from the 30D. So I think you'll love it. It's a great camera. I have used 5DMII extensively before (borrowing from a close friend).
Funny thing is at first I don't really care about the GPS and Wifi much. I thought they're just marketing-gimmick. But once you have it, it is actually really fun and helpful. For example, I can place the 6D on a long "monopod", then use the app on the phone to control the camera to get some unique perspective on some scenes. It's fun and great. GPS is also nice for travel guy like me.
Weekend Travelers Blog | Eastern Sierra Fall Color Guide -
Help needed! Raid degraded again!
Hi!
Help needed! I hava made bootable RAID with two S-ATAII 250Gb HDD and its not working! Every now and then at bootup I get a message RAID -> DEGRADED... Must be seventh time! Rebuild takes its own time!
What am I doing wrong!
T: Ekku
K8N Neo4 Ultra
AMD 64 4200+
2 Gb RAM
2 x 250 Gb HDD (Maxtor)
nVidia RAID (in mb)
P.S. I wery SORRY with my poor language!I'm going to blame the nVRAID because I've seen issues with it in the past. If your motherboard has another non-nVidia RAID solution, use that instead. Using the nVidia SATA ports as BASE or JBOD is fine and dandy but RAIDing always had issues. It's not even a driver issue I think it's just instability. Latest drivers and even boxed drivers never helped. Granted, some will report success with their rig. But on a professional level I've seen nForce issues on different motherboards and different hard drives that had RAID disaster stories.
Good luck and if you don't have another RAID solution, my suggestion would be to buy a dedicated RAID controller card.
LPB -
HELP NEEDED WITH ADDAPTER-DVI TO VGA.
PLEASE ...HELP NEEDED WITH WIRING CROSS OVER....CAN YOU HELP WITH BACK OF PLUG CONNECTIONS...I SORTA UNDERSTAND THE PINOUTS BUT CANT MAKE AN EXACT MACH...WOULD LIKE TO BE 100% SURE...
......THIS ENSURES NO SMOKE!!!
THE CARD IS AN ATI RADEON RX9250-DUAL HEAD-.........ADDAPTER IS DVI(ANALOG)MALE TO VGA(ANALOG)FEMALE.
ANY HELP VERY MUCH APPRECIATED........ SEEMS YOU NEED TO BE ROCKET SCI TO ATTACH A BLOODY PICTURE...SO THIS HAS BEEN BIG WASTE OF FING TIME!Quote from: BOBHIGH on 17-December-05, 09:21:31
Get over it mate !
I find it easy t read CAPS...and if you dont like it ...DONT READ IT!
And why bother to reply...some people have nothing better to do.
Yes there chep and easy to come by...Ive already got a new one.
All I wanted was to make a diagram of whats inside the bloody thing...it was a simple question and required a simple answer.
NO NEED TO A WANKA !!
I feel a bann comming up.
Have you tryed Google ? really.. your question is inrelevant. No need to reply indeed.
Why do you come here asking this question anyway ? is it becouse you have a MSI gfx card ? and the adapter has nothing to do with this ?
You think you can come in here yelling.. thinking we have to put up with it and accept your style of posting. This is not a MSI tech center.. it's a user to user center.. Your question has nothing to do with MSI relavant things anyway's.
Google = your friend.
Quote from: BOBHIGH on 17-December-05, 09:21:31
it was a simple question and required a simple answer
Simple for who ? you (buying a new one) ? me ? we ? .really...........
Quote from: Dynamike on 16-December-05, 04:11:48
1: There are allot of diffrent types of those adapters.
If any of the mods have a problem about my reply.. please pm me. -
Help needed for grouping.
Hi,
Help needed .
I have an internal table having 6 .
Ex :
f1 f2 f3 f4 f5 f6
a aa 11 p1 10 10
a aa 12 p1 20 20
b aa 11 p2 30 30
b aa 12 p2 40 30
Now i want to sum the fields f5 and f6 individually and need to display based upon the fields f1 and f4.
To Display :
f1 f2 f3 f4 f5 f6
a aa 11 p1 30 30.
b aa 11 p2 70 60.
can anyone help me.How to do this..?
ThanksHere you go
DATA:
BEGIN OF cur_tab OCCURS 0,
f1 TYPE c,
f2(2) TYPE c,
f3(2) TYPE c,
f4(2) TYPE c,
f5(2) TYPE c,
f6(2) TYPE n,
END OF cur_tab.
DATA:
BEGIN OF sum_tab OCCURS 0,
f1 TYPE c,
f4(2) TYPE c,
f5 TYPE p,
f6 TYPE p,
END OF sum_tab.
DATA:
BEGIN OF final_tab OCCURS 0,
f1 TYPE c,
f2(2) TYPE c,
f3(2) TYPE c,
f4(2) TYPE c,
f5(5) TYPE c,
f6(5) TYPE c,
END OF final_tab.
START-OF-SELECTION.
cur_tab-f1 = 'a'.
cur_tab-f2 = 'aa'.
cur_tab-f3 = '11'.
cur_tab-f4 = 'p1'.
cur_tab-f5 = '10'.
cur_tab-f6 = '10'.
APPEND cur_tab.
cur_tab-f1 = 'a'.
cur_tab-f2 = 'aa'.
cur_tab-f3 = '11'.
cur_tab-f4 = 'p1'.
cur_tab-f5 = '20'.
cur_tab-f6 = '20'.
APPEND cur_tab.
cur_tab-f1 = 'b'.
cur_tab-f2 = 'aa'.
cur_tab-f3 = '11'.
cur_tab-f4 = 'p2'.
cur_tab-f5 = '30'.
cur_tab-f6 = '30'.
APPEND cur_tab.
cur_tab-f1 = 'b'.
cur_tab-f2 = 'aa'.
cur_tab-f3 = '11'.
cur_tab-f4 = 'p2'.
cur_tab-f5 = '40'.
cur_tab-f6 = '30'.
APPEND cur_tab.
LOOP AT cur_tab.
MOVE-CORRESPONDING cur_tab TO sum_tab.
COLLECT sum_tab.
ENDLOOP.
LOOP AT sum_tab.
READ TABLE cur_tab WITH KEY f1 = sum_tab-f1
f4 = sum_tab-f4.
IF sy-subrc NE 0.
WRITE:/ 'Something went very wrong'.
CONTINUE.
ENDIF.
MOVE-CORRESPONDING cur_tab TO final_tab.
MOVE-CORRESPONDING sum_tab TO final_tab.
APPEND final_tab.
ENDLOOP.
LOOP AT final_tab.
WRITE:/1 final_tab-f1,
AT 5 final_tab-f2,
AT 10 final_tab-f3,
AT 15 final_tab-f4,
AT 20 final_tab-f5,
AT 25 final_tab-f6.
ENDLOOP.
and the output
a aa 11 p1 30 30
b aa 11 p2 70 60 -
Help needed on installation of Oracle 9i on Sun Solaris 8
Hey,
Help needed on installation of Oracle 9i EE on Sun Solaris 8. The problem I met was: we followed the installation guide from the documentation. And we selected the choice "install software only". After it was done successfully, we run Database Configuration Assistant utility to create a database instance. But finally it always tried to create the instance at the root directory ( / ) which doesn't have enough space and then failed. The case was that we have set the enviroment parameters: $ORACLE_BASE = /export/mydata, $ORACLE_HOME = /export/apps/oracle9i. That means it should be installed at /export/mydata, but it didn't. Any help or advice are welcome. Thanks.
SimonI have downloaded Oracle 11G R2 version from Windows and extracted it in Windows and copied it into DVD after extraction in two folders. Now I am mounting that DVD in Solaris 10 installed in my VMware . I made a new directory named as 'installation ' under /export/home/oracle and copied the folders from DVD to 'installation' folder. Now I am entering installation folder and try to do ./runInstaller as 'oracle ' user and getting the error mentioned before.
Edited by: 916438 on Mar 31, 2012 5:55 PM -
Help needed on installation of Oracle 9i EE on Sun Solaris 8
Hey,
Help needed on installation of Oracle 9i EE on Sun Solaris 8. The problem I met was: we followed the installation guide from the documentation. And we selected the choice "install software only". After it was done successfully, we run Database Configuration Assistant utility to create a database instance. But finally it always tried to create the instance at the root directory ( / ) which doesn't have enough space and then failed. The case was that we have set the enviroment parameters: $ORACLE_BASE = /export/mydata, $ORACLE_HOME = /export/apps/oracle9i. That means it should be installed at /export/mydata, but it didn't. Any help or advice are welcome. Thanks.
SimonI have downloaded Oracle 11G R2 version from Windows and extracted it in Windows and copied it into DVD after extraction in two folders. Now I am mounting that DVD in Solaris 10 installed in my VMware . I made a new directory named as 'installation ' under /export/home/oracle and copied the folders from DVD to 'installation' folder. Now I am entering installation folder and try to do ./runInstaller as 'oracle ' user and getting the error mentioned before.
Edited by: 916438 on Mar 31, 2012 5:55 PM -
Help needed in Finding Download location for Sun One Portal 7
Hi,
help needed for finding download location for Sun ONE Portal 7. I tried to find in Oracle Download page ,
http://www.oracle.com/us/sun/sun-products-map-075562.html, But unable to find.
Please share the link for download location.
I am totally new in Sun ONE Portal.
Thanks,
Edited by: 945439 on Oct 5, 2012 3:41 AMtry edelivery.oracle.com under sun products.
-
Help needed in constructing a tree
Help needed in constructing a tree. I was wondering if some one can suggest me how to add messages in the second column for both the parent node and child elements.
I was able to create a tree succefully, but want to add some description in the second column for the first column elements, for both parent and child elements.
Please suggest me how to add the arrays to second column for parent and child nodes.
Solved!
Go to Solution.
Attachments:
Tree_fix.vi 15 KBThe Child Text parameter is the one you are searching for. It accepts a 1D string array for the following columns.
hope this helps,
Norbert
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it. -
Help needed on CD740 ???
Help needed on CD740 ? My CD740 is GREAT , well , it was great !!? The sound and general performance are wonderful , but , it now has a fault !!? Shock Horror !!
What can it be ?!!? Well , the display illumination has failed , as in , there isn't any !!? Have to use a torch to read it !!? Not good. Now , here's the thing , I want a phone number (UK zone) ?to talk to an actual human and I cannot find one !!? That is soooooo annoying !!? The unit is out of warranty so I want to repair this myself , no worries , I once worked for Philips in their pro studio equipment repair workshop so I know my way around black boxes !! I would like a service manual though so that I can get the case apart without damage. So , can anyone help me with a phone number , pretty please ?!!
Thanx.I tried compling servlet, but it is raising error
that coul not find package javax.servletWhat I did not mention... you need to add those JARs in the Classpath explicitly. You will find them in %TOMCAT_HOME%\common\lib. You atleast need to add servlet-api.jar to your Classpath. :) -
Help needed with Vista 64 Ultimate
"Help needed with Vista 64 UltimateI I need some help in getting XFI Dolby digital to work
Okay so i went out and I bought a yamaha 630BL reciever, a digital coaxial s/pdif, and a 3.5mm phono plug to fit perfectly to my XFI Extreme Music
-The audio plays fine and reports as a PCM stream when I play it normally, but I can't get dolby digital or DTS to enable for some reason eventhough I bought the DDL & DTS Connect Pack for $4.72
When I click dolby digital li've in DDL it jumps back up to off and has this [The operation was unsuccessful. Please try again or reinstall the application].
Message Edited by Fuzion64 on 03-06-2009 05:33 AMS/PDIF I/O was enabled under speakers in control panel/sound, but S/PDIF Out function was totally disabled
once I set this to enabled Dolby and DTS went acti've.
I also have a question on 5. and Vista 64
-When I game I normally use headphones in game mode or 2. with my headphones, the reason for this is if I set it on 5. I get sounds coming out of all of the wrong channels.
Now when I watch movies or listen to music I switch to 5. sound in entertainment mode, but to make this work properly I have to open CMSS-3D. I then change it from xpand to stereo and put the slider at even center for 50%. If I use the default xpand mode the audio is way off coming out of all of the wrong channels.
How do I make 5. render properly on vistaWe ended up getting iTunes cleanly uninstalled and were able to re-install without issue. All is now mostly well.
Peace... -
Help needed! Just want to cancel my year subscription. No answer from support via mail, noone answers when I call, support chat don't work.
Hi there
I'll pass your details to our Russian team and they'll contact you to assist further.
Kind regards
Bev
Maybe you are looking for
-
I want to enlarge the value of the variable types date to 1 hour but value of =CurrentDate()+1/24 is current date - no next hour how to perform operations on variables of type date
-
Where are the Ken Burns controls?
I've got iPhoto 4.0.3. The iPhoto Help menu tells me to go to View>Thumbnails, but my View menu doesn't have Thumbnails as an option. Nevertheless, I can get a screen full of thumbnails when I click on the "Organise" button at the bottom of the iPhot
-
My iphoto jpg won't open on my sisters PC?
HI- half the time I export a jpg from iphoto and email it ( using the mail program) to my sister she can never open them. sometime she can though abd I am always exporting them the same way! so strange. any ideas on why this might happen or the best
-
I have created small .jpg images of the front page of PDF documents that I want to link to in my website. Before I attach the hyperlink, I can easily select and move these images around the page, but once they are linked to my documents, I can't sele
-
11/9/07 6:48:43 PM com.apple.service_helper[288] launchctl: Error unloading: org.cups.cups-lpd 11/9/07 7:19:56 PM com.apple.launchd[1] (org.cups.cups-lpd) Unknown key: SHAuthorizationRight 11/9/07 7:34:27 PM com.apple.launchd[1] (org.postfix.master)