[JBoss JIRA] Created: (JBCOMMON-81) java.lang.NoSuchMethodError during processing xml files
by cset telo (JIRA)
java.lang.NoSuchMethodError during processing xml files
-------------------------------------------------------
Key: JBCOMMON-81
URL: https://jira.jboss.org/jira/browse/JBCOMMON-81
Project: JBoss Common
Issue Type: Bug
Environment: - HP-UX release B.11.23, i64, vmunix: B11.23_LR FLAVOR=perf
- Sun Java VM 1.5.0.14 Standard Edition (build 1.5.0.14-_25_jul_2008_05_19) Java HotSpot(TM) Server VM (build 1.5.0.14 jinteg:07.25.08-11:41 IA64, mixed mode)
- JBoss 4.2.2.GA.
- Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production
- JDBC: Ojdbc1.4.jar
- java starting parameters: -Xms128m -Xmx1024m
Reporter: cset telo
Assignee: Dimitris Andreadis
java.lang.NoSuchMethodError during processing xml files:
We are loading data from xml files (at about 0,5 Gb) to the database. The handler uses JSR-173 implementation for reading the xml files and for inserting data to database uses JDBC PreparedStatement's addBatch method. Periodically there are System.gc() method calls (each 15 seconds, 6 times) because of the many, but little objects. This time the database connection is closed and opened again.
During this process we get
java.lang.NoSuchMethodError: javax.resource.spi.ResourceAdapterInternalException: method <init>(Ljava/lang/String;Ljava/lang/Throwable;)V not found
message into the log file. This event occurs different times after starting the process. There's no included stack trace.
This object constructor exists; the implementation is in the \server\default\lib\jboss-j2ee.jar, which can be found in the installed JBoss.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 10 months
[JBoss JIRA] Created: (JBXB-182) Parse error if a choice is between an element and a sequence which also contains the element
by Matt Wringe (JIRA)
Parse error if a choice is between an element and a sequence which also contains the element
--------------------------------------------------------------------------------------------
Key: JBXB-182
URL: https://jira.jboss.org/jira/browse/JBXB-182
Project: JBoss XML Binding (JBossXB)
Issue Type: Bug
Environment: JBoss AS5, JBossXB 2.0.0.GA
Reporter: Matt Wringe
JBossXB fails to parse an xml file if the xsd contains a choice between an element and a sequence which also contains the element.
For example, in the follow the choice should allow the option between specifying A and then B, or just B
<choice>
<sequence>
<element name="A"/>
<element name="B"/>
</sequence>
<element name="B"/>
</choice>
But, if an xml file used contains just B, an exception will be thrown saying that B is in the wrong order for the sequence. The expected result would be that it should work since just having B is valid.
Part of the actual xsd file (http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd) in question:
<choice>
<sequence>
<element name="resource-bundle" type="portlet:resource-bundleType"/>
<element name="portlet-info" type="portlet:portlet-infoType" minOccurs="0"/>
</sequence>
<element name="portlet-info" type="portlet:portlet-infoType"/>
</choice>
Part of the stacktrace thrown when a portlet-info element is declared in an portlet.xml file without resource-bundle:
Caused by: org.jboss.xb.binding.JBossXBRuntimeException: Requested element {http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd}portlet-info is not allowed in this position in the sequence. The next element should be {http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd}resource-bundle
at org.jboss.xb.binding.sunday.unmarshalling.SequenceBinding$1.startElement(SequenceBinding.java:226)
at org.jboss.xb.binding.sunday.unmarshalling.ChoiceBinding$1.startElement(ChoiceBinding.java:230)
at org.jboss.xb.binding.sunday.unmarshalling.SequenceBinding$1.startElement(SequenceBinding.java:254)
at org.jboss.xb.binding.sunday.unmarshalling.ModelGroupBinding$Cursor.startElement(ModelGroupBinding.java:185)
at org.jboss.xb.binding.sunday.unmarshalling.SundayContentHandler.startElement(SundayContentHandler.java:451)
at org.jboss.xb.binding.parser.sax.SaxJBossXBParser$DelegatingContentHandler.startElement(SaxJBossXBParser.java:401)
at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
at org.apache.xerces.xinclude.XIncludeHandler.startElement(Unknown Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
Note: when using other tools, the xsd file validates as a proper xsd file, and the xml file used properly validates against the specified xsd.
More information (stacktraces, actual files used, etc...) is available upon requested.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 10 months
[JBoss JIRA] Created: (EJBTHREE-1747) Make the individual tutorials runnable through Maven
by jaikiran pai (JIRA)
Make the individual tutorials runnable through Maven
----------------------------------------------------
Key: EJBTHREE-1747
URL: https://jira.jboss.org/jira/browse/EJBTHREE-1747
Project: EJB 3.0
Issue Type: Task
Components: docs
Affects Versions: 1.1.1
Environment: JBoss-AS 5.0.x
Reporter: jaikiran pai
Assignee: jaikiran pai
The EJB3 tutorials currently can be built and run through Ant and Maven. However Maven support is not that great and currently works as follows:
1) An aggregator (jboss-ejb3-tutorial-parent) first triggers the AS to start (through a "init" module)
2) All the tutorials are then run one after other
3) The aggregator then finally uses a "shutdown" module to stop the server.
This doesn't allow a single tutorial to be run through Maven, because the AS is started outside the tutorial.
To fix this, maven profile(s) need to be created. Ex: A "RunAllTutorial" profile which does the same steps as above and a "RunOneTutorial" which is responsible for running the single tutorial (with the additional steps of starting/stopping the AS).
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 10 months