PCL XL error using CNSAPWIN

Hi,
I am currently using device type CNSAPWIN for printing chinese characters. But I am not able to print the logo(graphics). There is an PCL XL error which appears. the printer I am using is HP Laserjet 3015. But when I change the device type to HPLJ4 or something and try printing, then it works. But I will not be able to print the chinese characters then. So is there anyway I can print the chinese characters as well as the logo.

Hi,
PCL XL error is due to your improper Printer Driver. Jus update the printer driver to the latest and it will solve your problem. don't change the device types.
Feel free to revert back.
--Ragu

Similar Messages

  • HP LaserJet M2727nf MFP - PCL XL Error - is this repairable?

    This printer works fine offline - it copies and prints reports in duplex with no problem ... but gets an error (locks up) and no longer prints from the computer.  It has worked fine for the last year, since I purchased it as a refurbished printer from HP.  It seemed to deteriorate shortly before it failed completely.
    Is this repairable... (I was able to get the following printout once, but can't figure out how I did that!)
    PCL XL error:
       Subsystem:  KERNEL
       Error:            InternalError  0x7
       Operator:      Text
       Position:        1545
    I would appreciate any advice as to how to resolve this problem ... including where else I could look for an answer.
    Thanks for any help you can offer ... Melissa

    Your error:
    PCL XL Error
    Subsystem: Kernel
    Error: IllegalTag
    File Name: Kernel.c
    Line Number: 1921
     implies that the incoming print job includes a tag which is not supported by the protocol.
    To find out just what is wrong with the print stream would almost certainly require access to the source code (specifically module Kernel.c) of the firmware in the printer - available only to HP (or whoever was contracted to write the firmware).
    In earlier generations of LaserJet printer, the format of the error message (as per the PCL XL specification) was somewhat different; for example:
    PCL XL Error
    Subsystem: Kernel
    Error: IllegalTag
    Operator: SetFont
    Position: 43
    which could be used to discover the underlying fault by reprinting the document using 'print to file', then analysing the resultant .prn file, and finding the data associated with the relevant PCL XL Operator tag (which, in the above example, would be the 43rd operator in the print job).
    Although the new format of error message is possibly more useful to HP in determining the cause of the error (their having access to the source code of the firmware), it would have been very useful to independant consultants if the original Operator tag and Position elements of the error had also been included.
    If you get exactly the same error if you reprint the same document to the same printer, using the same application and print driver on the same workstation, then the fault is likely to be a driver error, in which case the only solution may be to use a different printer driver (if one is available).
    If doing a reprint as per above produces a different error (or no error at all), then the problem is intermittent, and is more likely to be caused by corruption of the print job between workstation and printer; check (perhaps by replacing one item at a time) cables, ports, switches, hubs, etc.

  • HP LaserJet Pro CM1415fn PCL XL Error

     Hello,
     My printer HP LaserJet Pro CM1415fn networked and accessed by more than 6 computers including windows 8, Xp, 7 in the same network. Each time when the printer gets new IP from its DHCP, I need to go to each computer and change the IP even though  All the computers got the software and drivers installed. So i changed the IP of printer from Auto to Manual and the new issue is sometimes print is coming with PCL XL Error or it goes to unavailable. Gave a try to upgrade the firmware as well.But it is not getting done!! Please someone give me a solution.

    Hi Anasdxb
    I would be happy to help you.
    I see the printer isn't staying connected to the network and you are not able to run the firmware update on the printer.
    When doing the firmware update you should always connect the usb cable from the printer to the computer and download the firmware, save it and then run it. (printer has to be in a ready state)
    I would recommend setting up a static ip for the printer. This way the router will always assign that ip address to the printer and this should resolve this issue. Go to Step six: Assign you HP product a static IP address.
    http://h10025.www1.hp.com/ewfrf/wc/document?docname=c02817031&tmp_task=solveCategory&cc=us&dlc=en&la...
    (For step 4.Type in the ip address from the configuration report.
    If the subnet address and gateway address is not already filled in use the configuration report for this information.
    If you need more assistance just let me know.
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" on the right to say “Thanks” for helping!
    Gemini02
    I work on behalf of HP

  • HP M1536 PCL XL error or inverted PDF document

    Hello,
    We're having some trouble with an m1536dnf All-In-One printer one of our clients recently acquired. The printer itself is connected to the network via ethernet cable and the computers that are printing to it either via cable or wireless. They are all using either Windows Vista or Windows 7. 
    They all seem to print just fine, with the exception of some PDF documents from some of their clients. These documents either do not print and we get a printout of a PCL XL error (when trying to print from Adobe Reader) or do print, but with black background and white text (Foxit Reader).
    The PCL XL error is:
    PCL XL Error
    Subsystem: KERNEL
    Error: ExtraData
    File Name: kerlib.c
    Line Number: 9024
    Things we've already tried:
    - updating both Adobe Reader and Foxit Reader
    - updating printer driver (unfortunately there is only one version available: http://h10025.www1.hp.com/ewfrf/wc/softwareCategory?os=4062&lc=en&cc=us&dlc=en&sw_lang=&product=3974... )
    - updating printer firmware
    - reinstalling
    - installing via USB or printer sharing
    - saw a page ( http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?lang=en&cc=us&objectID=c00064499 ) describing our issue but could not find a way to switch to a PCL 5 driver
    - using the Generic driver found here: http://h20000.www2.hp.com/bizsupport/TechSupport/SoftwareIndex.jsp?lang=en&cc=us&prodNameId=4157320&...
    - installed on a PC with Windows XP
    It seemed at some point that a solution was to switch the printing resolution from 600 dpi to 1200 FastRes (both with EconoMode activated). However, after doing this another document showed up with the same problem. It may not seem like a serious issue to some, but with a bunch of users who have only basic knowledge about using computers issues like this can grow into big problems.
    We also have little information about the PDF documents and their source, but as far as I could figure out at least most of them are generated by scanning from other multifunction printers. 
    We also took the printer back to our supplier and explained the issue. We could also demonstrate with a PDF file but could not leave the file with them due to privacy issues. They tried printing with the Generic driver but with no joy as the issue kept manifesting. If we send it to warranty they will most probably print a number of documents and say it's working OK (I would do the same in their position ), this is why I was wondering if any of the people here are experiencing the same issue with this printer or have any ideas on how to solve it.
    Thank you in advance,
    Eugen Sechel.
    This question was solved.
    View Solution.

    Right click on the Printer icon - In Control Panel
    Go to Printing Preferences.
    Go to Advanced Tab.
    Then under Printer Features, go to Print Data Optimization and select it to “Optimise for Text and Vector”.
    Then click on OK.
    Then try to print any Document and it will print fine without any PCL xxxx error.

  • P3005 error message PCL XL error IllegalMediaSource extra sheet printed after every print job

    We have a networked P3005 with a stepped back PCL5e driver working for three Word 2003 people and one Word 2007 person. Out of the blue the Word 2007 person began getting an extra sheet of paper after every print job with the error message PCL XL error  Warning: IllegalMediaSource. We had gotten a version of this error before, which is why I stepped back the driver to PCL5e.
    Anyone have any thoughts? Please??

    I have not had any problems since I read a post from someone to turn the printer off unplug the power cord from it and wait a little bit.  Plugged it back in, turned it on and it has been working.   I am using Vista 32 bit.  I'm not sure this is what you are wanting on the driver.  I found this  HPC14106 .GPD    3.25.2010
    Thanks

  • PCL XL error, missing attributes of networking printing ( Windows 7 64 bit )

    So here is the problem, proviously we were use win XP SP3 and all shared printer worked fine.Currently after migration to windows 7 64 bit this issue is appear. PCL XL error.
    Below is two missing row for .prn file from not working state
    In a working state
    @PJL JOB NAME = "application name"
    @PJL SET STRINGCODESET=UTF8
    While in working state this row is available
    What should we do for this issue ? We have use latest driver Universal DriverPCL 5 and PCL 6.

    As I said before, the reported PCL XL error is nothing to do with any of the PJL commands (missing, or not).
    The error is because a mandatory attribute is missing from the attribute list which precedes and quantifies the PCL XL BeginPage operator.
    From the evidence you've supplied I can't properly analyse the PCL XL, but (I think) that I've reconstructed one small (but relevant) part of the stream, and here is an analysis of that part of the 'good' one:
    PCLXL Data Type 0xc0 ubyte
    Value 0x00 ePortraitOrientation
    PCLXL Attribute 0xf828 Orientation
    PCLXL Data Type 0xc0 ubyte
    Value 0x01 eAutoSelect
    PCLXL Attribute 0xf826 MediaSource
    PCLXL Data Type 0xc8c10500 ubyte_array
    Value 0x506c61.. "Plain"
    PCLXL Attribute 0xf827 MediaType
    PCLXL Data Type 0xc8c006 ubyte_array
    Value 0x4c4554.. "LETTER"
    PCLXL Attribute 0xf825 MediaSize
    PCLXL Operator 0x43 BeginPage
     This corresponds to the text in your araxis report of:
    À\x0000ø(À\x0001ø&ÈÁ\x0005\x0000Plainø'ÈÀ\x0006LETTERø%C
     Note that part of this sequence is missing from the 'bad' example:
    The missing bit corresponds to the Orientation attribute and its preceding data.
    The obvious conclusion is that the (PCL6) printer driver is at fault, but it's also perhaps possible that there is some fault in the interaction between the application (whatever that is) and the printer driver.
    You could:
    Check to see if there is a later version of the PCL6 driver available for your platform.
    Or use a PCL5 (or perhaps PostScript) printer driver, since these will not cause PCL XL errors to be generated (although they may of course give rise to other faults).

  • PCL XL error: subsystem:kernel

    I have an HP Color Laser Jet Pro M252dw. The printer works very well for all documents, except for one lengthy PDF I purchased from Teachers Pay Teachers. I was able to print the first ten pages, but it will not print any more.  I am operating on a Dell with Windows Vista. PCL XL Error: Subsystem: KernelError: ExtraDataFile Name: kerlib.cLine number 3131  Again, any other document I print works fine, but when I try that perticular PDF I get the above error.  Thanks!

    Hi Fule,
    Sorry that didn't work for you.
    These following steps have worked with previous printers, which you could try.
    Go to start/devices and printers/right click on the printer/left click printing preferences.
    Click on the Advanced  tab/click + beside document options/click + beside printer features.
    Then click on printer data optimization.
    Change it to optimized for text & vector instead of auto.
    Restart the computer and try printing again.
    Adobe 10 can also be the cause of some PCL XL error messages when PDF's are printed. 
    Going back to Adobe 9 can sometimes resolve this issue.
    What version are you using?
    Hope this helps.
    Thank You.
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" on the right to say “Thanks” for helping!
    Gemini02
    I work on behalf of HP

  • Error message: AgServerMigration ERROR Using store provider as a session is deprecated.

    Hi.  I'm using a MacBook Pro, OS X 10.6.5.  I have been opening files in Lightroom, editing them, and then doing finishing touches in CS5.  When I save the file in CS5 and close it, my Mac returns the above message in Console eight times:
    AgServerMigration ERROR Using store provider as a session is deprecated.
    AgServerMigration ERROR Using store provider as a session is deprecated.
    AgServerMigration ERROR Using store provider as a session is deprecated.
    AgServerMigration ERROR Using store provider as a session is deprecated.
    AgServerMigration ERROR Using store provider as a session is deprecated.
    AgServerMigration ERROR Using store provider as a session is deprecated.
    AgServerMigration ERROR Using store provider as a session is deprecated.
    AgServerMigration ERROR Using store provider as a session is deprecated.
    I have no idea what this means, or whether it is a problem.  Does anyone know what this is?
    Thanks.

    I see the same thing and have done for some time. The actual file is being saved back. etc. So, in that respect both Lr and Ps are working fine. IOW, ignore it.

  • PCL XL Error message when printing remotely from a Toshiba laptop to an HP LaserJet Pro CM1415fnw

    This started today. 
    I am printing remotely from the laptop.
    I am getting this error when printing from both Word and from Google Mail.
    Printing to this printer from a different laptop works fine.
    This printer is receiving faxes.
    PCL XL Error
    Subsystem: TEXT
    Error: InternalError 0x50
    File Name: cheettext.c
    Line Number: 710

    Hi @SuziG , aned welcome to the HP Forums!
    I see you are experiencing PCL errors. I would like to help!
    I would recommend downloading and utilizing the HP Universal PostScript Print Driver.
    Good luck and please let me know the results of your troubleshooting steps. Thank you for posting on the HP Forums!
    Please click “Accept as Solution " if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the right to say “Thanks" for helping!
    Jamieson
    I work on behalf of HP
    "Remember, I'm pulling for you, we're all in this together!" - Red Green.

  • Received HTTP response code 500 : Internal Server Error using connection Fi

    Hi everybody,
    I have configured a file-webservice-file without BPM scenario...as explained by Bhavesh in the following thread:
    File - RFC - File without a BPM - Possible from SP 19.
    I have used a soap adapter (for webservice) instead of rfc .My input file sends the date as request message and gets the sales order details from the webservice and then creates a file at my sender side.
    I monitored the channels in the Runtime work bench and the error is in the sender ftp channel.The other 2 channel status is "not used" in RWB.
    1 sender ftp channel
    1 receiver soap channel
    1 receiver ftp channel.
    2009-12-16 15:02:00 Information Send binary file "b.xml" from ftp server "10.58.201.122:/", size 194 bytes with QoS EO
    2009-12-16 15:02:00 Information MP: entering1
    2009-12-16 15:02:00 Information MP: processing local module localejbs/AF_Modules/RequestResponseBean
    2009-12-16 15:02:00 Information RRB: entering RequestResponseBean
    2009-12-16 15:02:00 Information RRB: suspending the transaction
    2009-12-16 15:02:00 Information RRB: passing through ...
    2009-12-16 15:02:00 Information RRB: leaving RequestResponseBean
    2009-12-16 15:02:00 Information MP: processing local module localejbs/CallSapAdapter
    2009-12-16 15:02:00 Information The application tries to send an XI message synchronously using connection File_http://sap.com/xi/XI/System.
    2009-12-16 15:02:00 Information Trying to put the message into the call queue.
    2009-12-16 15:02:00 Information Message successfully put into the queue.
    2009-12-16 15:02:00 Information The message was successfully retrieved from the call queue.
    2009-12-16 15:02:00 Information The message status was set to DLNG.
    2009-12-16 15:02:02 Error The message was successfully transmitted to endpoint com.sap.engine.interfaces.messaging.api.exception.MessagingException: Received HTTP response code 500 : Internal Server Error using connection File_http://sap.com/xi/XI/System.
    2009-12-16 15:02:02 Error The message status was set to FAIL.
    Please help.
    thanks a lot
    Ramya

    Hi Suraj,
    You are right.The webservice is not invoked.I see the same error in the sender channel and the receiver soap channel status is "never used".
    2009-12-16 15:52:25 Information Send binary file  "b.xml" from ftp server "10.58.201.122:/", size 194 bytes with QoS BE
    2009-12-16 15:52:25 Information MP: entering1
    2009-12-16 15:52:25 Information MP: processing local module localejbs/CallSapAdapter
    2009-12-16 15:52:25 Information The application tries to send an XI message synchronously using connection File_http://sap.com/xi/XI/System.
    2009-12-16 15:52:25 Information Trying to put the message into the call queue.
    2009-12-16 15:52:25 Information Message successfully put into the queue.
    2009-12-16 15:52:25 Information The message was successfully retrieved from the call queue.
    2009-12-16 15:52:25 Information The message status was set to DLNG.
    2009-12-16 15:52:27 Error The message was successfully transmitted to endpoint com.sap.engine.interfaces.messaging.api.exception.MessagingException: Received HTTP response code 500 : Internal Server Error using connection File_http://sap.com/xi/XI/System.
    2009-12-16 15:52:27 Error The message status was set to FAIL.
    what can I do about this?
    thanks,
    Ramya

  • Getting "Method 'sign_in' does not exist" Error (using Charles)

    This may be a bit off the FLEX field, and have to do with Zend Framework's ZEND_AMF class. Unfortunately I haven't been able to dig anything up, and comments posted on Wade Arnolds site have not received any responses, so I thought I'd give it a go here.
    My ServiceController Class:
    public function loginAction()
         $this->_helper->viewRenderer->setNoRender();
         $server = new Zend_Amf_Server();
         $server->setClass('LoginAmfService', 'LoginService');
         $server->setClassMap('CurrentUserVO', 'CurrentUserVO');
         $server->setProduction(false);
         print($server->handle());
    My LoginAmfService class:
    class LoginAmfService
          * Main login function.
          * @param  string        $name
          * @param  string        $password
          * @return CurrentUserVO
         public function sign_in($name, $password)
              $authAdapter     = new Zend_Auth_Adapter_DbTable(Zend_Registry::get('db'), 'users', 'user_name', 'password', 'PASSWORD(?) AND active = 1');
              $returnValue     = new CurrentUserVO();
              $authAdapter->setIdentity(htmlspecialchars($name))
                   ->setCredential(htmlspecialchars($password));
              $authResult = $authAdapter->authenticate();
              if ($authResult->isValid())
                   $userArray                          = $authAdapter->getResultRowObject(array('id', 'first_name', 'last_name', 'title', 'photo'));
                   $returnValue->first_name     = $userArray->first_name;
                   $returnValue->last_name          = $userArray->last_name;
                   $returnValue->title               = $userArray->title;
                   $returnValue->photo               = $userArray->photo;
                   $returnValue->token               = $userArray->id;
              return $returnValue;
          * Function used to log people off.
         public function sign_out()
              $authAdapter = Zend_Auth::getInstance();
              $authAdapter->clearIdentity();
    My SignIn FLEX module (the relevant portions):
         <mx:RemoteObject
              id="LoginRemote"
              destination="login"
              source="SignIn"
              showBusyCursor="true"
              fault="parentDocument.handleFault(event)"
         >
               <mx:method name="sign_in" result="signin_handle(event)" />
               <mx:method name="sign_out" result="signout_handle(event)" />
         </mx:RemoteObject>
         <mx:Script>
              <![CDATA[
                   import mx.rpc.events.FaultEvent;
                   import mx.utils.ArrayUtil;
                   import mx.rpc.events.ResultEvent;
                   import mx.controls.Alert;
                   import com.brassworks.ValueObjects.CurrentUserVO;
                   import mx.events.VideoEvent;
                   [Bindable]
                   private var this_user:CurrentUserVO = new CurrentUserVO();
                   private function mdl_init():void
                        focusManager.setFocus(txt_username);
                   private function signin_handle(event:ResultEvent):void
                             this_user = event.result as CurrentUserVO;
                             if (this_user.token == null) {Alert.show("Supplied login credentials are not valid. Please try again.");}
                             else
                                  this.parentApplication.setUser(this.this_user);
                   private function signout_handle(event:ResultEvent):void
                   private function sign_in(event:Event):void
                        try
                             //Alert.show(txt_name.text + "|" + txt_password.text);
                             LoginRemote.sign_in(txt_username.text, txt_password.text);
                        catch (error:Error)
                             this.parentDocument.handleFault(error);
                   private function sign_out(event:Event):void
                   private function show_error(error:Error, s_function:String):void
                        Alert.show("Method:" + s_function + "\nName: " + error.name + "\nID: " + error.errorID + "\nMessage: " + error.message + "\nStack Trace: " + error.getStackTrace() + "\nError: " + error.toString());
                   private function handleFault(event:FaultEvent):void
                        Alert.show(event.fault.faultDetail, event.fault.faultString);
              ]]>
         </mx:Script>
    Now, all this is great and good, as it works with Zend Framework 1.7.6. However, when I try to upgrade to 1.7.8 (to take advantage of session management and other bug-fixes), I get the following error (using Charles):
    #1 /var/web/htdocs/core/library/Zend/Amf/Server.php(390): Zend_Amf_Server->_handle(Object(Zend_Amf_Request_Http))
    #2 /var/web/htdocs/core/application/default/controllers/ServicesController.php(73): Zend_Amf_Server->handle()
    #3 /var/web/htdocs/core/library/Zend/Controller/Action.php(503): ServicesController->loginAction()
    #4 /var/web/htdocs/core/library/Zend/Controller/Dispatcher/Standard.php(285): Zend_Controller_Action->dispatch('loginAction')
    #5 /var/web/htdocs/core/library/Zend/Controller/Front.php(934): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
    #6 /var/web/htdocs/core/application/bootstrap.php(39): Zend_Controller_Front->dispatch()
    #7 /var/web/htdocs/core/public/index.php(5): Bootstrap->runApp()
    #8 {main} ?Method "sign_in" does not exist
    I have no idea why this would not work anymore. My assumption is that I am not correctly setting up Zend_Amf (but then again, my counter-argument is that it worked before, so ..... ????)
    Thanks for any help!
    -Mike

    For those that are also fighting this issue:
    The problem appears to be that the RemoteObject needs to specify the class containing the methods as a source parameter. According to this bug report (http://framework.zend.com/issues/browse/ZF-5168) it is supposed to have been addressed, but apparently has re-emerged in Zend_Amf since version 1.7.7.
    Using my example above, I would have to specify the RO as:
    <mx:RemoteObject
              id="LoginRemote"
              destination="login"
              source="LoginAmfService"
              showBusyCursor="true"
              fault="parentDocument.handleFault(event)"
         >
               <mx:method name="sign_in" result="signin_handle(event)" />
               <mx:method name="sign_out" result="signout_handle(event)" />
         </mx:RemoteObjecct>

  • Does anyone know how to delete a template created in error using PAGES?

    I created some templates in error using PAGES and cannot figure out how to remove them/delete them.  Anyone know how to do this?  Fran

    Look in the More like this on the right.

  • I´m trying to open an excel file in numbers not being successful. The error msg is unexpectedly error using plugin SFCompatibility can you help me?

    I´m trying to open an excel file in numbers not being successful. The error msg is unexpectedly error using plugin SFCompatibility can you help me? Already changed the extension of the excel document to xlsx an now gives an unknown import error.

    In Excel have you tried saving directly to xls (not xlsx) and opening the xls in Numbers?
    If you have a complicated workbook in Excel that uses lots of Excel's advanced features, Numbers may not be able to handle the import.  It does pretty well on basic things, though.
    If you're just trying to get data into Numbers, then often copy-paste from Excel is easier than trying to open xls files.
    SG

  • Error using BPEL console

    I just encountered an error using the BPEL console in one of our test environments. I got the error when I clicked 'Manage BPEL Domain' and then clicked the 'Threads' tab. I also get the error when I click the 'Statistics' tab. Other tabs are OK, 'Configuration', 'Logging', 'Adapter Stats'.
    Note that this is happening on one test server, other dev/test servers are OK.
    Oracle BPEL Server version 10.1.3.3.1
    Build: 0
    Build time: Wed Jan 16 02:42:55 PST 2008
    Build type: release
    Source tag: PCBPEL_10.1.3.3.1_GENERIC_RELEASE
    Exception Message:
    [javax.servlet.ServletException]
    The system encounters errors while running as the authenticated identity.
    Exception Trace:
    javax.servlet.ServletException: The system encounters errors while running as the authenticated identity.
         at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:429)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:623)
         at com.evermind.server.http.ServletRequestDispatcher.unprivileged_include(ServletRequestDispatcher.java:160)
         at com.evermind.server.http.ServletRequestDispatcher.access$000(ServletRequestDispatcher.java:51)
         at com.evermind.server.http.ServletRequestDispatcher$1.oc4jRun(ServletRequestDispatcher.java:97)
         at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:283)
         at com.evermind.server.http.ServletRequestDispatcher.include(ServletRequestDispatcher.java:102)
         at com.evermind.server.http.EvermindPageContext.include(EvermindPageContext.java:453)
         at domain.jspService(_domain.java:210)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
         at oracle.security.jazn.oc4j.JAZNFilter$1.run(JAZNFilter.java:396)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
         at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:410)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:623)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
         at com.evermind.server.http.ServletRequestDispatcher.unprivileged_forward(ServletRequestDispatcher.java:259)
         at com.evermind.server.http.ServletRequestDispatcher.access$100(ServletRequestDispatcher.java:51)
         at com.evermind.server.http.ServletRequestDispatcher$2.oc4jRun(ServletRequestDispatcher.java:193)
         at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:283)
         at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:198)
         at com.collaxa.cube.fe.DomainFilter.doFilter(DomainFilter.java:131)
         at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
         at oracle.security.jazn.oc4j.JAZNFilter$1.run(JAZNFilter.java:396)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
         at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:410)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:302)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:190)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)

    I just encountered an error using the BPEL console in one of our test environments. I got the error when I clicked 'Manage BPEL Domain' and then clicked the 'Threads' tab. I also get the error when I click the 'Statistics' tab. Other tabs are OK, 'Configuration', 'Logging', 'Adapter Stats'.
    Note that this is happening on one test server, other dev/test servers are OK.
    Oracle BPEL Server version 10.1.3.3.1
    Build: 0
    Build time: Wed Jan 16 02:42:55 PST 2008
    Build type: release
    Source tag: PCBPEL_10.1.3.3.1_GENERIC_RELEASE
    Exception Message:
    [javax.servlet.ServletException]
    The system encounters errors while running as the authenticated identity.
    Exception Trace:
    javax.servlet.ServletException: The system encounters errors while running as the authenticated identity.
         at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:429)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:623)
         at com.evermind.server.http.ServletRequestDispatcher.unprivileged_include(ServletRequestDispatcher.java:160)
         at com.evermind.server.http.ServletRequestDispatcher.access$000(ServletRequestDispatcher.java:51)
         at com.evermind.server.http.ServletRequestDispatcher$1.oc4jRun(ServletRequestDispatcher.java:97)
         at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:283)
         at com.evermind.server.http.ServletRequestDispatcher.include(ServletRequestDispatcher.java:102)
         at com.evermind.server.http.EvermindPageContext.include(EvermindPageContext.java:453)
         at domain.jspService(_domain.java:210)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
         at oracle.security.jazn.oc4j.JAZNFilter$1.run(JAZNFilter.java:396)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
         at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:410)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:623)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
         at com.evermind.server.http.ServletRequestDispatcher.unprivileged_forward(ServletRequestDispatcher.java:259)
         at com.evermind.server.http.ServletRequestDispatcher.access$100(ServletRequestDispatcher.java:51)
         at com.evermind.server.http.ServletRequestDispatcher$2.oc4jRun(ServletRequestDispatcher.java:193)
         at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:283)
         at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:198)
         at com.collaxa.cube.fe.DomainFilter.doFilter(DomainFilter.java:131)
         at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
         at oracle.security.jazn.oc4j.JAZNFilter$1.run(JAZNFilter.java:396)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
         at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:410)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:302)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:190)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)

  • Warnings/Errors using getClass().newInstance()

    I'm getting some warnings & errors using getClass().newInstance() on an object. I can't however see what's wrong.
    First a little background, Bar is a class that manages a set of beans, including creation. One of the actions is to create a special copy of bean, the method that does this does some bookkeeping (such that a particular instance of Bar will only work with objects it created).
    This class was originally written in 1.4 and I'm now trying to genericify it.
    First attempt:
    public class Bar<T extends Foo> {
        public T getFlaggedBean(T fromBean) throws InstantiationException, IllegalAccessException {
            T newBean = fromBean.getClass().newInstance();
            // do some stuff
            return newBean;
    }This yielded: "Type mismatch: cannot convert from capture#1-of ? extends Foo to T"
    I can cast:
            T newBean = (T) fromBean.getClass().newInstance();Which drops me to a warning a can suppress: "Type safety: Unchecked cast from capture#1-of ? extends Foo to T".
    The code runs fine like that, but I'd rather not even have a warning to suppress, I don't like suppress them unless I know that it really is safe.
    The code above looks perfectly reasonable to me, I can't figure out why it could be problematic, which leads me to wonder if I'm missing something. We've got a parameter that is of type T or a subclass of it, calling getClass().newInstance() creates an new object such that origobj.getClass() == newobj.getClass() *. Since that class is T or a subclass of it, it should be assignable to T.
    The code above when, compiled and subjected to type erasure, effectively produces a method that looks like this:
        public Foo getFlaggedBean(Foo fromBean) throws InstantiationException, IllegalAccessException {
            Foo newBean = (Foo) fromBean.getClass().newInstance();
            // do some stuff
            return newBean;
        }Note that the cast to Foo is strictly unnecessary.
    There's a couple ways I could solve this, such as:
        public <S extends T> T getFlaggedBean(Class<S> useClass, S fromBean) throws InstantiationException, IllegalAccessException {
            T newBean = useClass.newInstance();
            // do some stuff
            return newBean;
        }I'd rather not change the API, though. Can anybody give me an idea where the initial code, with warnings could be unsafe?
    Neil
    * Unless you're mucking about with class loaders, but that problem would be an issue with non-generic code too.

    Paul,
    So does that bit of the JLS mean that my compiler is doing something wrong when it finds the getClass() call, in the code below, to return Class<? extends Foo> rather than Class<? extends T>? If the latter were returned it would compile fine.
    public class Bar<T extends Foo> {
        public T getFlaggedBean(T fromBean) throws InstantiationException, IllegalAccessException {
            T newBean = fromBean.getClass().newInstance(); // doesn't compile
            // do some stuff
            return newBean;
    }I was initially distracted by the "capture#1-of" and thought that was culprit, but as the code below demonstrates calling getInstance() on an instance of a class the compiler notes as "Class<capture#1-of ? extends Foo>" assigns to Foo just fine. Interestingly in this code my IDE says that getClass() is returning "Class<? extends Foo>", both javac and the IDE spat out "Class<capture#1-of ? extends Foo>" when the 1st line of the method had a warning or error. I assume that "Class<? extends Foo>" and "Class<capture#n-of ? extends Foo>" are equivalent and that "capture#n-of" is something fairly internal to the compiler. Can anyone shed light on that?
    public class Bar<T extends Foo> {
        public Foo getFlaggedBean(T fromBean) throws InstantiationException, IllegalAccessException {
            Foo newBean = fromBean.getClass().newInstance(); // this works
            // do some stuff
            return newBean;
    }

Maybe you are looking for