javax.xml.transform.TransformerException

If you like a tip written by other Samebug users, mark is as helpful! Marks help our algorithm provide you better solutions and also help other users.
tip

Check for syntax problems, if you're using < and &rt try changing them for < and > as there's no need to avoid the special characters from xml.

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • Looks like a side-effect of the license header changes. {noformat} Running org.jasig.portal.url.xml.XsltPortalUrlProviderTest ERROR: 'Illegal processing instruction target ("xml"); xml (case insensitive) is reserved by the specs. at [row,col {unknown-source}]: [21,5]' ERROR: 'com.sun.org.apache.xml.internal.utils.WrappedRuntimeException: Illegal processing instruction target ("xml"); xml (case insensitive) is reserved by the specs. at [row,col {unknown-source}]: [21,5]' ERROR: 'Illegal processing instruction target ("xml"); xml (case insensitive) is reserved by the specs. at [row,col {unknown-source}]: [21,5]' ERROR: 'com.sun.org.apache.xml.internal.utils.WrappedRuntimeException: Illegal processing instruction target ("xml"); xml (case insensitive) is reserved by the specs. at [row,col {unknown-source}]: [21,5]' ERROR: 'Illegal processing instruction target ("xml"); xml (case insensitive) is reserved by the specs. at [row,col {unknown-source}]: [21,5]' ERROR: 'com.sun.org.apache.xml.internal.utils.WrappedRuntimeException: Illegal processing instruction target ("xml"); xml (case insensitive) is reserved by the specs. at [row,col {unknown-source}]: [21,5]' ERROR: 'Illegal processing instruction target ("xml"); xml (case insensitive) is reserved by the specs. at [row,col {unknown-source}]: [21,5]' ERROR: 'com.sun.org.apache.xml.internal.utils.WrappedRuntimeException: Illegal processing instruction target ("xml"); xml (case insensitive) is reserved by the specs. at [row,col {unknown-source}]: [21,5]' Tests run: 4, Failures: 0, Errors: 4, Skipped: 0, Time elapsed: 0.067 sec <<< FAILURE! testDefaultUrl(org.jasig.portal.url.xml.XsltPortalUrlProviderTest) Time elapsed: 0.017 sec <<< ERROR! javax.xml.transform.TransformerException: javax.xml.transform.TransformerException: com.sun.org.apache.xml.internal.utils.WrappedRuntimeException: Illegal processing instruction target ("xml"); xml (case insensitive) is reserved by the specs. at [row,col {unknown-source}]: [21,5] at com.sun.org.apache.xalan.internal.xsltc.dom.XSLTCDTMManager.getDTM(XSLTCDTMManager.java:344) at com.sun.org.apache.xalan.internal.xsltc.dom.XSLTCDTMManager.getDTM(XSLTCDTMManager.java:252) at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.getDOM(TransformerImpl.java:565) at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:748) at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:359) at org.jasig.portal.url.xml.XsltPortalUrlProviderTest.testDefaultUrl(XsltPortalUrlProviderTest.java:122) testLayoutUrlById(org.jasig.portal.url.xml.XsltPortalUrlProviderTest) Time elapsed: 0.016 sec <<< ERROR! javax.xml.transform.TransformerException: javax.xml.transform.TransformerException: com.sun.org.apache.xml.internal.utils.WrappedRuntimeException: Illegal processing instruction target ("xml"); xml (case insensitive) is reserved by the specs. at [row,col {unknown-source}]: [21,5] at com.sun.org.apache.xalan.internal.xsltc.dom.XSLTCDTMManager.getDTM(XSLTCDTMManager.java:344) at com.sun.org.apache.xalan.internal.xsltc.dom.XSLTCDTMManager.getDTM(XSLTCDTMManager.java:252) at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.getDOM(TransformerImpl.java:565) at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:748) at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:359) at org.jasig.portal.url.xml.XsltPortalUrlProviderTest.testLayoutUrlById(XsltPortalUrlProviderTest.java:150) testPortletUrlById(org.jasig.portal.url.xml.XsltPortalUrlProviderTest) Time elapsed: 0.017 sec <<< ERROR! javax.xml.transform.TransformerException: javax.xml.transform.TransformerException: com.sun.org.apache.xml.internal.utils.WrappedRuntimeException: Illegal processing instruction target ("xml"); xml (case insensitive) is reserved by the specs. at [row,col {unknown-source}]: [21,5] at com.sun.org.apache.xalan.internal.xsltc.dom.XSLTCDTMManager.getDTM(XSLTCDTMManager.java:344) at com.sun.org.apache.xalan.internal.xsltc.dom.XSLTCDTMManager.getDTM(XSLTCDTMManager.java:252) at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.getDOM(TransformerImpl.java:565) at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:748) at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:359) at org.jasig.portal.url.xml.XsltPortalUrlProviderTest.testPortletUrlById(XsltPortalUrlProviderTest.java:184) testMultiPortletUrlById(org.jasig.portal.url.xml.XsltPortalUrlProviderTest) Time elapsed: 0.016 sec <<< ERROR! javax.xml.transform.TransformerException: javax.xml.transform.TransformerException: com.sun.org.apache.xml.internal.utils.WrappedRuntimeException: Illegal processing instruction target ("xml"); xml (case insensitive) is reserved by the specs. at [row,col {unknown-source}]: [21,5] at com.sun.org.apache.xalan.internal.xsltc.dom.XSLTCDTMManager.getDTM(XSLTCDTMManager.java:344) at com.sun.org.apache.xalan.internal.xsltc.dom.XSLTCDTMManager.getDTM(XSLTCDTMManager.java:252) at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.getDOM(TransformerImpl.java:565) at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:748) at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:359) at org.jasig.portal.url.xml.XsltPortalUrlProviderTest.testMultiPortletUrlById(XsltPortalUrlProviderTest.java:231) # ...snip... Results : Failed tests: StAXSerializingComponentTest.testSerializing:137 Events at index 1 do not match CharacterDataEvent [data=<!-- Licensed to Jasig under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. Jasig licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at: http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --><layout> <folder> ] CharacterDataEvent [data=<!-- Licensed to Apereo under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. Apereo licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at the following location: http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --><layout> <folder> ] expected:<CharacterDataEvent [data=<!-- Licensed to Jasig under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. Jasig licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at: http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --><layout> <folder> ]> but was:<CharacterDataEvent [data=<!-- Licensed to Apereo under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. Apereo licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at the following location: http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --><layout> <folder> ]> Tests in error: XalanAuthorizationHelperTest.testIsUserDeepMemberOf:89 » Transformer javax.xml... XalanGroupMembershipHelperTest.testIsUserDeepMemberOf:91 » Transformer javax.x... XalanMessageHelperTest.testIsUserDeepMemberOf:89 » Transformer javax.xml.trans... XsltPortalUrlProviderTest.testDefaultUrl:122 » Transformer javax.xml.transform... XsltPortalUrlProviderTest.testLayoutUrlById:150 » Transformer javax.xml.transf... XsltPortalUrlProviderTest.testPortletUrlById:184 » Transformer javax.xml.trans... XsltPortalUrlProviderTest.testMultiPortletUrlById:231 » Transformer javax.xml.... Tests run: 421, Failures: 1, Errors: 7, Skipped: 7 {noformat}
    via by Dan McCallum,
  • Looks like a side-effect of the license header changes. {noformat} Running org.jasig.portal.url.xml.XsltPortalUrlProviderTest ERROR: 'Illegal processing instruction target ("xml"); xml (case insensitive) is reserved by the specs. at [row,col {unknown-source}]: [21,5]' ERROR: 'com.sun.org.apache.xml.internal.utils.WrappedRuntimeException: Illegal processing instruction target ("xml"); xml (case insensitive) is reserved by the specs. at [row,col {unknown-source}]: [21,5]' ERROR: 'Illegal processing instruction target ("xml"); xml (case insensitive) is reserved by the specs. at [row,col {unknown-source}]: [21,5]' ERROR: 'com.sun.org.apache.xml.internal.utils.WrappedRuntimeException: Illegal processing instruction target ("xml"); xml (case insensitive) is reserved by the specs. at [row,col {unknown-source}]: [21,5]' ERROR: 'Illegal processing instruction target ("xml"); xml (case insensitive) is reserved by the specs. at [row,col {unknown-source}]: [21,5]' ERROR: 'com.sun.org.apache.xml.internal.utils.WrappedRuntimeException: Illegal processing instruction target ("xml"); xml (case insensitive) is reserved by the specs. at [row,col {unknown-source}]: [21,5]' ERROR: 'Illegal processing instruction target ("xml"); xml (case insensitive) is reserved by the specs. at [row,col {unknown-source}]: [21,5]' ERROR: 'com.sun.org.apache.xml.internal.utils.WrappedRuntimeException: Illegal processing instruction target ("xml"); xml (case insensitive) is reserved by the specs. at [row,col {unknown-source}]: [21,5]' Tests run: 4, Failures: 0, Errors: 4, Skipped: 0, Time elapsed: 0.067 sec <<< FAILURE! testDefaultUrl(org.jasig.portal.url.xml.XsltPortalUrlProviderTest) Time elapsed: 0.017 sec <<< ERROR! javax.xml.transform.TransformerException: javax.xml.transform.TransformerException: com.sun.org.apache.xml.internal.utils.WrappedRuntimeException: Illegal processing instruction target ("xml"); xml (case insensitive) is reserved by the specs. at [row,col {unknown-source}]: [21,5] at com.sun.org.apache.xalan.internal.xsltc.dom.XSLTCDTMManager.getDTM(XSLTCDTMManager.java:344) at com.sun.org.apache.xalan.internal.xsltc.dom.XSLTCDTMManager.getDTM(XSLTCDTMManager.java:252) at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.getDOM(TransformerImpl.java:565) at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:748) at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:359) at org.jasig.portal.url.xml.XsltPortalUrlProviderTest.testDefaultUrl(XsltPortalUrlProviderTest.java:122) testLayoutUrlById(org.jasig.portal.url.xml.XsltPortalUrlProviderTest) Time elapsed: 0.016 sec <<< ERROR! javax.xml.transform.TransformerException: javax.xml.transform.TransformerException: com.sun.org.apache.xml.internal.utils.WrappedRuntimeException: Illegal processing instruction target ("xml"); xml (case insensitive) is reserved by the specs. at [row,col {unknown-source}]: [21,5] at com.sun.org.apache.xalan.internal.xsltc.dom.XSLTCDTMManager.getDTM(XSLTCDTMManager.java:344) at com.sun.org.apache.xalan.internal.xsltc.dom.XSLTCDTMManager.getDTM(XSLTCDTMManager.java:252) at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.getDOM(TransformerImpl.java:565) at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:748) at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:359) at org.jasig.portal.url.xml.XsltPortalUrlProviderTest.testLayoutUrlById(XsltPortalUrlProviderTest.java:150) testPortletUrlById(org.jasig.portal.url.xml.XsltPortalUrlProviderTest) Time elapsed: 0.017 sec <<< ERROR! javax.xml.transform.TransformerException: javax.xml.transform.TransformerException: com.sun.org.apache.xml.internal.utils.WrappedRuntimeException: Illegal processing instruction target ("xml"); xml (case insensitive) is reserved by the specs. at [row,col {unknown-source}]: [21,5] at com.sun.org.apache.xalan.internal.xsltc.dom.XSLTCDTMManager.getDTM(XSLTCDTMManager.java:344) at com.sun.org.apache.xalan.internal.xsltc.dom.XSLTCDTMManager.getDTM(XSLTCDTMManager.java:252) at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.getDOM(TransformerImpl.java:565) at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:748) at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:359) at org.jasig.portal.url.xml.XsltPortalUrlProviderTest.testPortletUrlById(XsltPortalUrlProviderTest.java:184) testMultiPortletUrlById(org.jasig.portal.url.xml.XsltPortalUrlProviderTest) Time elapsed: 0.016 sec <<< ERROR! javax.xml.transform.TransformerException: javax.xml.transform.TransformerException: com.sun.org.apache.xml.internal.utils.WrappedRuntimeException: Illegal processing instruction target ("xml"); xml (case insensitive) is reserved by the specs. at [row,col {unknown-source}]: [21,5] at com.sun.org.apache.xalan.internal.xsltc.dom.XSLTCDTMManager.getDTM(XSLTCDTMManager.java:344) at com.sun.org.apache.xalan.internal.xsltc.dom.XSLTCDTMManager.getDTM(XSLTCDTMManager.java:252) at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.getDOM(TransformerImpl.java:565) at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:748) at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:359) at org.jasig.portal.url.xml.XsltPortalUrlProviderTest.testMultiPortletUrlById(XsltPortalUrlProviderTest.java:231) # ...snip... Results : Failed tests: StAXSerializingComponentTest.testSerializing:137 Events at index 1 do not match CharacterDataEvent [data=<!-- Licensed to Jasig under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. Jasig licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at: http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --><layout> <folder> ] CharacterDataEvent [data=<!-- Licensed to Apereo under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. Apereo licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at the following location: http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --><layout> <folder> ] expected:<CharacterDataEvent [data=<!-- Licensed to Jasig under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. Jasig licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at: http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --><layout> <folder> ]> but was:<CharacterDataEvent [data=<!-- Licensed to Apereo under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. Apereo licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at the following location: http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. --><layout> <folder> ]> Tests in error: XalanAuthorizationHelperTest.testIsUserDeepMemberOf:89 » Transformer javax.xml... XalanGroupMembershipHelperTest.testIsUserDeepMemberOf:91 » Transformer javax.x... XalanMessageHelperTest.testIsUserDeepMemberOf:89 » Transformer javax.xml.trans... XsltPortalUrlProviderTest.testDefaultUrl:122 » Transformer javax.xml.transform... XsltPortalUrlProviderTest.testLayoutUrlById:150 » Transformer javax.xml.transf... XsltPortalUrlProviderTest.testPortletUrlById:184 » Transformer javax.xml.trans... XsltPortalUrlProviderTest.testMultiPortletUrlById:231 » Transformer javax.xml.... Tests run: 421, Failures: 1, Errors: 7, Skipped: 7 {noformat}
    via by Dan McCallum,
  • Reference is not allowed in prolog
    via Stack Overflow by sunleo
    ,
  • not generating pdf from http website url
    via by Unknown author,
  • not generating pdf from http website url
    via by Unknown author,
  • DocumentBuilder XML file null variable issue
    via Stack Overflow by Burak T
    ,
    • javax.xml.transform.TransformerException: javax.xml.transform.TransformerException: com.sun.org.apache.xml.internal.utils.WrappedRuntimeException: Illegal processing instruction target ("xml"); xml (case insensitive) is reserved by the specs. at [row,col {unknown-source}]: [21,5] at com.sun.org.apache.xalan.internal.xsltc.dom.XSLTCDTMManager.getDTM(XSLTCDTMManager.java:344) at com.sun.org.apache.xalan.internal.xsltc.dom.XSLTCDTMManager.getDTM(XSLTCDTMManager.java:252) at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.getDOM(TransformerImpl.java:565) at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:748) at com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:359) at org.jasig.portal.url.xml.XsltPortalUrlProviderTest.testMultiPortletUrlById(XsltPortalUrlProviderTest.java:231)

    Users with the same issue

    Tahir
    1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    5 more bugmates