Problem using "CASE" (trying convert from IIF in access)
I try convert a function IIF from ACCESS, replacing "IIF" for a "CASE", and get me a error in "SELECT line 19", can any1 help me ?
PROCEDURE [GetInfo_ASN]
@P1 smalldatetime -- Data de Entrada
AS
BEGIN
SET NOCOUNT ON;
SELECT
dados.dbo.GVAL_PEDIDOS.AVAP_Id AS [Reg SIGA],
dados.dbo.GVAL_BEM.AVAB_Codigo AS [Cod Bem],
select case when (SUBSTRING([dados.dbo.AVAB_Codigo],5,1)="0")
then Right([dados.dbo.AVAB_Codigo],6)
else (SUBSTRING([dados.dbo.AVAB_Codigo],5,1) & Right([dados.dbo.AVAB_Codigo],6))
end as [UE/UL],
dados.dbo.GVAL_PEDIDOS.AVAP_dtEnvio AS [Dt Envio],
dados.dbo._FREGUESAS.F_Distrito AS Distrito,
dados.dbo._FREGUESAS.F_Concelho AS Concelho
FROM (dados.dbo.GVAL_PEDIDOS INNER JOIN dados.dbo.GVAL_BEM
ON GVAL_PEDIDOS.AVAP_Codigo = GVAL_BEM.AVAB_Codigo) INNER JOIN _FREGUESAS
ON GVAL_BEM.AVAB_DCF = _FREGUESAS.F_Codigo
WHERE (((GVAL_PEDIDOS.AVAP_dtEnvio)>=@P1)
AND ((GVAL_PEDIDOS.AVAP_Status)=7)
AND ((GVAL_PEDIDOS.AVAP_Origem)='7521'));
Remove the SELECT in front of your CASE Expression, then it should work =>
PROCEDURE [GetInfo_ASN]
@P1 smalldatetime -- Data de Entrada
AS
BEGIN
SET NOCOUNT ON;
SELECT
dados.dbo.GVAL_PEDIDOS.AVAP_Id AS [Reg SIGA],
dados.dbo.GVAL_BEM.AVAB_Codigo AS [Cod Bem],
case when (SUBSTRING([dados.dbo.AVAB_Codigo],5,1)="0")
then Right([dados.dbo.AVAB_Codigo],6)
else (SUBSTRING([dados.dbo.AVAB_Codigo],5,1) & Right([dados.dbo.AVAB_Codigo],6))
end as [UE/UL],
dados.dbo.GVAL_PEDIDOS.AVAP_dtEnvio AS [Dt Envio],
dados.dbo._FREGUESAS.F_Distrito AS Distrito,
dados.dbo._FREGUESAS.F_Concelho AS Concelho
FROM (dados.dbo.GVAL_PEDIDOS INNER JOIN dados.dbo.GVAL_BEM
ON GVAL_PEDIDOS.AVAP_Codigo = GVAL_BEM.AVAB_Codigo) INNER JOIN _FREGUESAS
ON GVAL_BEM.AVAB_DCF = _FREGUESAS.F_Codigo
WHERE (((GVAL_PEDIDOS.AVAP_dtEnvio)>=@P1)
AND ((GVAL_PEDIDOS.AVAP_Status)=7)
AND ((GVAL_PEDIDOS.AVAP_Origem)='7521'));
Olaf Helper
[ Blog] [ Xing] [ MVP]
Similar Messages
-
Dear all,
Is there any tool to convert from oracle to access?
Thanks for advance !
charaI will describe two ways here.
1) By toad
Toad outputs the result in a grid. You can save it as csv file and then can import in access database.
2) By sql* plus spooling
SQL> set heading off
SQL> spool dept.txt
SQL> select 'Dept Number,Dept Name,Location' from dual
2 union all
3 select deptno||','||dname||','||loc from dept;
SQL> spool off
Now you got dept.txt as csv file. Import this file in access database. -
Problem using xsl to convert xml to xml
I have and xml doc that has a format similar to this:
<HEADER>
<ORDER_NUMBER>
<ORDER_DATE>
<LINE>
<LINE_NUMBER>
<ITEM>
</LINE>
<LINE_NUMBER>
<ITEM>
</LINE>
</HEADER>
When I convert from xml to xml using xsl I do not get the second occurence of <LINE>, everything else looks fine.
Please help.
Thanks, JohnHi John,
I also have problems to convert xml to xml by xsl at command-line interface as follows.
CLASSPATH=$ORACLE_HOME/rdbms/jlib/xsu12.jar:$ORACLE_HOME/lib/xmlparserv2.jar:$ORACLE_HOME/jdbc/lib/classes12.zip
java oracle.xml.parser.v2.oraxsl source.xml -s myxsl.xsl destination.xml
and I received error message as "Error occurred while processing myxsl.xsl: Error in expression: '*|/'."
Actually, the source xml file and xsl script I used were copied from the book "Professional XML".
Do you know what's the problem and could you show me setting for the classpath?
Thanks.
Yi -
Problems Using the iTunes store from AppleTV
Over the last month I've had large problems downloading content from the iTunes store using my AppleTV. For instance 3 weeks ago it took several attempts to rent a movie. Ever since Saturday I've been trying to purchase a season pass for Season 3 of Robot Chicken. Every time it would say "This content is being modified, please try again later." Got that again 10 minutes ago, got fed up and I went and pulled on the iTunes store on my computer and tried and it went right through, just like it should. I wanted to go this route, because if I buy it on AppleTV new episodes will be downloaded to it (I've found a way to download season pass shows I bought on AppleTV to my computer first, but not a way to do the reverse).
More importantly, I've had just numerous problems and errors purchasing content from AppleTV. As iTunes on a computer doesn't have these issues, the only thing I can figure out is that the software still isn't right.
AndyI posted a similar problem last week about the inability to move past "See All" in Podcasts. What was happening to me was that I would click "See All" and I'd get a message saying the request could not be completed. After getting no response here, I called up an Apple Expert about the problem. When I described the problem, the Expert tried it on her Touch and ran into the same problem. She called up the iTunes folks and reported that there was a problem and they were working on getting it fixed.
A couple of days later, instead of getting the "Your response could not be completed" it went to the default Music section as you describe. They must be working on it, but don't know why it hasn't been fixed yet. The Apple Expert said to call back if the problem persists, but I haven't had the time yet. -
Problem using CASE within SELECT in a standard REPORT region
I'm trying to do a CASE-oriented SELECT within a standard REPORT region and the parser is rejecting the SQL statement.
The code I'm using is the following:
SELECT
CASE
WHEN INSTR(citation, '@') > 0 THEN
SUBSTR(citation, 1, INSTR(citation, '@')-1)
|| ':'
|| SUBSTR(citation, INSTR(citation, '@')+1,
LENGTH(citation) - INSTR(citation, '@'))
ELSE citation
END
FROM citation
WHERE obj_table_cd = 'FI'
AND obj_id = :P41_FIND_ID
ORDER BY CITATION
The parser says the (case .... ) is invalid, use column alias. The query works correctly when using SQL_Developer and SQL*PLUS.
My intention is to replace an '@' with ':' within the citation text. The standard citation format should have a colon, but this causes problems with AppExpress, hence the substitution situation.
Any insights on this or on another way to achieve the purpose?
Thanks,
GeorgeGeorge,
You should give a column alias after the END of the case statement:
SELECT
CASE
WHEN INSTR(citation, '@') > 0 THEN
SUBSTR(citation, 1, INSTR(citation, '@')-1)
|| ':'
|| SUBSTR(citation, INSTR(citation, '@')+1,
LENGTH(citation) - INSTR(citation, '@'))
ELSE citation
END citation_col
FROM citation
WHERE obj_table_cd = 'FI'
AND obj_id = :P41_FIND_ID
ORDER BY CITATIONSam -
Using case pull infor from one of two columns
how can I use the case statement to pull data from rows that are grouped together from a table? or is there a way to use if..then?
my incorrect , unfinished query.....
select t1.col1 from tab1 t1,tab2 t2
where
t1.col1= t2.col1 and
t1.col1= < if I find an 'x' in t2.col2 then return all t1 rows from that group that have x's in corresponding t2.col2
else return all rows that have an x's in corresponding t2.col3>
group by t1.col1One table has data like this:
STG_CLAIMANT_XREF
SRC_EVENT_NUMBER SRC_CLAIM_NUMBER SRC_CLMT_NO STG_CLAIM_TYPE
0040283362 00402833620001 0001 112
0040283362 00402833620002 0002 111
0040283362 00402833620003 0003 112
0040283362 00402833620050 0050 115The above represents one group of data from a group by SRC_EVENT_NUMBER,
a subset of groups from the whole table.
The other has data like this:
CLAIMTYPE_X_BI_PD
CODE_ID PD_TYPE BI_TYPE
110 -1
111 -1
112 -1
119 -1I want to run through the 1st table and match the STG_CLAIM_TYPEs to the CODE_IDs
in the second table.
I'm going to join STG_CLAIM_TYPE = CODE_ID.
If ANY rows in the first table have STG_CLAIM_TYPEs with values in the PD_TYPE col in the second table than for that group I can ONLY return the rows that have STG_CLAIM_TYPEs = 111 for example.
However, if No rows of type 111 exist but rows STG_CLAIM_TYPEs = 111 exist (STG_CLAIM_TYPEs with values in the BI_TYPE col) Than I can only return rows that have STG_CLAIM_TYPEs = 112
my first try was a query that worked but returned both type out of each group. It was
select xr.SRC_EVENT_NUMBER, xr.SRC_CLAIM_NUMBER, xr.STG_CLAIM_TYPE
from STG_CLAIMANT_XREF xr, CLAIMTYPE_X_BI_PD BP
where
xr.STG_CLAIM_TYPE = bp.CODE_ID
and
(bp.PD_TYPE = -1 or bp.BI_TYPE = -1)
group by xr.SRC_EVENT_NUMBER, xr.SRC_CLAIM_NUMBER, xr.STG_CLAIM_TYPE;
will return rows 1,2,& 3. I need only 1 & 3 or just 2.
I figured using a case statement would help me solve this issue but I am usure of how to
implement it.
What would you suggest?
Message was edited by:
user623359 -
I just received an iPad as a gift on Tue. Thru iTunes downloaded a few free Yoga video clips by Tara Stiles. Then last night tried to download on from Yoga Today and it has stuck on the medical /exercise disclaimer. I cannot get past this. Please help!,
Ipad User Guide
Try a Reset...
Press and hold the Sleep/Wake button and the Home button at the same time for at least ten seconds, until the Apple logo appears. Release the Buttons.
http://support.apple.com/kb/ht1430 -
Problem using iPhoto via NAS from 2 computers
I have an iPhoto library stored on a Network Attached Storage (NAS) drive on my home wireless LAN. My wife and I each have a MacBook that we use to open the library from the NAS. I recently added some photos to the library using my MacBook. When I open the same library from my wife's MacBook, I cannot see all of the photos. In fact, the list of Events that you see when I open the library from my MacBook is very different from what we see when we open the same library from her MacBook. When I open it I can see 497 photos, but when she opens it we can only see 70 photos.
Can anyone help with this issue? Thank you!!would I be able to use the photos across the network?
What do you mean by “use”? Certainly wireless is perfectly good for viewing another Library via iPhoto Sharing.
If you want the other user to be able to see the pics, but not add to, change or alter your library, then enable Sharing in your iPhoto (Preferences -> Sharing), leave iPhoto running and move to the other machine. There, enable 'Look For Shared Libraries'. Your Library will appear in the other source pane.
Any user can drag a pic from the Shared Library to their own in the iPhoto Window.
Remember iPhoto must be running in both machines for this to work.
If, however, you want the other two machines to have full access - i.e. Ownership - of the Library, then bluntly, I would not trust my iPhoto Library on a wireless connection.
Regards
TD -
Windows XP SP3
2gb intel, 80gb Hdd, 2gb RAM
At one time I had no problem accessing hotmail email.
I dont know if the changed occurred after a firefox update or
if maybe a grandkid changed somethingClear the cache and the cookies from sites that cause problems.
"Clear the Cache":
* Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
"Remove Cookies" from sites causing problems:
* Tools > Options > Privacy > Cookies: "Show Cookies"
Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
*Don't make any changes on the Safe mode start window.
*https://support.mozilla.com/kb/Safe+Mode
Thunderbird -
Problems using Animation Presets from Bridge
Dear all,
Using the CC range, and recently had a new problem using the animation presets from Adobe Bridge. I'm in After Effects as normal, and then go to the Animations drop down, click browse recent presets to open up Bridge, and then as normal use Bridge to select the preset I want. Double click it whilst highlighting my selected track in AE, and then AE reports this:
And the same error codes no matter what effect/animation I choose, whether its to an image, video or text.
If I just go, in AE, to my Recent Animation Presets, and choose one from there it loads up absolutely fine. But this is massively annoying. Any ideas? This problem appeared out of nowhere.This is fixed in the After Effects 2014.2 (13.2) update, which is now available.
Details here: http://adobe.ly/1IVopxh -
Problem to connect to mysql from servlet using a javabean
Hi,
I'm new here and beginner on java to.
I have problem to connect to MySql database, by a connection javabean.
It's the following: a HTML page calls a servlet and this servlet imports the package connection javabean.
It has no problem when I establish the connection inside the servlet, with all its methods (public and private). But i want to separate the code connection from servlet.
Detail: there is no problem, using the javabean to connect to MS Access database.
I put "mysql-connector-java-3.1.12-bin.jar" file inside WEB-INF/lib application and common/lib directories.
I set the classpath:
SET CLASSPATH=%CATALINA_HOME%\COMMON\LIB\mysql-connector-java-3.1.12-bin.jar;%CLASSPATH%
I think that the servlet cannot create an instance of javabean, because passed by catch exception of the servlet init method.
But I don't know why.
Please Why?
Below there are the fragment of errors, servlet code e javabean code.
Thank you.
Zovao.
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
java.lang.NullPointerException
at CadServletFileBeanConexArq.doPost(CadServletFileBeanConexArq.java:47)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:716)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:809)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:200)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:146)
Note: The line 47 is calling insertIntoDB javabean method.
========///////////////===============
// Here is the servlet CadServletFileBeanConexArq.java
import javax.servlet.*;
import javax.servlet.http.*;
import java.util.*;
import java.sql.*;
import conJdbc.*;
public class CadServletFileBeanConexArq extends HttpServlet {
public ConexPed connect = null;
private String driver = "com.mysql.jdbc.Driver";
private String URL = "jdbc:mysql://localhost:3306/cadastro";
public void init( ServletConfig config )
throws ServletException
super.init( config );
try
connect = new ConexPed(driver, URL, "monty", "some_pass");
catch ( Exception e )
e.printStackTrace();
connect = null;
public void doPost( HttpServletRequest req,
HttpServletResponse res )
throws ServletException
boolean success = true;
String email, nome, sobrenome, produto, valor;
email = req.getParameter( "Email" );
nome = req.getParameter( "Nome" );
sobrenome = req.getParameter( "Sobrenome" );
produto = req.getParameter( "Produto" );
valor = req.getParameter( "Valor" );
res.setContentType( "text/html" );
if ( email.length() > 0 && nome.length() > 0 && sobrenome.length() > 0 && valor.length() > 0 )
/* inserting data */
success = connect.insertIntoDB(
"'" + email + "','" + nome + "','" + sobrenome + "','" + produto + "'", Double.parseDouble(valor) );
//closing connection
public void destroy()
connect.fecharConexao();
=============///////////////============
Here is the JavaBean.
package conJdbc;
import java.sql.*;
public class ConexPed
public Connection connection;
public Statement statement;
public ConexPed (String driver, String urlServidor, String user, String password)
try
Class.forName(driver);
connection = DriverManager.getConnection(urlServidor,user,password);
catch (ClassNotFoundException ex)
System.out.println("N�o foi poss�vel encontrar a classe do Driver: " + driver);
catch (SQLException ex)
System.out.println("N�o foi poss�vel conectar ao servidor");
try
statement = connection.createStatement();
catch (SQLException ex)
System.out.println("N�o foi poss�vel criar a statement");
*Inserting data to database
public synchronized boolean insertIntoDB( String stringtoinsert, double valor)
try
statement.executeUpdate( "INSERT INTO pedido values (" + stringtoinsert + " , " + valor + ");" );
catch ( Exception e ) {
System.err.println(
"ERROR: Problemas ao adicionar nova entrada" );
e.printStackTrace();
return false;
return true;
* Close statement.
public void fecharStatement()
try
statement.close();
catch (SQLException ex)
ex.printStackTrace();
* close database
public void fecharConexao()
try
connection.close();
catch (SQLException ex)
ex.printStackTrace();
}Hi,
I'm new here and beginner on java to.
I have problem to connect to MySql database, by a connection javabean.
It's the following: a HTML page calls a servlet and this servlet imports the package connection javabean.
It has no problem when I establish the connection inside the servlet, with all its methods (public and private). But i want to separate the code connection from servlet.
Detail: there is no problem, using the javabean to connect to MS Access database.
I put "mysql-connector-java-3.1.12-bin.jar" file inside WEB-INF/lib application and common/lib directories.
I set the classpath:
SET CLASSPATH=%CATALINA_HOME%\COMMON\LIB\mysql-connector-java-3.1.12-bin.jar;%CLASSPATH%
I think that the servlet cannot create an instance of javabean, because passed by catch exception of the servlet init method.
But I don't know why.
Please Why?
Below there are the fragment of errors, servlet code e javabean code.
Thank you.
Zovao.
HTTP Status 500 -
type Exception report
message
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
java.lang.NullPointerException
at CadServletFileBeanConexArq.doPost(CadServletFileBeanConexArq.java:47)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:716)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:809)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:200)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:146)
Note: The line 47 is calling insertIntoDB javabean method.
========///////////////===============
// Here is the servlet CadServletFileBeanConexArq.java
import javax.servlet.*;
import javax.servlet.http.*;
import java.util.*;
import java.sql.*;
import conJdbc.*;
public class CadServletFileBeanConexArq extends HttpServlet {
public ConexPed connect = null;
private String driver = "com.mysql.jdbc.Driver";
private String URL = "jdbc:mysql://localhost:3306/cadastro";
public void init( ServletConfig config )
throws ServletException
super.init( config );
try
connect = new ConexPed(driver, URL, "monty", "some_pass");
catch ( Exception e )
e.printStackTrace();
connect = null;
public void doPost( HttpServletRequest req,
HttpServletResponse res )
throws ServletException
boolean success = true;
String email, nome, sobrenome, produto, valor;
email = req.getParameter( "Email" );
nome = req.getParameter( "Nome" );
sobrenome = req.getParameter( "Sobrenome" );
produto = req.getParameter( "Produto" );
valor = req.getParameter( "Valor" );
res.setContentType( "text/html" );
if ( email.length() > 0 && nome.length() > 0 && sobrenome.length() > 0 && valor.length() > 0 )
/* inserting data */
success = connect.insertIntoDB(
"'" + email + "','" + nome + "','" + sobrenome + "','" + produto + "'", Double.parseDouble(valor) );
//closing connection
public void destroy()
connect.fecharConexao();
=============///////////////============
Here is the JavaBean.
package conJdbc;
import java.sql.*;
public class ConexPed
public Connection connection;
public Statement statement;
public ConexPed (String driver, String urlServidor, String user, String password)
try
Class.forName(driver);
connection = DriverManager.getConnection(urlServidor,user,password);
catch (ClassNotFoundException ex)
System.out.println("N�o foi poss�vel encontrar a classe do Driver: " + driver);
catch (SQLException ex)
System.out.println("N�o foi poss�vel conectar ao servidor");
try
statement = connection.createStatement();
catch (SQLException ex)
System.out.println("N�o foi poss�vel criar a statement");
*Inserting data to database
public synchronized boolean insertIntoDB( String stringtoinsert, double valor)
try
statement.executeUpdate( "INSERT INTO pedido values (" + stringtoinsert + " , " + valor + ");" );
catch ( Exception e ) {
System.err.println(
"ERROR: Problemas ao adicionar nova entrada" );
e.printStackTrace();
return false;
return true;
* Close statement.
public void fecharStatement()
try
statement.close();
catch (SQLException ex)
ex.printStackTrace();
* close database
public void fecharConexao()
try
connection.close();
catch (SQLException ex)
ex.printStackTrace();
} -
CASE and CONVERT in Q of Q / CF7
Am converting CF5 code to CF7, and from documentation,
understand you can do more things in Query-of-Queries in CF7 than
you could in CF5.
But one QofQ that worked in CF5 won't work in CF7, returns an
error. It uses a variable that on occassion causes a division by
zero. This was never a problem with CF5, but CF7 won't take it. In
a normal query, I would handle by using a CASE statement. So my
question is: CAN YOU USE "CASE" statements in CF7 QofQ's? And what
about CONVERT or CAST? Can you use those as well, in CF7 QofQ's?
Thanks for any help/advice.
GaryThanks to you both for confirming what my testing and
doc-reading seemed to confirm. That you can't use CASE or CONVERT
in a CF7 QofQ. I think you're right about CAST but not sure if that
will solve my problem. QofQ in CF5 was "flaky" enough to permit a
division by zero. But I had to "account" for it in my
<CFOUTPUT>, in order to get the report to run and print 0%.
Here's my situation. Current CF5 (and CF7) in main query, I'm
calculating the values of a number of variables, let's say one of
them is A, the other B. In the old CF5 QofQ, I could do an "A
divided by B" as C, where C was my Percent Complete. And if B was
ever ZERO, the CF5 QofQ would still run. For some reason, QofQ in
CF5 was "flaky" enough to permit this.
But in my <CFOUTPUT>, I would have to check the value
of B. If it was equal to zero, then I'd set C = to "0%" or "N/A",
and output the results, which printed fine on the report. If B was
not = to ZERO, then I'd re-calculate the percentage, and set C = A
divided by B, and output "C%" in the report.
But with CF7, the template throws an error in the QofQ, when
it encounters an instance where B = 0. The error message is:
"Query Of Queries runtime error. java.lang.Double ->
BigDecimal "
I can resolve by adding a HAVING statement to first query,
only accepting records where B > 0. Problem with that, is I lose
the display of the record that I would like to have shown, but
showing 0%, versus not bein there at all. I did read in the docs,
before posting message, that CAST can be used in CF7 QofQ, but not
sure if that will resolve the problem.
I'll figure something out, but the main reason for posting
the initial question was to verify from others, that CASE and
CONVERT can NOT be used in CF7's QofQ's. The docs simply didn't
mention one way or the other regarding these 2 query functions.
If you or anyone else has any other suggestions, I would be
most grateful. Otherwise, as mentioned, will hopefully be able to
figure something out. Thanks again,
Gary -
Problem using integrated WLS in jDeveloper 11.1.2.1.0
Hey there,
I got a problem using the integrated WLS from the jDeveloper 11.1.2.1.0.
After trying to deploy an ADF Web Application on the integrated WLS, I get the following log message:
LOG
+[Waiting for the domain to finish building...]+
+[11:26:04 AM] Creating Integrated Weblogic domain...+
+[11:28:13 AM] Extending Integrated Weblogic domain...+
+[11:30:06 AM] Integrated Weblogic domain processing completed successfully.+
*** Using HTTP port 7101 ***
*** Using SSL port 7102 ***
+/home/robin/.jdeveloper/system11.1.2.1.38.60.81/DefaultDomain/bin/startWebLogic.sh+
+[waiting for the server to complete its initialization...]+
+.+
+.+
JAVA Memory arguments: -Xms256m -Xmx512m -XX:CompileThreshold=8000 -XX:PermSize=128m -XX:MaxPermSize=512m
+.+
WLS Start Mode=Development
+.+
CLASSPATH=/home/robin/bin/wls/oracle_common/modules/oracle.jdbc_11.1.1/ojdbc6dms.jar:/home/robin/bin/wls/patch_wls1211/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/home/robin/bin/wls/patch_oepe100/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/home/robin/bin/wls/patch_ocp371/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/home/robin/bin/wls/jdk160_29/lib/tools.jar:/home/robin/bin/wls/wlserver_12.1/server/lib/weblogic_sp.jar:/home/robin/bin/wls/wlserver_12.1/server/lib/weblogic.jar:/home/robin/bin/wls/modules/features/weblogic.server.modules_12.1.1.0.jar:/home/robin/bin/wls/wlserver_12.1/server/lib/webservices.jar:/home/robin/bin/wls/modules/org.apache.ant_1.7.1/lib/ant-all.jar:/home/robin/bin/wls/modules/net.sf.antcontrib_1.1.0.0_1-0b2/lib/ant-contrib.jar:/home/robin/bin/wls/oracle_common/modules/oracle.jrf_11.1.1/jrf.jar:/home/robin/bin/wls/wlserver_12.1/common/derby/lib/derbyclient.jar:/home/robin/bin/wls/wlserver_12.1/server/lib/xqrl.jar
+.+
PATH=/home/robin/bin/wls/wlserver_12.1/server/bin:/home/robin/bin/wls/modules/org.apache.ant_1.7.1/bin:/home/robin/bin/wls/jdk160_29/jre/bin:/home/robin/bin/wls/jdk160_29/bin:/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.5.3:/usr/games/bin
+.+
+* To start WebLogic Server, use a username and *+
+* password assigned to an admin-level user. For *+
+* server administration, use the WebLogic Server *+
+* console at http://hostname:port/console *+
starting weblogic with Java version:
java version "1.6.0_29"
Java(TM) SE Runtime Environment (build 1.6.0_29-b11)
Java HotSpot(TM) Client VM (build 20.4-b02, mixed mode)
Starting WLS with line:
+/home/robin/bin/wls/jdk160_29/bin/java -client -Xms256m -Xmx512m -XX:CompileThreshold=8000 -XX:PermSize=128m -XX:MaxPermSize=512m -Dweblogic.Name=DefaultServer -Djava.security.policy=/home/robin/bin/wls/wlserver_12.1/server/lib/weblogic.policy -Djavax.net.ssl.trustStore=/tmp/trustStore7618453572230021232.jks -Dhttp.proxyHost=emea-proxy.uk.oracle.com -Dhttp.proxyPort=80 -Dhttp.nonProxyHosts=localhost|localhost.localdomain|127.0.0.1|::1|MUELLER-BADY-GENTOO|MUELLER-BADY-GENTOO -Dhttps.proxyHost=emea-proxy.uk.oracle.com -Dhttps.proxyPort=80 -Doracle.jdeveloper.adrs=true -Dweblogic.nodemanager.ServiceEnabled=true -Xverify:none -Djava.endorsed.dirs=/home/robin/bin/wls/jdk160_29/jre/lib/endorsed:/home/robin/bin/wls/wlserver_12.1/endorsed -da -Dplatform.home=/home/robin/bin/wls/wlserver_12.1 -Dwls.home=/home/robin/bin/wls/wlserver_12.1/server -Dweblogic.home=/home/robin/bin/wls/wlserver_12.1/server -Djps.app.credential.overwrite.allowed=true -Dcommon.components.home=/home/robin/bin/wls/oracle_common -Djrf.version=11.1.1 -Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.Jdk14Logger -Ddomain.home=/home/robin/.jdeveloper/system11.1.2.1.38.60.81/DefaultDomain -Djrockit.optfile=/home/robin/bin/wls/oracle_common/modules/oracle.jrf_11.1.1/jrocket_optfile.txt -Doracle.server.config.dir=/home/robin/.jdeveloper/system11.1.2.1.38.60.81/DefaultDomain/config/fmwconfig/servers/DefaultServer -Doracle.domain.config.dir=/home/robin/.jdeveloper/system11.1.2.1.38.60.81/DefaultDomain/config/fmwconfig -Digf.arisidbeans.carmlloc=/home/robin/.jdeveloper/system11.1.2.1.38.60.81/DefaultDomain/config/fmwconfig/carml -Digf.arisidstack.home=/home/robin/.jdeveloper/system11.1.2.1.38.60.81/DefaultDomain/config/fmwconfig/arisidprovider -Doracle.security.jps.config=/home/robin/.jdeveloper/system11.1.2.1.38.60.81/DefaultDomain/config/fmwconfig/jps-config.xml -Doracle.deployed.app.dir=/home/robin/.jdeveloper/system11.1.2.1.38.60.81/DefaultDomain/servers/DefaultServer/tmp/_WL_user -Doracle.deployed.app.ext=/- -Dweblogic.alternateTypesDirectory=/home/robin/bin/wls/oracle_common/modules/oracle.ossoiap_11.1.1,/home/robin/bin/wls/oracle_common/modules/oracle.oamprovider_11.1.1 -Djava.protocol.handler.pkgs=oracle.mds.net.protocol -Dweblogic.jdbc.remoteEnabled=false -Dwsm.repository.path=/home/robin/.jdeveloper/system11.1.2.1.38.60.81/DefaultDomain/oracle/store/gmds -Dweblogic.management.discover=true -Dwlw.iterativeDev= -Dwlw.testConsole= -Dwlw.logErrorsToConsole= -Dweblogic.ext.dirs=/home/robin/bin/wls/patch_wls1211/profiles/default/sysext_manifest_classpath:/home/robin/bin/wls/patch_oepe100/profiles/default/sysext_manifest_classpath:/home/robin/bin/wls/patch_ocp371/profiles/default/sysext_manifest_classpath weblogic.Server+
+<Feb 10, 2012 11:30:09 AM CET> <Info> <Security> <BEA-090905> <Disabling CryptoJ JCE Provider self-integrity check for better startup performance. To enable this check, specify -Dweblogic.security.allowCryptoJDefaultJCEVerification=true>+
+<Feb 10, 2012 11:30:10 AM CET> <Info> <Security> <BEA-090906> <Changing the default Random Number Generator in RSA CryptoJ from ECDRBG to FIPS186PRNG. To disable this change, specify -Dweblogic.security.allowCryptoJDefaultPRNG=true>+
+<Feb 10, 2012 11:30:11 AM CET> <Info> <WebLogicServer> <BEA-000377> <Starting WebLogic Server with Java HotSpot(TM) Client VM Version 20.4-b02 from Sun Microsystems Inc..>+
+<Feb 10, 2012 11:30:12 AM CET> <Info> <Management> <BEA-141107> <Version: WebLogic Server 12.1.1.0 Wed Dec 7 08:40:57 PST 2011 1445491 >+
+<Feb 10, 2012 11:30:15 AM CET> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING.>+
+<Feb 10, 2012 11:30:15 AM CET> <Info> <WorkManager> <BEA-002900> <Initializing self-tuning thread pool.>+
+<Feb 10, 2012 11:30:15 AM CET> <Notice> <Log Management> <BEA-170019> <The server log file /home/robin/.jdeveloper/system11.1.2.1.38.60.81/DefaultDomain/servers/DefaultServer/logs/DefaultServer.log is opened. All server side log events will be written to this file.>+
Feb 10, 2012 11:30:24 AM oracle.security.jps.internal.keystore.file.FileKeyStoreManager saveKeyStore
WARNING: Failed to save farm keystore. Reason {0}
Feb 10, 2012 11:30:24 AM oracle.security.jps.internal.keystore.file.FileKeyStoreManager createKeyStore
WARNING: Failed to save farm keystore. Reason {0}
oracle.security.jps.service.keystore.KeyStoreServiceException: JPS-06513: Failed to save farm keystore. Reason
+ at oracle.security.jps.internal.keystore.file.FileKeyStoreManager.createKeyStore(FileKeyStoreManager.java:309)+
+ at oracle.security.jps.internal.keystore.file.FileKeyStoreServiceImpl.doInit(FileKeyStoreServiceImpl.java:95)+
+ at oracle.security.jps.internal.keystore.file.FileKeyStoreServiceImpl.<init>(FileKeyStoreServiceImpl.java:73)+
+ at oracle.security.jps.internal.keystore.file.FileKeyStoreServiceImpl.<init>(FileKeyStoreServiceImpl.java:63)+
+ at oracle.security.jps.internal.keystore.KeyStoreProvider.getInstance(KeyStoreProvider.java:157)+
+ at oracle.security.jps.internal.keystore.KeyStoreProvider.getInstance(KeyStoreProvider.java:64)+
+ at oracle.security.jps.internal.core.runtime.ContextFactoryImpl.findServiceInstance(ContextFactoryImpl.java:139)+
+ at oracle.security.jps.internal.core.runtime.ContextFactoryImpl.getContext(ContextFactoryImpl.java:170)+
+ at oracle.security.jps.internal.core.runtime.ContextFactoryImpl.getContext(ContextFactoryImpl.java:191)+
+ at oracle.security.jps.internal.core.runtime.JpsContextFactoryImpl.getContext(JpsContextFactoryImpl.java:132)+
+ at oracle.security.jps.internal.core.runtime.JpsContextFactoryImpl.getContext(JpsContextFactoryImpl.java:127)+
+ at oracle.security.jps.internal.policystore.PolicyUtil$1.run(PolicyUtil.java:850)+
+ at oracle.security.jps.internal.policystore.PolicyUtil$1.run(PolicyUtil.java:844)+
+ at java.security.AccessController.doPrivileged(Native Method)+
+ at oracle.security.jps.internal.policystore.PolicyUtil.getDefaultPolicyStore(PolicyUtil.java:844)+
+ at oracle.security.jps.internal.policystore.PolicyDelegationController.<init>(PolicyDelegationController.java:291)+
+ at oracle.security.jps.internal.policystore.PolicyDelegationController.<init>(PolicyDelegationController.java:284)+
+ at oracle.security.jps.internal.policystore.JavaPolicyProvider.<init>(JavaPolicyProvider.java:270)+
+ at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)+
+ at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)+
+ at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)+
+ at java.lang.reflect.Constructor.newInstance(Constructor.java:513)+
+ at java.lang.Class.newInstance0(Class.java:355)+
+ at java.lang.Class.newInstance(Class.java:308)+
+ at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.loadOPSSPolicy(CommonSecurityServiceManagerDelegateImpl.java:1343)+
+ at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.initialize(CommonSecurityServiceManagerDelegateImpl.java:1022)+
+ at weblogic.security.service.SecurityServiceManager.initialize(SecurityServiceManager.java:873)+
+ at weblogic.security.SecurityService.start(SecurityService.java:148)+
+ at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)+
+ at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)+
+ at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)+
+<Feb 10, 2012 11:30:24 AM CET> <Error> <Security> <BEA-090892> <The loading of OPSS java security policy provider failed due to exception, see the exception stack trace or the server log file for root cause. If still see no obvious cause, enable the debug flag -Djava.security.debug=jpspolicy to get more information. Error message: oracle.security.jps.JpsException: [PolicyUtil] Exception while getting default policy Provider>+
+<Feb 10, 2012 11:30:24 AM CET> <Critical> <WebLogicServer> <BEA-000386> <Server subsystem failed. Reason: weblogic.security.SecurityInitializationException: The loading of OPSS java security policy provider failed due to exception, see the exception stack trace or the server log file for root cause. If still see no obvious cause, enable the debug flag -Djava.security.debug=jpspolicy to get more information. Error message: oracle.security.jps.JpsException: [PolicyUtil] Exception while getting default policy Provider+
+weblogic.security.SecurityInitializationException: The loading of OPSS java security policy provider failed due to exception, see the exception stack trace or the server log file for root cause. If still see no obvious cause, enable the debug flag -Djava.security.debug=jpspolicy to get more information. Error message: oracle.security.jps.JpsException: [PolicyUtil] Exception while getting default policy Provider+
+ at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.loadOPSSPolicy(CommonSecurityServiceManagerDelegateImpl.java:1402)+
+ at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.initialize(CommonSecurityServiceManagerDelegateImpl.java:1022)+
+ at weblogic.security.service.SecurityServiceManager.initialize(SecurityServiceManager.java:873)+
+ at weblogic.security.SecurityService.start(SecurityService.java:148)+
+ at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)+
+ Truncated. see log file for complete stacktrace+
+Caused By: oracle.security.jps.JpsRuntimeException: oracle.security.jps.JpsException: [PolicyUtil] Exception while getting default policy Provider+
+ at oracle.security.jps.internal.policystore.PolicyDelegationController.<init>(PolicyDelegationController.java:293)+
+ at oracle.security.jps.internal.policystore.PolicyDelegationController.<init>(PolicyDelegationController.java:284)+
+ at oracle.security.jps.internal.policystore.JavaPolicyProvider.<init>(JavaPolicyProvider.java:270)+
+ at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)+
+ at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)+
+ Truncated. see log file for complete stacktrace+
+Caused By: oracle.security.jps.JpsException: [PolicyUtil] Exception while getting default policy Provider+
+ at oracle.security.jps.internal.policystore.PolicyUtil.getDefaultPolicyStore(PolicyUtil.java:899)+
+ at oracle.security.jps.internal.policystore.PolicyDelegationController.<init>(PolicyDelegationController.java:291)+
+ at oracle.security.jps.internal.policystore.PolicyDelegationController.<init>(PolicyDelegationController.java:284)+
+ at oracle.security.jps.internal.policystore.JavaPolicyProvider.<init>(JavaPolicyProvider.java:270)+
+ at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)+
+ Truncated. see log file for complete stacktrace+
+Caused By: java.security.PrivilegedActionException: oracle.security.jps.JpsException: [PolicyUtil] Unable to obtain default JPS Context!+
+ at java.security.AccessController.doPrivileged(Native Method)+
+ at oracle.security.jps.internal.policystore.PolicyUtil.getDefaultPolicyStore(PolicyUtil.java:844)+
+ at oracle.security.jps.internal.policystore.PolicyDelegationController.<init>(PolicyDelegationController.java:291)+
+ at oracle.security.jps.internal.policystore.PolicyDelegationController.<init>(PolicyDelegationController.java:284)+
+ at oracle.security.jps.internal.policystore.JavaPolicyProvider.<init>(JavaPolicyProvider.java:270)+
+ Truncated. see log file for complete stacktrace+
+Caused By: oracle.security.jps.JpsException: [PolicyUtil] Unable to obtain default JPS Context!+
+ at oracle.security.jps.internal.policystore.PolicyUtil$1.run(PolicyUtil.java:860)+
+ at oracle.security.jps.internal.policystore.PolicyUtil$1.run(PolicyUtil.java:844)+
+ at java.security.AccessController.doPrivileged(Native Method)+
+ at oracle.security.jps.internal.policystore.PolicyUtil.getDefaultPolicyStore(PolicyUtil.java:844)+
+ at oracle.security.jps.internal.policystore.PolicyDelegationController.<init>(PolicyDelegationController.java:291)+
+ Truncated. see log file for complete stacktrace+
Caused By: oracle.security.jps.service.keystore.KeyStoreServiceException: JPS-06513: Failed to save farm keystore. Reason
+ at oracle.security.jps.internal.keystore.file.FileKeyStoreManager.createKeyStore(FileKeyStoreManager.java:309)+
+ at oracle.security.jps.internal.keystore.file.FileKeyStoreServiceImpl.doInit(FileKeyStoreServiceImpl.java:95)+
+ at oracle.security.jps.internal.keystore.file.FileKeyStoreServiceImpl.<init>(FileKeyStoreServiceImpl.java:73)+
+ at oracle.security.jps.internal.keystore.file.FileKeyStoreServiceImpl.<init>(FileKeyStoreServiceImpl.java:63)+
+ at oracle.security.jps.internal.keystore.KeyStoreProvider.getInstance(KeyStoreProvider.java:157)+
+ Truncated. see log file for complete stacktrace+
+>+
+<Feb 10, 2012 11:30:24 AM CET> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FAILED.>+
+<Feb 10, 2012 11:30:24 AM CET> <Error> <WebLogicServer> <BEA-000383> <A critical service failed. The server will shut itself down.>+
+<Feb 10, 2012 11:30:24 AM CET> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FORCE_SHUTTING_DOWN.>+
Process exited.
*/LOG*
After that, I tried setting permissions for the cwallet.sso file to ugo+rwx, but this leads to the same problems as mentioned above.
My second try was to setup an external WLS 12c, but it seems to be not yet possible to connect to a WLS 12c from within jDeveloper.
Do you have any ideas ?
Thank you in advance for your help.
Regards,
RobinAfter debugging the WLS Initialisation with jdb, I recognized that there was some trouble with dependent libraries.
In the end, I solved my problem by using another OS (Ubuntu 11.10) for development. There, the WLS works out of the box, even with 64-Bit libraries.
Thank you for your help.
Regards,
Robin -
Problem using iTunes songs in slideshow
I am having a problem using a custom playlist from iTunes. I created a playlist in iTunes, pulled down the songs I wanted to include in the slideshow from the list and it worked. I tried to adjust the length of some songs by using the start and stop time on the Get Info Options tab in iTunes. That worked fine and the songs were shorter. Now that I have added a few more slides and want to adjust the length of the songs again iPhoto will not recognize the changes. Even though the start and stop boxes are no longer checked in iTunes, iPhoto still plays the shorter version of the song. I tried removing it from the custom playlist, I removed them from the iTunes playlist but nothing is working to get the song back to its original length. Can anyone offer any advice? I need to get this fixed before Saturday!
You might try creating a duplicate playlist in iTunes, "Second Try" and copy all the tracks from the first playlist to the second playlist. Now in iPhoto remove the original playlist and add the new playlist. If iPhoto thinks you are adding a different playlist, it may re-read all the tracks properly this time around.
Patrick -
Hello Apple and the iTunes Windows PC users community.
I am trying to sync films that I have converted from purchased DVD to mp4 format locally, not purchases from the online store. The mp4s all appear and play successfully in my iTunes application but will not sync across to the iPod film library folder.
For your information: I am using iTunes 11.1.3.8 on a Windows 7 64bit machine with 500GB hard disk and 8GB of Ram in the UK.
I have restored the iPod classic 160GB three times now to see if it was a hardware problem with no joy. Each time all the music restores properly as do the podcasts and all the items in TV programmes all appear to sync and work fine.
I have also tried to copy films into the TV Programmes to get around it with no joy. They always go to the films section to start with. It is just the Films library that does not sync - all others work perfectly. As a last resort I have uninstalled and re-installed iTunes with no joy either.
I am technically savvy and have gone through the itunes and ipod settings but nothing appears to make a difference - This is the first time I have had to post here as I can usually solve the majority of the ipod anomilies but this one has me flummoxed.
Has the film encoding type changed in the newest itunes update? - Has this happened to anybody else and is it a hardware, software, or operating system problem.Having uninstalled the current version 11.1.3.8 and loaded and older version of iTunes 10.7.0.21 I can now categorically confirm that the newest update seems to be causing the problem as the films and TV Programmes are syncing perfectly on this older version.
If you are going to do this please dont forget to remove the ' iTunes Library.itl' file as this stops the older versions from running as I've just found out
Maybe you are looking for
-
Install APEX 4.0 on Apple Mac
Hi, Can someone please let me know if it's possible to use an Apple Mac Mini as a dedicated Oracle Apex Server? I'm just looking for the simplest way to install Apex on a Mac Mini I would ideally like to use OSX operating system but failing that I wo
-
Saving One or Two pages from a PDF file
How do I save one or two pages from a PDF file that have been emailed to me?
-
Updatable materialized view- error with CREATE_SNAPSHOT_REPGROUP
I'm trying to create an updatable materialized view from the replication administrators account (REPADMIN). I use the assistant and in the third step (after creating the replication group and the materialized view), when the materialized view is goin
-
This is a continuation of my previous thread... [View selector|https://forums.oracle.com/forums/thread.jspa?threadID=2421463&tstart=0] May be I feel I need to be more clear on my requirement ! my requirement is..... I have a report like this weekno r
-
Question When I do a search for an image I only have a limited number of images. There used to be a ton of pictures on my screen and an unlimited amount of pictures to look through. Is there a way of changing this back to the way it used to be???