Coder Social home page Coder Social logo

cfml-compiler's People

Contributors

bdw429s avatar bockensm avatar chapmandu avatar pfreitag avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

cfml-compiler's Issues

Update README

What are the goals and plans for this project? I was exploring options to compile CFML and hopefully, possibilities to create some tools like webpack, babel etc.

compiler.cfc has run into a timeout

This is a fairly large codebase. It seems the http request to initiate the compiling is reaching the timeout limit.

Lucee 5.3.10.97
Docker ortussolutions/commandbox:3.7.0

Dockerfile

box install cfml-compiler --verbose --production;
box cfcompile sourcePath=${HOME} --overwrite cfengine=${LUCEE_VERSION};
box server forget name=cfml-compiler-server force=true;

Output

#64 115.9 Waiting for server to start: 0/60
--
1611 | #64 115.9 Starting compilation of: /var/www/
1612 | #64 115.9 Destination: /var/www/
1613 | #64 116.0 Stopping cfml-compiler-server...
1614 | #64 116.8 Stopped
1615 | #64 116.8 forgetting cfml-compiler-server...
1616 | #64 118.3 Can't delete file [/usr/local/lib/CommandBox/server/serverHome/lucee-5.3.10.97/.pid.txt], file does not exist
1617 | #64 118.3 Did you leave the server running?
1618 | #64 118.3 cfml-compiler-server not deleted.
1619 | #64 118.5
1620 | #64 118.5
1621 | #64 118.5
1622 | #64 118.5 ·[38;5;15m·[48;5;9mERROR (5.8.0+00695)
1623 | #64 118.5
1624 | #64 118.5 ·[38;5;9mResponse had status: 500 Internal Server Error
1625 | #64 118.5
1626 | #64 118.5 ·[38;5;9m
1627 | #64 118.5
1628 | #64 118.5
1629 | #64 118.5
1630 | #64 118.5 Lucee 5.3.10.97 Error (expression)
1631 | #64 118.5
1632 | #64 118.5 Message request [/__cfml-compiler/compiler.cfc (/var/www/__cfml-compiler/compiler.cfc)] has run into a timeout (timeout: [30] seconds) and has been stopped. The thread started [31218] ms ago.
1633 | #64 118.5
1634 | #64 118.5 Stacktrace The Error Occurred in
1635 | #64 118.5 /var/www/__cfml-compiler/compiler.cfc: line 7
1636 | #64 118.5
1637 | #64 118.5 ····??
1638 | #64 118.5 ····
1639 | #64 118.5 ····called from /var/www/__cfml-compiler/compiler.cfc: line 44
1640 | #64 118.5
1641 | #64 118.5 ····??
1642 | #64 118.5 ····
1643 | #64 118.5 ····called from /var/www/__cfml-compiler/compiler.cfc: line 63
1644 | #64 118.5
1645 | #64 118.5 ····??
1646 | #64 118.5 ····
1647 | #64 118.5 ····
1648 | #64 118.5
1649 | #64 118.5 Java Stacktrace lucee.runtime.exp.RequestTimeoutException: request [/__cfml-compiler/compiler.cfc (/var/www/__cfml-compiler/compiler.cfc)] has run into a timeout (timeout: [30] seconds) and has been stopped. The thread started [31218] ms ago.
1650 | #64 118.5 · at [email protected]/java.lang.StringLatin1.toLowerCase(Unknown Source)
1651 | #64 118.5 · at [email protected]/java.lang.String.toLowerCase(Unknown Source)
1652 | #64 118.5 · at [email protected]/java.lang.String.toLowerCase(Unknown Source)
1653 | #64 118.5 · at lucee.commons.lang.ClassUtil.checkPrimaryTypes(ClassUtil.java:90)
1654 | #64 118.5 · at lucee.commons.lang.ClassUtil.__loadClass(ClassUtil.java:368)
1655 | #64 118.5 · at lucee.commons.lang.ClassUtil._loadClass(ClassUtil.java:363)
1656 | #64 118.5 · at lucee.commons.lang.ClassUtil.loadClass(ClassUtil.java:212)
1657 | #64 118.5 · at lucee.commons.lang.ClassUtil.toClass(ClassUtil.java:68)
1658 | #64 118.5 · at lucee.transformer.bytecode.util.Types.toClass(Types.java:495)
1659 | #64 118.5 · at lucee.transformer.bytecode.expression.ExpressionBase.writeOut(ExpressionBase.java:52)
1660 | #64 118.5 · at lucee.transformer.bytecode.util.ExpressionUtil.writeOutExpressionArray(ExpressionUtil.java:63)
1661 | #64 118.5 · at lucee.transformer.bytecode.expression.var.VariableImpl._writeOutUDF(VariableImpl.java:589)
1662 | #64 118.5 · at lucee.transformer.bytecode.expression.var.VariableImpl._writeOut(VariableImpl.java:278)
1663 | #64 118.5 · at lucee.transformer.bytecode.expression.var.VariableImpl._writeOut(VariableImpl.java:203)
1664 | #64 118.5 · at lucee.transformer.bytecode.expression.ExpressionBase.writeOutAsType(ExpressionBase.java:62)
1665 | #64 118.5 · at lucee.transformer.bytecode.expression.ExpressionBase.writeOut(ExpressionBase.java:52)
1666 | #64 118.5 · at lucee.transformer.bytecode.expression.var.Assign.writeValue(Assign.java:144)
1667 | #64 118.5 · at lucee.transformer.bytecode.expression.var.Assign._writeOut(Assign.java:115)
1668 | #64 118.5 · at lucee.transformer.bytecode.expression.ExpressionBase.writeOutAsType(ExpressionBase.java:62)
1669 | #64 118.5 · at lucee.transformer.bytecode.statement.tag.TagSet._writeOut(TagSet.java:39)
1670 | #64 118.5 · at lucee.transformer.bytecode.statement.StatementBase.writeOut(StatementBase.java:81)
1671 | #64 118.5 · at lucee.transformer.bytecode.util.ExpressionUtil.writeOut(ExpressionUtil.java:146)
1672 | #64 118.5 · at lucee.transformer.bytecode.BodyBase.writeOut(BodyBase.java:191)
1673 | #64 118.5 · at lucee.transformer.bytecode.statement.tag.TagIf.__writeOut(TagIf.java:86)
1674 | #64 118.5 · at lucee.transformer.bytecode.statement.tag.TagIf._writeOut(TagIf.java:77)
1675 | #64 118.5 · at lucee.transformer.bytecode.statement.StatementBase.writeOut(StatementBase.java:81)
1676 | #64 118.5 · at lucee.transformer.bytecode.util.ExpressionUtil.writeOut(ExpressionUtil.java:146)
1677 | #64 118.5 · at lucee.transformer.bytecode.BodyBase.writeOut(BodyBase.java:191)
1678 | #64 118.5 · at lucee.transformer.bytecode.BodyBase.writeOut(BodyBase.java:147)
1679 | #64 118.5 · at lucee.transformer.bytecode.BodyBase._writeOut(BodyBase.java:143)
1680 | #64 118.5 · at lucee.transformer.bytecode.statement.StatementBase.writeOut(StatementBase.java:81)
1681 | #64 118.5 · at lucee.transformer.bytecode.statement.NativeSwitch._writeOut(NativeSwitch.java:74)
1682 | #64 118.5 · at lucee.transformer.bytecode.Page.writeOutUdfCallInner(Page.java:868)
1683 | #64 118.5 · at lucee.transformer.bytecode.Page.execute(Page.java:537)
1684 | #64 118.5 · at lucee.runtime.compiler.CFMLCompilerImpl._compile(CFMLCompilerImpl.java:120)
1685 | #64 118.5 · at lucee.runtime.compiler.CFMLCompilerImpl.compile(CFMLCompilerImpl.java:76)
1686 | #64 118.5 · at lucee.runtime.PageContextImpl.compile(PageContextImpl.java:3261)
1687 | #64 118.5 · at jdk.internal.reflect.GeneratedMethodAccessor21.invoke(Unknown Source)
1688 | #64 118.5 · at [email protected]/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
1689 | #64 118.5 · at [email protected]/java.lang.reflect.Method.invoke(Unknown Source)
1690 | #64 118.5 · at lucee.runtime.reflection.pairs.MethodInstance.invoke(MethodInstance.java:56)
1691 | #64 118.5 · at lucee.runtime.reflection.Reflector.callMethod(Reflector.java:877)
1692 | #64 118.5 · at lucee.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:831)
1693 | #64 118.5 · at lucee.runtime.PageContextImpl.getFunction(PageContextImpl.java:1775)
1694 | #64 118.5 · at __cfml_compiler315.compiler_cfc$cf.udfCall(/__cfml-compiler/compiler.cfc:7)
1695 | #64 118.5 · at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:112)
1696 | #64 118.5 · at lucee.runtime.type.UDFImpl._call(UDFImpl.java:350)
1697 | #64 118.5 · at lucee.runtime.type.UDFImpl.call(UDFImpl.java:223)
1698 | #64 118.5 · at lucee.runtime.type.scope.UndefinedImpl.call(UndefinedImpl.java:786)
1699 | #64 118.5 · at lucee.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:787)
1700 | #64 118.5 · at lucee.runtime.PageContextImpl.getFunction(PageContextImpl.java:1775)
1701 | #64 118.5 · at __cfml_compiler315.compiler_cfc$cf.udfCall(/__cfml-compiler/compiler.cfc:44)
1702 | #64 118.5 · at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:112)
1703 | #64 118.5 · at lucee.runtime.type.UDFImpl._call(UDFImpl.java:350)
1704 | #64 118.5 · at lucee.runtime.type.UDFImpl.call(UDFImpl.java:223)
1705 | #64 118.5 · at lucee.runtime.type.scope.UndefinedImpl.call(UndefinedImpl.java:786)
1706 | #64 118.5 · at lucee.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:787)
1707 | #64 118.5 · at lucee.runtime.PageContextImpl.getFunction(PageContextImpl.java:1775)
1708 | #64 118.5 · at __cfml_compiler315.compiler_cfc$cf.udfCall(/__cfml-compiler/compiler.cfc:63)
1709 | #64 118.5 · at lucee.runtime.type.UDFImpl.implementation(UDFImpl.java:112)
1710 | #64 118.5 · at lucee.runtime.type.UDFImpl._call(UDFImpl.java:350)
1711 | #64 118.5 · at lucee.runtime.type.UDFImpl.callWithNamedValues(UDFImpl.java:213)
1712 | #64 118.5 · at lucee.runtime.ComponentImpl._call(ComponentImpl.java:697)
1713 | #64 118.5 · at lucee.runtime.ComponentImpl._call(ComponentImpl.java:592)
1714 | #64 118.5 · at lucee.runtime.ComponentImpl.callWithNamedValues(ComponentImpl.java:1959)
1715 | #64 118.5 · at lucee.runtime.ComponentSpecificAccess.callWithNamedValues(ComponentSpecificAccess.java:156)
1716 | #64 118.5 · at lucee.runtime.ComponentPageImpl.callWDDX(ComponentPageImpl.java:637)
1717 | #64 118.5 · at lucee.runtime.ComponentPageImpl.call(ComponentPageImpl.java:192)
1718 | #64 118.5 · at lucee.runtime.PageContextImpl._doInclude(PageContextImpl.java:1056)
1719 | #64 118.5 · at lucee.runtime.PageContextImpl._doInclude(PageContextImpl.java:948)
1720 | #64 118.5 · at lucee.runtime.listener.ModernAppListener._onRequest(ModernAppListener.java:219)
1721 | #64 118.5 · at lucee.runtime.listener.MixedAppListener.onRequest(MixedAppListener.java:44)
1722 | #64 118.5 · at lucee.runtime.PageContextImpl.execute(PageContextImpl.java:2493)
1723 | #64 118.5 · at lucee.runtime.PageContextImpl._execute(PageContextImpl.java:2478)
1724 | #64 118.5 · at lucee.runtime.PageContextImpl.executeCFML(PageContextImpl.java:2449)
1725 | #64 118.5 · at lucee.runtime.engine.Request.exe(Request.java:45)
1726 | #64 118.5 · at lucee.runtime.engine.CFMLEngineImpl._service(CFMLEngineImpl.java:1216)
1727 | #64 118.5 · at lucee.runtime.engine.CFMLEngineImpl.serviceCFML(CFMLEngineImpl.java:1162)
1728 | #64 118.5 · at lucee.loader.engine.CFMLEngineWrapper.serviceCFML(CFMLEngineWrapper.java:97)
1729 | #64 118.5 · at lucee.loader.servlet.CFMLServlet.service(CFMLServlet.java:51)
1730 | #64 118.5 · at app//javax.servlet.http.HttpServlet.service(HttpServlet.java:590)
1731 | #64 118.5 · at app//io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:74)
1732 | #64 118.5 · at app//io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:129)
1733 | #64 118.5 · at app//org.cfmlprojects.regexpathinfofilter.RegexPathInfoFilter.doFilter(RegexPathInfoFilter.java:47)
1734 | #64 118.5 · at app//io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:67)
1735 | #64 118.5 · at app//io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:131)
1736 | #64 118.5 · at [email protected]/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
1737 | #64 118.5 · at [email protected]/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
1738 | #64 118.5 · at [email protected]/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
1739 | #64 118.5 · at [email protected]/java.lang.reflect.Method.invoke(Unknown Source)
1740 | #64 118.5 · at com.intergral.fusionreactor.j2ee.filterchain.WrappedFilterChain.doFilter(WrappedFilterChain.java:134)
1741 | #64 118.5 · at com.intergral.fusionreactor.j2ee.filter.FusionReactorRequestHandler.doNext(FusionReactorRequestHandler.java:772)
1742 | #64 118.5 · at com.intergral.fusionreactor.j2ee.filter.FusionReactorRequestHandler.doHttpServletRequest(FusionReactorRequestHandler.java:344)
1743 | #64 118.5 · at com.intergral.fusionreactor.j2ee.filter.FusionReactorRequestHandler.doFusionRequest(FusionReactorRequestHandler.java:207)
1744 | #64 118.5 · at com.intergral.fusionreactor.j2ee.filter.FusionReactorRequestHandler.handle(FusionReactorRequestHandler.java:809)
1745 | #64 118.5 · at com.intergral.fusionreactor.j2ee.filter.FusionReactorCoreFilter.doFilter(FusionReactorCoreFilter.java:36)
1746 | #64 118.5 · at [email protected]/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
1747 | #64 118.5 · at [email protected]/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
1748 | #64 118.5 · at [email protected]/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
1749 | #64 118.5 · at [email protected]/java.lang.reflect.Method.invoke(Unknown Source)
1750 | #64 118.5 · at com.intergral.fusionreactor.j2ee.filterchain.WrappedFilterChain.doFilter(WrappedFilterChain.java:71)
1751 | #64 118.5 · at [email protected]/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
1752 | #64 118.5 · at [email protected]/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
1753 | #64 118.5 · at [email protected]/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
1754 | #64 118.5 · at [email protected]/java.lang.reflect.Method.invoke(Unknown Source)
1755 | #64 118.5 · at app//com.intergral.fusionreactor.agent.filter.FusionReactorStaticFilter.doFilter(FusionReactorStaticFilter.java:54)
1756 | #64 118.5 · at app//com.intergral.fusionreactor.agent.pointcuts.NewFilterChainPointCut$1.invoke(NewFilterChainPointCut.java:42)
1757 | #64 118.5 · at app//io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java)
1758 | #64 118.5 · at app//io.undertow.servlet.handlers.FilterHandler.handleRequest(FilterHandler.java:84)
1759 | #64 118.5 · at app//io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:62)
1760 | #64 118.5 · at app//io.undertow.servlet.handlers.ServletChain$1.handleRequest(ServletChain.java:68)
1761 | #64 118.5 · at app//io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36)
1762 | #64 118.5 · at app//runwar.undertow.SSLClientCertHeaderHandler.handleRequest(SSLClientCertHeaderHandler.java:144)
1763 | #64 118.5 · at app//io.undertow.servlet.handlers.RedirectDirHandler.handleRequest(RedirectDirHandler.java:68)
1764 | #64 118.5 · at app//io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:117)
1765 | #64 118.5 · at app//io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:57)
1766 | #64 118.5 · at app//io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
1767 | #64 118.5 · at app//io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:46)
1768 | #64 118.5 · at app//io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:64)
1769 | #64 118.5 · at app//io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:60)
1770 | #64 118.5 · at app//io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:77)
1771 | #64 118.5 · at app//io.undertow.security.handlers.AbstractSecurityContextAssociationHandler.handleRequest(AbstractSecurityContextAssociationHandler.java:43)
1772 | #64 118.5 · at app//io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
1773 | #64 118.5 · at app//io.undertow.servlet.handlers.SendErrorPageHandler.handleRequest(SendErrorPageHandler.java:52)
1774 | #64 118.5 · at app//io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43)
1775 | #64 118.5 · at app//io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:275)
1776 | #64 118.5 · at app//io.undertow.servlet.handlers.ServletInitialHandler.access$100(ServletInitialHandler.java:79)
1777 | #64 118.5 · at app//io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:134)
1778 | #64 118.5 · at app//io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:131)
1779 | #64 118.5 · at app//io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:48)
1780 | #64 118.5 · at app//io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43)
1781 | #64 118.5 · at app//io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44)
1782 | #64 118.5 · at app//io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:255)
1783 | #64 118.5 · at app//io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:79)
1784 | #64 118.5 · at app//io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:100)
1785 | #64 118.5 · at app//io.undertow.server.Connectors.executeRootHandler(Connectors.java:393)
1786 | #64 118.5 · at app//io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:852)
1787 | #64 118.5 · at app//org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
1788 | #64 118.5 · at app//org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:2019)
1789 | #64 118.5 · at app//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1558)
1790 | #64 118.5 · at app//org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1423)
1791 | #64 118.5 · at app//org.xnio.XnioWorker$WorkerThreadFactory$1$1.run(XnioWorker.java:1282)
1792 | #64 118.5 · at [email protected]/java.lang.Thread.run(Unknown Source)
1793 | #64 118.5 ·
1794 | #64 118.5
1795 | #64 118.5 Timestamp 6/29/23 7:36:32 AM UTC
1796 | #64 118.5
1797 | #64 118.5
1798 | #64 118.5 ·[38;5;6m/modules/cfml-compiler/models/proxy.cfc: line 29
1799 | #64 118.5 27:           return deserializeJSON(response.fileContent);
1800 | #64 118.5 28:       } else {
1801 | #64 118.5 29:           throw(message="Response had status: #response.statusCode#", detail=response.fileContent);
1802 | #64 118.5 30:       }
1803 | #64 118.5 31:
1804 | #64 118.5 ·[38;5;6mcalled from ·[38;5;6m/modules/cfml-compiler/models/proxy.cfc: line 16
1805 | #64 118.5 ·[38;5;6mcalled from ·[38;5;6m/modules/cfml-compiler/commands/cfcompile.cfc: line 99
1806 | #64 118.5 ·[38;5;6mcalled from ·[38;5;6m/system/services/CommandService.cfc: line 443
1807 | #64 118.5 ·[38;5;6mcalled from ·[38;5;6m/system/services/CommandService.cfc: line 245
1808 | #64 118.5 ·[38;5;6mcalled from ·[38;5;6m/system/Shell.cfc: line 832
1809 | #64 118.5 ·[38;5;6mcalled from ·[38;5;6m/system/Bootstrap.cfm: line 119
1810 | #64 118.5
1811 | #64 118.5 ·[38;5;15mTo enable full stack trace, run ·[38;5;11mconfig set verboseErrors=true
1812 | #64 118.5
1813 | #64 127.5 Poof! Wiped out server cfml-compiler-server
1814 | #64 DONE 128.3s


