[ 
https://issues.apache.org/jira/browse/XALANJ-2569?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13590251#comment-13590251
 ] 

Jay Xu commented on XALANJ-2569:
--------------------------------

Hi, I checked some other references and found this issue is due to GF's 
redeployment mechanism. After 
"org.apache.catalina.loader.WebappClassLoader.ENABLE_CLEAR_REFERENCES=false" 
added to GF's start parameters, the issue no longer happens
                
> Strange NPE when deploying xalan to glassfish
> ---------------------------------------------
>
>                 Key: XALANJ-2569
>                 URL: https://issues.apache.org/jira/browse/XALANJ-2569
>             Project: XalanJ2
>          Issue Type: Bug
>      Security Level: No security risk; visible to anyone(Ordinary problems in 
> Xalan projects.  Anybody can view the issue.) 
>          Components: Xalan
>    Affects Versions: 2.7.1
>         Environment: Ubuntu 12.10 with 3.5.0-22-generic x64
> OpenJDK Runtime Environment (IcedTea7 2.3.4) (7u9-2.3.4-0ubuntu1.12.10.1) x64
> Glassfish 3.1.2.2 with VM args:
> -XX:+UnlockDiagnosticVMOptions -XX:+UseParallelOldGC -XX:ParallelGCThreads=6 
> -XX:MaxPermSize=1024m -XX:PermSize=64m -XX:LargePageSizeInBytes=2m 
> -XX:+UseParallelGC -Xmx4096m -Xmn1024m -Xms4096m 
> -javaagent:/opt/glassfish3/glassfish/lib/monitor/flashlight-agent.jar 
> -Dosgi.shell.telnet.maxconn=1 
> -Djdbc.drivers=org.apache.derby.jdbc.ClientDriver 
> -Dfelix.fileinstall.disableConfigSave=false 
> -Dfelix.fileinstall.dir=/opt/glassfish3/glassfish/modules/autostart/ 
> -Djavax.net.ssl.keyStore=/opt/glassfish3/glassfish/domains/domain1/config/keystore.jks
>  -Dosgi.shell.telnet.port=6666 
> -Djava.security.policy=/opt/glassfish3/glassfish/domains/domain1/config/server.policy
>  -Djava.awt.headless=true -Dfelix.fileinstall.log.level=2 
> -Dfelix.fileinstall.poll=5000 
> -Dcom.sun.aas.instanceRoot=/opt/glassfish3/glassfish/domains/domain1 
> -Dosgi.shell.telnet.ip=127.0.0.1 
> -Dcom.sun.enterprise.config.config_environment_factory_class=com.sun.enterprise.config.serverbeans.AppserverConfigEnvironmentFactory
>  
> -Djava.endorsed.dirs=/opt/glassfish3/glassfish/modules/endorsed:/opt/glassfish3/glassfish/lib/endorsed
>  -Dcom.sun.aas.installRoot=/opt/glassfish3/glassfish 
> -Dfelix.fileinstall.bundles.startTransient=true 
> -Djava.ext.dirs=/usr/lib/jvm/java-7-openjdk-amd64/lib/ext:/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/ext:/opt/glassfish3/glassfish/domains/domain1/lib/ext
>  -Dfelix.fileinstall.bundles.new.start=true 
> -Djavax.net.ssl.trustStore=/opt/glassfish3/glassfish/domains/domain1/config/cacerts.jks
>  -Dcom.sun.enterprise.security.httpsOutboundKeyAlias=s1as 
> -DANTLR_USE_DIRECT_CLASS_LOADING=true 
> -Djava.security.auth.login.config=/opt/glassfish3/glassfish/domains/domain1/config/login.conf
>  -Dgosh.args=--nointeractive -Dfile.encoding=utf8 
> -Djava.library.path=/opt/glassfish3/glassfish/lib:/usr/java/packages/lib/amd64:/usr/lib/jni:/lib:/usr/lib
>  
>            Reporter: Jay Xu
>            Priority: Critical
>
> We are using docx4j 2.8.1 to generate PDFs which depends on xalan 2.7.1. When 
> deploying our proj to GF, after a period of time(it worked well when just 
> starting GF), xalan threw a NPE looks like
> Caused by: java.lang.NullPointerException
>       at 
> org.apache.xml.serializer.OutputPropertiesFactory.getDefaultMethodProperties(OutputPropertiesFactory.java:260)
>       at 
> org.apache.xalan.templates.OutputProperties.<init>(OutputProperties.java:83)
>       at 
> org.apache.xalan.transformer.TransformerIdentityImpl.<init>(TransformerIdentityImpl.java:88)
>       at 
> org.apache.xalan.processor.TransformerFactoryImpl.newTransformer(TransformerFactoryImpl.java:823)
>       at 
> com.sun.xml.bind.v2.runtime.JAXBContextImpl.createTransformer(JAXBContextImpl.java:728)
>       at com.sun.xml.bind.v2.runtime.XMLSe|#]
> When digging into the source code Ln.260 of OutputPropertiesFactory.java, NPE 
> is impossible here to my opinion:
> ...
> synchronized (m_synch_object)
> ...

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@xalan.apache.org
For additional commands, e-mail: dev-h...@xalan.apache.org

Reply via email to