ORA-39070 Error when using datapump and writing to ASM storage
I am able to export data using datapump when i write to a file system. However, when i try to write to an ASM storage, i get the following errors.
ORA-39002: invalid operation
ORA-39070: Unable to open the log file.
ORA-29283: invalid file operation
ORA-06512: at "SYS.UTL_FILE", line 536
ORA-29283: invalid file operation
below are the steps i tooks.
create or replace directory jp_dir2 as '+DATA/DEV01/exp_dir';
grant read,write on directory jp_dir2 to jpark;
expdp username/password schemas=testdirectory=jp_dir2 dumpfile=test.dmp log=test.log
Edited by: user564785 on Aug 25, 2011 6:49 AM
google: expdp ASM
first hit:
http://asanga-pradeep.blogspot.com/2010/08/expdp-and-impdp-with-asm.html
"Log files created during expdp cannot be stored inside ASM, for log files a directory object that uses OS file system location must be given. If not following error will be thrown
ORA-39002: invalid operation
ORA-39070: Unable to open the log file.
ORA-29283: invalid file operation
ORA-06512: at "SYS.UTL_FILE", line 536
ORA-29283: invalid file operation
"
Similar Messages
-
ORA 00600 Error when using Mapviewer addJDBCTheme
Hello
I am receiveing the 600 error via my OC4J window when using mapviewers addJDBCTheme with the passTthrough boolean set to false (the query is rewitten by mapviewer to limit it to the results to the map view). If I perfrom the same query with passThrough set to true, no problems. I have a feeling this may relate to the index on my table. OC4J output for error below.
Any ideas appriciated.
Chris
Tue Aug 09 10:58:38 BST 2005 FINEST [oracle.lbs.mapserver.oms] request.getRemoteUser = null
Tue Aug 09 10:58:38 BST 2005 FINEST [oracle.lbs.mapserver.oms] request= <?xml version="1.0" standalone="yes"?>
<map_request
datasource="atrium2"
srid="81989"
width="500"
height="500"
bgcolor="#ffffff"
antialiase="true"
format="PNG_URL">
<center size="800.0">
<geoFeature>
<geometricProperty typeName="center">
<Point>
<coordinates>278872.6,187144.0</coordinates>
</Point>
</geometricProperty>
</geoFeature>
</center>
<themes>
<theme name="BUIDLING" user_clickable="false" />
<theme name="BLOCKS" user_clickable="false">
<jdbc_query
label_column="mbl_title"
spatial_column="spat_data"
label_style="TEXTBLACK"
render_style="TEST3"
jdbc_srid="81989"
datasource="atrium2"
asis="false">select spat_data, mbl_bka_id, mbl_title from WPE_SPATIAL_BLOCKS_VIEW_10G c
</jdbc_query>
</theme>
</themes>
</map_request>
Tue Aug 09 10:58:38 BST 2005 FINEST [oracle.sdovis.JSDOGeometry] exception while getting srid from a geometry node: For input string: ""
Tue Aug 09 10:58:38 BST 2005 DEBUG [oracle.lbs.mapserver.core.MapperPool] getMapper(atrium2) begins...
Tue Aug 09 10:58:38 BST 2005 DEBUG [oracle.lbs.mapserver.core.MapperPool] getMapper() succeeded.
Tue Aug 09 10:58:38 BST 2005 FINEST [oracle.sdovis.SRS] got srs object for :81989
Tue Aug 09 10:58:38 BST 2005 FINEST [oracle.lbs.mapserver.core.RealWorker] adding additional themes...
Tue Aug 09 10:58:38 BST 2005 FINEST [oracle.lbs.mapserver.core.RealWorker] adding a predefined theme BUIDLING
Tue Aug 09 10:58:38 BST 2005 FINEST [oracle.sdovis.DBMapMaker] adding predefined theme [name=BUIDLING]
Tue Aug 09 10:58:38 BST 2005 FINEST [oracle.lbs.mapserver.core.RealWorker] adding a JDBC Theme:
ThemeDescriptor=
name=BLOCKS
type=2
minScale=Infinity
maxScale=-Infinity
srid=81989
host=null
sid=null
port=null
user=null
mode=null
query=select spat_data, mbl_bka_id, mbl_title from WPE_SPATIAL_BLOCKS_VIEW_10G c
spatialColumn=spat_data
renderStyleName=TEST3
labelColumn=mbl_title
labelStyleName=TEXTBLACK
renderStyleDef=null
labelStyleDef=null
localThem=null
Tue Aug 09 10:58:38 BST 2005 FINEST [oracle.sdovis.SRS] *** isGeodetic=false, unit=METER
Tue Aug 09 10:58:38 BST 2005 DEBUG [oracle.sdovis.DBMapMaker] LoadThemeData running thread: Thread-67
Tue Aug 09 10:58:38 BST 2005 FINEST [oracle.sdovis.theme.pgtp] [ BUIDLING ]: 278472.6,186744.0,279272.6,187544.0
Tue Aug 09 10:58:38 BST 2005 FINEST [oracle.sdovis.theme.pgtp] [ BUIDLING ]: SELECT ROWID, GEOLOC, 'PRISM_ADM:BROWN_LINE', null, 'null', -1 FROM SPAT_BUILDING WHERE MDSYS.SDO_FILTER(GEOLOC, MDSYS.SDO_GEOMETRY(2003, 81989, NULL, MDSYS.SDO_ELEM_INFO_ARRAY(1, 1003, 3), MDSYS.SDO_ORDINATE_ARRAY(?, ?, ?, ?)), 'querytype=WINDOW') = 'TRUE'
Tue Aug 09 10:58:38 BST 2005 DEBUG [oracle.sdovis.DBMapMaker] LoadThemeData running thread: Thread-68
Tue Aug 09 10:58:38 BST 2005 DEBUG [oracle.sdovis.theme.DGTP] [Master scale] 153.60000000000002 [Theme scale factor] 1.0
Tue Aug 09 10:58:38 BST 2005 FINEST [oracle.sdovis.theme.DGTP] [DynGeomTheme] rewritten query: SELECT * FROM ( select spat_data, mbl_bka_id, mbl_title from WPE_SPATIAL_BLOCKS_VIEW_10G c ) WHERE MDSYS.SDO_FILTER(spat_data, MDSYS.SDO_GEOMETRY(2003, 81989, NULL, MDSYS.SDO_ELEM_INFO_ARRAY(1, 1003, 3), MDSYS.SDO_ORDINATE_ARRAY(278472.6,186744.0,279272.6,187544.0)), 'querytype=WINDOW') = 'TRUE'
Tue Aug 09 10:58:38 BST 2005 DEBUG [oracle.sdovis.theme.pgtp] [ BUIDLING ] sql exec time: 15ms, total time loading 209 features: 125ms.
Tue Aug 09 10:58:53 BST 2005 WARN [oracle.sdovis.theme.DGTP] java.sql.SQLException: ORA-00600: internal error code, arguments: [kdsgrp1], [], [], [], [], [], [], []
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:189)
at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:242)
at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:554)
at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1478)
at oracle.jdbc.ttc7.TTC7Protocol.fetch(TTC7Protocol.java:969)
at oracle.jdbc.driver.OracleStatement.doExecuteQuery(OracleStatement.java:2387)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2660)
at oracle.jdbc.driver.OracleStatement.executeQuery(OracleStatement.java:777)
at oracle.sdovis.theme.DynGeomThemeProducer.prepareData(DynGeomThemeProducer.java:241)
at oracle.sdovis.Theme.prepareData(Theme.java:174)
at oracle.sdovis.DBMapMaker$LoadThemeData.run(DBMapMaker.java:1740)
Tue Aug 09 10:58:53 BST 2005 ERROR [oracle.sdovis.DBMapMaker] Message:null
Description: Nested exception is:
java.sql.SQLException: ORA-00600: internal error code, arguments: [kdsgrp1], [], [], [], [], [], [], []
java.sql.SQLException: ORA-00600: internal error code, arguments: [kdsgrp1], [], [], [], [], [], [], []
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:189)
at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:242)
at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:554)
at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1478)
at oracle.jdbc.ttc7.TTC7Protocol.fetch(TTC7Protocol.java:969)
at oracle.jdbc.driver.OracleStatement.doExecuteQuery(OracleStatement.java:2387)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2660)
at oracle.jdbc.driver.OracleStatement.executeQuery(OracleStatement.java:777)
at oracle.sdovis.theme.DynGeomThemeProducer.prepareData(DynGeomThemeProducer.java:241)
at oracle.sdovis.Theme.prepareData(Theme.java:174)
at oracle.sdovis.DBMapMaker$LoadThemeData.run(DBMapMaker.java:1740)
Tue Aug 09 10:58:53 BST 2005 INFO [oracle.sdovis.DBMapMaker] **** time spent on loading features: 15250ms.
Tue Aug 09 10:58:53 BST 2005 FINEST [oracle.sdovis.RE] xfm: 0.625 0.0 0.0 -0.625 -174045.375 117215.0
Tue Aug 09 10:58:53 BST 2005 DEBUG [oracle.sdovis.VectorRenderer] time to render theme BUIDLING with 209 styled features: 15ms
Tue Aug 09 10:58:53 BST 2005 DEBUG [oracle.sdovis.VectorRenderer] time to render theme BLOCKS with 0 styled features: 0ms
Tue Aug 09 10:58:53 BST 2005 DEBUG [oracle.sdovis.VectorRenderer] time to label theme BLOCKS with 0 styled features: 0ms
Tue Aug 09 10:58:53 BST 2005 DEBUG [oracle.sdovis.VectorRenderer] time to label theme BUIDLING with 209 styled features: 0ms
Tue Aug 09 10:58:53 BST 2005 INFO [oracle.sdovis.DBMapMaker] **** time spent on rendering: 15ms
Tue Aug 09 10:58:53 BST 2005 DEBUG [oracle.lbs.mapserver.core.MapperPool] freeMapper() begins...
Tue Aug 09 10:58:53 BST 2005 DEBUG [oracle.lbs.mapserver.core.RealWorker] [RealWorker] preparation time: 16ms
Tue Aug 09 10:58:53 BST 2005 DEBUG [oracle.lbs.mapserver.core.RealWorker] [RealWorker] querying/rendering time: 15265ms
Tue Aug 09 10:58:53 BST 2005 DEBUG [oracle.lbs.mapserver.core.RealWorker] [RealWorker] packing time: 31ms
Tue Aug 09 10:58:53 BST 2005 DEBUG [oracle.lbs.mapserver.core.RealWorker] [RealWorker] --------------- total time: 15312msChris,
Can you run this rewritten query
SELECT * FROM ( select spat_data, mbl_bka_id, mbl_title from WPE_SPATIAL_BLOCKS_VIEW_10G c ) WHERE MDSYS.SDO_FILTER(spat_data, MDSYS.SDO_GEOMETRY(2003, 81989, NULL, MDSYS.SDO_ELEM_INFO_ARRAY(1, 1003, 3), MDSYS.SDO_ORDINATE_ARRAY(278472.6,186744.0,279272.6,187544.0)), 'querytype=WINDOW') = 'TRUE'
in sql*plus without any errors?
The asumptions is there is a spatial index on spat_data and all the geometries are valid.
Also there will be a trace file on the db server. That'll give more details on what the likely cause is.
Jayant -
ORA-306500 error when using EXEC_SQL? [SOLVED]
I used Francois Degrelle's example of doing a dynamic where clause to create a procedure using the EXEC_SQL package to get various counts from a table with different where clauses. Everything works for all the where clauses except when I try a date comparison I get the ORA-306500 error. The where clause I'm using takes 2 screen date fields:
'WHERE date_column BETWEEN ' || :date_field1 || ' AND ' || :date_field2
Anybody know what is causing this error?you forgot the to_date in the dynamic part.
what you pass to sql engine now is
where date_column between 10-FEB-2008 and 11-FEB-2008
don't think this would work...
what you need is:
where date_column between to_date('10-FEB-2008', 'DD-MON-RRRR') and .....
so you have to do some type conversions:
first of all convert in your form your date variable to a string with known format:
=> to_char(:date_field, 'DD-MON-RRRR')
now you have a string which looks like this:
'10-FEB-2008'
then let's go over to the dynamic part:
you want to restrict your where clause on date values, so when restricting with specific strings (the string from above), you have to convert it to a date datatype with to date.
so, this would look like this (as mentioned in my last post):
'.....between to_date(''''||to_char(:date_field1, 'dd-mon-rrrr')||''', ''dd-mon-rrrr'') and ..... '
best thing would be to display your query, and pass it in sqlplus as long it won't work ;-).
regards -
ORA-12514 Error when using Net Configuration Assistant
I have recently installed Oracle 11g on a Windows 2008 server and am now trying to connect via the Oracle client on my local machine.
Here is how I've been using Net Configuration Assistant so far:
Listener Configuration
The name of my listener is LISTENER_PROXIMA (proxima is the name of the server). Does this need to be named something else? Something specific?
I'm using TCP to connect.
I'm using standard port 1521.
Naming Methods
Local Naming and Easy Connect Naming
Local Net Service Name
Service name is ADMI04 (checked this against the lsnrstl service status on the server and it's correct)
Using TCP
Using the hostname proxima.domain-name.com
I'm attempting to connect as SYS (but have tried others with the same result)
When I go to test the connection I keep getting the ORA-12514 error. Does anyone know what I should do? Reinstall the listener? If so, are there any suggestions or guidance for that?
Thank you.=================================
A couple of important points.
First, the listener is a server side only process. It's entire purpose in life is to receive requests for connections to databases and set up those connections. Once the connection is established, the listener is out of the picture. It creates the connection. It doesn't sustain the connection. One listener, with the default name of LISTENER, running from one oracle home, listening on a single port, will serve multiple database instances of multiple versions running from multiple homes. It is an unnecessary complexity to try to have multiple listeners or to name the listener as if it belongs to a particular database. That would be like the telephone company building a separate switchboard for each customer.
Second, the tnsnames.ora file is a client side issue. It's purpose is for address resolution - the tns equivalent of the 'hosts' file further down the network stack. The only reason it exists on a host machine is because that machine can also run client processes.
Assume you have the following in your tnsnames.ora:
larry =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = myhost)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = curley)
)Now, when you issue a connect, say like this:
$> sqlplus scott/tiger@larrytns will look in your tnsnames.ora for an entry called 'larry'. Next, tns sends a request to (PORT = 1521) on (HOST = myhost) using (PROTOCOL = TCP), asking for a connection to (SERVICE_NAME = curley).
Where is (HOST = myhost) on the network? When the request gets passed from tns to the next layer in the network stack, the name 'myhost' will get resolved to an IP address, either via a local 'hosts' file, via DNS, or possibly other less used mechanisms. You can also hard-code the ip address (HOST = 123.456.789.101) in the tnsnames.ora.
Next, the request arrives at port 1521 on myhost. Hopefully, there is a listener on myhost configured to listen on port 1521, and that listener knows about SERVICE_NAME = curley. If so, you'll be connected.
What can go wrong?
First, there may not be an entry for 'larry' in your tnsnames. In that case you get "ORA-12154: TNS:could not resolve the connect identifier specified" No need to go looking for a problem on the host, with the listener, etc. If you can't place a telephone call because you don't know the number (can't find your telephone directory (tnsnames.ora) or can't find the party you are looking for listed in it (no entry for larry)) you don't look for problems at the telephone switchboard.
Maybe the entry for larry was found, but myhost couldn't be resolved to an IP address (say there was no entry for myhost in the local hosts file). This will result in "ORA-12545: Connect failed because target host or object does not exist"
Maybe there was an entry for myserver in the local hosts file, but it specified a bad IP address. This will result in "ORA-12545: Connect failed because target host or object does not exist"
Maybe the IP was good, but there is no listener running: "ORA-12541: TNS:no listener"
Maybe the IP was good, there is a listener at myhost, but it is listening on a different port. "ORA-12560: TNS:protocol adapter error"
Maybe the IP was good, there is a listener at myhost, it is listening on the specified port, but doesn't know about SERVICE_NAME = curley. "ORA-12514: TNS:listener does not currently know of service requested in connect descriptor"
===================================== -
Ora-31685 error when using impdp
Both the source and target database's version are 11g r1(11.1.0.6.0).The EXPDP finished well without error,But ORA-31685 error happened when IMPDP,error message as follow:
ORA-31685: Object type VIEW:"YDSJ"."MY_TAB_COLS" failed due to insufficient privileges. Failing sql is:
CREATE FORCE VIEW "YDSJ"."MY_TAB_COLS" ("COLUMN_NAME", "TABLE_NAME") AS select column_name,table_name from all_tab_cols
ORA-31685: Object type failed due to insufficient privileges. Failing sql is:
ORA-31685: Object type failed due to insufficient privileges. Failing sql is:
ORA-31685: Object type VIEW:"YDSJ"."YD_DAB121A_VIEW" failed due to insufficient privileges. Failing sql is:
CREATE FORCE VIEW "YDSJ"."YD_DAB121A_VIEW" ("LBDM", "LBMC", "XH", "ND", "ZHDYDM", "BJDYDM", "DYDM", "JJBZ") AS SELECT B."LBDM",B."LBMC",A."XH",A."ND",A."ZHDYDM",A."BJDYDM",A."DYDM",A."JJBZ" FROM YD_DAB121A A,YD_FLE9_VIEW B where JJBZ='0'
ORA-31685: Object type VIEW:"YDSJ"."YD_DAB121_VIEW" failed due to insufficient privileges. Failing sql is:
CREATE FORCE VIEW "YDSJ"."YD_DAB121_VIEW" ("LBDM", "LBMC", "YQTDM", "ZHDYDM", "DYDM", "ND", "DYBZ", "XZBZ", "SCBZ") AS SELECT B."LBDM",B."LBMC",A."YQTDM",A."ZHDYDM",A."DYDM",A."ND",A."DYBZ",A."XZBZ",A."SCBZ" FROM YD_DAB121 A,YD_FLE9_VIEW B
I can't find any information in oralce document.
Who can help me ?
Tel me why and how to resolve."insufficient privileges" means a grant is missing for the user your importing into. If this is a copy from one DB to another just compare the sorce user to the destination. Grants from the SYS schemas are not exported because SYS is not exported you will have to script these grants as needed.
For example grant sleect on v_$process to fred; whilst connected as "/ as sysdba". -
Error when using HIERARCHY and security on RedHat
Oracle Secure Global Desktop for x86 Linux kernel 2.6+ (4.60.911)
Architecture code: i3li0206
This host: Linux ourhost1 2.6.18-164.el5
Getting the following error when we use hierarchy on a redhat linux server
An error occurred at line: 9 in the jsp file: /hierarchy.jsp
m_prefLang cannot be resolved
language is set LANG="en_US.UTF-8"
change the index.jsp back to standard we have no issue. Any ideas ?
thanksthere is a known issue with hierarchical webtop in SGD 4.60.911. Please open a case @ My Oracle Support and refer to this post and Support can provide a hotfix.
https://support.oracle.com -
Ora-03114 error when using trigger on spatial field
I have a table the has a lat and long field and an geometry field. I want to place a trigger so that as the users insert lat and long into the table it also populates those values into the geometry field. I built a trigger that is supposed to do this. Upon insert I get an ora-03114 error. I can run the same piece of pl/sql as a plain update statement. How do I solve this problem.
the DB is 9.0.1.2 and is stuck thier because of some 3rd party tools.
AaronHi,
ORA-03114: not connected to ORACLE
Cause: A call to Oracle was attempted when no connection was established. Usually this happens because a user-written program has not logged on. It may happen if communication trouble causes a disconnection. In addition, this message could occur when ALTER SYSTEM KILL SESSION or ALTER SYSTEM DISCONNECT SESSION were issued with the IMMEDIATE qualifier because, in those cases, the client's connection to the database is terminated without waiting for the client to issue a request.
Check your client connection settings, your driver etc.
regards, Andreas -
Error when using cast and convert to datetime
I run a stored procedure
usp_ABC
as
begin
delete from #temp1
where #temp1.ResID not in
( select Col1
from TableA
where ( @I_vId = -1 or Doc_Field_ID = @I_vId)
and ColA1 = 2 and FieldValue !=''
and cast ( FieldValue as DATETIME ) = cast (@strvalue_index as DATETIME)
and ResID = #temp1.ResID
and TypesId = @I_vTypeId
end
But return message "Conversion failed when converting date and/or time from character string.'
Format of Column FieldValue is nvarchar(400)
@strvalue_index = '05/05/2013'
So I see in article http://technet.microsoft.com/en-us/library/ms174450.aspx MS say about MS SQL Server and SQL Server Compact.
Then I re-write proc:
delete from #temp1
where #temp1.ResID not in
( select Col1
from TableA
where ( @I_vId = -1 or Doc_Field_ID = @I_vId)
and ColA1 = 2 and FieldValue !=''
and cast ( cast(FieldValue as nvarchar(200)) as DATETIME ) = cast (@strvalue_index as DATETIME)
and ResID = #temp1.ResID
and TypesId = @I_vTypeId
so stored run success.
I don't understand how?
When i run only statement in MS SQL Studio Management, the statement run success.
Thanks all,No bad dates in my data.
Apparently you have. Or, as Johnny Bell pointed out, there is a clash with date formats. Did you try the query with isdate()?
For SQL 2008, you need
CASE WHEN isdate(FieldValue) = 1
THEN CAST (FieldValue AS datetime)
END =
CASE WHEN isdate(@strvalue_index) = 1
THEN CAST (@strvalue_index AS datetime)
END
Erland Sommarskog, SQL Server MVP, [email protected]
I think date formats is OK. So when I re-write stored:
and cast ( FieldValue as DATETIME ) = cast (@strvalue_index as DATETIME)
=>
and cast ( cast(FieldValue as varchar(200)) as DATETIME ) = cast (@strvalue_index as DATETIME)
the stored procedure will run success. I see in http://technet.microsoft.com/en-us/library/ms174450.aspx MS
has an IMPORTANT:
Important
When using CAST or CONVERT for nchar, nvarchar, binary, and varbinary,
SQL Server truncates values to maximum of 30 characters. SQL Server Compact allows 4000 for nchar and nvarchar, and 8000 for binary and varbinary. Due
to this, results generated by querying SQL Server and SQL Server Compact are different. In cases where the size of the data types is specified such as nchar(200), nvarchar(200), binary(400), varbinary(400), the results are consistent across SQL Server and
SQL Server Compact.
I can't explain it in this case -
ORA-03113 error when using Oracle 9i with Mapx 5.0
Hello,
I am using Personal Oracle 9i Release 2 with Mapx5.0 on Delphi.
Accessing the layers using tab files also as server layers..,
and commonly using the method of Mapx Layer.SearchAtPoint
Search is done on region, line as well as on point objects...,
at some point of time it flashes me the error
ORA-03113 end-of-file on communication channel
I am not exactly able to figure out when it gives..,
but i m getting it after some clicks on the layers
The same executable is working fine with Oracle 8.1.7
As anybody faced such a problem and knows the possible cause
Thanks,
BinoyThere is some java bug that is causing some problems if you are using 9.2.0.3. Here is some information:
Workaround for bug 2755842:
Event 10499 can be set (any non-zero level) to revert to the old behaviour.
==================================================
Setting the EVENT 10499
=======================
Check if the database server is using a server parameter (spfile) a parameter (init.ora) file.
From sqlplus, connect as sysdba and execute the command:
show parameters spfile
If the value is NULL or empty, then spfile is NOT enabled and init.ora is used.
1) If SPFILE is used:
SQL> show parameters spfile
NAME TYPE VALUE
spfile string
%ORACLE_HOME%\DATABASE\SPFILE%ORACLE_SID%.ORA
a) Using sqlplus logon as sysdba
b) Execute: alter system set event="10499 trace name context forever,level 4" scope=spfile
sid='*';
c) shutdown
d) startup the database
2) If INIT.ORA is used:
a) In the init<SID>.ora file, add the parameter event="10499 trace name context forever,level 4"
b) Stop and start the database
Hope this is it.
Dan -
Errors when using tomcat and netbeans combo.[Solved]
Hi I'm trying to set up a netbeans/tomcat7 development environment for servlet development.
I have tried this on 2 machines without any success.
The steps I have followed are as follows.
First I installed tomcat7 and netbeans from using pacman, then to be able to configure tomcat from netbeans I made the config files write permission 777, as it's just a development server security is not an issue.
From there I started up netbeans started a new project and set the server to tomcat and pointed the Catalina home dir to /usr/share/tomcat7.
When I try to run the example jsp project I get the following error:
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
org.apache.jasper.JasperException: java.lang.IllegalStateException: No Java compiler available
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:584)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:392)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:389)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:333)
javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
root cause
java.lang.IllegalStateException: No Java compiler available
org.apache.jasper.JspCompilationContext.createCompiler(JspCompilationContext.java:226)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:636)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:358)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:389)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:333)
javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
I've spent the last couple of days trying to find any information on this but I cant find anything, so any advice would be much appreciated.
Last edited by darkclown (2011-12-01 05:15:23)From the error, it appears that there is no JDK installed - only a JRE, could that be the case? If you do have a JDK installed, then Tomcat is not finding it.
I would also not run this on the openJDK, in case you are doing that. I would use the proprietary Oracle/Sun JDK. It's in the AUR, or simply download it from Oracle.
I was not even aware that netbeans and tomcat are available from pacman. I always "install" those myself manually (i.e. unpack them into a folder). They are simply Java apps that can be installed anywhere, as long as you point them to a valid JDK. -
Error when using WETextArea and WESubmitButton
<p>Hi again,</p><p> </p><p>I think I may have found a issue.</p><p> </p><p>if you have a form that has only a WETextArea and a WESubmitbutton that is submitting back to the same report ( with or with out database connection) I get a error message when I click the submit button of 'Getform' not defined.</p><p> </p><p>I have replicated this in a stand alone report with no database connection just with a parameter and the 2 we elements that is posting back to the same report. </p><p>I found this while attempting to set up a screen to allow users to input data to the database using the WETextarea.</p><p> </p><p>Jon Roberts</p><p><a href="http://www.programmervault.com" title="www.programmervault.com">www.programmervault.com</a><br /></p><p><a href="http://www.dsi-bi.com" title="Decision Systems Inc">Decision Systems Inc </a> </p>
hey AJ,
unfortunately you are completely out of luck on this one as Text Area does not have a max length property associated with it. http://www.w3.org/TR/REC-html32.html
just kidding...this is a good idea (keep them coming) and pretty quick and easy to do...so...here's some code below to give you a validation method for WETextArea.
1) go to your Admin folder in webElements 2.1 and open up the WEValidator and replace its code with
// WEValidator 2.1 last revision March 8, 2007, JWiseman
Function (stringvar ElementName, stringvar Validate, stringvar Message)
stringvar output;
if validate > "" then
validate:= lowercase(validate);
if validate ="empty" then output :=
'if(isEmpty(getform.' + ElementName + '))' +Â
'{ ' +
'alert("' + Message + '"); ' +
'getform.' + ElementName + '.focus();' +
'return;' +
if validate in ["numeric", "number"] then output :=
'if(isEmpty(getform.' + ElementName + '))' +Â
'{ ' +
'alert("' + Message + '"); ' +
'getform.' + ElementName + '.focus();' +
'return false; ' +
'}' +
'if (!isNumeric(getform.' + ElementName + '.value)) ' +
'{ ' +
'alert("' + Message + '"); ' +
'getform.' + ElementName + '.focus(); ' +
'return false;' +
if validate in ["email", "e-mail", "email"] then output :=
'if(isEmpty(getform.' + ElementName + '))' +Â
'{ ' +
'alert("' + Message + '"); ' +
'getform.' + ElementName + '.focus();' +
'return false; ' +
'}' +
'if (!isValidEmail(getform.' + ElementName + '.value)) ' +
'{ ' +
'alert("' + Message + '"); ' +
'getform.' + ElementName + '.focus(); ' +
'return false;' +
if validate = "date" then output :=
'if(isEmpty(getform.' + ElementName + '))' +Â
'{ ' +
'alert("' + Message + '"); ' +
'getform.' + ElementName + '.focus();' +
'return false; ' +
'}' +
'if (!isDate(getform.' + ElementName + '.value)) ' +
'{ ' +
'alert("' + Message + '"); ' +
'getform.' + ElementName + '.focus(); ' +
'return false;' +
if validate = "integer" then output :=
'if(isEmpty(getform.' + ElementName + '))' +Â
'{ ' +
'alert("' + Message + '"); ' +
'getform.' + ElementName + '.focus();' +
'return false; ' +
'}' +
'if (!isInteger(getform.' + ElementName + '.value)) ' +
'{ ' +
'alert("' + Message + '"); ' +
'getform.' + ElementName + '.focus(); ' +
'return false;' +
if validate in ["check", "checked", "select", "selected"] then output :=
'if(!isButtonChecked(getform.' + ElementName + '))' +Â
'{ ' +
'alert("' + Message + '"); ' +
'return; ' +
if validate[1 to 6] = "value=" then
(validate:= validate[7 to length(validate)];output :=
'if(isCertainValue(getform.' + ElementName + ',"'validate'"))' +Â
'{ ' +
'alert("' + Message + '"); ' +
'getform.' + ElementName + '.focus();' +
'return;' +
if validate[1 to 7] = "length>" then
(validate:= validate[8 to length(validate)];output :=
'if(isMaxLength(getform.' + ElementName + ','validate'))' +
'{ ' +
'alert("' + Message + '"); ' +
'getform.' + ElementName + '.focus();' +
'return;' +
"<!validator " + output + "><!|||>"
) else "";
2) now open WEFunctionLibrary and replace its code with
// WEFunctionLibrary 2.1 last revision March 8, 2007, JWiseman
Function ()
// functions for select all, clear all, reverse all buttons and links
'function selectAll(cbList,bSelect) {' <br />'for (var i=0; i<cbList.length; i+)' +
'cbList.selected = cbList.checked = bSelect' <br />'}' <br />
'function reverseAll(cbList) {' <br />'for (var i=0; i<cbList.length; i+){' +
'cbList.checked = !(cbList.checked);' +
'cbList.selected = !(cbList.selected)' <br />'}}' <br />
// VALIDATION FUNCTIONS
// function for numeric (float) input validation
'function isNumeric(sText){' +
'var ValidChars = "0123456789.";var IsNumber=true;var Char;' <br />'for (i = 0; i < sText.length && IsNumber == true; i+) ' +
'{Char = sText.charAt(i); ' +
'if (ValidChars.indexOf(Char) == -1) ' +
'{IsNumber = false;}}return IsNumber;Â ' +
+
// function for integer input validation
'function isInteger(sTextB){' +
'var ValidCharsB = "0123456789";var IsNumberB=true;var CharB;' <br />'for (i = 0; i < sTextB.length && IsNumberB == true; i+) ' +
'{CharB = sTextB.charAt(i); ' +
'if (ValidCharsB.indexOf(CharB)
== -1) ' +
'{IsNumberB = false;}}return IsNumberB;Â ' +
+
// function for non-null input validation
'function isEmpty(aTextField) {' +
'if ((aTextField.value.length==0) ||' +
'(aTextField.value==null)) {' +
'return true;}else {return false;}' <br />'}' <br />Â
// function for email input validation
'function isValidEmail(str){' +
'return (str.indexOf(".") > 2) && (str.indexOf("@") > 0);' <br />'}' <br />
// function for date input validation
'function isDate(str){' +
'var dateVar = new Date(str);' +
'if(isNaN(dateVar.valueOf()) ||' +
'(dateVar.valueOf() ==0))' +
'return false;' +
'else {return true;}' <br />'}'<br />
// function for radio button and checkbox validation
'function isButtonChecked(aSelection) {' +
'var checkcount = -1;' <br />'for (var i=0; i < aSelection.length; i+) {' +
'Â Â if (aSelection.checked) {checkcount = i; i = aSelection.length;}' +
'Â Â }' +
'if (checkcount > -1) return aSelection[checkcount].value;' +
'else return false;' <br />'}'<br />
// function for inappropriate value input validation
'function isCertainValue(aTextField, vTextField) {' +
'if (aTextField.value==vTextField){' +
'return true;}else {return false;}' <br />'}' <br />
// function for maximum input length validation
'function isMaxLength(aTextField, mLength) {' +
'if (aTextField.value.length>mLength){' +
'return true;}else {return false;}' +
3) do not add these to your repository quite yet as you'll want to test this to see if there's no nasty bugs or side affects.
4) in your WETextArea function you'll have a validation for maximum length, so your code will look something like
WETextArea ("tb", {?tb}, "1in", "2in", "", "length>16", "there are way too many characters here")
NOTE: this is for maximum length only and this will not do a minimum length at this time...should that need arise in the future i can create a validation for "length -
Pro*C/C++ Precompiler Error when using OTT and CODE=CPP
I am trying to precompile a Pro*C application for the company I am working.
Generating Include file and Intype file with OTT succeeded.
But invoking the Pro*C precompiler results in error messages concerning
the processing of the "size_t" structure being involved by including
the file "oci.h" in the OTT-generated Include file. This file in turn
seems to include "ociextp.h", "ociapr.h", "nzt.h" which cause the
precompiler to complain: (i translated some terms to english)
proc code=cpp cpp_suffix=cc intype=diacron.typ
'sys_include=(/u01/app/oracle/product/8.1.7/precomp/syshdr,
/usr/lib/gcc-lib/i486-suse-linux/2.95.2/include,
/usr/include/g++,/usr/include,/usr/include/linux)'
iname=transact
Pro*C/C++: Release 8.1.7.0.0 - Production on Mi Jan 30 12:04:34 2002
(c) Copyright 2000 Oracle Corporation. All rights reserved.
System-Defaultsettings from: /u01/app/oracle/product/8.1.7/precomp/admin/pcscfg.cfg
Syntaxerror in Line 233, Col 50, File
/u01/app/oracle/product/8.1.7/rdbms/public/ociextp.h:
Error in Line 233, Col 50, in File
/u01/app/oracle/product/8.1.7/rdbms/public/ociextp.h
dvoid ociepacm(OCIExtProcContext with_context, size_t amount);
.................................................1
PCC-S-02201, Found Symbol "size_t" when expecting one of the following:
... auto, char, const, double, enum, float, int, long,
ulong_varchar, OCIBFileLocator OCIBlobLocator, OCIClobLocator,
OCIDateTime, OCIExtProcContext, OCIInterval, OCIRowid, OCIDate,
OCINumber, OCIRaw, OCIString, register, short, signed,
sql_context, sql_cursor, static, struct, union, unsigned,
utext, uvarchar, varchar, void, volatile,
a typedef name, exec oracle, exec oracle begin, exec,
exec sql, exec sql begin, exec sql type, exec sql var,
Das Symbol "enum," ersetzte "size_t", um fortzufahren.
........the above several times for the other files.............
My pcscfg.cfg looks like:
===============================================================
include=/u01/app/oracle/product/8.1.7/precomp/public
include=/u01/app/oracle/product/8.1.7/oracode/include
include=/u01/app/oracle/product/8.1.7/oracode/public
include=/u01/app/oracle/product/8.1.7/rdbms/include
include=/u01/app/oracle/product/8.1.7/rdbms/public
include=/u01/app/oracle/product/8.1.7/rdbms/demo
include=/u01/app/oracle/product/8.1.7/network/include
include=/u01/app/oracle/product/8.1.7/network/public
include=/u01/app/oracle/product/8.1.7/plsql/public
include=/u01/app/oracle/product/8.1.7/otrace/public
include=/u01/app/oracle/product/8.1.7/ldap/public
include=/home/wilf/lib/include
ltype=none
parse=partial
==============================================================
And the beginning code in the file transact.pc looks like:
==============================================================
#include "sqlnet/transact.hh"
EXEC SQL BEGIN DECLARE SECTION;
#include <stdio.h>
#include <stdlib.h>
#include <sqlca.h>
#include "diacron.h" //generated by OTT
int id;
varchar szenario[20];
char username="***********";
MYTYPE *MyPtr;
EXEC SQL END DECLARE SECTION;
Transaction::.....several class encodings..........
Transaction::.....several class encodings..........
=============================================================
By the way, i figured out so many different settings and
alternative code placements now, I satisfy all guidelines of
the Pro*C-Programmers Guide, but I don't get that stuff running!
I'd appreciate any help!
Regards,
WilfriedWhen I first ran into this problem I scoured this forum and found the usual suspects (add the proper path to the pcscfg file by doing a "find /usr -name stddef.h -print"). Assuming that you did this and changed the reference from Suse to your distribution you can move to the next point.
I did this and still ran into problems. It turns out that with my distribution and version (Mandrake 8.1), I needed to reference the egcs version of these includes which were not installed by default. I needed into install the egcs packages. After this I had two references to stddef.h in my usr/include path. One was quite obviously the egcs version. I needed to use that one. It cleared up the problem.
[jflynn@CN83845-A /]$ find /usr/lib -name stddef.h -print
/usr/lib/gcc-lib/i586-mandrake-linux-gnu/2.96/include/stddef.h
/usr/lib/gcc-lib/i586-mandrake-linux-gnu/egcs-2.91.66/include/stddef.h
so I modified the pcscfg file as:
sys_include=(/usr/include,/usr/lib/gcc-lib/i586-mandrake-linux-gnu/egcs-2.91.66/include) -
ORA-03113 Error when using loadjava
I am trying to create a Java Stored Procedure and when I attempt to load the resource file into Oracle using the loadjava utility, I receive the following message:
ORA-03113: end-of-file on communication channel
I receive this message consistently.
Any ideas?
nullThere would be a trace file generated on the server where the database is installed, try to look in those trace files for additional messages and causes this might be happening, off hand I could also suggest increasing the processes init file parameter
-
REP-0713 error when using r25run32 and command line
Help,
I have what seems to be a very strange problem. I have the following
command line saved as a batch file called Test.bat. If I double-click on it
or run it from the command prompt, it works fine - it runs a report and
prints it.
d:\orant\bin\r25run32.exe report=test1.rep userid=user1/user1@testdb
paramform=no destype=printer desname="HP" desformat=dflt printjob=no
However, if I use a program scheduler, it crashes with the error:
"REP-0713: Invalid printer name 'HP' specified by parameter name DESNAME"
I have tried Norton Scheduler, NT AT command, as well as a couple other
shareware programs. All crash with this error. If I use background=yes,
again it works if I run it, but when a scheduler starts it, the Report
Server crashes. Instead, if I use batch=yes, it just crashes after a few
seconds.
If I use printjob=yes, the printer dialog pops up, I press OK, and it works
fine. I have tried outputting to a PDF file, but again, it works if I run
the batch file, but not when a scheduler does.
I am using Reports 2.5, Oracle 7.1, NT4 SP6. I have also tried the Reports
3.0 runtime (r30run32) with the same results. I just need to run/print a
report automatically every day.
Any ideas are greatly appreciated, Thanks.
Jason
nullI just concatenate them , for example if my key fields of the table are document number and item number , i concatenate them and put it in the key_column.
How do i read them in my oninputprocessing.
data: tv type ref to cl_htmlb_tableview.
tv ?= cl_htmlb_manager=>get_data(
request = runtime->server->request
name = 'tableView'
id = 'test' ).
if tv is not initial.
data: tv_data type ref to cl_htmlb_event_tableview.
tv_data = tv->data.
<document no.> = tv_data->selectedrowkey+0(10) .
<item no.> = tv_data->selectedrowkey+10(5) .
if i need more info then i read the itab with key document number = <document no.> and
item number = <item no.>
Hope this is clear.
Regards
Raja -
Cfc error when using Flex and RemoteObject (cross post)
I have Flex 3.0.214193 and CF 8,0,0,176276 and Oracle
10.2.0.3.
I've been search for several days for an answer to this one.
There is very little out there about this type of error, but then
there is very little about any problems with Flex and ColdFusion.
In Flex, I have two comment fields. the .cfc has two update
functions that update the comments, because they are in two
different tables. The first update works like a champ. The second
one consistantly shows this error in the CF application log: The
NEWENGREMARK parameter to the updateEng function is required but
was not passed in. I've used the Alert.Show to verify that Flex
does have a value in that variable when it calls the .cfc. I've
even tried passing the first variable that worked in the first
update, and even a litteral value. Everything yields the same
cryptic error message. I must be looking at the wrong thing.
The only things I've found on the web about this, say the
variables should have a scope (is that a scope in Flex or in the
.cfc) and the column names should be in upper case (because it's
Oracle).
Here's the .cfc code (is that where the error is, or is it in
Flex?). The UpdateDescription function works, but the UpdateEng
doesn't.
Thanks for any help, or spelling errors you can point out.
ScottIan,
I also heard about the case thing. So I tried everything in
upper case and lower case - same thing. In my experimenting, I
tried adding the newENGRemark parameter to the descriptionUpdate
function call, I didn't do anything with it is the .cfc just
declared it as required. In that case the parameter exists and
everything is fine. But in the call to the UpdateEng, it doesn't
exist.
I changed the .cfc so that the newENGRemark was not required
or had a default. In both cases the .cfc just skipped to the next
parameter and said it didn't exist. But I was passing a litteral,
it wasn't even a variable.
I created a .cfm page that did a cfinvoke on the .cfc, and
passed it two litterals. That worked fine. So that makes it look
like some sort of syntax error in the Flex. So I deleted the call
to the UpdateENG, copied the UpdateDescription call (because it
works), changed just the minimum to make it work, but it didn't
work.
I think I am going to restructure the database so that I can
do what I need to with just one update function, that seems to
work.
It still doesn't make any sense.
Scott (Flex code is attached)
Maybe you are looking for
-
When I charge my iPod mini, after I let it sit for several days without use the battery will show that it has drained. Is there anyway to correct this problem?
-
Cannot extend package in ABAP 7.1 (new installation)
Hi everybody, sorry for this question, but how can i extend a package in ABAP 7.1. I have created a structure package (ZSP_Test). In this package i try to create a program but without success. I get the message: Cannot extend package ZSP_TEST. My Pac
-
Hi All, i have HP Pavilion dv5131eu. i have upgraded to windows 7. i have connected to s video cable to the appropriate s video output. now i try to change display to s video and i cannot define it seems that windows 7 does not recognize this output.
-
Spry Menu - Current Page question
Hi I have a 2 level Spry Menu which is dynamically populated. (http://broke.brokefordwich.com.au) I am able to add a class to the menu item for the current page. This works fine for the top level items and the second level items. However, I would li
-
Photoshop CS6 Undo Resize bug?
I notice in CS6 (13.0.1 for Windows) if I size an image down (to let's say 200x200) and then Undo, the image is the original size again but the window frame is still 200x200 (or whatever), and I then have to either drag the frame larger or click the