AUTONUMBER PROBLEM
Hello Everyone,
My name is Jones and i am new to this forum and to oracle. I am using oracle 9i. the below mentioned is my problem.
SQL> CREATE OR REPLACE TRIGGER PETTY_CASH_trggg
2 BEFORE INSERT ON PETTY_CASH
3 REFERENCING NEW AS NEW OLD AS OLD
4 FOR EACH ROW
5 BEGIN
6 select
7 se_petty_cash .nextval
8 into
9 :NEW.ID
10 from
11 dual;
12 END;
13 /
BEFORE INSERT ON PETTY_CASH
ERROR at line 2:
ORA-06552: PL/SQL: Compilation unit analysis terminated
ORA-06553: PLS-320: the declaration of the type of this expression is
incomplete or malformed
Here "petty_cash" is my table name and i have no idea why the error is coming. It might be a simple question but please do help me :)
Thank you
Hi Jones,
Looks like a problem with you table using a reserved word. Look at this example using DATE as column name:
10gR2>create table petty_cash ("ID" number, "DATE" date);
Table created.
10gR2>create sequence se_petty_cash;
Sequence created.
10gR2>create or replace trigger petty_cash_trggg
2 before insert
3 on petty_cash
4 referencing new as new old as old
5 for each row
6 begin
7 select se_petty_cash.nextval
8 into :new.id
9 from dual;
10 end;
11 /
on petty_cash
ERROR at line 3:
ORA-06552: PL/SQL: Compilation unit analysis terminated
ORA-06553: PLS-320: the declaration of the type of this expression is
incomplete or malformed
10gR2>drop table petty_cash purge;
Table dropped.
10gR2>-- Create table without use of double quotes
10gR2>create table petty_cash (ID number, DATE date);
create table petty_cash (ID number, DATE date)
ERROR at line 1:
ORA-00904: : invalid identifier
10gR2>-- That forces me not to use reserved word
10gR2>create table petty_cash (ID number, MY_DATE date);
Table created.
10gR2>create or replace trigger petty_cash_trggg
2 before insert
3 on petty_cash
4 referencing new as new old as old
5 for each row
6 begin
7 select se_petty_cash.nextval
8 into :new.id
9 from dual;
10 end;
11 /
Trigger created.Regards
Peter
Similar Messages
-
Strange Autonumbering Problems
Hello Help,<br /><br />I have an autonumbering problem and I am stumped. There must be a simple solution.<br /><br />So I have four heading levels (Chapter.H1.H2.H3), and I need to have numbered headings. I have the following autonumber formats.<br /><br />H1 - <$chapnum>.<n+> <br />H2 - <$chapnum>.<n>.<n+> <br />H3 - <$chapnum>.<n>.<n>.<n+><br /><br />Everything should be fine, right? Well, it works in most of my chapters, but in others it fails. The typical failure looks like:<br />3.2<br />3.2.1<br />3.0.1 (where it should be 3.3.1)<br />Then I get 3.0.1 many times, suddenly a 3.2.1 and on and on, and it seems to be random.<br /><br />I believe that my autonumbering format is correct, but that the numbering must obviously be continued. A journey to Format > Document > Numbering has been unsuccessful.<br /><br />When I created the document, I copied and pasted from previous headings, and I can´t help but think I´ve found a bug in the software.<br /><br />Any help you guys can provide would be much appreciated.<br /><br />Thanks,<br /><br />Robert
> Frame gets confused about the value of <n> when the string is not labeled, <br />> because it does not know which counter to go to in order to find the correct<br />> value of <n>.<br /><br />I don't think that a call to "void Confuse()" is part of the source code for FM :-)<br /><br />It's actually quite easy: all numbering that is labelled with a series label "X:"<br />becomes independent of all other numbering series. All numbering that is *not*<br />labelled is considered to be part of the same single, un-labelled series, also<br />independent of all other numbering series.<br /><br />Within a numbering series, any number of numbering positions (fields) can be<br />defined. When a paragraph doesn't specify all the numbering positions, the<br />remaining positions are reset to zero.<br />For example:<br /><br />A numbering string of "<n>.<n>.<n+>" may result in 1.2.3.<br /><br />Then, a numbering string of "<n+>" increments the first position to 2 and<br />resets the other to zero (2.0.0). (Only the first number is displayed)<br /><br />The next numbering string of "<n>.<n>.<n+>" will then result in 2.0.1.<br /><br />A numbering string of "<n+>< >< >" increments the first position to 3 and<br />leaves the other two as is (but doesn't display them), i.e. 3.0.1.<br /><br />You only need to specify "< =0>" if you want to reset some positions, but<br />not all the rest of the positions. You may still *want* to specify "< =0>" for<br />all positions to make the numbering strings consistent and clearer (or not :-)<br /><br />-- <br />/Thomas Michanek
-
SQL and autoNumber problem!!! Pls help!
Hi everyone!!
I am very new with using SQL language to connect to a database.
In my database, i have a certain table called 'Tourists' and the primary key of this table is TouristID. The data type of the primary key is an autoNumber.
When i use SQL statement like
String strDelete = "DELETE FROM Tourists WHERE TouristID="+touristID;
With this I get an run time error :
****Data type mismatch in criteria expression.****
This is because i save the variable as an Integer..
IS there a way to save me ??? Plss helpp needed! :)
ThanxThnks just one question!!
Is the primary key variable in Access an auto number!
What i mean is that is the varibale type in database an auto number!
That is my problem!! The tourist ID is an autonumber in Access!
Below is the erorr!!
java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] Data type mismatch in criteria expression.
at sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:6106)
at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:6263)
at sun.jdbc.odbc.JdbcOdbc.SQLExecDirect(JdbcOdbc.java:2525)
at sun.jdbc.odbc.JdbcOdbcStatement.execute(JdbcOdbcStatement.java:337)
at sun.jdbc.odbc.JdbcOdbcStatement.executeQuery(JdbcOdbcStatement.java:252)
at TouristRegistrationGUI.deleteRecord(TouristRegistrationGUI.java:500)
at TouristRegistrationGUI.buttonClicked(TouristRegistrationGUI.java:217)
at BreezySwing.GBDialogButtonListener.actionPerformed(GBDialog.java:459)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1767)
at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1820)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:419)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:257)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:258)
at java.awt.Component.processMouseEvent(Component.java:5021)
at java.awt.Component.processEvent(Component.java:4818)
at java.awt.Container.processEvent(Container.java:1380)
at java.awt.Component.dispatchEventImpl(Component.java:3526)
at java.awt.Container.dispatchEventImpl(Container.java:1437)
at java.awt.Component.dispatchEvent(Component.java:3367)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3214)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:2929)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:2859)
at java.awt.Container.dispatchEventImpl(Container.java:1423)
at java.awt.Window.dispatchEventImpl(Window.java:1566)
at java.awt.Component.dispatchEvent(Component.java:3367)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:445)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:190)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:144)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:134)
at java.awt.Dialog.show(Dialog.java:524)
at ExoticToursGUI.buttonClicked(ExoticToursGUI.java:186)
at BreezySwing.GBFrameButtonListener.actionPerformed(GBFrame.java:518)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1767)
at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1820)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:419)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:257)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:258)
at java.awt.Component.processMouseEvent(Component.java:5021)
at java.awt.Component.processEvent(Component.java:4818)
at java.awt.Container.processEvent(Container.java:1380)
at java.awt.Component.dispatchEventImpl(Component.java:3526)
at java.awt.Container.dispatchEventImpl(Container.java:1437)
at java.awt.Component.dispatchEvent(Component.java:3367)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3214)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:2929)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:2859)
at java.awt.Container.dispatchEventImpl(Container.java:1423)
at java.awt.Window.dispatchEventImpl(Window.java:1566)
at java.awt.Component.dispatchEvent(Component.java:3367)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:445)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:190)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:144)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:130)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:98) -
Conversion from word problems with images
Hi ,
I managed to make a conversion table to structure the documents of out company.I am having a proble with images.I am importing the word file to our template with a custom EDD document.When the import finishes I am having all images at almost correct places.The issue is when i apply the custom conversion table all the images at anchored at insertion point.The correct position would be at below current line.I am stuck and I can not find a solution to this.
My EDD is as follows:
EDD Version is 12.0
Structured Application: ReportPlain
F:\FramemakerBooks\Part B -Section 3.fm
April 14, 2014
Element (Container): Author
General rule: <TEXT>
Text format rules
In all contexts.
Use paragraph format: ReportAuthor
Element (Container): Emphasis
General rule: <TEXTONLY>
Text format rules
In all contexts.
Text range.
Use character format: Emphasis
Element (Equation): Equation
Element (Container): EquationPara
General rule: Equation
Text format rules
Element paragraph format: Equation
Element (Container): Extract
General rule: (<TEXT> | Emphasis | Term | Superscript | Subscript | XRef)*
Attribute list
Name: ID Unique ID Optional
Text format rules
In all contexts.
Use paragraph format: Extract
Element (Container): Figure
General rule: (<TEXT> | Frame)*
Attribute list
Name: ID Unique ID Optional
Name: XRefLabel String Optional
Default: Figure
Name: Imported Choice Optional
Choices: Yes, No
Default: No
Text format rules
In all contexts.
Use paragraph format: Figure
Element (Footnote): Footnote
General rule: <TEXT>
Text format rules
In all contexts.
Use paragraph format: Footnote
If context is: * < Table
Use paragraph format: TableFootnote
Element (Graphic): GRAPHIC
Initial graphic element format
In all contexts.
Insert anchored frame.
Anchored Frame Object Style:FiguredCentered
Element (Graphic): Frame
Initial graphic element format
If context is: Figure[Imported = "Yes"]
Insert imported graphic file.
Else
Insert anchored frame.
Element (Container): Head
General rule: <TEXT>
Text format rules
Count ancestors named: Section
If level is: 1
Context label: H1
Use paragraph format: Heading1
Else, if level is: 2
Context label: H2
Use paragraph format: Heading2
Else, if level is: 3
Context label: H3
Use paragraph format: Heading3
Else, if level is: 4
Context label: H4
Use paragraph format: Heading4
Else, if level is: 5
Context label: H5
Use paragraph format: HeadingRunIn
Else
Numbering properties
Autonumber format:
If context is: {first} < Report
Use paragraph format: ReportTitle
Else, if context is: HeadingRunIn
Use paragraph format: HeadingRunIn
Element (Container): HeadingRunIn
General rule: Head, Para+
Element (Container): Item
General rule: (<TEXT> | Emphasis | Term | Superscript | Subscript | XRef | Para)*
Format rules for first paragraph in element
If context is: List[Type = "Plain"]
No additional formatting.
Else, if context is: List[Type = "Bulleted"]
Use paragraph format: Bulleted clean
Else, if context is: {first}
Use paragraph format: Numbered1
Else
Use paragraph format: Numbered
Element (Container): List
General rule: Item+
Attribute list
Name: ID Unique ID Optional
Name: Type Choice Optional
Choices: Plain, Bulleted, Numbered
Default: Bulleted
Automatic insertions
Automatically insert child: Item
Element (Container): Para
General rule: (<TEXT> | Emphasis | Term | Superscript | Subscript | XRef | Footnote | Table )*
Attribute list
Name: ID Unique ID Optional
Text format rules
If context is: {after Head }
Use paragraph format: Body
Else, if context is: {after List}
Use paragraph format: BodyAfterHead
Else
Use paragraph format: Body
Element (Container): Part
Valid as the highest-level element.
General rule: (Para | Footnote | Table | Section )*
Attribute list
Name: ID Unique ID Optional
Control flags: Read-only
Automatic insertions
Automatically insert child: Head
Text format rules
Element paragraph format: Body
Element (Container): Purpose
General rule: <TEXT>
Text format rules
Element paragraph format: ReportPurpose
Element (Container): Section
General rule: (Section,Head |Section | Para | List | Table | Figure | HeadingRunIn )*
Attribute list
Name: ID Unique ID Optional
Name: XRefLabel String Optional
Default: Section
Automatic insertions
Automatically insert child: Head
Element (Container): Subscript
General rule: <TEXTONLY>
Text format rules
In all contexts.
Text range.
Font properties
Superscript/Subscript: Subscript
Element (Container): Superscript
General rule: <TEXTONLY>
Text format rules
In all contexts.
Text range.
Font properties
Superscript/Subscript: Superscript
Element (Table): Table
General rule: TableTitle?, TableHead?, TableBody
Attribute list
Name: ID Unique ID Optional
Control flags: Read-only
Name: XRefLabel String Optional
Default: Table
Control flags: Read-only
Initial table format
In all contexts.
Table format: Format A
Element (Table Body): TableBody
General rule: TableRow+
Element (Table Cell): TableCell
General rule: (<TEXT> | Emphasis | Term | Superscript | Subscript | XRef | Frame| Para)*
Text format rules
Element paragraph format: Bodycell
Element (Table Heading): TableHead
General rule: TableHeadRow+
Element (Table Cell): TableHeadCell
General rule: <TEXT>
Element (Table Row): TableHeadRow
General rule: TableHeadCell+
Element (Table Row): TableRow
General rule: TableCell+
Element (Table Title): TableTitle
General rule: <TEXT>
Text format rules
Element paragraph format: TableTitle
Element (Container): Term
General rule: <TEXTONLY>
Text format rules
In all contexts.
Text range.
Use character format: Emphasis
Element (CrossReference): XRef
Attribute list
Name: IDRef ID Reference Required
Control flags: Read-only
Limit values for format change list properties
First indent
Maximum: 39.0"
Minimum: 0.0"
Left indent
Maximum: 39.0"
Minimum: 0.0"
Right indent
Maximum: 39.0"
Minimum: 0.0"
Space above
Maximum: 32767.0 pt
Minimum: -32767.0 pt
Space below
Maximum: 32767.0 pt
Minimum: -32767.0 pt
Line spacing
Maximum: 32767.0 pt
Minimum: -32767.0 pt
Tab stop position
Maximum: 39.0"
Minimum: 0.0"
Font size
Maximum: 400.0 pt
Minimum: 2.0 pt
Spread
Maximum: 1000.0%
Minimum: -1000.0%
Stretch
Maximum: 1000.0%
Minimum: 10.0%
Cell margins
Top
Maximum: 32767.0 pt
Minimum: 0.0 pt
Bottom
Maximum: 32767.0 pt
Minimum: 0.0 pt
Left
Maximum: 32767.0 pt
Minimum: 0.0 pt
Right
Maximum: 32767.0 pt
Minimum: 0.0 pt
And my conversion table is:
Wrap this object or objects In this element With this qualifier
TC: TableCell
P:Body Para
P:Normal Para
P:Heading 5 Head head5
E:Head[head5],(Para | Frame | List | Table )* Section section5
P:Heading 4 Head head4
E:Head[head4],(Para | Frame | List | Table | [section5])* Section section4
P:Heading 3 Head head3
Head[head3],(Para | List | Frame | Table | [section4])* Section section3
P:Heading 2 Head head2
Head[head2],(Para | List | Frame | Table | [section3])* Section section2
P:Heading 1 Head head1
Head[head1],(Para | List | Frame | Table | [section2])* Section section
T:Table Table (promote)
TT: TableTitle
TH: TableHead
TB: TableBody
TF: FOOTING
TR: TableRow
RE:RootElement Part
P:List Paragraph Item
Item+ List
G: GRAPHIC(promote)
RE:RootElement Part
I am almost done with the template"Application"I just need to place the pictures in the correct position.Can anyone point me to the right direction?
Thanks a lot in advanceDimitris,
I know you originally posted this question on the general FrameMaker forum. I suggest below that you post a follow-up question there.
The structure-based part of the issue is that neither a conversion table nor an EDD can change properties of an existing anchored frame. It seems that when you open your Word document in FrameMaker, the graphics come in positioned at the insertion point. That doesn't change when you apply the conversion table. Your EDD does specify object style FiguredCentered as the initial format for GRAPHIC elements. The keyword here is "initial". The EDD can indicate a style for new anchored frames that are created by inserting an element. It does not allow you to change existing anchored frames.
So the real problem is how to make a global change to all existing anchored frames (either assigning an object style or changing the position to Below Current Line) so that you don't have to change them one at a time. I am not aware of a way to do so with existing FrameMaker commands. You could use a script or plug-in, or save the document as MIF and make a global change with a text editor in the MIF file. You might ask on the general FrameMaker forum if someone there knows an easier approach.
--Lynne -
I'm trying to evalute whether a user is uploading an MS Word
file with spaces in the filename. We cannot have spaces in
filenames on our Internet site. So, basically, on the form page
there is a field with a browse box for user to select their file.
It's is passed to the action page; here's the code.
I've used the same <cfif> statement on a bare bones
page & it does work but for some reason it is not working on
this page. I'm wondering if there's code on this page preventing it
from being evaluted.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0
Transitional//EN">
<html>
<head>
<title>Human Resources Job Bank Form
Action</title>
</head>
<body>
<!-- Check for spaces in filename -->
<cfif form.positionfile CONTAINS " ">
The document you attached to this position contains spaces in
the filename. We cannot post documents containing spaces or special
characters on the Internet.<br><br>
<b>How to fix the problem
—</b><br><br>
<OL>
<LI>Please rename the original file without using
spaces or punctuation. <br><br>The following characters
are approved for file naming on the Web.
<ul type="square">
<li>Letters A-Z and a-z
<li>Numerals 0-9
<li>Dashes ( - )
<li>Underscores ( _ )
</ul>
<br>
<LI>Use your web browser's <b>Back</b>
button to return to <b>Post a Position in the Job
Bank</b> and reattach the position using the "Upload
Document" box.<br><br>
<LI>Resubmit the position using a compatible filename.
<BR><BR>
</OL><BR>
<cfelse>
<!--- capture the autonumber position id for use in the
uploads table --->
<cflock name="#CreateUUID()#" timeout="20">
<cftransaction>
<!--- Insert the position info into the main positions
table --->
<CFQUERY NAME="Insertposition"
DATASOURCE="#Application.DSN#">
Insert into positions
(title, medcenterID, otherlocation, areaID, carelineID,
grade, emailID, opendate, closedate)
VALUES
('#FORM.title#','#FORM.medcenterid#','#FORM.otherlocation#','#FORM.areaID#','#FORM.carelin eid#','#FORM.grade#','#FORM.emailID#','#FORM.opendate#','#FORM.closedate#')
</CFQUERY>
<cfquery DATASOURCE="#Application.DSN#"
name="getLastID">
SELECT MAX(positionID) as lastID
FROM positions
</cfquery>
</cftransaction>
</cflock>
<!--- Confirm to the user that the position was
successfully added, allow them to add another or see the master
list --->
<cfoutput>#DateFormat(createodbcdate(Now()),'mm/dd/yyyy')#
<br>
Position ID #getlastid.lastid#: #Form.Title#</cfoutput>
has been added to the HR Job Bank.<br><br>
<!--- upload the file to the directory and only accept
word docs --->
<cffile action="UPLOAD" filefield="positionfile"
destination="#application.uploaddirectory#"
nameconflict="MAKEUNIQUE">
<!--- Fill in the uploads table with the name and path for
the uploaded file --->
<CFQUERY NAME="CreateDocumentRecord"
DATASOURCE="#Application.DSN#">
INSERT INTO Uploads (positionID, Date_Published, File_Name,
Upload_Path)
VALUES
('#VAL(getlastid.lastid)#',#createodbcdate(Now())#,'#FILE.ClientFile#','#FILE.ServerFile# ')
</CFQUERY>
</cfif>
<!--- Grab Medical Center Name --->
<CFQUERY name="getmedicalcenter"
DATASOURCE="#Application.DSN#">
SELECT medcenterID, medcenter_name
FROM location
WHERE medcenterID = #form.medcenterID#
</CFQUERY>
<!--- Grab Area Name --->
<CFQUERY name="getarea" DATASOURCE="#Application.DSN#">
SELECT areaID, area_name
FROM areaofconsideration
WHERE areaID = #form.areaID#
</CFQUERY>
<!--- Grab Care Line Name--->
<CFQUERY name="getcareline"
DATASOURCE="#Application.DSN#">
SELECT carelineID, careline_name
FROM carelines
WHERE carelineID = #form.carelineID#
</CFQUERY>
</cfif>
</body>
</html>The form page has sent you a temporary filename that does not
contain the space - therefore, it passes the CFIF test. A
workaround would be to do a CFDIRECTORY ACTION="list" to obtain the
filename of the most recent timestamp and do a CFFILE
ACTION="rename" if you find a space in the filename. -
Moving to JSF 1.2_12 causing misc problems in my app
I have an app that was running nicely with JSF 1.2_04.p02. But when I moved to JSF 1.2_12, I started having several problems..
(1) h:selectOneMenu was not rendering my onchange event (I was able to resolve this by fixing my classpath. See http://forums.sun.com/thread.jspa?threadID=5409440)
(2) a4j:support does not appear to be working with h:selectOneMenu. The a4j:support action is no longer being invoked.
(3) ui:include does not appear to be working. For example, this code
<div id="terminalSelectionDiv" class="divClear">
<ui:include src="virtualPOSTopNav.xhtml" />
</div>... renders as ...
<div id="terminalSelectionDiv" class="divClear">
</div>What am I missing? I was able to fix #1 by adjusting my classpath. Are #2 & #3 classpath issues as well?
The am currently trying to use JSF-API 1.2_12, JSF-IMPL 1.2_12, Facelets 1.1.14, Richfaces 3.3.2.CR1, JBoss EL 1.0_02.CR4 (plus other misc APIs). But, as I mentioned, I did not modify my code. All I did was started trying to run my code with newer versions of JSF, Facelets and Richfaces. As I try different versions of these APIs, the problems seems to appear when I start using JSF 1.2_12 and the goes away when I revert back to an older version.
Here's a rundown of the jar files in my classpath...
My ear contains the following jar files...
com.echo.myapp.web-1.0.0-SNAPSHOT.war
com.echo.myapp.ejb-1.0.0-SNAPSHOT.jar
com.echo.myapp.jmx-1.0.0-SNAPSHOT.sar
My ear's APP-INF/lib directory in the ear file contains the following jar files (All jar files are in the ear's APP-INF/lib dir. No jar files are in the war file.)
com.echo.myapp.domain-1.0.0-SNAPSHOT.jar
com.echo.myapp.util-1.0.0-SNAPSHOT.jar
com.echo.common.myappremoteapi-1.0.0-SNAPSHOT.jar
com.echo.common.web-1.0.0-SNAPSHOT.jar
commons-beanutils-1.7.0.jar
commons-codec-1.2.jar
commons-digester-1.8.1.jar
commons-fileupload-1.1.1.jar
commons-httpclient-3.1.jar
commons-io-1.4.jar
commons-lang-2.2.jar
commons-logging-1.0.4.jar
gwt-user-1.4.60.jar
hibernate-search-3.1.0.GA.jar
itext-2.1.2.jar
itext-rtf-2.1.2.jar
jboss-el-1.0_02.CR4.jar
jboss-seam-2.2.0.GA.jar
jboss-seam-debug-2.2.0.GA.jar
jboss-seam-jul-2.2.0.GA.jar
jboss-seam-pdf-2.2.0.GA.jar
jboss-seam-remoting-2.2.0.GA.jar
jboss-seam-ui-2.2.0.GA.jar
jcifs-1.3.5.jar
jcommon-1.0.9.jar
jfreechart-1.0.9.jar
jibx-bind-1.1.5.jar
jibx-extras-1.1.5.jar
jibx-run-1.1.5.jar
jsf-api-1.2_12.jar
jsf-facelets-1.1.14.jar
jsf-impl-1.2_12.jar
lucene-core-2.4.0.jar
quartz-1.6.1-RC1.jar
richfaces-api-3.3.2.CR1.jar
richfaces-impl-3.3.2.CR1.jar
richfaces-ui-3.3.2.CR1.jar
slf4j-api-1.4.2.jar
slf4j-log4j12-1.4.2.jar
stax-api-1.0.1.jar
wstx-asl-3.2.1.jar
xpp3_min-1.1.3.4.O.jar
xstream-1.1.3.jar
JBOSS_HOME/lib contains...
commons-codec.jar
commons-httpclient.jar
commons-logging.jar
concurrent.jar
getopt.jar
jboss-common.jar
jboss-jmx.jar
jboss-system.jar
jboss-xml-binding.jar
log4j-boot.jar
PwdSetter.jar
JBOSS_HOME/lib/endorsed contains...
serializer.jar
xalan.jar
xercesImpl.jar
JBOSS_HOME/server/default/lib contains...
activation.jar
antlr.jar
autonumber-plugin.jar
bcel.jar
bindingservice-plugin.jar
bsf.jar
bsh-deployer.jar
bsh.jar
cglib.jar
classes12-10.2.0.2.0.jar
commons-codec.jar
commons-collections.jar
commons-httpclient.jar
commons-logging.jar
dom4j.jar
ehcache-1.6.2.jar
ejb3-persistence.jar
el-api.jar
hibernate-annotations.jar
hibernate-entitymanager.jar
hibernate3.jar
hsqldb-plugin.jar
hsqldb.jar
javassist.jar
jaxen.jar
jboss-cache-jdk50.jar
jboss-common-jdbc-wrapper.jar
jboss-ejb3x.jar
jboss-hibernate.jar
jboss-j2ee.jar
jboss-jaxrpc.jar
jboss-jaxws.jar
jboss-jca.jar
jboss-jsr77.jar
jboss-jsr88.jar
jboss-management.jar
jboss-monitoring.jar
jboss-remoting-int.jar
jboss-remoting.jar
jboss-saaj.jar
jboss-serialization.jar
jboss-srp.jar
jboss-transaction.jar
jboss-vfs.jar
jboss.jar
jbossjta-integration.jar
jbossjta.jar
jbossmq.jar
jbosssx.jar
jbossts-common.jar
jbossws-common.jar
jbossws-framework.jar
jbossws-jboss42.jar
jbossws-spi.jar
jmx-adaptor-plugin.jar
jnpserver.jar
joesnmp.jar
jpl-pattern.jar
jpl-util.jar
jsp-api.jar
jtds-1.2.2.jar
log4j-snmp-appender.jar
log4j.jar
mail-plugin.jar
mail.jar
properties-plugin.jar
quartz.jar
scheduler-plugin-example.jar
scheduler-plugin.jar
servlet-api.jar
xmlentitymgr.jar
The classpath in the manifest of my war file contains references to the following jar files...
APP-INF/conf
APP-INF/lib/com.echo.common.web-1.0.0-SNAPSHOT.jar
APP-INF/lib/jsf-facelets-1.1.14.jar
APP-INF/lib/jboss-seam-2.2.0.GA.jar
APP-INF/lib/xstream-1.1.3.jar
APP-INF/lib/xpp3_min-1.1.3.4.O.jar
APP-INF/lib/jboss-el-1.0_02.CR4.jar
APP-INF/lib/jboss-seam-ui-2.2.0.GA.jar
APP-INF/lib/jboss-seam-2.2.0.GA.jar
APP-INF/lib/jboss-seam-jul-2.2.0.GA.jar
APP-INF/lib/commons-beanutils-1.7.0.jar
APP-INF/lib/commons-lang-2.2.jar
APP-INF/lib/jboss-seam-pdf-2.2.0.GA.jar
APP-INF/lib/itext-2.1.2.jar
APP-INF/lib/itext-rtf-2.1.2.jar
APP-INF/lib/jfreechart-1.0.9.jar
APP-INF/lib/jcommon-1.0.9.jar
APP-INF/lib/jboss-seam-debug-2.2.0.GA.jar
APP-INF/lib/gwt-user-1.4.60.jar
APP-INF/lib/hibernate-search-3.1.0.GA.jar
APP-INF/lib/commons-logging-1.0.4.jar
APP-INF/lib/lucene-core-2.4.0.jar
APP-INF/lib/slf4j-api-1.4.2.jar
APP-INF/lib/com.echo.myapp.util-1.0.0-SNAPSHOT.jar
APP-INF/lib/commons-httpclient-3.1.jar
APP-INF/lib/commons-codec-1.2.jar
APP-INF/lib/jcifs-1.3.5.jar
APP-INF/lib/commons-io-1.4.jar
APP-INF/lib/commons-fileupload-1.1.1.jar
APP-INF/lib/richfaces-api-3.3.2.CR1.jar
APP-INF/lib/richfaces-impl-3.3.2.CR1.jar
APP-INF/lib/commons-digester-1.8.1.jar
APP-INF/lib/richfaces-ui-3.3.2.CR1.jar
APP-INF/lib/jsf-impl-1.2_12.jar
APP-INF/lib/jsf-api-1.2_12.jarWhich JAR's exactly have you added/replaced? And how does the WEB-INF/lib look like?
Here's some technical background information which may be of use:
In case of an EAR there are basically four places where classes will be looked up for classloading (they are all covered by the classpath).
1) JRE/lib (where you installed Java SE)
2) appserver/lib (in your case JBOSS_HOME/*).
3) APP-INF/lib (of your EAR)
4) WEB-INF/lib (of your WAR)
To start, there should in fact be no duplicates of the same libs in the mentioned locations. If a duplicate is really necessary for some reasons, then ensure that the versioning is the same and/or that you understand the classloading policy. The JRE/lib and appserver/lib should be kept default all the time and in no way be changed nor duplicated in other places. The APP-INF/lib less or more denotes a shared library for all EJB's and WAR's inside the same EAR. The WEB-INF/lib should contain webapp-specific libraries only.
It depends on the (usually limited configureable) classloading policy of your appserver in which order the mentioned classpath paths will be scanned for the classes to be loaded. Usually, when the appserver starts up and does all its in-house initialization, it will look for classes in appserver/lib and JRE/lib only. Usually, when you request your webapp which is deployed as an EAR, the WEB-INF/lib will first be scanned and then APP-INF/lib and then appserver/lib and then JRE/lib. So if you for example upgraded a lib in APP-INF/lib only while there's still an older one in WEB-INF/lib, your app will break. The appserver's classloading policy is usually only configureable to swap APP-INF/lib and WEB-INF/lib in the search order for classes. -
Oracle insert problem(records not in the order they are inserted)
hi, all:
I tried to insert a word list into a oracle table, everything is fine except that the words are not in the order they are inserted. For example, the words are inserted in the following sequence:
accreted
accreting
accretion
accretionary
accretive
bladebone
bladed
bladeless
bladelike
When I retrived the resultset from the table and iterate through each of the record, the words are not in the order inserted, i.e., it may look like this,
accreted
accreting
bladebone
bladed
accretion
accretionary
accretive
bladeless
bladelike
This strange phenomenon won't happen when the word list is small, like 500 words or so, but when the number of words reaches around 10,000, it takes place. My coworker also experienced this problem when trying to insert large volume of data into oracle table.
The code I used to insert into the DB table:
BufferedReader reader=new BufferedReader(new FileReader("C:\\Dictionary.txt"));
while( (line=reader.readLine())!=null )
sql="INSERT INTO DICT " +
"VALUES ('" + line +"')";
statement.executeUpdate(sql);
Any advice will be highly appreciated,
thanksWell, the best thing to do is follows scsi-boy's advice and add the additional column and either put a sequence number in it from the Java side as you insert, or use an Oracle sequence object to put a sequence number in it from the Oracle side (which is sort of like an auto-generated value, but different).
Note that an Oracle sequence generates numbers in sequence, but possibly with gaps (usually if the database is rebooted), unless you do some things that slow sequences down substantially. Sequences can also be something of a bottleneck on RAC clusters. See:
http://www.dizwell.com/oracle/articles/autonumbering.html
However, if your coworker is commiting after each and every insert (which is bad form and slows the database down, -10 points), and if your coworker is also never ever ever updating the columns after they've been inserted, and if your coworker is using Oracle 10g and not some older version such as 9i, then your coworker could use the ORA_ROWSCN pseudo-column to order by. Those are very very severe constraints and you shouldn't begin to consider doing it that way without a very good reason, and right now you and your coworker wouldn't know a good reason if it snuck up and bit you on the butt, you've got a lot of learning the basics first. -
Autonumber and text in separate frames affects PDF bookmarks
Since making a forced return in an autonumber specification does not work, I tried the solution of making the chapter heading span two text frames. The first frame is very small to handle only the one or two digits of the chapter number and a space, while the second frame is the normal text column where the chapter title is displayed. This setup allowed me to make the chapter number and heading right-adjusted on the page so that users scanning through pages can more easily find the beginning of a chapter at the outer right edge. I connected the two text frames so that they are part of the same Flow A. The autonumbering for the chapter heading was unchanged. I used the specification:
H:<$chapnum>\sn
Basically, this is a heading series with the <$chapnum> followed by an en space, which, after testing, provided the proper spacing after the number to force the chapter title to the next frame.
The solution looks good in the document, in references to the chapter title, and in the TOC. The only problem is that when I print the book to PostScript and use Distiller to generate the PDF file, the PDF bookmarks have a doubled chapter number, as in:
1 1 Introduction
2 2 Getting Started
3 3 Using the Interface
I can delete the duplicated numbers manually, but I would like a way to prevent them from appearing. I don't understand why Acrobat is adding the extra chapter number when it appears nowhere duplicated within the FrameMaker process.
Any solutions?
Susan SelfStart Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
*Don't make any changes on the Safe mode start window.
*https://support.mozilla.com/kb/Safe+Mode
*https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes -
Problem when create auto numbering in BP master using Formatted Search
Hi all,
I have a problem in creating auto numbering in BP for Customer type using Formatted search
My query is like this
declare @tempNo as char(20)
set @tempNo=(select Isnull(max(REPLACE(OCRD.CardCode , LEFT(OCRD.CardCode,10),'')),0) + 1
from OCRD where (CardType ='C') and LEFT(OCRD.CardCode,3) = 'CU.' )
set @tempNo='CU.'left(convert(varchar,GETDATE(),112),6)'.'+@tempNo
select cast(@tempNo as char(20))
It should be creating the new number for example
CU.201101.1
CU.201102.2
CU.201103.3
CU.201103.4
The format will be like this CU.YYYYMM.autonumbering
So if the current year is still the same it will always increase the number and it will reset the number become 1 if the current year is change.
But when i execute the number , the number doesn't increase, still generate the last number CU.201103.4
I have use this query in generate item number, it runs well but different format.
Is there some thing wrong with my query?
Thanks in advance
Regards
Jia shunHi Jia shun,
You have posted an identical threads. There is no such need. Please close this one and response to the one with answer already.
Thanks,
Gordon -
Separate table title autonumbering for two named table styles?
I believe this very same question whizzed by a few weeks ago but I'm having no luck searching for it.
I have two named table styles. I want the autonumbering for the table titles to be separate. More specifically, one will autonumber as "Table t", while the other will autonumber as "Example e".
I have redefined the autonumbering counter for the second of the two TableTitle para style, and if I apply that style while in that table's title, I get the new autonumbering. But I can't transmit (a) selectively update the Table Title style to this format to other tables in the chapter. By extension, I can't copy the wonderful new table format to other chapters in the book.
I next tried creating a new para style "ExampleTitle", then in the Table Designer trying Update All. Nope, other tables of type example do not receive the new title style.
This is fully-patched FM8. The document is structured but I don't (want to) care about that -- I simply need to get the two different named table styles
to autonumber sequentially.
This is probably pretty easy once I learn the "trick"...(?)
Cheers & thanks,
RileyArnis:
Thanks. For some reason I couldn't get my table to update, so I went through and manually create a second table title paragraph style, then manually applied that. (I also created a second x-ref format so that I could x-ref to "Example n:" without including the colon in the x-ref, but that's another story...)
So for now I've worked around the problem. After I get this document out I'll revisit the issue. (Why do I have a vague recollection that there's a known idiosyncracy where FM6+ table styles don't update properly...?)
Cheers & thanks 'gain,
Riley -
Serious problem with database need help
hello experts
i am working with MS-ACCESS and connecting it with java programing
now the problem with me are
according to my need i have to create a table that contain Autonumber field
but when i insert element in this table by query
String query1 = "insert into Forum (Subject,Author,Date,Reply) values('"+param1+"','"+username+"','"+dateformat+"',"+reply+")";
st1 = con1.createStatement(); it gives sql exception but when i remove
autonumber field and make it simple field it works ok but i want to keep autonumber field and thn want to insert it
is it possible to create a dynamic table in ms-access through java query like
String query3 = "create table"+"topicId"+"( message varchar(1000) NOT NULL,author varchar(50) NOT NULL, date varchar(30) NOT NULL)";
here topic id some variable that contain table name
i think problem is that MS-ACCESS has no varchar data type plz help me
The complete code i written is as follow
<html>
<%@ page language="java" import="java.sql.*,java.text.*" %>
<head>
<title> Processing the post request </title>
</head>
<body background ="images/modbkgnd.jpg" bgproperties="fixed" >
<%
String param1="",param2="",topicId="";
Connection con1=null;
Statement st1=null;
ResultSet rs1=null;
int a=2,reply=0;
java.util.Date date = new java.util.Date();
DateFormat df ;
df = DateFormat.getDateInstance(DateFormat.FULL ,java.util.Locale.UK);
String dateformat = df.format(date);
String username = (String)session.getAttribute("forumlogin");
param1=request.getParameter("Subject");
param2 =request.getParameter("message");
try
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con1 = DriverManager.getConnection("jdbc:odbc:lingua");
String query1 = "insert into Forum (Subject,Author,Date,Reply) values('"+param1+"','"+username+"','"+dateformat+"',"+reply+")";
st1 = con1.createStatement();
out.print("hello i am here");
boolean posubject = st1.execute(query1);
out.print("hello i am here");
String query2 = "select *from Forum";
rs1 = st1.executeQuery(query2); //retriving table id for creating
out.print("hello i am here"); // message table
while(rs1.next())
topicId = rs1.getString(1);
String query3 = "create table"+"topicId"+"( message varchar(1000) NOT NULL,author varchar(50) NOT NULL, date varchar(30) NOT NULL)";
boolean createtable = st1.execute(query3);
out.print("hello i am here");
if(createtable)
String query4 = "insert into"+"topicId"+"values('"+param2+"','"+username+"','"+dateformat+"')";
boolean insertmess = st1.execute(query4);
}catch(SQLException ex){
out.print("sql exception");
finally
st1.close();
con1.close();
%>
</body>
</html>hello experts
first i change my Date to date and thn try but it was not working.
and thn i try as dinesh_tcs said
i change my query as
String query3 = "create table"+"topicId"+"( message string NOT NULL,author string NOT NULL, date string NOT NULL)";
but nothing help me
one more thing actually i don,t want to insert manually the field of autonumber what i want that my query work when i leave the autonumber field to insert values in the table ( or whatever way i want to insert values in that table by keeping autonuber given by MS_ACCESS)
plz do the change in code i have maintained above or if not possible thn write the query that u have tested -
Autonumbering corrupted when converting RoboHelp HTML 5 to 8.
everal problems:
1 RH 8 "created" multiple definitions in my .css file for a each style.
2 Autonumbered procedures (nested <ol> </ol> in original Help project was stable, but is not correct in RH8
3 User documentation for Font Family is incorrect/incomplete
4 Numbers in steps are Times Roman 12, text is Verdana 10.
1
css file has 3 "versions" for defined styles, p, kadov, and another one with a rh prefix. I've explicitly called out font family using text editor, but wonder which definition is being picked up in RH 8 project, and if I can/should delete the redundant definitions
2
The numbered list selection in the dialog box does not have an example for what I'm looking for:
1 Step one
2 Step two
a. Substep one
b. Substep two
3 Step three
The conversion automagically renumbered procedures with mixed <ol> and <ul> as well as nested <ol>. The result is a procedure that looks like:
1. Step one
2. Step two
1. Substep one
2. Substep two
A. Step three
3
Font Set and setting numbers to same size as paragraph text...looking for adequate documetnation on these two problems.
Font Set documentation is obtuse, on the same page as "Font" instructions. There is no Font Set in the menu.1
The fact that your CSS still contains kadov indicates that for some reason it did not upgrade properly.
Do you have another project using the same CSS so that you could take a copy and upgrade that to see if it works second time around?
If not, backup the CSS and edit it manually. Try www.bradsoft.com and use the free lite version of TopStyle.
2
Are you looking at multi level numbering? Pretty sure that simple layout is there.
It is beginning to sound like what you you had various styles that effectivley gave you multi level numbering. What RH8 provides is different and I think you need to check it out. There is some information about it on my site. http://www.grainge.org/pages/authoring/rh_tour/index.htm
3
Sounds like you have the LI configured to Verdana but OL not configured so it is taking your browser default or you have that defined as Times.
4
You have four items in the heading of your post but only three in the body.
See www.grainge.org for RoboHelp and Authoring tips -
Autonumber paras across chapters
Hello,
I want to have a multi-chapter book, each chapter of which has standard numbered headings at various levels. So far, no problem.
In addition to this, I want to add a second set of numbers which run across the entire book and are independent of the other numbering system. Heading1 paras should be numbered sequentially (§1, §2, etc.) and other, lower level paras should be alphabetised (a, b, etc.) within that. I want these numbers to appear in mirrored margins.
(This is a standard system used in grammars in my field.)
Seems that the mirroring suggests I use side heads. But after that, I'm unsure what to do. Can I set up counters at the book rather than chapter level? Or do I have to do it all by hand once the book is finished?
Thanks for any help you can offer.
KThat would be the method you should use for the side head numbering, yes. This step controls the action of the counters -- whether they're incremented, restart, or contain a custom text message.
The counters are actually invoked by the paragraph tags, which also control the formatting and the way the counters are presented in the document. One thing that you should do when setting up numbering in your paragraph tags, that is often overlooked, is to specify a numbering stream. Frame has 57 streams that can be assigned to track different things. A particular stream is invoked by starting the autonumbering string with a letter and colon -- A: or a:, for instance -- and then the numbering counters. Some people might use c: or C: for chapters, H: for heads, or S: for a sidehead.
So two steps, with different purposes.
Art -
Autonumber bug in headings following a procedure
Hoping someone has an answer to this...
I'm on Frame 11 (11.0.0.380) on Windows 7.
I'm running into a strange issue with headings that are autonumbered. Everything works as expected... until I include a proccedure that has autonumbered steps and sub-steps. The heading immediately following the procedure renumbers from the beginning. The image below shows an example. There are three headings, which are numbered correctly. Then I inserted a subheading with a procedure and the heading below it has incorrect numbering. This only happens in headings that follow a procedure.
The autonumbers for the paragraphs are:
Heading1: <$chapnum>.<n+>
Heading2: <$chapnum>.<n>.<n+>
Numbered: S:<n+>/\t
NumberedCont1 (sub-step): <a=1>.\t
Is there something incorrectly set up in the autonumber format or is this a bug?Take a look at this. http://help.adobe.com/en_US/FrameMaker/9.0/Using/WSF176D8C8-8133-4860-88E3-AF69262623F0.ht ml
The problem is in this paragraph with this numbering:
NumberedCont1 (sub-step): <a=1>.\t
You reset the numbering of the main paragraph back to 1, when you used the <a=1> tag since you did not preface it with S:. -
Autonumber (sequencenumber) variable
Hi,
we're working on IP and we're trying to find a way to add a sequence number to our planning function. The idea is that one can do planning on a combination of Cost center and Cost element, whereby it is possible to plan more than 1 line on such a combination using the mentioned sequence number (possibly in combination with a copy function-e.g. one can copy a line and a new sequence number is automatically added).
Now I saw a post on this forum with regard to an autonumber variable, however the problem in that post didn't really regard the variable itself, and the solution was not explained. Is there anybody who knows the mentioned solution or has onother one?
RegardsNot exactly,
what should happen is that every combination of cost center and cost element has a sequence number. For example:
COST CENTER COST ELEMENT SEQ NR
1000______________400100_________1
1000 _____________ 400120_________1
1000 _____________ 400120_________2
2000 _____________ 400100_________1
2000 _____________ 400100_________2
2000 _____________ 400100_________3
Edited by: Jesse Brock on Sep 22, 2009 12:18 PM
Edited by: Jesse Brock on Sep 22, 2009 12:19 PM
Maybe you are looking for
-
Using Mac Mini with Photoshop CS6 and Lightroom
Hi I use Photoshop CS6 and Lightroom 4 mainly as I am a photographer. It involves both programmes live and some huge PSD files kicking around. I would be interested in hearing from any one who does similar on a high end mac mini. I am thinking of get
-
Are there any recent tutorials or information for integrating Adobe Flex with Ruby on Rails 4?
I've combed and searched extensively and most of the documentation is anywhere from 4 to 7 years old. A lot of it focuses on outdated gems or libraries. I've even seen Rails 2.0 as a focus for a lot of this information. I would just like to know if
-
Tick mark in Appleworks documents
Does anyone know how to put a tick mark into either a word processing document or a spread sheet box? I might be being dim here, but I can't find a tcik sign anywhere! (I mean like when you tick a box!) Thanks
-
2 Reports virtual paths in 11g
Hi In OAS10.1.2.3 Reports, I unjar'ed reports.ear; changed its appplications.xml context-root to reports_2; added some pararmeters to its web.xml to use cgicmd_2.dat; then jar'ed and deployed reports_2.ear. Now I have 2 reports virtual paths to keep
-
Dear SAP Guru, We have created Outbound Delivery for STOs and subsequently Transfer Order generated for Picking. Even the Transfer Orders are not confirmed. System allowing to Delete the Out Bound Deliver which is creating inconsistency in syatem. If