How do I see javac compiler errors during JSP precompile?

          I played with all the options that "weblogic.jspc"
          supports. I couldn't get the javac compiler errors to
          show up when there is a problem with the generated
          Java file.
          Interestingly the same JSP when compiled automatically
          by the weblogic server, the javac errors show up in
          the output.
          Any tricks? or ideas?
          thanks
          

          In WL 5.1, earlier service packs would sometimes not show the errors. Get sp6 or later.
          mike
          "Mahesh Vellanki" <[email protected]> wrote:
          >
          >
          >I played with all the options that "weblogic.jspc"
          >supports. I couldn't get the javac compiler errors to
          >show up when there is a problem with the generated
          >Java file.
          >
          >Interestingly the same JSP when compiled automatically
          >by the weblogic server, the javac errors show up in
          >the output.
          >
          >Any tricks? or ideas?
          >
          >thanks
          >
          

Similar Messages

  • Warning: Compiler errors during type creation

    Hello all,
    when I run the following little script in my Oracle 8.1.7 SQL plus spreadsheet I get the following error message:
    "Warning: Compiler errors during type creation". (This is my offhand translation from German, since I have a German version)
    There is no further hint as to what the nature of the error is or how I can fix it, but for sure I can't use the type I tried to define.
    Can anybody help?
    Here is the code:
    set serveroutput on ;
    create or replace type DataPoint as object(
    name varchar2(20)
    create or replace type DataPointList as table of DataPoint ;
    create or replace type ElementType as object (
    TypeName varchar(20),
    Datapoints DataPointList
    create or replace type ElementList as table of ElementType ;
    Regards,
    Norbert Ploett
    null

    create or replace type DataPoint as object(
    name varchar2(20)
    create table DataPointList of DataPoint ;
    create or replace type ElementType as object (
    TypeName varchar(20),
    Datapoints DataPointList
    create table ElementList of ElementType ;
    This should work in the given case
    Ravi
    Regards,
    Norbert Ploett
    Regards,
    Norbert Ploett
    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by Norbert.Ploett:
    Hello all,
    when I run the following little script in my Oracle 8.1.7 SQL plus spreadsheet I get the following error message:
    "Warning: Compiler errors during type creation". (This is my offhand translation from German, since I have a German version)
    There is no further hint as to what the nature of the error is or how I can fix it, but for sure I can't use the type I tried to define.
    Can anybody help?
    Here is the code:<HR></BLOCKQUOTE>
    null

  • [b]Error during JSP page processing[/b]

    hi , i'm mech.
    i have some probs with jsp. i am trying to connect jsp page with database and printing the data on the browser page. i have created DSN mm using microsoft odbc for oracle and oracle9i's driver oracle in orahome90 but it is giving yet . i have this coding and error.
    ------------------------jsp code--------------------------
    package pagecompile.jsp;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import javax.servlet.jsp.*;
    import java.io.PrintWriter;
    import java.io.IOException;
    import java.io.FileInputStream;
    import java.io.ObjectInputStream;
    import java.util.Vector;
    import com.sun.server.http.pagecompile.jsp.runtime.*;
    import java.beans.*;
    import com.sun.server.http.pagecompile.jsp.JspException;
    import java.sql.*;
    public class _Connect extends HttpJspBase {
    static char[][] jspxhtml_data = null;
    public _Connect( ) {
    private static boolean jspxinited = false;
    public final void jspxinit() throws JspException {
    ObjectInputStream oin = null;
    int numStrings = 0;
    try {
    FileInputStream fin = new FileInputStream("E:\\JavaWebServer2.0\\tmpdir\\default\\pagecompile\\jsp\\pagecompile.jspConnect.dat");
    oin = new ObjectInputStream(fin);
    jspxhtml_data = (char[][]) oin.readObject();
    } catch (Exception ex) {
    throw new JspException("Unable to open data file");
    } finally {
    if (oin != null)
    try { oin.close(); } catch (IOException ignore) { }
    public void _jspService(HttpServletRequest request, HttpServletResponse  response)
    throws IOException, ServletException {
    boolean jspxcleared_due_to_forward = false;
    JspFactory _jspxFactory = null;
    PageContext pageContext = null;
    HttpSession session = null;
    ServletContext application = null;
    ServletConfig config = null;
    JspWriter out = null;
    Object page = this;
    String _value = null;
    try {
    if (_jspx_inited == false) {
    jspxinit();
    jspxinited = true;
    _jspxFactory = JspFactory.getDefaultFactory();
    response.setContentType("text/html");
    pageContext = _jspxFactory.getPageContext(this, request, response,
                   "", true, 8192, true);
    application = pageContext.getServletContext();
    config = pageContext.getServletConfig();
    session = pageContext.getSession();
    out = pageContext.getOut();
    out.print(_jspx_html_data[0]);
    out.print(_jspx_html_data[1]);
    // begin [file="E:\\JavaWebServer2.0\\public_html\\Connect.jsp";from=(14,2);to=(28,2)]
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    Connection myconn=DriverManager.getConnection("Jdbc:Odbc:mm","madhulika","madhulika");
    Statement stmt = myconn.createStatement();
    ResultSet myResultSet = stmt.executeQuery("Select * from peopletable");
    if(myResultSet != null)
         while(myResultSet.next())
              int eid=myResultSet.getInt("id");
              String fname=myResultSet.getString("firstname");
              String lname=myResultSet.getString("lastname");
              String mail=myResultSet.getString("email");
    // end
    out.print(_jspx_html_data[2]);
    // begin [file="E:\\JavaWebServer2.0\\public_html\\Connect.jsp";from=(30,10);to=(30,13)]
    out.print(eid);
    // end
    out.print(_jspx_html_data[3]);
    // begin [file="E:\\JavaWebServer2.0\\public_html\\Connect.jsp";from=(31,10);to=(31,15)]
    out.print(fname);
    // end
    out.print(_jspx_html_data[4]);
    // begin [file="E:\\JavaWebServer2.0\\public_html\\Connect.jsp";from=(32,10);to=(32,15)]
    out.print(lname);
    // end
    out.print(_jspx_html_data[5]);
    // begin [file="E:\\JavaWebServer2.0\\public_html\\Connect.jsp";from=(33,10);to=(33,14)]
    out.print(mail);
    // end
    out.print(_jspx_html_data[6]);
    // begin [file="E:\\JavaWebServer2.0\\public_html\\Connect.jsp";from=(37,5);to=(43,0)]
    stmt.close();
    myconn.close();
    // end
    out.print(_jspx_html_data[7]);
    } catch (Throwable t) {
    if (out.getBufferSize() != 0)
    out.clear();
    throw new JspException("Unknown exception: ", t);
    } finally {
    if (!_jspx_cleared_due_to_forward)
    out.flush();
    _jspxFactory.releasePageContext(pageContext);
    -------------------error in browser----------------------
    Error during JSP page processing
    java.sql.SQLException: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
         at java.lang.Throwable.(Compiled Code)
         at java.lang.Exception.(Compiled Code)
         at java.sql.SQLException.(SQLException.java:43)
         at sun.jdbc.odbc.JdbcOdbc.createSQLException(Compiled Code)
         at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:3814)
         at sun.jdbc.odbc.JdbcOdbc.SQLDriverConnect(JdbcOdbc.java:1029)
         at sun.jdbc.odbc.JdbcOdbcConnection.initialize(JdbcOdbcConnection.java:145)
         at sun.jdbc.odbc.JdbcOdbcDriver.connect(JdbcOdbcDriver.java:165)
         at java.sql.DriverManager.getConnection(Compiled Code)
         at java.sql.DriverManager.getConnection(DriverManager.java:126)
         at pagecompile.jsp._Connect._jspService(Compiled Code)
         at com.sun.server.http.pagecompile.jsp.runtime.HttpJspBase.service(HttpJspBase.java:87)
         at javax.servlet.http.HttpServlet.service(Compiled Code)
         at com.sun.server.http.pagecompile.jsp.runtime.JspServlet.runServlet(JspServlet.java:469)
         at com.sun.server.http.pagecompile.jsp.runtime.JspServlet.processJspPage(JspServlet.java:259)
         at com.sun.server.http.pagecompile.jsp.runtime.JspServlet.service(JspServlet.java:97)
         at javax.servlet.http.HttpServlet.service(Compiled Code)
         at com.sun.server.ServletState.callService(ServletState.java:226)
         at com.sun.server.ServletManager.callServletService(ServletManager.java:936)
         at com.sun.server.ProcessingState.invokeTargetServlet(ProcessingState.java:423)
         at com.sun.server.http.HttpProcessingState.execute(HttpProcessingState.java:79)
         at com.sun.server.http.stages.Runner.process(Runner.java:79)
         at com.sun.server.ProcessingSupport.process(Compiled Code)
         at com.sun.server.Service.process(Service.java:204)
         at com.sun.server.http.HttpServiceHandler.handleRequest(HttpServiceHandler.java:374)
         at com.sun.server.http.HttpServiceHandler.handleRequest(Compiled Code)
         at com.sun.server.HandlerThread.run(Compiled

    Backing up a moment, is there a particular reason that you're using the JDBC-ODBC bridge rather than using the Oracle JDBC driver?
    Have you taken a look at the JSP sample code available on OTN? I would start by making sure you can run that.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • How to change font in "compiler errors". Shows some script font I can't read

    The font on my "compiler errors" panel is a script font I can't read. How do I change it? I posted a screenshot of the problem http://www.obxwebdesigner.com/images/flashprob.png

    Called Adobe them they sent me to this....
    http://helpx.adobe.com/flash/kb/re-create-preferences-flash-professional.html
    Removed all the files. Didn't work. Still there.

  • Compile error during Flex Deployment of a Webservice

    Hello,
    We are using the Visual Composer (7.0 SP9) to display the data from a home made Web Service. This is the complete display of a simple table without input.
    We tested the Web Service with the "Test Dat Service" option and within the Web Service Navigator of the J2EE Engine. This all worked fine.
    When we try to deploy the application with Flash/Flex it fails, but when we try to deploy it with WebDynpro, the table is displayed correctly.
    The following error is created during the compilation:
    Error in compiling Flex application: Error 1049: Expected a field name after '.' operator.
          (E:\usr\sap\DP6\JC00\j2ee\cluster\server0\GUIMachine_Business_Packages\Prodin_Taken_2_8620\FLEX_COMPILATION_FOLEDR\AAD25B.mxml:300)
    Error 1205: The statement '' is incomplete.
          (E:\usr\sap\DP6\JC00\j2ee\cluster\server0\GUIMachine_Business_Packages\Prodin_Taken_2_8620\FLEX_COMPILATION_FOLEDR\AAD25B.mxml:300)
    Error 1099: This statement is not permitted in a class definition.
          (E:\usr\sap\DP6\JC00\j2ee\cluster\server0\GUIMachine_Business_Packages\Prodin_Taken_2_8620\FLEX_COMPILATION_FOLEDR\AAD25B.mxml:302)
    Error 1099: This statement is not permitted in a class definition.
          (E:\usr\sap\DP6\JC00\j2ee\cluster\server0\GUIMachine_Business_Packages\Prodin_Taken_2_8620\FLEX_COMPILATION_FOLEDR\AAD25B.mxml:303)
    Error 1099: This statement is not permitted in a class definition.
          (E:\usr\sap\DP6\JC00\j2ee\cluster\server0\GUIMachine_Business_Packages\Prodin_Taken_2_8620\FLEX_COMPILATION_FOLEDR\AAD25B.mxml:304)
    Error 1099: This statement is not permitted in a class definition.
          (E:\usr\sap\DP6\JC00\j2ee\cluster\server0\GUIMachine_Business_Packages\Prodin_Taken_2_8620\FLEX_COMPILATION_FOLEDR\AAD25B.mxml:305)
    Error 1099: This statement is not permitted in a class definition.
          (E:\usr\sap\DP6\JC00\j2ee\cluster\server0\GUIMachine_Business_Packages\Prodin_Taken_2_8620\FLEX_COMPILATION_FOLEDR\AAD25B.mxml:307)
    Error 1128: Attribute used outside class.
          (E:\usr\sap\DP6\JC00\j2ee\cluster\server0\GUIMachine_Business_Packages\Prodin_Taken_2_8620\FLEX_COMPILATION_FOLEDR\AAD25B.mxml:310)
    Error 1128: Attribute used outside class.
          (E:\usr\sap\DP6\JC00\j2ee\cluster\server0\GUIMachine_Business_Packages\Prodin_Taken_2_8620\FLEX_COMPILATION_FOLEDR\AAD25B.mxml:337)
    Error 1049: Expected a field name after '.' operator.
          (E:\usr\sap\DP6\JC00\j2ee\cluster\server0\GUIMachine_Business_Packages\Prodin_Taken_2_8620\FLEX_COMPILATION_FOLEDR\AAD25B.mxml:355)
    Error 1205: The statement '' is incomplete.
          (E:\usr\sap\DP6\JC00\j2ee\cluster\server0\GUIMachine_Business_Packages\Prodin_Taken_2_8620\FLEX_COMPILATION_FOLEDR\AAD25B.mxml:355)
    Error 1140: ActionScript 2.0 class scripts may only define class or interface constructs.
          (E:\usr\sap\DP6\JC00\j2ee\cluster\server0\GUIMachine_Business_Packages\Prodin_Taken_2_8620\FLEX_COMPILATION_FOLEDR\AAD25B.mxml:337)
    Error 1128: Attribute used outside class.
          (E:\usr\sap\DP6\JC00\j2ee\cluster\server0\GUIMachine_Business_Packages\Prodin_Taken_2_8620\FLEX_COMPILATION_FOLEDR\AAD25B.mxml:376)
    Error 1128: Attribute used outside class.
          (E:\usr\sap\DP6\JC00\j2ee\cluster\server0\GUIMachine_Business_Packages\Prodin_Taken_2_8620\FLEX_COMPILATION_FOLEDR\AAD25B.mxml:394)
    Error 1128: Attribute used outside class.
          (E:\usr\sap\DP6\JC00\j2ee\cluster\server0\GUIMachine_Business_Packages\Prodin_Taken_2_8620\FLEX_COMPILATION_FOLEDR\AAD25B.mxml:408)
    Error 1029: Unexpected '}' encountered
          (E:\usr\sap\DP6\JC00\j2ee\cluster\server0\GUIMachine_Business_Packages\Prodin_Taken_2_8620\FLEX_COMPILATION_FOLEDR\AAD25B.mxml:417)
    Failed to compile AAD25B.mxml
    Does anybody know what the problem could be?
    Thanks in advance,
    Edwin Oldenburg

    Hi Edwin,
    have you access to the AAD25B.mxml file and take a look at the lines where the errors occurs?
    Maybe you get further particulars about the errors.
    But I think, this is an error in VC, but I'm not sure.
    Best Regards,
    Marcel

  • How can I invoke javac compiler

    Hello
    I want to invoke javac compiler to compile a java file in my file and also I want
    to redirect the output or error to a text file.

    That is possible. I recommend you to look at the ant source code or jasper source code to get an idea. http://jakarta.apache.org/tomcat/tomcat-4.0-doc/jasper/docs/api/org/apache/jasper/compiler/SunJavaCompiler.html
    Hope this helps.

  • Flex 2 Compatibility?  Seeing StreamingAMFChannel compile error

    I have seen postings such as <br />http://tjordahl.blogspot.com/2008/03/blazeds-and-flex-2-compatibility.html<br />suggesting that BlazeDS is compatible with the latest versions of Flex 2 SDK.<br /><br />My experience shows that this may not be completely true.<br /><br />In Flex Builder 3, I have created a project using Flex 2.0.1 Hotfix 3 SDK.<br />This points to:<br />C:\Program Files\Adobe\Flex Builder 3\sdks\2.0.1<br />which is build 180927.<br /><br />I have code like this:<br /><br />public function sendRequest(): void {<br />        var ro:RemoteObject = new RemoteObject();<br />        ro.addEventListener(ResultEvent.RESULT, resultHandler);<br />        ro.addEventListener(FaultEvent.FAULT, faultHandler);                  <br />                  <br />             <br />     if (_channelId != null && _channelUrl != null)<br />        {<br />   var cs:ChannelSet = new ChannelSet();<br />                    <br />   var myChannel:AMFChannel = new AMFChannel(_channelId, _channelUrl);<br />   myChannel.pollingEnabled = true;<br />   myChannel.pollingInterval = 8000;<br />   cs.addChannel(myChannel);<br />   ro.channelSet = cs;<br />        }<br />               <br /><br />   ro.destination = "myService";<br />   ro.channelSet = cs;<br />                                   <br />   ro.myOperation();               <br />}<br /><br />When compiling this I get the following error message:<br /><br />Channel definition, mx.messaging.channels.StreamingAMFChannel, can not be found.<br /><br />Even when I comment out the above code referencing AMFChannel, the compile error still occurs (even when doing a "clean" build).<br /><br />Here are the relevant compiler settings:<br /><br /><?xml version="1.0" encoding="UTF-8"?><br /><actionScriptProperties mainApplicationPath="client.mxml" version="3"><br /><compiler additionalCompilerArguments="-services &quot;C:\tomcat_blazeDS\webapps\myservice\WEB-INF\flex\services-config.xml&quot;<br />  -locale en_US" copyDependentFiles="true" enableModuleDebug="true" flexSDK="Flex 2.0.1 Hotfix 3" generateAccessible="false"<br />   htmlExpressInstall="true" htmlGenerate="true" htmlHistoryManagement="true" htmlPlayerVersion="9.0.28" htmlPlayerVersionCheck="true" <br />   outputFolderLocation="C:/tomcat_blazeDS/webapps/myservice/swf" outputFolderPath="bin-debug" sourceFolderPath="src" <br />   strict="true" useApolloConfig="false" verifyDigests="true" warn="true"><br /><compilerSourcePath/><br /><libraryPath defaultLinkType="1"><br /><libraryPathEntry kind="4" path=""><br /><modifiedEntries><br /><libraryPathEntry kind="3" linkType="4" path="${PROJECT_FRAMEWORKS}/libs/framework.swc" useDefaultLinkType="true"><br /><crossDomainRsls><br /><crossDomainRslEntry autoExtract="true" policyFileUrl="" rslUrl="framework_3.0.0.477.swz"/><br /><crossDomainRslEntry autoExtract="true" policyFileUrl="" rslUrl="framework_3.0.0.477.swf"/><br /></crossDomainRsls><br /></libraryPathEntry><br /></modifiedEntries><br /></libraryPathEntry><br /><libraryPathEntry kind="1" linkType="1" path="libs"/><br /><libraryPathEntry kind="3" linkType="1" path="myCore.swc" useDefaultLinkType="false"/><br /></libraryPath><br /><sourceAttachmentPath/><br /></compiler><br /><applications><br /><application path="client.mxml"/><br /></applications><br /><modules/><br /><buildCSSFiles/><br /></actionScriptProperties><br /><br />Any comments on whether this should work, and is supported?  If this is expected to work, I would also appreciate some ideas on work-arounds.<br /><br />Thank you,<br />David

    David,
    Even when you comment out the channel (actually all channels) that has the
    reference to mx.messaging.channels.StreamingAMFChannel this still doesn't
    work?
    Are you sure that FlexBuilder is pointing at the right services-config.xml
    file when it compiles the MXML? It can't point at a BlazeDS 'default'
    config.
    It sounds like the problem is that the Flex2 libraries in the swf are trying
    to load that channel class which is new for Flex3 and it isn't there.
    Removing any and all references to this class in the config files used to
    compile the swf should fix it.
    Let us knwo if that isn't it.
    Tom Jordahl

  • Compilation error in jsp script with weblogic 9.1 server

    Hi All,
              i am using weblogic 9.1 compiler to compile my jsp code.
              it gives me compilation error.
              The root cause of the error is %% which comes in the code.
              for e.g take this code:-
              <%
              System.out.println("%%abc");
              %>
              this code will give error while error.
              here it is identifing %% as termination tag!
              same code works in tomcat & weblogic 8.1
              can anyone give any information in this regard.
              Reagrds
              Rahul

    I am also getting the same error. If you have solved this issue please share the solution.
              Thanks,
              Dikshit

  • Compiler error: Missing JSP library?

    Hi All,
    I am really new at this, and I know that I'm making some sort of simple mistake.
    I have an existing application running on a 9i middle tier. I want to make a couple of simple changes to a .JSP. So I downloaded the EAR file, loaded it into JDeveloper (10.1.3.0.4 SU4), made my changes and tried to run it locally. I got 241 compiler errors. So I reverted to the original EAR, and I still get 241 compiler errors.
    The errors are:
    Error(1,5): illegal forward reference
    Error(1,14): duplicate definition of class _index
    Error(1,48): HttpJsp not found in class _index
    Error(1,62): method getPageContext(_index, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, null, boolean, int, boolean) not found in class javax.servlet.jsp.JspFactory
    The code is:
    <sample>
    import oracle.jsp.runtime.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import javax.servlet.jsp.*;
    public class _index extends oracle.jsp.runtime.HttpJsp {
    public final String _globalsClassName = null;
    public void _jspService(HttpServletRequest request, HttpServletResponse response) throws java.io.IOException, ServletException {
    response.setContentType( "text/html;charset=windows-1252");
    /* set up the intrinsic variables using the pageContext goober:
    ** session = HttpSession
    ** application = ServletContext
    ** out = JspWriter
    ** page = this
    ** config = ServletConfig
    ** all session/app beans declared in globals.jsa
    PageContext pageContext = JspFactory.getDefaultFactory().getPageContext( this, request, response, null, true, JspWriter.DEFAULT_BUFFER, true);
    // Note: this is not emitted if the session directive == false
    HttpSession session = pageContext.getSession();
    if (pageContext.getAttribute(OracleJspRuntime.JSP_REQUEST_REDIRECTED, PageContext.REQUEST_SCOPE) != null) {
    pageContext.setAttribute(OracleJspRuntime.JSP_PAGE_DONTNOTIFY, "true", PageContext.PAGE_SCOPE);
    JspFactory.getDefaultFactory().releasePageContext(pageContext);
    return;
    </sample>
    So, I read the forums, etc and decided that I need ojsp.jar included in my project libraries. So I went to libraries under project properties, and I already have "Jsp Runtime" as my first library and it claims to include ojsp.jar. I've tried removing and re-adding the library, adding other libraries ("J2EE","Servlet Runtime","OC4J Deployment Plugin"...), and a dozen other things, none of which have allowed my to compile.
    Any ideas on what I should do?
    Steven

    you might need to post more code, but basically the
    compiler is complaining because you do not have a
    return statement at the end of your method.
    if you do not have a return statement (with a matching
    return type) then the compiler will complain. If you
    don't understand this then post the code to your
    method and we can get it fixed.
    public String[] read(InputStream list) throws
    Exception {
    String[] stringArray;
    return stringArray;
    The code is the most complex I have written so far but here is some of it. (the begining and the end)
    public String[] read(InputStream list) throws Exception {
    if (list != null) {
    String[] stringArray = null;
    try {
    while {
    //add strings to string array
    }//end of while
    return stringArray;
    }// end try
    catch{
    }//end of method

  • Javac compiler Error - cannot resolve symbol - symbol  StringBuilder?

    Hi ,
    I am using hp - ux system with java version "1.4.2.06". when i try to compile a program called CharSequenceDemo.java which is found in the java tutorials at this link
    [CharSequenceDemo.java|http://java.sun.com/docs/books/tutorial/java/IandI/examples/CharSequenceDemo.java]
    i get the following error:
    $/opt/java1.4/bin/javac CharSequenceDemo.java
    CharSequenceDemo.java:38: cannot resolve symbol
    symbol : class StringBuilder
    location: class CharSequenceDemo
    StringBuilder sub =
    ^
    CharSequenceDemo.java:39: cannot resolve symbol
    symbol : class StringBuilder
    location: class CharSequenceDemo
    new StringBuilder(s.subSequence(fromEnd(end), fromEnd(start)));
    ^
    CharSequenceDemo.java:44: cannot resolve symbol
    symbol : class StringBuilder
    location: class CharSequenceDemo
    StringBuilder s = new StringBuilder(this.s);
    ^
    CharSequenceDemo.java:44: cannot resolve symbol
    symbol : class StringBuilder
    location: class CharSequenceDemo
    StringBuilder s = new StringBuilder(this.s);
    ^
    4 errors
    Please help on how to compile this program.

    I've been struggling with the same issue. The difference is that my system says I'm using version 1.6.0_05. I've tried running jucheck.exe. It tells me I've got the latest version installed.
    Here is the code:
    import java.lang.StringBuilder;
    import java.util.Formatter;
       public class UsingFormatter {
         public static void main(String[] args) {
           if (args.length != 1) {
             System.err.println("usage: " +
               "java format/UsingFormatter <format string>");
             System.exit(0);
           String format = args[0];
           StringBuilder stringBuilder = new StringBuilder();
           Formatter formatter = new Formatter(stringBuilder);
           formatter.format("Pi is approximately " + format +
             ", and e is about " + format, Math.PI, Math.E);
           System.out.println(stringBuilder);
       }When I type javac UsingFormatter.java, I get:
    UsingFormatter.java:1: cannot resolve symbol
    symbol : class StringBuilder
    location: package lang
    import java.lang.StringBuilder;
    ^
    UsingFormatter.java:2: cannot resolve symbol
    symbol : class Formatter
    location: package util
    import java.util.Formatter;
    ^
    UsingFormatter.java:14: cannot resolve symbol
    symbol : class StringBuilder
    location: class UsingFormatter
    StringBuilder stringBuilder = new StringBuilder();
    ^
    UsingFormatter.java:14: cannot resolve symbol
    symbol : class StringBuilder
    location: class UsingFormatter
    StringBuilder stringBuilder = new StringBuilder();
    ^
    UsingFormatter.java:15: cannot resolve symbol
    symbol : class Formatter
    location: class UsingFormatter
    Formatter formatter = new Formatter(stringBuilder);
    ^
    UsingFormatter.java:15: cannot resolve symbol
    symbol : class Formatter
    location: class UsingFormatter
    Formatter formatter = new Formatter(stringBuilder);
    ^
    6 errors
    The compiler refuses to recognize the symbols StringBuilder and Formatter.
    I have spent hours googling for an answer and trying every suggestion. Nothing works, not even the one about dropping the computer from the rooftop.
    Ultimately, what I'm trying to accomplish (in a different program) is to use a text file as a form letter template and replace the %s placeholders with stings from my form object.
    Any advice?
    Edited by: javastudent_99 on Apr 3, 2008 1:48 PM

  • JDeveloper Compiler Error during BPEL flow deployment

    Hi,
    Has anyone encountered the following during BPEL deployment? I am using JDeveloper 10.1.3.4. I was able to deploy last week without any problems.
    Compiling...
    Compiling D:\Datos\Jazztel\Cancelador\bpel\Cancelador.bpel
    [BPEL Compiler] Initializing compiler for first time use...
    BPEL suitcase generated in: D:\Datos\Jazztel\Cancelador\output\bpel_Cancelador_2.6.6.jar
    D:\Datos\jdevstudio10134\jdk\jre\bin\java.exe -jar D:\Datos\jdevstudio10134\jdev\lib\ojc.jar -source 1.5 -target 1.5 -noquiet -warn -nowarn:320 -nowarn:486 -nowarn:487 -deprecation:self -nowarn:560 -nowarn:704 -nowarn:489 -nowarn:415 -nowarn:909 -nowarn:412 -nowarn:414 -nowarn:561 -nowarn:376 -nowarn:371 -nowarn:558 -nowarn:375 -nowarn:413 -nowarn:377 -nowarn:372 -nowarn:557 -nowarn:556 -nowarn:559 -encoding Cp1252 -g -d D:\Datos\Jazztel\Cancelador\output -make D:\Datos\Jazztel\Cancelador\output\Cancelador.cdi -classpath D:\Datos\jdevstudio10134\jdk\jre\lib\rt.jar;D:\Datos\jdevstudio10134\jdk\jre\lib\i18n.jar;D:\Datos\jdevstudio10134\jdk\jre\lib\sunrsasign.jar;D:\Datos\jdevstudio10134\jdk\jre\lib\jsse.jar;D:\Datos\jdevstudio10134\jdk\jre\lib\jce.jar;D:\Datos\jdevstudio10134\jdk\jre\lib\charsets.jar;D:\Datos\jdevstudio10134\jdk\jre\classes;D:\Datos\Jazztel\Cancelador\output;D:\Datos\jdevstudio10134\toplink\jlib\toplink.jar;D:\Datos\jdevstudio10134\toplink\jlib\toplink-oc4j.jar;D:\Datos\jdevstudio10134\toplink\jlib\antlr.jar;D:\Datos\jdevstudio10134\lib\xmlparserv2.jar;D:\Datos\jdevstudio10134\lib\xml.jar -sourcepath D:\Datos\Jazztel\Cancelador\src;D:\Datos\jdevstudio10134\jdk\src.zip;D:\Datos\jdevstudio10134\toplink\jlib\toplink-src.zip D:\Datos\Jazztel\Cancelador\src\ConsultaInstanciasCS\Customerservicecrmkpn.java D:\Datos\Jazztel\Cancelador\src\CustomerServices\Customerservicesconstantes.java D:\Datos\Jazztel\Cancelador\src\DBCONSTANTES\Constantes.java D:\Datos\Jazztel\Cancelador\src\DBCONSULTAHISTORICO\Historico.java D:\Datos\Jazztel\Cancelador\src\DBERRORESSISTEMA\Erroressistemasacciones.java D:\Datos\Jazztel\Cancelador\src\DBETAPAS\EtapasCompletadas.java D:\Datos\Jazztel\Cancelador\src\DBINSERTARINCIDENCIA\Incidencias.java D:\Datos\Jazztel\Cancelador\src\DBINSERTETAPASCOMPLETADAS\EtapasCompletadas.java D:\Datos\Jazztel\Cancelador\src\DBINSERTHISTORICO\Historico.java D:\Datos\Jazztel\Cancelador\src\DBINSERTORDERPROGRESS\Ordersprogress.java D:\Datos\Jazztel\Cancelador\src\DBNOTIFICACIONESASINCRONAS\NotifRedAsincronas.java D:\Datos\Jazztel\Cancelador\src\DBORDENESCRM\OrdenesCrm.java D:\Datos\Jazztel\Cancelador\src\DBORDENESMNP\OrdenesMnp.java D:\Datos\Jazztel\Cancelador\src\DBORDENESRED\OrdenesRed.java D:\Datos\Jazztel\Cancelador\src\DBPEDIDO\EtapasCompletadas.java D:\Datos\Jazztel\Cancelador\src\DBPEDIDO\Historico.java D:\Datos\Jazztel\Cancelador\src\DBPEDIDO\Pedidos.java D:\Datos\Jazztel\Cancelador\src\DBUPDATEETAPAADDONS\EtapasCompletadas.java D:\Datos\Jazztel\Cancelador\src\DBUPDATEETAPAS\EtapasCompletadas.java D:\Datos\Jazztel\Cancelador\src\DBUPDATEETAPAS\Historico.java
    Error: compiler internal error
    *** OJC internal error log written to file C:\DOCUME~1\anipatel\CONFIG~1\Temp\ojcInternalError.log
    [10:45:12] Compilation complete: 1 errors, 156 warnings.
    The log file mentioned contains the following:
    OJC internal error log:
    Compiler version: 10.1.3
    Build number: 4270
    Source files:
         D:\Datos\Jazztel\Cancelador\src\ConsultaInstanciasCS\Customerservicecrmkpn.java
         D:\Datos\Jazztel\Cancelador\src\CustomerServices\Customerservicesconstantes.java
         D:\Datos\Jazztel\Cancelador\src\DBCONSTANTES\Constantes.java
         D:\Datos\Jazztel\Cancelador\src\DBCONSULTAHISTORICO\Historico.java
         D:\Datos\Jazztel\Cancelador\src\DBERRORESSISTEMA\Erroressistemasacciones.java
         D:\Datos\Jazztel\Cancelador\src\DBETAPAS\EtapasCompletadas.java
         D:\Datos\Jazztel\Cancelador\src\DBINSERTARINCIDENCIA\Incidencias.java
         D:\Datos\Jazztel\Cancelador\src\DBINSERTETAPASCOMPLETADAS\EtapasCompletadas.java
         D:\Datos\Jazztel\Cancelador\src\DBINSERTHISTORICO\Historico.java
         D:\Datos\Jazztel\Cancelador\src\DBINSERTORDERPROGRESS\Ordersprogress.java
         D:\Datos\Jazztel\Cancelador\src\DBNOTIFICACIONESASINCRONAS\NotifRedAsincronas.java
         D:\Datos\Jazztel\Cancelador\src\DBORDENESCRM\OrdenesCrm.java
         D:\Datos\Jazztel\Cancelador\src\DBORDENESMNP\OrdenesMnp.java
         D:\Datos\Jazztel\Cancelador\src\DBORDENESRED\OrdenesRed.java
         D:\Datos\Jazztel\Cancelador\src\DBPEDIDO\EtapasCompletadas.java
         D:\Datos\Jazztel\Cancelador\src\DBPEDIDO\Historico.java
         D:\Datos\Jazztel\Cancelador\src\DBPEDIDO\Pedidos.java
         D:\Datos\Jazztel\Cancelador\src\DBUPDATEETAPAADDONS\EtapasCompletadas.java
         D:\Datos\Jazztel\Cancelador\src\DBUPDATEETAPAS\EtapasCompletadas.java
         D:\Datos\Jazztel\Cancelador\src\DBUPDATEETAPAS\Historico.java
    Options:
         source: 150
         target: 150
         classpath: D:\Datos\jdevstudio10134\jdk\jre\lib\ext\sunjce_provider.jar;D:\Datos\jdevstudio10134\jdk\jre\lib\ext\sunpkcs11.jar;D:\Datos\jdevstudio10134\jdk\jre\lib\ext\localedata.jar;D:\Datos\jdevstudio10134\jdk\jre\lib\ext\dnsns.jar;D:\Datos\jdevstudio10134\jdk\jre\lib\rt.jar;D:\Datos\jdevstudio10134\jdk\jre\lib\i18n.jar;D:\Datos\jdevstudio10134\jdk\jre\lib\sunrsasign.jar;D:\Datos\jdevstudio10134\jdk\jre\lib\jsse.jar;D:\Datos\jdevstudio10134\jdk\jre\lib\jce.jar;D:\Datos\jdevstudio10134\jdk\jre\lib\charsets.jar;D:\Datos\jdevstudio10134\jdk\jre\classes;D:\Datos\Jazztel\Cancelador\output;D:\Datos\jdevstudio10134\toplink\jlib\toplink.jar;D:\Datos\jdevstudio10134\toplink\jlib\toplink-oc4j.jar;D:\Datos\jdevstudio10134\toplink\jlib\antlr.jar;D:\Datos\jdevstudio10134\lib\xmlparserv2.jar;D:\Datos\jdevstudio10134\lib\xml.jar
         sourcepath: D:\Datos\Jazztel\Cancelador\srcD:\Datos\jdevstudio10134\jdk\src.zipD:\Datos\jdevstudio10134\toplink\jlib\toplink-src.zip
         encoding: Cp1252
         excluded cls:
         rebuild: false
         noCodeGen: false
         lineNumbers: true
         sourceFile: true
         localVars: true
         codecoach: true
         omitAsserts: false
    Parser:
         errorFound: false
    java.lang.ArrayIndexOutOfBoundsException: 110
         at oracle.ojc.compiler.DepInfo.readInt(DepInfo.java:521)
         at oracle.ojc.compiler.DepInfo.readName(DepInfo.java:541)
         at oracle.ojc.compiler.DepInfo.read(DepInfo.java:578)
         at oracle.ojc.compiler.DepInfo.analyzeSources(DepInfo.java:279)
         at oracle.ojc.compiler.Compiler.main_internal(Compiler.java:1088)
         at oracle.ojc.compiler.Compiler.main_throws_exceptions(Compiler.java:816)
         at oracle.ojc.compiler.Compiler.main(Compiler.java:836)
         at oracle.jdeveloper.compiler.Ojc.translate(Ojc.java:1541)
         at oracle.jdeveloper.compiler.UnifiedBuildSystem$CompileThread.buildGraph(UnifiedBuildSystem.java:300)
         at oracle.jdeveloper.compiler.UnifiedBuildSystem$CompileThread.buildProjectFiles(UnifiedBuildSystem.java:516)
         at oracle.jdeveloper.compiler.UnifiedBuildSystem$CompileThread.buildProject(UnifiedBuildSystem.java:609)
         at oracle.jdeveloper.compiler.UnifiedBuildSystem$CompileThread.buildAll(UnifiedBuildSystem.java:666)
         at oracle.jdeveloper.compiler.UnifiedBuildSystem$CompileThread.run(UnifiedBuildSystem.java:894)

    Just an update to this...
    I copied the BPEL flow project to our Linux server, where I was successfully able to compile and deploy the flow using devprompt and Ant. So, the problem is with JDev on my PC, but I'm not sure why though.
    I have rebooted my PC, shutdown any unnecessary apps, and the problem continues. Will see if the problem exists with other flows.
    Anit

  • Compile error during make: ansidecl.h: No such file or directory

    Hi - I was trying to make a ruby app and I ran into the following error which seems to have originated in gcc. I can't seem to find much about it on Google, would very much appreciate some help with how to get to the bottom of this, thanks!:
    checking for main() in -liberty... no
    creating Makefile
    In file included from dirfibheap.h:5,
    from dirfibheap.c:2:
    *fibheap.h:44:22: error: ansidecl.h: No such file or directory*
    make: * \[dirfibheap.o] Error 1
    gcc -fno-common -g -Os -pipe -fno-common -pipe -fno-common -pipe -fno-common -I. -I/usr/lib/ruby/1.8/universal-darwin8.0 -I/usr/lib/ruby/1.8/universal-darwin8.0 -I. -c dirfibheap.c

    Apple's gcc doesn't come with this file. It is unlikely that simply getting a version of the file will work. My guess is that you would have to either install an alternative version of gcc which includes it or edit the source code of the app you're compiling to avoid it. Whether either of these would work, I can't say. Obviously this application is not ported to or supported on Mac OS X (if it is meant to be, report the bug). That means there are likely other issues which will crop up if you sort this one. I don't say this to put you off but only as a warning. (This may be superfluous and you may know all this very well. If so, my apologies.)
    What are you trying to compile? Have you tried the forums for the application? Has anybody else compiled it for OS X? Have you seen if Fink or Mac Ports have it?
    - cfr

  • Compile error during deployment. (App. Server 8 with Mysql)

    I am using Sun Application Server 8 with several Mysql databases.
    When I attempt to deploy my .EAR, the App Server's CMP compiler gives an error regarding missing JDO classes.
    I did try dowloading JDO from java.sun.com, but noted that the jdo jars do not contain the needed classes referenced in the error.
    Error follows:
    [#|2004-04-07T13:14:16.812-0500|WARNING|sun-appserver-pe8.0|javax.enterprise.system.tools.deployment|_ThreadID=11;|JDO74030: JDOCodeGenerator: Caught an IOException initializing CMP code generation for application 'WholeSpectrum' module 'ejb-jar-ic': JDO7001: Cannot find resource com/sun/jdo/spi/persistence/generator/database/MYSQL.properties.|#]
    [#|2004-04-07T13:14:16.828-0500|WARNING|sun-appserver-pe8.0|javax.enterprise.system.stream.err|_ThreadID=11;|JDO74030: JDOCodeGenerator: Caught an IOException initializing CMP code generation for application 'WholeSpectrum' module 'ejb-jar-ic': JDO7001: Cannot find resource com/sun/jdo/spi/persistence/generator/database/MYSQL.properties.
         at com.sun.ejb.codegen.CmpCompiler.compile(CmpCompiler.java:274)
         at com.sun.ejb.codegen.IASEJBC.doCompile(IASEJBC.java:617)
         at com.sun.ejb.codegen.IASEJBC.ejbc(IASEJBC.java:565)
         at com.sun.enterprise.deployment.backend.EJBCompiler.preDeployApp(EJBCompiler.java:360)
         at com.sun.enterprise.deployment.backend.EJBCompiler.compile(EJBCompiler.java:208)
         at com.sun.enterprise.deployment.backend.AppDeployer.runEJBC(AppDeployer.java:292)
         at com.sun.enterprise.deployment.backend.AppDeployer.deploy(AppDeployer.java:173)
         at com.sun.enterprise.deployment.backend.AppDeployer.doRequestFinish(AppDeployer.java:105)
         at com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase(J2EECPhase.java:124)
         at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:74)
         at com.sun.enterprise.deployment.phasing.DeploymentService.executePhases(DeploymentService.java:233)
         at com.sun.enterprise.deployment.phasing.DeploymentService.deploy(DeploymentService.java:150)
         at com.sun.enterprise.admin.mbeans.ApplicationsConfigMBean.deploy(ApplicationsConfigMBean.java:275)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at com.sun.enterprise.admin.MBeanHelper.invokeOperationInBean(MBeanHelper.java:287)
         at com.sun.enterprise.admin.config.BaseConfigMBean.invoke(BaseConfigMBean.java:280)
         at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:221)
         at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:228)
         at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:823)
         at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:792)
         at sun.reflect.GeneratedMethodAccessor59.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java:54)
         at $Proxy1.invoke(Unknown Source)
         at com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.invoke(SunoneInterceptor.java:282)
         at com.sun.enterprise.admin.jmx.remote.server.callers.InvokeCaller.call(InvokeCaller.java:38)
         at com.sun.enterprise.admin.jmx.remote.server.MBeanServerRequestHandler.handle(MBeanServerRequestHandler.java:92)
         at com.sun.enterprise.admin.jmx.remote.server.servlet.RemoteJmxConnectorServlet.processRequest(RemoteJmxConnectorServlet.java:69)
         at com.sun.enterprise.admin.jmx.remote.server.servlet.RemoteJmxConnectorServlet.doPost(RemoteJmxConnectorServlet.java:94)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:768)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:861)
         at sun.reflect.GeneratedMethodAccessor63.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:289)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
         at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:311)
         at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:205)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:283)
         at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:102)
         at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:192)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:263)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:156)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:569)
         at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:261)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:215)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:156)
         at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:583)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:154)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:569)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:200)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:156)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:180)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:154)
         at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:582)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:154)
         at com.sun.enterprise.webservice.EjbWebServiceValve.invoke(EjbWebServiceValve.java:134)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:154)
         at com.sun.enterprise.security.web.SingleSignOn.invoke(SingleSignOn.java:254)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:154)
         at com.sun.enterprise.web.VirtualServerValve.invoke(VirtualServerValve.java:209)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:154)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:569)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:161)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:156)
         at com.sun.enterprise.web.VirtualServerMappingValve.invoke(VirtualServerMappingValve.java:166)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:154)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:569)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:979)
         at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:211)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:692)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:647)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:589)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:691)
         at java.lang.Thread.run(Thread.java:534)
    |#]
    ***************************************************************

    Setting the Vendor Type of the Database to SQL92 helps.
    I don't know if it allways maps the datatypes right.

  • How to read the DB application error in JSP

    We have the PL/SQL triggers that perform validations on the insert and update. If validation fails the RAISE APPLICATION ERROR is used.
    On error the errorpage.jsp is called correctly, but my problem is that I can not read the actual error message from database.
    All I am getting from exception.getMessage() is the JBO message. The exception.printStackTrace() does not help either. How can I read text of PL/SQL exception message ?
    I have tried this test in errorpage:
    if( exception instanceof oracle.jbo.JboException ) { ...}
    but apparently the exception is not JboException, since test fails.
    I read about ApplicationModule.setExceptionHandler() and even build exception handler which does not do anything. I assumed that this would allow all exceptions to be passed to the error page. Nothing like that happens though. I still see only last JBO exception, I can not see the original DB exception.
    Thanks in advance,
    Michael

    Hi ankur,
    thanks for the quick reply,
    I have got the answer for the first question.
    Can u tell me solution for the 2nd question also. how to read the Portal user information in VC. like reading the Portal user information in webdynpro.
    In webdynpro we can read any of the portal user properties or information like using the following code.
    Itry{
    IWDClientUser user = WDClientUser.getCurrentUser();
    String fName = user.getFirstName();
    String lName = user.getLastName();
    }catch(Exception e){
    In the same way to read the portal user information in VC. BCz for every portal user we have created one custom properties, we need to read that propety value in my vc application, when the user logged in to portal and accessing integrated VC application.
    I have seen one of the thead this is possible from VC7.0 of NW2004s, current my version is also the same.
    Portal 7.0
    VC 7.0
    If u know how to do that, can u let me know.
    Regards
    Vijay

  • Odd Compiler Error in JSPs

    I found a really odd compiler problem today in my JSPs. When I tried to do a rebuild on my JSPs, all of them came up with the exact same error. Basicall it said that I could not have a -- within a comment. This error was reported on three lines and the editor showed three sections as having problems (using a squiggly yellow line). However, none of the pages had anything like what was mentioned on those lines.
    It turned out that the real problem was that the web.xml file had the error. I had put some '--' in a comment section and when the compiler parsed the web.xml file and found the problem, it failed to tag that file as the source but rather ended up showing the JP as being the source.
    Took a bit if time to figure that one out.
    Bill Berks

    You can file a bug at http://bugs.sun.com/services/bugreport/index.jsp

Maybe you are looking for

  • JDBC ODBC bridge for MS Access - language/locale problems

    Hi, I have an application that uses a MS Access database. I have a user in Turkey that is experiencing the following problem: My Java app requests for example the following query: select name from activitiesThen I get the following error: java.sql.SQ

  • [SCORE] How to give several notes a different color?

    Hello, Is it possible to give all notes with a certain pitch a different color in the score window? So let's say all the A# notes are red, and all the others remain black. How can I accomplish this? Thanks in advance.

  • Authorization check on VK11/VK12

    Hello All, I have a requirement where in I need to restrict users from maintaining/creating particular condition type in transaction VK12/VK11 respectively. I have created a custom authorization object with authorization field KSCHL and ACTVT.I have

  • Xpath error in 11g, works in 10g

    Hi all, We have migrated all reports from 10g to 11g and I have an issue on one of them. When I run the template in the template viewer I managed to get the logs and it says: [041912_095152537][oracle.xdo.common.xml.XSLTWrapper][ERROR] XSL error: <Li

  • Windows live mail will only send and receive on my...

    Hi there, windows live mail will only send and receive on my sub account but not my default account Regards Mike, Solved! Go to Solution.