Is it possible to throw an exception in a constructor?
I have a constructor that calls its super contructor, but I want to check its variable before passing a variable to the super contructor.
Something like:
public FlatPanelTV(int inches)
super(inches);
How can I check "inches" before passing it to the super(), when the super has to be the first statement of a constructor?
Any help would be great!
Thanks
Hi! Its me Ronillo.
Yes it is possible. The validation must be after invoking the superclass constructor or let the superclass validates it. For example:
* @(#)NegativeInchException.java 05/06/15
package com.yahoo.ronilloang.demo;
* The runtime exception that is thrown by <code>InchBean</code>.
* @see InchBean
* @author Ronillo Ang
public final class NegativeInchException extends RuntimeException{
* Construct a new NegativeInchException with null as its detail message.
public NegativeInchException(){
super();
* Construct a new NegativeInchException with the specified detail message.
* @param message the detail message.
public NegativeInchException(String message){
super(message);
* @(#)InchNotSetException.java 05/16/15
package com.yahoo.ronilloang.demo;
* The runtime exception that is thrown by <code>InchBean</code>.
* @see InchBean
* @author Ronillo Ang
public final class InchNotSetException extends RuntimeException{
* Construct a new InchNotSetException with null as its detail message.
public InchNotSetException(){
super();
* Construct a new InchNotSetException with the specified detail message.
* @param message the detail message.
public InchNotSetException(String message){
super(message);
* @(#)InchBean.java 05/06/15
package com.yahoo.ronilloang.demo;
* A java bean for storing and retrieving an inch.
* @author Ronillo Ang
public class InchBean{
private int inch; // as it name implies, this is the inch.
* Construct a new empty InchBean.
public InchBean(){
this(0);
* Construct a new InchBean with the specified inch.
* @param inch the inch to be store. Must be 0 and up.
* @throws NegativeInchException when param inch is less than 0.
public InchBean(int inch){
setInch(inch);
* This method is use to set the inch. This will set the new inch if<br>
* <ul>
* <li> The new inch is not less than 0.
* <li> The current inch is not equal to the new inch.
* </ul>
* @param inch the new inch must be 0 and up.
* @throws NegativeInchException when param inch is less than 0.
public void setInch(int inch){
if(inch < 0)
throw new NegativeInchException("Inch Bean");
if(this.inch != inch)
this.inch = inch;
* This method is use to retrieve the current inch. This method will return the current inch if
* and only if the current inch is not 0.
* @throws InchNotSetException when the inch is not set or the current inch value is 0.
* @return the current inch.
public int getInch(){
if(inch <= 0)
throw new InchNotSetException("Inch Bean: Unable to get inch");
return inch;
* @(#)SubInchBean.java 05/06/15
package com.yahoo.ronilloang.demo;
* An abstract subclass of <code>InchBean</code>.
* @see InchBean
* @author Ronillo Ang
public abstract class SubInchBean extends InchBean{
* Construct a new empty SubInchBean.
public SubInchBean(){
this(0);
* Construct a new SubInchBean with the specified inch.
* @param inch the inch to be store. Must be 0 and up.
* @throws NegativeInchException when param inch is less than 0.
public SubInchBean(int inch){
super(inch);
* Use to store this bean into an XML file.
* @return 0 if successful, -1 if not.
abstract public int storeToXML();
* Use to store the specified <code>InchBean</code> into an XML file.
* @param inchBean the bean to be store.
* @return 0 if successful, -1 if not.
abstract public int storeToXML(InchBean inchBean);
}I hope it helps. Take care and God bless you ^_^
Similar Messages
-
Is it possible to throw an exception from run method of a thread?
Is it possible to throw an exception from "run method of a thread"(implemented as runnable implementation)?
Is it advisable to do so?Is it possible to throw an exception from "run method
of a thread"(implemented as runnable
implementation)?Yes, an unchecked one. Runtime exceptions.
Is it advisable to do so?If you mess up it happens automatically. But basically: no. -
Is it possible to throw an exception from a handler chain with JAXWS???
I know I cannot throw directly an exception from the handler cause my handler extends SOAPHandler and the method handlerMessage cannot throw exceptions. The problem is that I would like to validate some authorization and if the client doesn't have the appropriate rights, I would like to throw an exception from the handler without calling the web service itself, so the client would receive a valid soap response from the server. Is it possible?? Is there another mechanism that I can use to do that??
Thanks a lot
KorgYou can throw a ProtocolException or RuntimeException from handleMessage().
If you throw ProtocolException, HandleFault() is called on previously invoked handlers.
If you throw a RuntimeException, handleFault() or handleMessage() is not called on previously invoked handlers, and the Exception is converted to Fault message and dispatched. -
Throwing an exception from XSLT
Just wanted to share a finding with the Oracle XDB community and possibly suggest an enhancement to the xdb product development team (care of MDRAKE).
I had a scenario where I wanted to throw an exception from the XSLT.
A little Googling revealed this helpful post:
http://weblogs.asp.net/george_v_reilly/archive/2006/03/01/439402.aspx
...so I gave it a shot.
In my XSLT, I have a <xsl:choose> block with the following <xsl:otherwise> block:
<xsl:otherwise>
<xsl:message terminate="yes">Unknown Document Type</xsl:message>
</xsl:otherwise>I used a stub test to run this through, giving it a file which would exercise the exception:
select xmltype(bfilename('XML_RESOURCES', 'data.xml'),0).transform(xmltype(bfilename('XML_RESOURCES', 'sanitize_xml.dev.xsl'),0))
from dual;..and to my 'joy', I did get an exception:
ORA-30998: transformation error: execution of compiled XSLT on XML DOM failedHmm...would of been nicer to get something like what Eclipse/Xalan pops out:
file:/H:/eclipse_indigo_workspace/XSLT/sanitize_xml.xsl; Line #28; Column #59; Unknown Document Type
(Location of error unknown)Stylesheet directed termination...i.e. my custom error message "Unknown Document Type" isn't output by Oracle.
Just to be safe, I tried a file which would NOT exercise this xsl:otherwise block and it did run through OK.
So, could XDB report a better error?
Thoughts?SQL> VAR XSL VARCHAR2(4000)
SQL> --
SQL> begin
2 :XSL :=
3 '<?xml version="1.0" encoding="UTF-8"?>
4 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
5 <xsl:output method="xml" indent="yes"/>
6 <xsl:template match="/">
7 <Result>
8 <xsl:choose>
9 <xsl:when test="Input=''1''">
10 <Output>1</Output>
11 </xsl:when>
12 <xsl:when test="Input=''2''">
13 <xsl:message>The value is 2</xsl:message>
14 <Output>2</Output>
15 </xsl:when>
16 <xsl:when test="Input=''3''">
17 <xsl:message terminate="no">The value is 3</xsl:message>
18 <Output>3</Output>
19 </xsl:when>
20 <xsl:otherwise>
21 <xsl:message terminate="yes">Invalid value</xsl:message>
22 <Output>Bad Input</Output>
23 </xsl:otherwise>
24 </xsl:choose>
25 </Result>
26 </xsl:template>
27 </xsl:stylesheet>';
28 end;
29 /
PL/SQL procedure successfully completed.
Elapsed: 00:00:00.00
SQL> select XMLTRANSFORM(XMLTYPE('<Input>1</Input>'),XMLTYPE(:XSL))
2 from dual
3 /
<?xml version="1.0" encoding="WINDOWS-1252"?>
<Result>
<Output>1</Output>
</Re
Elapsed: 00:00:00.01
SQL> select XMLTRANSFORM(XMLTYPE('<Input>2</Input>'),XMLTYPE(:XSL))
2 from dual
3 /
<?xml version="1.0" encoding="WINDOWS-1252"?>
<Result>
<Output>2</Output>
</Re
Elapsed: 00:00:00.00
SQL> select XMLTRANSFORM(XMLTYPE('<Input>3</Input>'),XMLTYPE(:XSL))
2 from dual
3 /
<?xml version="1.0" encoding="WINDOWS-1252"?>
<Result>
<Output>3</Output>
</Re
Elapsed: 00:00:00.01
SQL> select XMLTRANSFORM(XMLTYPE('<Input>4</Input>'),XMLTYPE(:XSL))
2 from dual
3 /
ERROR:
ORA-30998: transformation error: execution of compiled XSLT on XML DOM failed
no rows selected
Elapsed: 00:00:00.01
SQL>
SQL>The actuall error is not unreasonalbe. The Execution did fail beacuse you terminated it.. Contacting Oralce Support may be a little excessive...
Now with respect to message the question is where...
We 'could' output into the same buffer as is used by DBMS_OUTPUT, but that has limits in terms of the amount of output that can be generated.
We could write it to the trace file, but that may be difficulat for a developer to get to
We could write it to a log file in the XDB repository, but where and how to name it...
We could another parameter to XMLTransform, which would be a Message Buffer
All of these are in effect enhancements..
BTW I checked with XML Spy and they seem to ignore message too, so I'm wondering how widely used this is...
We cannot add it to the output of the XSL since XMLTransform defines the output of the XML to be well formed XML, and adding a random set of text nodes would viloate that rule.. -
Throw Soap Exception in BPM.
Hi All,
My scenario is Soap->XI->BPM->RFC. I get a soap request in synchronous way with Request and Response messages I Map my request to a RFC and If there's any application error or mapping error I have to send SOAP fault exception to my Soap Sending system. But I don't see any option in BPM to throw soap exception only thing I can do is to map my errors in the soap response and send it to soap sender.
But my Soap sending system needs soap fault not a response message when any errors happen.
Please let me know if anybody has this same situation and how to handle it.
Thanks in Advance,
SP.Hi VJ,
I have to use BPM as I am doing other stuff in my BPM. In my BPM I am catching mapping exception and then I have to send this to Soap Sender in SOAP fault message and in abstract interfaces we don't have option to give fault message types. Also, I am using S/A bridge and I have to close the brige in order to send some response to Soap Sender.
Is it possible to send soap fault when we close the S/A brige by send step.
Thanks,
SP. -
Class.forName() throws null exception in servlet
Hi, just wondering if anyone having this similar problem:
when i try to load a class using Class.forName() method inside a servlet, it throws null exception.
1) The exception thrown is neither ClassNotFoundException nor any other Error, it's "null" exception.
2) There's nothing wrong with the code, in fact, the same code has been testing in swing before, works perfectly.
3) I have include all necessary jars/classes into the path, even if i haven't, it should throw ClassNotFoundException instead, not "null" exception.I have tried to detect any possible nullable variable, and it is able to run until line 15. The exception thrown is actually null only... not NullPointerException... which is why i have confused...
the message i received is "PlugInException: null".
The code is at follow:
* Load plugin
* @return ArrayList of plugins
* @exception PlugInException PlugInException
01 public ArrayList loadPlugin()
02 throws PlugInException
03 {
04 PlugIn plugin;
05 ArrayList plugins = new ArrayList();
06
07 for (int i = 0; i < configLoader.getPluginTotal(); i++)
08 {
09 try
10 {
11 if (debugger > 0)
12 {
13 System.out.print("Loading " configLoader.getPluginClass(i) "...");
14 }
15 if (Class.forName(configLoader.getPluginClass(i)) == null)
16 {
17 if (debugger > 0)
18 {
19 System.out.print(" not found");
20 }
21 }
22 else
23 {
24 if (debugger > 0)
25 {
26 System.out.println(" done");
27 }
28 plugin = (PlugIn)(Class.forName(configLoader.getPluginClass(i)).newInstance());
29 plugin.setContainer(container);
30 plugins.add(plugin);
31 }
32 }
33 catch (Exception e)
34 {
35 throw new PlugInException("PlugIn Exception: " + e.toString());
36 }
37 }
38
39 return plugins;
40 } -
Export with BiarEngine.jar works, using the API it throws an exception
Hello,
I'm using BiarEngine.jar to export from my CMS. it works fine.
Now I want to use the API to get someting more handy, but I receive an exception (NoSuchFieldError) as if I had a mismatch between versions.
I'm stuck with it, if somebody has an idea...
Thanks a lot.
Alain
Here is the java code:
IExportOptions oExportOptions = BIARFactory.getFactory().createExportOptions();
oExportOptions.setIncludeSecurity(false);
oExportOptions.setIncludeDependencies(true);
oExportOptions.setCallback(
new IExportCallback()
public void onSuccess(int id) {...}
public void onFailure(int id, BIARException biarException) {...};
BIAROutput oBIAROutput = new BIAROutput( oEntrepriseSession, "c:\myFile.biar", exportOptions );
At this point it throws the exception:
Exception in thread "main" java.lang.NoSuchFieldError: SI_MODELCUID_SET
at com.businessobjects.sdk.plugin.desktop.deltastore.internal.DeltaStore.setupProperties(DeltaStore.java:188)
at com.businessobjects.sdk.plugin.desktop.deltastore.internal.DeltaStore.unpack(DeltaStore.java:37)
at com.crystaldecisions.sdk.occa.infostore.internal.al.continueUnpack(Unknown Source)
at com.crystaldecisions.sdk.occa.infostore.internal.al.startUnpack(Unknown Source)
at com.crystaldecisions.sdk.occa.infostore.internal.InternalInfoStore.queryHelper(Unknown Source)
at com.crystaldecisions.sdk.occa.infostore.internal.InternalInfoStore.query(Unknown Source)
at com.crystaldecisions.sdk.occa.infostore.internal.at.query(Unknown Source)
at com.businessobjects.sdk.biar.internal.XSDManager$RepositoryXSD.retrieveXSDVersions(XSDManager.java:204)
at com.businessobjects.sdk.biar.internal.XSDManager$RepositoryXSD.<init>(XSDManager.java:194)
at com.businessobjects.sdk.biar.internal.XSDManager$XSDCache.getXSD(XSDManager.java:365)
at com.businessobjects.sdk.biar.internal.XSDManager.<init>(XSDManager.java:55)
at com.businessobjects.sdk.biar.BIAROutput.<init>(BIAROutput.java:73)>
Just need to confirm if the ANT script can be run against individual OSB project than OSB configuration project?
>
It is possible. I'm going the same way here. However, I remember I needed to contact support because it was not a standard feature of the Ant task. They provided me with the patch that allowed me to use -configSubProjects parameter in export.
>
Can we have multiple OSB configuration projects on the OSB server ?
>
I don't think so. -
Throw difference exception in constructor
Have a base class constructor that throws an exception of class XException
Have an exception class YException that inherit exception XException
If I inherit the base class, can I make it throw exception Y instead of X, since Y is a subclass of exception X?
Example:
public class Base {
public Base() throws XException {
public class XException extends Exception {
public XException() {
// etc...
public YException extends XException {
YException() {
super();
public MyClass extends Base {
// Can this work in a constructor since YException is a subclass of XException?
// Anyway to make this possible?
public MyClass() throws YException {
super();Have a base class constructor that throws an exception
of class XException
Have an exception class YException that inherit
exception XException
If I inherit the base class, can I make it throw
exception Y instead of X, since Y is a subclass of
exception X?
Example:
public class Base {
public Base() throws XException {
public class XException extends Exception {
public XException() {
// etc...
public YException extends XException {
YException() {
super();
public MyClass extends Base {
// Can this work in a constructor since YException is
a subclass of XException?
// Anyway to make this possible?
public MyClass() throws YException {
super();
Apart from what you are asking in normal circumstances a no args constructor throwing an exception is never a good idea. The reason being that from then on anybody who extends this class would have to face problems. Consider the following
public class MyTest
public MyTest() throws Exception
class Test extends MyTest
{}this would not compile and throw the following error
Default constructor cannot handle exception type Exception thrown by implicit super constructor. Must define an explicit constructor
So thats not a good practice
cheers -
Throw different exception in constructor
Have a base class constructor that throws an exception of class XException
Have an exception class YException that inherit exception XException
If I inherit the base class, can I make it throw exception Y instead of X, since Y is a subclass of exception X?
Example:
public class Base {
public Base() throws XException {
public class XException extends Exception {
public XException() {
// etc...
public YException extends XException {
YException() {
super();
public MyClass extends Base {
// Can this work in a constructor since YException is a subclass of XException?
// Anyway to make this possible?
public MyClass() throws YException {
super();An overriding method in a sub-class may throw a sub-class of the Exception thrown in the extended class.
Constructors are not overridden, the super() may generate an exception of type XException, which the constructor in the sub-class does not specifiy. -
How to throw 2 Exceptions,
Hello,
I have a problem with a method. I would like to do something like:
boolean thisIsATest ( ) throws PepeException,PacoException {
Is it possible ? I already hava thought in wrapping then into a general exception, but I would like to find out if this is possible.
Thanks in advace for your help,
Sitomaniaboolean thisIsATest ( ) throws
PepeException,PacoException {The "throws" clause simply states what exceptions the method can throw. You can list as many as you want, separated by commas.
However, you can't actually throw multiple exceptions at once. This is reasonable: there should be a single definable condition that prevents your code from continuing. -
How do i throw BPEL exception from java embedded activity
Hello everybody,
i want to use some embedded java code in my BPEL process (bpelx:exec). This code would sometimes throw exceptions. How can i deal with these exceptions to control my BPEL process? I would like, in a sense, to do some catching of java exceptions but at the BPEL level... for example, my java code would throw an exception, that my BPEL process would "catch" and react the way i want. Is it possible to do that?
Thanks for your help!Re: Embedded Java in BPEL and exception handling
-
When to construct and when to throw an Exception?
I have searched the forums but couldn't find anything specific to this.
Example code:
public exampleObject{
//constructor
public exampleObject()throws Exception{
public example2Object{
//declaration
private exampleObject = new exampleObject();
In JDK1.3 the compiling of example2Object throws an Exception
In JDK1.4 it doesn't throw an exception.
Why.......Should I not be constructing these objects in the declaration?
ThanksI don't quite get you; the compilation doesn't throw an exception, does it? Possibly it may signal an error.
If I'm not wrong, your example is exactly the same as this:
public example2Object{
//declaration
private exampleObject;
//constructor
public example2Object() {
this.exampleObject = new exampleObject();
Thus, I believe that the constructor could throw an Exception (which it's signature doesn't say). It is generally a good idea to instantiate new objects in the constructor, instead of in the declaration of object variables. That's my opinion though... -
Office 365 Sandbox Solution EventReceiver throwing Remote Exception in ItemAdding
Hi,
I created a sandbox webpart for O365 with EventReceivers with ItemAdding for Document Library and while i upload a document to library in O365 sharepoint site application throws below exception:-
System.Runtime.Remoting.RemotingException: Server encountered an internal error. For more information, turn off customErrors in the server's .config file.
Server stack trace:
Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at Microsoft.SharePoint.Administration.ISPUserCodeExecutionHostProxy.Execute(Type us
Same code works perfectly on my Development machine, Please help. Below is the Code
base.EventFiringEnabled = false;
bool isFile = (properties.AfterProperties["vti_filesize"] != null);
if (isFile == true)
SPWeb currentWeb = properties.OpenWeb();
// Get foldername from url like Document/EC10001/filename.txt
string folderName = properties.AfterUrl.Split(new char[] { '/' })[1];
SPList spList = currentWeb.Lists[properties.List.ID];
SPQuery spQuery = new SPQuery();
spQuery.Query = "<OrderBy><FieldRef Name='Modified' Ascending='FALSE'/></OrderBy>";
//Getting the folder object from the list
SPFolder folder = spList.RootFolder.SubFolders[folderName];
//Set the Folder property
spQuery.Folder = folder;
int fileSequenceId = 0;
SPListItemCollection items = spList.GetItems(spQuery);
if (items.Count > 0)
string documentID = items[0]["DocumentID"] != null ? items[0]["DocumentID"].ToString() : string.Empty;
if (!string.IsNullOrEmpty(documentID))
string splitNumber = documentID.Split(new char[] { '-' })[1];
fileSequenceId = Convert.ToInt32(splitNumber) + 1;
else
properties.ErrorMessage = "Unable to generate Document Id";
properties.Cancel = true;
else
fileSequenceId = 1;
// Set DocumentID like EC10001-001
properties.AfterProperties["DocumentID"] = folderName + "-" + fileSequenceId.ToString(ConstantsList(currentWeb, "DocumentID"));
// Retrive "EEC000" string from Constant List
properties.AfterProperties["vti_title"] = folderName + "-" + fileSequenceId.ToString(ConstantsList(currentWeb, "DocumentID"));
// Retrive "EEC000" string from Constant List
base.EventFiringEnabled = true;
Thanks,
Pranay Chandra SapaHi,
According to your description, my understanding is that when you upload document in Office 365 site, the event receiver in sandbox solution throws error.
Per my knowledge, if you want to use event receiver in Office 365 environment, you need to use remote event receiver instead the normal event receiver in an app.
Here are some detailed articles for your reference:
Create a remote event receiver in apps for SharePoint
Handle events in apps for SharePoint
Thanks
Best Regards
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
[email protected] -
Parse method is not possible for this type Exception in web dynpro
I have a file upload component and one button in a view.
I have created a binary type context element and mapped it with fileupload component.while clicking the submit button I am getting " Parse method is not possible for this type" exception.
help me out.Hi sridhar,
Use this code for Upload
context u create one attribute(up),u assign the data type as "Resource"(which is dictionary type)
InputStream text = null;
int temp = 0;
try
File file = new File(wdContext.currentContextElement().getUp().getResourceName());
FileOutputStream op = new FileOutputStream(file);
if(wdContext.currentContextElement().getUp()!=null)
text = wdContext.currentContextElement().getUp().read(false);
while((temp=text.read())!=-1)
op.write(temp);
op.flush();
op.close();
catch(Exception e)
e.printStackTrace(); -
Ant throws the exception when builds B2B
Hi,
Ant throws the exception:
default.application.xml:
[style] Processing D:B2B_DEVsap_earmeta-inf.b2bapplication.xml to D:B2B
_DEVproject_earmeta-inf.b2b_devMETA-INFapplication.xml
[style] Loading stylesheet D:B2B_DEVbintemplatesapplication.xsl
[style] Failed to process D:B2B_DEVsap_earmeta-inf.b2bapplication.xml
BUILD FAILED
D:B2B_DEVbinbuild.xml:113: The following error occurred while executing this
line:
D:B2B_DEVprojectbuildmodification.xml:102: The following error occurred while
executing this line:
D:B2B_DEVbinearbuilder.xml:78: The following error occurred while executing t
his line:
D:B2B_DEVbinearbuilder.xml:16: javax.xml.transform.TransformerConfigurationEx
ception: Could not load stylesheet. org.w3c.dom.DOMException: Prefix is 'xmlns',
but URI is not 'http://www.w3.org/2000/xmlns/' in the qualified name, 'xmlns:xs
l'
How to fix it?
The configuration is MS Windows XP SP2, MS SQL Server 2000 Developer Edition SP4, SAP Web AS 6.40 SP18, Apache Ant 1.6.5, Build Tool, j2sdk1.4.2_07.
Any help will be appreciated.
Regards,
Roman BabkinHi,
have you tried to urlencode the hash char?
Might be interesting as well if the problem also occours when you point to a local script in your url. The script should then contain a static link to your xml file.
cheers,
jossif
Maybe you are looking for
-
Data DVD from iTunes not working - please help
I burned a 4 GB playlist as a data DVD from iTunes 7. I am trying to put the files on a PC running iTunes 7, and NOTHING is happening. The drive in the PC is DVD-rom and all other DVD's work fine. What's the deal?
-
Hello, I am using an editable OO ALV Grid for updating an internal table. I am using an instance of the class cl_alv_changed_data_protocol to track the changes. I have to validate the user entries. Can smb tell me where can I find the ALV displayed(m
-
Messages not processed by integration server after SP09 to SP16
Operating System: Windows NT 2003 Standard edition Service Pack 1 Database: SQL_Server_8.00, DBSL:640.00 Patch Level: 100 ABAP Kernel: Non Unicode; Release: 640; Patch: 109; XI: Version 3.0; Service Pack Stack:16 Host: PEARL; IPAddress: 10.1.1.13 We
-
The black on screen presentation director didn't appear when i press FN + F7
hi everyone, the black on screen presentation director didn't appear when i press the hotkey FN + F7! presentation director itself works when i start it trought thinkvantage productivitycenter (the white one. when i press the fn + f7 hotkey...a soun
-
Create new object in Designer using CDAPI
Hi, I need to create more database objects in every of my applications (issued of a migration). I try to used the CDAPI, CIO_....ins , but an error occurs , ORA-06512: at "ORACASE.JR_SECONDARY_OBJECT", line 76. I don't find sample of insert, I have a