Getting a compiler error
Hello All:<br /><br /> I have some code provided to me by Adobe for building a selection suite. In the .FR I have this:<br /><br /> AddIn<br /> {<br /> kIntegratorSuiteBoss,<br /> kInvalidClass,<br /> {<br /> IID_IMYSELECTIONSUITE, kMySelectionSuiteASBImpl,<br /> }<br /> },<br /><br /> AddIn<br /> {<br /> kLayoutSuiteBoss,<br /> kInvalidClass,<br /> {<br /> IID_IMYSELECTIONSUITE, kMySelectionSuiteCSBImpl,<br /> }<br /> },<br /><br />Please assume that all definitions and declarations and PMIDs, etc., have been declared in the appropriate auxiliary files.<br /><br />I copied the files implementing the above verbatim into the project.<br /><br />This is how I instantiate the interface in the code:<br /><br /> ISelectionManager* iSelMgr = ActiveContext -> GetContextSelection();<br /><br /> InterfacePtr<IMySelectionSuite> mySelectionSuite(iSelMgr, UseDefaultIID());<br /><br />The problem is that when I compile the module, I get the following error message:<br /><br />C:\Program Files\Adobe\InDesignCSAndInCopyCSSDK\source\sdksamples\codesnippets\SnpTestSelectionSuite .cpp(178): error C2664: 'InterfacePtr<IFace>::InterfacePtr(const IPMUnknown *,PMIID)' : cannot convert parameter 1 from 'ISelectionManager *' to 'const IPMUnknown *'<br /> with<br /> [<br /> IFace=IMySelectionSuite<br /> ]<br /><br />I can make this disappear by casting iSelMgr to type IPMUnknown, but somehow that doesn't feel right.<br /><br />As far as I can tell, I have the right headers included in the file. Anyone have any suggestions about how to resolve this error message without the ambiguity of using IPMUnknown?
Strizh:
That was a bonehead problem wasn't it? Sigh. Thanks for your solution.
R,
John
Similar Messages
-
How do I add an included jsp to my project and not get a compile error?
Hi,
I have a project with some included jsp's however if I add them to the project, when I build I get a compile error as the jsp uses variables from the calling jsp.
Any ideas on how to get round this.
Thanks
DMThere are two main ways that I deal with this problem (yeah, it sucks, but it sort of makes sense that it happens...) (I presume you're talking static include here...)
#1 - name the included file with an extension that JDev will not try to compile (.jspf - for JSP Fragment - is common) Then it will be compiled in with the including page, but won't gag the project compilation. Advantage - it works, and you find out at compile time if you hosed up the variable reference. Disadvantage: JDev tries really, really, really hard to keep you from naming a JSP file with an extension of .jspf I normally create the .jsp file in JDev, remove it from the project, rename the file outside of JDeveloper, then add it back to the project - pain in the butt, but it works (and you probably aren't building scads of these included files...)
#2 - add the variable to be referenced to the pageContext implicit object as an attribute in your including page (ex, <% pageContext.setAttribute("myVar", myVar); %>), then reference that attribute in your included JSP (ex, <%= pageContext.getAttribute("myVar") %>) . It will compile fine (as the compiler has no way of knowing if the pageContext attribute actually exists, it just sees that the syntax is good and motors along merrily. Advantage: don't have to have differently named JSP files (which isn't actually a big deal). Disadvantage: You hvae to add the variable to the pageContext (and you have to always add Object derivatives, as primitives won't go into a hash) and you don't find out if you screwed the variable up until runtime (when it tries the getAttribute, which could return null if you didn't properly set it to start with) vs at compile-time w/ the direct reference.
HTH!
Jim -
Getting a compilation error. Says ; is missing in line 34
// A program to demonstrate the use of JList's
//Import Statements
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
public class ListTest extends JFrame{
//Class Declarations
JList list;
String[] colorNames = {"black", "blue", "green", "red"};
Color[] colors = {Color.BLACK, Color.BLUE, Color.GREEN, Color.RED };
//Main Program that starts Execution
public static void main(String[] args) {
ListTest test = new ListTest();
test.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
//Constructor
public ListTest()
super("List Test Demo");
Container container = getContentPane();
container.setLayout(new FlowLayout());
list = new JList(colorNames);
list.setVisibleRowCount(3);
list.setSelectedIndex(0);
//Anonymous Inner Class
list.addListSelectionListener() {
new ListSelectionListener(){
public void valueChanged( ListSelectionEvent e)
container.setBackground(colors[colorlist.getSelectedIndex()]);
container.add(list);
pack();
setVisible(true);
}// End of Class ListTestGetting the following compilatioN Error
Getting a compilation error. Says ; is missing in line 34// A program to demonstrate the use of JList's
//Import Statements
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
public class ListTest extends JFrame{
//Class Declarations
JList list;
String[] colorNames = {"black", "blue", "green", "red"};
Color[] colors = {Color.BLACK, Color.BLUE, Color.GREEN, Color.RED };
//Main Program that starts Execution
public static void main(String[] args) {
ListTest test = new ListTest();
test.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
//Constructor
public ListTest()
super("List Test Demo");
Container container = getContentPane();
container.setLayout(new FlowLayout());
list = new JList(colorNames);
list.setVisibleRowCount(3);
list.setSelectedIndex(0);
//Anonymous Inner Class
list.addListSelectionListener (
new ListSelectionListener() {
public void valueChanged( ListSelectionEvent e)
container.setBackground(colors[colorlist.getSelectedIndex()]);
container.add(list);
pack();
setVisible(true);
}// End of Class ListTestCannot resolve symbol ListSelectionListener [LINE 36] -
Why dont we get a compilation error for converting a collection into array?
Why don't we get a compilation error but get a runtime error while explicit casting of Object[] into a String[]?
import java.util.Collection;
import java.util.HashMap;
import java.util.Map;
public class SampleMap {
public static void main(String[] args) {
Map<Integer, String> temp = new HashMap<Integer, String>();
temp.put(new Integer(1), "cat");
temp.put(new Integer(2), "rat");
Collection coll = temp.values();
String[] arr = (String[]) coll.toArray();
System.out.println(arr.length);
} Thanks,
Harish SrinivasanInfiniti wrote:
Why don't we get a compilation error but get a runtime error while explicit casting of Object[] into a String[]?
import java.util.Collection;
import java.util.HashMap;
import java.util.Map;
public class SampleMap {
public static void main(String[] args) {
Map<Integer, String> temp = new HashMap<Integer, String>();
temp.put(new Integer(1), "cat");
temp.put(new Integer(2), "rat");
Collection coll = temp.values();
String[] arr = (String[]) coll.toArray();
System.out.println(arr.length);
} Thanks,
Harish SrinivasanAn explicit cast's job is to tell the compiler that even though it cannot guarantee that the conversion will work, allow the code anyway and let the runtime handle an error if it occurs. -
I get a compiling error when trying to save a VI using 8.0.1.
While trying to save a VI recently, I recieved an error that the code could not be generated. The reason was that there was a compiling error while saving. I know have a broken arrow and can not figure out how to resolve the issue.
The thing that would help us help you the most is if you can attach a VI (in its last saved form) and a set of steps (edits) to the VI that cause it to get into the state where attempting to save it displays this compile error. Sometimes this is difficult to do, but if you can do this it gives us the best chance of being able to reproduce and figure out the issue. Let us know if you can post such a VI, thanks!
-
Getting Internal compilation error In BPEL
Hi,
We have createa a bpel process using flow.
WHile compiling we are facing the below error. Can any one help on this.
Error: Internal compiler error.
An internal error has occurred while attempting to process the BPEL process file "<BPELProj>\bpel\SendMailSHEReqABCSImpl.bpel"; the exception is: java.lang.NullPointerException
Thanks
PhanindraIn the log Messages i could see the validation succesfully done. but the compilation is getting failed.
Log message:-
Loading Process:file:/C:/AIA BGC/DevWorkspace/SendMailSHEReqABCSImpl/bpel/SendMailSHEReqABCSImpl.bpel...
Validating Process...
Done validating. -
I try to generate a chm file over the net and I get a compiling error message
Hi all,
I am trying to generate chm files over the net, and the same project when I am generating the same chm locally works fine, however when I am attempting to generate the same chm on a network location, it gives me a compiling error and aborts the generation. It is also keeping the chm file open afterwards, so I have to reboot the machine.
It is RH7 working on a Windows XP Pro 32 bit.
Thank youIt is not a project issue. RoboHelp is just not designed to work that way but like a lot of things, some people can use them outside what they were designed for. However, just because some people can work that way, it does not follow everyone can.
I've seen people with projects on a network and they say have been doing it for years so it must be OK. A while later they come back and say the problem is fixed since moving it locally.
Sorry but it looks like you are stuck with working the way you do or getting your colleague to do it. It might be as simple as he is on a different bit of your network.
See www.grainge.org for RoboHelp and Authoring tips
@petergrainge -
Always get same compilation error.. Does'nt matter whatever i write in code
Hi All,
I am getting strange error while compiling my pl/sql code.. it always gives me error
SQL> SHOW ERR
ERROR:
ORA-00942: table or view does not exist
..I always get this error. In sample piece of code , i dont have any table also
SQL> SELECT * FROM V$VERSION ;
BANNER
Oracle9i Enterprise Edition Release 9.2.0.5.0 - 64bit Production
PL/SQL Release 9.2.0.5.0 - Production
CORE 9.2.0.6.0 Production
TNS for Solaris: Version 9.2.0.5.0 - Production
NLSRTL Version 9.2.0.5.0 - Production
SQL> Create or replace FUNCTION check_cid IS
BEGIN
dbms_output.put_line("CHAL");
EXCEPTION
WHEN OTHERS THEN
dbms_output.put_line("GHODA");
END check_cid;
2 3 4 5 6 7 8
Warning: Function created with compilation errors.
SQL> SQL> show err
ERROR:
ORA-00942: table or view does not exist
SQL> Create or replace FUNCTION check_cid RETURN NUMBER IS
stat_res NUMBER;
BEGIN
stat_res := 1;
dbms_output.put_line("CHAL");
RETURN stat_res;
EXCEPTION
WHEN OTHERS THEN
dbms_output.put_line("GHODA");
END check_cid;
/ 2 3 4 5 6 7 8 9 10 11
Warning: Function created with compilation errors.
SQL> SHOW ERR
ERROR:
ORA-00942: table or view does not exist
SQL> Create or replace FUNCTION check_cid() RETURN NUMBER IS
stat_res NUMBER;
BEGIN
stat_res := 1;
dbms_output.put_line("CHAL");
RETURN stat_res;
EXCEPTION
WHEN OTHERS THEN
dbms_output.put_line("GHODA");
END check_cid;
/ 2 3 4 5 6 7 8 9 10 11
Warning: Function created with compilation errors.
SQL> SHOW ERR
ERROR:
ORA-00942: table or view does not existThe error message is correct.
You are using double quotes instead of single quotes.
Identifiers (table names, column names etc) with special characters should be enclosed by double quotes, so PL/SQL thinks you are using an identifier and can't find it.
Please replace the double quotes by single quotes.
Please also make sure you always try to iron out simple compilation errors yourself, so you become independent, and don't need to ask for the assistance of volunteers.
Optionally, increase your intake of coffee, and/or buy (better) glasses ;)
Sybrand Bakker
Senior Oracle DBA -
How can i get the object error in after create trigger???
To get the source code i use ora_sql_text funcion, but to compilation error i don't know...
Thanks,
Renato RodriguesIt too has some limitation. It cannot trap anonymous block's error.
Here is one way ->
satyaki>
satyaki>select * from v$version;
BANNER
Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Prod
PL/SQL Release 10.2.0.3.0 - Production
CORE 10.2.0.3.0 Production
TNS for 32-bit Windows: Version 10.2.0.3.0 - Production
NLSRTL Version 10.2.0.3.0 - Production
Elapsed: 00:00:00.58
satyaki>
satyaki>
satyaki>select * from user_errors;
NAME TYPE SEQUENCE LINE POSITION TEXT
P PROCEDURE 1 1 1 PLS-00410: duplicate fields in RECORD,TABLE or argument list are not permitted
P PROCEDURE 2 0 0 PL/SQL: Compilation unit analysis terminated
NUM_ARRAY_REC TYPE 1 1 23 PLS-00355: use of pl/sql table not allowed in this context
NUM_ARRAY_REC TYPE 2 0 0 PL/SQL: Compilation unit analysis terminated
SPLIT FUNCTION 2 45 1 PLS-00103: Encountered the symbol "SELECT"
LOGID_TRIGGER TRIGGER 1 2 23 PLS-00357: Table,View Or Sequence reference 'LOGID.NEXTVAL' not allowed in this context
TEST_VV PROCEDURE 1 1 19 PLS-00230: OUT and IN OUT formal parameters may not have default expressions
CLOB_OBJ TYPE 1 3 18 PLS-00103: Encountered the symbol ";" when expecting one of the following:
:= . ( ) , @ % not null range default external character
The symbol ";" was ignored.
NAME TYPE SEQUENCE LINE POSITION TEXT
LOGID_TRIGGER TRIGGER 2 2 2 PL/SQL: Statement ignored
EMPLOYEE TYPE BODY 1 1 11 PLS-00201: identifier 'EMPLOYEE' must be declared
TEST_PRIVS PROCEDURE 1 6 10 PL/SQL: ORA-00942: table or view does not exist
EMPLOYEE TYPE BODY 2 1 11 PLS-00304: cannot compile body of 'EMPLOYEE' without its specification
EMPLOYEES_VIEW VIEW 1 0 0 ORA-01730: invalid number of column names specified
EMPLOYEE TYPE BODY 3 0 0 PL/SQL: Compilation unit analysis terminated
SPLIT FUNCTION 1 28 1 PLS-00103: Encountered the symbol "DECLARE"
TEST_PRIVS PROCEDURE 2 5 5 PL/SQL: SQL Statement ignored
TEST_PRIVS PROCEDURE 3 3 10 PLS-00341: declaration of cursor 'C1' is incomplete or malformed
TEST_PRIVS PROCEDURE 4 9 6 PL/SQL: Item ignored
NAME TYPE SEQUENCE LINE POSITION TEXT
TEST_PRIVS PROCEDURE 5 13 42 PLS-00364: loop index variable 'R1' use is invalid
TEST_PRIVS PROCEDURE 6 13 5 PL/SQL: Statement ignored
20 rows selected.
Elapsed: 00:00:00.30
satyaki>
satyaki>
satyaki>
satyaki>declare
2 str varchar2;
3 begin
4 nul;
5 end;
6 /
str varchar2;
ERROR at line 2:
ORA-06550: line 2, column 10:
PLS-00215: String length constraints must be in range (1 .. 32767)
ORA-06550: line 4, column 5:
PLS-00201: identifier 'NUL' must be declared
ORA-06550: line 4, column 5:
PL/SQL: Statement ignored
Elapsed: 00:00:00.42
satyaki>
satyaki>
satyaki>select * from user_errors;
NAME TYPE SEQUENCE LINE POSITION TEXT
P PROCEDURE 1 1 1 PLS-00410: duplicate fields in RECORD,TABLE or argument list are not permitted
P PROCEDURE 2 0 0 PL/SQL: Compilation unit analysis terminated
NUM_ARRAY_REC TYPE 1 1 23 PLS-00355: use of pl/sql table not allowed in this context
NUM_ARRAY_REC TYPE 2 0 0 PL/SQL: Compilation unit analysis terminated
SPLIT FUNCTION 2 45 1 PLS-00103: Encountered the symbol "SELECT"
LOGID_TRIGGER TRIGGER 1 2 23 PLS-00357: Table,View Or Sequence reference 'LOGID.NEXTVAL' not allowed in this context
TEST_VV PROCEDURE 1 1 19 PLS-00230: OUT and IN OUT formal parameters may not have default expressions
CLOB_OBJ TYPE 1 3 18 PLS-00103: Encountered the symbol ";" when expecting one of the following:
:= . ( ) , @ % not null range default external character
The symbol ";" was ignored.
NAME TYPE SEQUENCE LINE POSITION TEXT
LOGID_TRIGGER TRIGGER 2 2 2 PL/SQL: Statement ignored
EMPLOYEE TYPE BODY 1 1 11 PLS-00201: identifier 'EMPLOYEE' must be declared
TEST_PRIVS PROCEDURE 1 6 10 PL/SQL: ORA-00942: table or view does not exist
EMPLOYEE TYPE BODY 2 1 11 PLS-00304: cannot compile body of 'EMPLOYEE' without its specification
EMPLOYEES_VIEW VIEW 1 0 0 ORA-01730: invalid number of column names specified
EMPLOYEE TYPE BODY 3 0 0 PL/SQL: Compilation unit analysis terminated
SPLIT FUNCTION 1 28 1 PLS-00103: Encountered the symbol "DECLARE"
TEST_PRIVS PROCEDURE 2 5 5 PL/SQL: SQL Statement ignored
TEST_PRIVS PROCEDURE 3 3 10 PLS-00341: declaration of cursor 'C1' is incomplete or malformed
TEST_PRIVS PROCEDURE 4 9 6 PL/SQL: Item ignored
NAME TYPE SEQUENCE LINE POSITION TEXT
TEST_PRIVS PROCEDURE 5 13 42 PLS-00364: loop index variable 'R1' use is invalid
TEST_PRIVS PROCEDURE 6 13 5 PL/SQL: Statement ignored
20 rows selected.
Elapsed: 00:00:00.45
satyaki>Regards.
Satyaki De. -
Getting a compilation error when deploying a web service to OC4J.
The following are the error that I got from Oracle AS server console:
[Feb 5, 2007 11:31:14 AM] Application Deployer for edsssaws STARTS.
[Feb 5, 2007 11:31:14 AM] Copy the archive to D:\product\10.1.3\OracleAS_1\j2ee\home\applications\edsssaws.ear
[Feb 5, 2007 11:31:14 AM] Initialize D:\product\10.1.3\OracleAS_1\j2ee\home\applications\edsssaws.ear begins...
[Feb 5, 2007 11:31:14 AM] Unpacking edsssaws.ear
[Feb 5, 2007 11:31:14 AM] Done unpacking edsssaws.ear
[Feb 5, 2007 11:31:14 AM] Unpacking edsssaws-web.war
[Feb 5, 2007 11:31:16 AM] Done unpacking edsssaws-web.war
[Feb 5, 2007 11:31:16 AM] Initialize D:\product\10.1.3\OracleAS_1\j2ee\home\applications\edsssaws.ear ends...
[Feb 5, 2007 11:31:16 AM] Starting application : edsssaws
[Feb 5, 2007 11:31:16 AM] Initializing ClassLoader(s)
[Feb 5, 2007 11:31:16 AM] Initializing EJB container
[Feb 5, 2007 11:31:16 AM] Loading connector(s)
[Feb 5, 2007 11:31:16 AM] Starting up resource adapters
[Feb 5, 2007 11:31:16 AM] Initializing EJB sessions
[Feb 5, 2007 11:31:16 AM] Committing ClassLoader(s)
[Feb 5, 2007 11:31:16 AM] Initialize edsssaws-web begins...
[Feb 5, 2007 11:31:16 AM] Initialize edsssaws-web ends...
[Feb 5, 2007 11:31:16 AM] Started application : edsssaws
[Feb 5, 2007 11:31:16 AM] Binding web application(s) to site default-web-site begins...
[Feb 5, 2007 11:31:16 AM] Binding edsssaws-web web-module for application edsssaws to site default-web-site under context root edsssaws
[Feb 5, 2007 11:31:35 AM] Operation failed with error: Error compiling :D:\product\10.1.3\OracleAS_1\j2ee\home\applications\edsssaws\edsssaws-web: compilation error occurred
I don't have any problem to build the webservice using oracle:assemble command in ant script, nor compilation error in the build time.
The error log shows as the following:
<MESSAGE>
<HEADER>
<TSTZ_ORIGINATING>2007-02-05T11:31:35.392-06:00</TSTZ_ORIGINATING>
<COMPONENT_ID>oc4j</COMPONENT_ID>
<MSG_TYPE TYPE="TRACE"></MSG_TYPE>
<MSG_LEVEL>16</MSG_LEVEL>
<HOST_ID>w2gzfdx801</HOST_ID>
<HOST_NWADDR>148.94.36.32</HOST_NWADDR>
<MODULE_ID>admin.jmx.client.EventManager</MODULE_ID>
<THREAD_ID>26</THREAD_ID>
<USER_ID>SYSTEM</USER_ID>
</HEADER>
<CORRELATION_DATA>
<EXEC_CONTEXT_ID><UNIQUE_ID>148.94.36.32:33615:1170696695392:16</UNIQUE_ID><SEQ>0</SEQ></EXEC_CONTEXT_ID>
</CORRELATION_DATA>
<PAYLOAD>
<MSG_TEXT>1 events to be dispatched for: oracle.oc4j.admin.management.mejb.MEjb@a8c31b and domain: oc4j-w2gzfdx801.amer.corp.eds.com-12401-default</MSG_TEXT>
</PAYLOAD>
</MESSAGE>
<MESSAGE>
<HEADER>
<TSTZ_ORIGINATING>2007-02-05T11:31:35.392-06:00</TSTZ_ORIGINATING>
<COMPONENT_ID>oc4j</COMPONENT_ID>
<MSG_TYPE TYPE="TRACE"></MSG_TYPE>
<MSG_LEVEL>1</MSG_LEVEL>
<HOST_ID>w2gzfdx801</HOST_ID>
<HOST_NWADDR>148.94.36.32</HOST_NWADDR>
<MODULE_ID>admin.jmx.client.CoreRemoteMBeanServer</MODULE_ID>
<THREAD_ID>26</THREAD_ID>
<USER_ID>SYSTEM</USER_ID>
</HEADER>
<CORRELATION_DATA>
<EXEC_CONTEXT_ID><UNIQUE_ID>148.94.36.32:33615:1170696695392:16</UNIQUE_ID><SEQ>0</SEQ></EXEC_CONTEXT_ID>
</CORRELATION_DATA>
<PAYLOAD>
<MSG_TEXT>Dispatching event type: deploy.edsssaws and message: Application Deployer for edsssaws FAILED. to listener with id: 0 on MBeanServer proxy: oracle.oc4j.admin.management.mejb.MEjb@a8c31b</MSG_TEXT>
</PAYLOAD>
</MESSAGE>
<MESSAGE>
<HEADER>
<TSTZ_ORIGINATING>2007-02-05T11:31:35.392-06:00</TSTZ_ORIGINATING>
<COMPONENT_ID>oc4j</COMPONENT_ID>
<MSG_TYPE TYPE="ERROR"></MSG_TYPE>
<MSG_LEVEL>1</MSG_LEVEL>
<HOST_ID>w2gzfdx801</HOST_ID>
<HOST_NWADDR>148.94.36.32</HOST_NWADDR>
<MODULE_ID>admin.deploy.spi.status.ProgressObjectImpl</MODULE_ID>
<THREAD_ID>26</THREAD_ID>
<USER_ID>SYSTEM</USER_ID>
</HEADER>
<CORRELATION_DATA>
<EXEC_CONTEXT_ID><UNIQUE_ID>148.94.36.32:33615:1170696695392:16</UNIQUE_ID><SEQ>0</SEQ></EXEC_CONTEXT_ID>
</CORRELATION_DATA>
<PAYLOAD>
<MSG_TEXT>java.lang.InstantiationException: Error compiling :D:\product\10.1.3\OracleAS_1\j2ee\home\applications\edsssaws\edsssaws-web: compilation error occurred</MSG_TEXT>
<SUPPL_DETAIL><![CDATA[oracle.oc4j.admin.jmx.shared.exceptions.InternalException: java.lang.InstantiationException: Error compiling :D:\product\10.1.3\OracleAS_1\j2ee\home\applications\edsssaws\edsssaws-web: compilation error occurred
at oracle.oc4j.admin.jmx.shared.deploy.NotificationUserData.<init>(NotificationUserData.java:107)
at oracle.oc4j.admin.internal.Notifier.reportError(Notifier.java:429)
at oracle.oc4j.admin.internal.DeployerBase.execute(DeployerBase.java:123)
at oracle.oc4j.admin.jmx.server.mbeans.deploy.OC4JDeployerRunnable.doRun(OC4JDeployerRunnable.java:52)
at oracle.oc4j.admin.jmx.server.mbeans.deploy.DeployerRunnable.run(DeployerRunnable.java:81)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:819)
at java.lang.Thread.run(Thread.java:595)
Caused by: oracle.oc4j.admin.internal.DeployerException: java.lang.InstantiationException: Error compiling :D:\product\10.1.3\OracleAS_1\j2ee\home\applications\edsssaws\edsssaws-web: compilation error occurred
at oracle.oc4j.admin.internal.WebApplicationBinder.bindWebApp(WebApplicationBinder.java:214)
at oracle.oc4j.admin.internal.WebApplicationBinder.bindWebApp(WebApplicationBinder.java:96)
at oracle.oc4j.admin.internal.ApplicationDeployer.bindWebApp(ApplicationDeployer.java:541)
at oracle.oc4j.admin.internal.ApplicationDeployer.doDeploy(ApplicationDeployer.java:197)
at oracle.oc4j.admin.internal.DeployerBase.execute(DeployerBase.java:93)
... 4 more
Caused by: java.lang.InstantiationException: Error compiling :D:\product\10.1.3\OracleAS_1\j2ee\home\applications\edsssaws\edsssaws-web: compilation error occurred
at com.evermind.server.http.WrapperClassGenerator.generateWebServiceArts(WrapperClassGenerator.java:98)
at com.evermind.server.http.HttpApplication.generateWebServiceArtifacts(HttpApplication.java:8403)
at com.evermind.server.http.HttpApplication.populateLoaderWithWebServicesDeploymentCache(HttpApplication.java:5465)
at com.evermind.server.http.HttpApplication.populateLoader(HttpApplication.java:5394)
at com.evermind.server.http.HttpApplication.initClassLoader(HttpApplication.java:5333)
at com.evermind.server.http.HttpApplication.<init>(HttpApplication.java:645)
at com.evermind.server.ApplicationStateRunning.getHttpApplication(ApplicationStateRunning.java:428)
at com.evermind.server.Application.getHttpApplication(Application.java:512)
at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.createHttpApplicationFromReference(HttpSite.java:1975)
at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.<init>(HttpSite.java:1894)
at com.evermind.server.http.HttpSite.addHttpApplication(HttpSite.java:1591)
at oracle.oc4j.admin.internal.WebApplicationBinder.bindWebApp(WebApplicationBinder.java:206)
... 8 more
]]></SUPPL_DETAIL>
</PAYLOAD>
</MESSAGE>
Any idea why it happened?
Thanks,
JasonHello,
I do not see why you have this error, is it the only log entry that you have? Anything in the application.log?
Can you send me the ear? tugdual [dot] grall [at] oracle [dot] com
Regards
Tugdual Grall -
Compiler bug in 10.1.3 EA1? get "Internal compilation error" with EnumSet
The code sample below generates "Error: Internal compilation error, terminated with a fatal exception" when doing make. It's a very simple example, it creates an EnumSet with one element and dumps it via the "toString()" method.
If I change the line:
"EnumSet set = EnumSet.of(Buttons.ONE);"
To:
"EnumSet set = EnumSet.allOf(c);"
It works fine. For some reason the "of" method of "EnumSet" crashes the compiler.
Any ideas?
========================================
package mypackage;
import java.util.EnumSet;
public class EnumDemo
enum Buttons { ONE, TWO, THREE }
public EnumDemo()
public void dump()
Class c = Buttons.class;
EnumSet set = EnumSet.of(Buttons.ONE);
System.out.println(set.toString());
public static void main(String[] args)
EnumDemo cls = new EnumDemo();
cls.dump();
==============================package com.esp.main;
import java.awt.Dimension;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import javax.swing.JTree;
import javax.swing.event.TreeModelEvent;
import javax.swing.event.TreeModelListener;
import javax.swing.event.TreeSelectionEvent;
import javax.swing.event.TreeSelectionListener;
import javax.swing.tree.DefaultTreeModel;
import javax.swing.tree.TreePath;
public class TreeNavigator extends JTree {
private FormMain fm;
public TreeNavigatorNode selectedTreeNode;
public TreePath selectedTreePath;
public JTree thisTree;
public TreeNavigator(FormMain pFM) {
fm = pFM;
thisTree = this;
addTreeSelectionListener(new TreeSelectionListener() {
public void valueChanged(TreeSelectionEvent e) {
selectedTreeNode = (TreeNavigatorNode)thisTree.getLastSelectedPathComponent();
if (selectedTreeNode == null) {
return;
selectedTreePath = e.getPath();
addMouseListener(new MouseAdapter() {
public void mouseReleased(MouseEvent e) {
if (e.getClickCount() == 1) {
doPopup(e.getX(), e.getY());
String nodeInternalFrameClassName = selectedTreeNode.getInternalFrameClassName();
String nodeNodeTypeDesc = selectedTreeNode.getNodeTypeDesc();
if ((selectedTreeNode != null) && (nodeNodeTypeDesc.equals("FORM") || nodeNodeTypeDesc.equals("GRAPH"))) {
fm.showInternalFrame(nodeInternalFrameClassName, fm, null);
} else if (e.getClickCount() == 1) {
TreePath path = thisTree.getClosestPathForLocation(e.getX(), e.getY());
thisTree.setSelectionPath(path);
public void doPopup(int x, int y) {
if ((selectedTreeNode != null) && selectedTreeNode.nodeTypeDesc.equals("MODULE")) {
fm.cm.sendString("Do Nothing");
} else {
fm.cm.sendString("Launch form");
setEditable(false);
setMaximumSize(new java.awt.Dimension(3200, 3200));
setPreferredSize(new java.awt.Dimension(800, 100));
setShowsRootHandles(false);
setLargeModel(false);
setRootVisible(false);
setDragEnabled(false);
DefaultTreeModel treeNavigatorModel = new DefaultTreeModel(fm.treeNavigatorNodeArray[fm.rootNode], true);
treeModel.addTreeModelListener(new NavigatorTreeModelListener());
setModel(treeNavigatorModel);
expandAll(this);
try {
jbInit();
} catch (Exception e) {
e.printStackTrace();
public void expandAll(JTree tree) {
int row = 0;
while (row < tree.getRowCount()) {
tree.expandRow(row);
row++;
private void jbInit() throws Exception {
this.setSize(new Dimension(286, 383));
TreeNavigatorCellRenderer renderer = new TreeNavigatorCellRenderer(fm);
this.setCellRenderer(renderer);
class NavigatorTreeModelListener implements TreeModelListener {
public void treeNodesChanged(TreeModelEvent e) {
TreeNavigatorNode node;
node = (TreeNavigatorNode)(e.getTreePath().getLastPathComponent());
* If the event lists children, then the changed
* node is the child of the node we've already
* gotten. Otherwise, the changed node and the
* specified node are the same.
try {
int index = e.getChildIndices()[0];
node = (TreeNavigatorNode)(node.getChildAt(index));
} catch (NullPointerException exc) {
public void treeNodesInserted(TreeModelEvent e) {
public void treeNodesRemoved(TreeModelEvent e) {
public void treeStructureChanged(TreeModelEvent e) {
} -
Why do i get c2282 compile errors on examples using c++?
I just installed the NI board and can communicate with equipment using LAbView but when I compile an example in C++ I get error C2282 from decl-32.h missing ','?
Hello!
Thanks for contacting National Instruments.
I'm going to need to get some more information from you in order to be able to help you. First off, which example is it you are trying to compile? Also, what kind of NI board are you using? From the sounds of the error, it sounds like whatever program you are using is not including all the correct libraries and header files. Be sure to include all the correct library paths and include paths in your program.
Regards,
Steven B.
Applications Engineering
National Instruments -
Getting package compilation error
Hi
When I am compiling the package in TOAD it is compiling without any error but the same code when compile from sqlplus I am getting error saying that
PLS-00103: Encountered the symbol "END" when expecting one of the
following:
begin case declare exit for goto if loop mod null pragma
raise return select update while with <an identifier>
<a double-quoted delimited-identifier> <a bind variable> <<
close current delete fetch lock insert open rollback
savepoint set sql execute commit forall merge pipe
Could someone please help me on this.
Thanks,
YHi Y;
Did you try to run below?
SQL>ALTER PACKAGE [schema.]package_name COMPILE
[DEBUG PACKAGE|SPECIFICATION|BODY];
SQL>show errors
For more details please check:
How to show errors in compiling package body
Re: How to show errors in compiling package body
Please also check below and see its helpful:
PLS-00103 When trying to generate a Procedure [ID 122587.1]
Common Reasons for PLS-00103 [ID 199421.1]
Invalid Packages For BNE [ID 455454.1]
Regard
Helios -
Getting compilation errors in seeded jsps in R12
Hi,
We already had iStore 11i implemented since 8 years.
Now we are implementing iStore R12.
We have a custom jsp 'xxibeCCkpExpCheckout.jsp' in 11i, which we are migrating to R12.
However in R12 we are getting following compilation errors in this jsp:
ibeCCkpBHdrShipIncl.jsp:
Error(841,1): PrintWriter not found
Error(841,1): Writer not found
ibeCCkpValBillPay.jsp
Error(40,2): field optNewCreditCard not found
Error(48,2): field optNewCreditCard not found
Error(54,2): identifier errMap not found
Error(64,2): identifier errMap not found
Error(73,2): field errMap not found
Please note that above seeded jsps are included in the custom jsp.
Since the errors are coming through seeded jsps, we are not sure how to fix them.
Any prompt help/suggestion in this regard is appreciated.
ThanksHello,
Please review your custom jsp and note that the following are obsoleted packages for Release 12 -
ibeCCkpCHdrShipIncl.jsp, ibeCCkpHdrShip.jsp, ibeCCkpHdrBillPay.jsp
Confirm the ibeCCkpBHdrShipIncl.jsp is Release 12.1 version (ie version 120.6).
Also, there are changes in ibeCCkpValBillPay.jsp for Release 12 as compared to 11i. Confirm your ibeCCkpValBillPay.jsp is Release 12.1 version (ie version 120.1.12010000.2 or higher).
Confirm no errors for manual compile of the seeded jsp's and Confirm datestamp is current for class files in $COMMON_TOP/_pages
References:
Where Are The iStore Cached Java Classes In R12 ? (Doc ID:1149243.1)
How to Enable Automatic Compilation of JSP pages in R12 Environment (Doc ID:458338.1)
Please advise on any additional questions or issues.
Thank You,
Deborah Bourgeois, Oracle Customer Support -
Still getting Compilation errors in scott.emp
Hi Experts,
I am getting a compilation errors when i compile a package body:
CREATE OR REPLACE PACKAGE TABLE_EXAMPLE AS
TYPE TNAME IS RECORD(PARAMETER EMP%ROWTYPE,VALUE EMP%ROWTYPE);
TYPE TABLET IS TABLE OF TNAME;
TYPE EMP_TABLE IS TABLE OF EMP%ROWTYPE;
PROCEDURE P1(ARG IN TABLE_EXAMPLE.TABLET);
END;
CREATE TABLE TAB_PAR
(PARAMETER VARCHAR2(100 ),
PA_VALUE VARCHAR2(100)
create or replace package body table_example as
PROCEDURE P1(ARG IN TABLE_EXAMPLE.TABLET) as
l_emp_tbl emp_table:=emp_table() ;
cursor c is select * from emp;
err_msg varchar2(1000);
err_code number;
begin
for m in 1..arg.count loop
insert into tab_par(parameter,pa_value) values (arg(m).parameter,arg(m).value);
end loop;
exception
when others then
err_msg:=sqlerrm;
err_code:=sqlcode;
dbms_output.put_line(sqlerrm);
end;
end table_example;
Warning: Package Body created with compilation errors.
LINE/COL ERROR
20/49 PLS-00382: expression is of wrong type
20/66 PLS-00382: expression is of wrong typeHow do i resolve this?
Thanks.I recreated according to your suggestions but i am still getting the errors:
CREATE OR REPLACE PACKAGE TABLE_EXAMPLE2 AS
TYPE TNAME IS RECORD(P_PARAMETER varchar2(100),P_VALUE varchar2(100));
TYPE TABLET IS TABLE OF TNAME;
PROCEDURE P1(ARG IN TABLE_EXAMPLE.TABLET);
END;
create or replace package body table_example2 as
PROCEDURE P1(ARG IN TABLE_EXAMPLE.TABLET) as
begin
for m in 1..arg.last loop
insert into tab_par(parameter,pa_value) values (arg(m).p_parameter,arg(m).p_value);
end loop;
end;
end table_example2;
LINE/COL ERROR
9/1 PL/SQL: SQL Statement ignored
9/49 PLS-00382: expression is of wrong type
9/49 PL/SQL: ORA-22806: not an object or REF
9/56 PLS-00302: component 'P_PARAMETER' must be declared
9/68 PLS-00382: expression is of wrong type
9/75 PLS-00302: component 'P_VALUE' must be declared
Maybe you are looking for
-
Configuring the Synchronous scenario in XI
Hello everyone! I want to configure a "Synchronous" scenario wherein when XI sends a message to a Marketsite, it waits for a response, then send back the response to the SAP system. My question is this, would I need to configure a "sender adapter" in
-
Temporary freeze after hitting record
Greetings. I have been using Garage band, running tracks from my sharp minidisc into the program to make tracks. Lately, when I hit record, the program gets hung up for about 1-2 minutes, then unfreezes and records as usual. Any thoughts on what is h
-
SDM Deployment ESS: no reaction
I need to insert the MSS/ESS Roles etc. on our Portal EP 5.0. For this, I want to implement the Business Packages for MSS 1.0 with SDM. First Problem: It's only possible to select ONE Package not all 7. Second: After Pressing Next in Step 2 (Deployme
-
FAQ on applets???
Where can i fond FAQ's on applets.Please send me some links . Thx much
-
I just changed my operating system to OSXSnowLeopard. Now Compressor won't open. Final Cut opens and operates, but not Compressor. What can I do?