Message key [FOUNDEO_CFML_COMPILER_ACCESS_KEY] doesn't exist

Running this command from Powershell (administrator) from d:\web\local\bar
box cfcompile sourcePath=./foo destPath=./compiled [email protected]

an error occurs
(full trace at https://pastebin.com/TRgnDE86)

✓ | Starting Server
| ✓ | Installing package [forgebox:[email protected]]

Starting RunWAR 3.8.1-SNAPSHOT
Starting background cfml-compiler-server [lucee 5.3.4+80] from: /C:/Users/djiest/.CommandBox/lib/runwar-3.8.1-SNAPSHOT.jar
Starting in background -

Waiting for server to start: 0/60
Starting compilation of: D:\web\local\bar\foo
Destination: D:\web\local\bar\compiled
Stopping cfml-compiler-server...
Stopped
forgetting cfml-compiler-server...
can't delete file C:\Users\djiest.CommandBox\server\278BFB277242452B666AF60F42DF8B2C-cfml-compiler-server\lucee-5.3.4.80\logs\server.out.txt
Did you leave the server running?
cfml-compiler-server not deleted.
ERROR (4.7.0+00026)

Response had status: 500 Internal Server Error

Lucee 5.3.4.80 Error (expression)

Message key [FOUNDEO_CFML_COMPILER_ACCESS_KEY] doesn't exist

Stacktrace The Error Occurred in
D:\web\local\bar\foo__cfml-compiler\compiler.cfc: line 60

    58: var sysAccessKey = createObject("java", "java.lang.System").getProperty("cfmlcompilerkey");
    59: var result = {errors:[]};
    60: if (arguments.accessKey != server.system.environment.foundeo_cfml_compiler_access_key) {
    61: return {path:"*", message:"Access Denied"};
    62: }
    
    
    

Java Stacktrace lucee.runtime.exp.ExpressionException: key [FOUNDEO_CFML_COMPILER_ACCESS_KEY] doesn't exist
  at lucee.runtime.type.util.StructSupport.invalidKey(StructSupport.java:67)
 

Files created using --overwrite throw exceptions

Running an application compiled using the --overwrite flag causes the exception below. Though using files created using a different source and dest directory works as expected.

Below is all the information I can gather.

Environment:
Application Lucee Version: 5.3.5.92
OS: Ubuntu 19.10
CommandBox 5.0.1+00137

Command:
box compile source=./build/ --overwrite [email protected]

Commandbox output:

Compiling ./build...
 √ | Starting Server
   | √ | Installing package [forgebox:[email protected]]
Starting RunWAR 4.0.5
Java version 1.8.0.202 (requires >= 1.8)
HTTP2 Enabled:false
HTTP sslEnable:false
HTTP ajpEnable:false
HTTP warFile exists:true
HTTP warFile isDirectory:true
Starting background cfml-compiler-server [lucee 5.3.5+92] from: /home/adam/.CommandBox/lib/runwar-4.0.5.jar 
Starting in background -
Starting compilation of: /home/adam/code/valy/www/myapp/build/
Destination: /home/adam/code/valy/www/myapp/build/
Finished!
Stopping cfml-compiler-server...
Stopped
forgetting cfml-compiler-server...
Poof! Wiped out server cfml-compiler-server

Exception message when running compiled code:

Bad type on operand stack
Exception Details:
Location:
com/amazonaws/services/s3/AmazonS3Client.putObject(Lcom/amazonaws/services/s3/model/PutObjectRequest;)Lcom/amazonaws/services/s3/model/PutObjectResult; @2: invokevirtual
Reason:
Type 'com/amazonaws/services/s3/model/PutObjectRequest' (current frame, stack[1]) is not assignable to 'com/amazonaws/AmazonWebServiceRequest'
Current Frame:
bci: @2
flags: { }
locals: { 'com/amazonaws/services/s3/AmazonS3Client', 'com/amazonaws/services/s3/model/PutObjectRequest' }
stack: { 'com/amazonaws/services/s3/AmazonS3Client', 'com/amazonaws/services/s3/model/PutObjectRequest' }
Bytecode:
...

AWS SDK 1.11.574
SDK invoked using lucee https://github.com/mso-net/lucee-aws

Thanks for this amazing module!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.