Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [buckminster-dev] PropertyFormatTestCasethrows UnrecognizedElementException

Hi Karel,
It looks like you still have some 'property' elements in there. At least that's what it complains about. This time it's under the format element. You need to replace that too with a propertyRef.

- thomas

Karel Brezina wrote:
Hi Thomas,

I replaced <property> tag with <propertyRef> tag under <replace> element. Now it throws org.eclipse.buckminster.sax.UnrecognizedElementException. The problem is that method ChildHandler.createHandler(String, String, Attributes) is not overriden.

Could you look at this issue?

Regards,
    Karel

org.eclipse.buckminster.sax.UnrecognizedElementException: Unrecognized element <property> encountered in tag <class org.eclipse.buckminster.core.common.parser.FormatHandler(lacks TAG field)> at org.eclipse.buckminster.sax.ChildHandler.createHandler(ChildHandler.java:112) at org.eclipse.buckminster.core.common.parser.ValueFilterHandler.createHandler(ValueFilterHandler.java:52) at org.eclipse.buckminster.sax.ChildHandler.startElement(ChildHandler.java:66) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)



"Thomas Hallgren" <thomas@xxxxxxx> píse v diskusním príspevku news:mailman.0.1169738013.22963.buckminster-dev@xxxxxxxxxxx...
Hi Karel,
I think the valuetest.xml that the test is referencing is out dated. The <replace> element should have a <propertyRef> tag, not a <property> tag.

Regards,
Thomas Hallgren

Karel Brezina wrote:
Hi,

PropertyFormatTestCase.testPropertyParser() from "org.eclipse.buckminster.core.test.property" package throws UnrecognizedElementException.

What is wrong?

Regards,
    Karel

Trace output:

org.eclipse.buckminster.sax.UnrecognizedElementException: Unrecognized element <property> encountered in tag <replace> at org.eclipse.buckminster.sax.ChildHandler.createHandler(ChildHandler.java:112) at org.eclipse.buckminster.core.common.parser.ValueFilterHandler.createHandler(ValueFilterHandler.java:52) at org.eclipse.buckminster.core.common.parser.ReplaceHandler.createHandler(ReplaceHandler.java:70) at org.eclipse.buckminster.sax.ChildHandler.startElement(ChildHandler.java:66) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source) at org.eclipse.buckminster.core.test.property.PropertyFormatTestCase$DummyParser.parse(PropertyFormatTestCase.java:173) at org.eclipse.buckminster.core.test.property.PropertyFormatTestCase.testPropertyParser(PropertyFormatTestCase.java:191)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
 at java.lang.reflect.Method.invoke(Unknown Source)
 at junit.framework.TestCase.runTest(TestCase.java:164)
 at junit.framework.TestCase.runBare(TestCase.java:130)
 at junit.framework.TestResult$1.protect(TestResult.java:110)
 at junit.framework.TestResult.runProtected(TestResult.java:128)
 at junit.framework.TestResult.run(TestResult.java:113)
 at junit.framework.TestCase.run(TestCase.java:120)
 at junit.framework.TestSuite.runTest(TestSuite.java:228)
 at junit.framework.TestSuite.run(TestSuite.java:223)
at org.junit.internal.runners.OldTestClassRunner.run(OldTestClassRunner.java:35) at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:38) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386) at org.eclipse.pde.internal.junit.runtime.RemotePluginTestRunner.main(RemotePluginTestRunner.java:58) at org.eclipse.pde.internal.junit.runtime.CoreTestApplication.run(CoreTestApplication.java:24) at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
 at java.lang.reflect.Method.invoke(Unknown Source)
 at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336)
 at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
 at org.eclipse.core.launcher.Main.run(Main.java:977)
 at org.eclipse.core.launcher.Main.main(Main.java:952)

_______________________________________________
buckminster-dev mailing list
buckminster-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/buckminster-dev



_______________________________________________
buckminster-dev mailing list
buckminster-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/buckminster-dev



Back to the top